summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/version.rb b/lib/oxidized/version.rb
index a5422fd..1ca2f55 100644
--- a/lib/oxidized/version.rb
+++ b/lib/oxidized/version.rb
@@ -4,7 +4,7 @@ module Oxidized
def self.version_set
version_full = %x(git describe --tags).chop rescue ""
version = %x(git describe --tags --abbrev=0).chop rescue ""
- if [version, version_full].none? &:empty?
+ if [version, version_full].none?(&:empty?)
Oxidized.send(:remove_const, :VERSION)
Oxidized.send(:remove_const, :VERSION_FULL)
const_set(:VERSION, version)