lib/aquarium/version.rb in aquarium-0.1.0 vs lib/aquarium/version.rb in aquarium-0.1.5
- old
+ new
@@ -1,19 +1,17 @@
module Aquarium
module VERSION
def self.build_tag
tag = "REL_" + [MAJOR, MINOR, TINY].join('_')
- if defined?(RELEASE_CANDIDATE)
- tag << "_" << RELEASE_CANDIDATE
- end
+ tag << "_" << RELEASE_CANDIDATE unless RELEASE_CANDIDATE.nil? or RELEASE_CANDIDATE.empty?
tag
end
unless defined? MAJOR
MAJOR = 0
MINOR = 1
- TINY = 0
- RELEASE_CANDIDATE = ""
+ TINY = 5
+ RELEASE_CANDIDATE = nil
# RANDOM_TOKEN: 0.598704893979657
REV = "$LastChangedRevision: 7 $".match(/LastChangedRevision: (\d+)/)[1]
STRING = [MAJOR, MINOR, TINY].join('.')
\ No newline at end of file