lib/t/version.rb in t-2.2.0 vs lib/t/version.rb in t-2.2.1

- old
+ new

@@ -1,30 +1,15 @@ module T class Version - class << self - # @return [Integer] - def major - 2 - end + MAJOR = 2 + MINOR = 2 + PATCH = 1 + PRE = nil - # @return [Integer] - def minor - 2 - end - - # @return [Integer] - def patch - 0 - end - - # @return [String, NilClass] - def pre - nil - end - + class << self # @return [String] def to_s - [major, minor, patch, pre].compact.join('.') + [MAJOR, MINOR, PATCH, PRE].compact.join('.') end end end end