lib/capgun/version.rb in capgun-0.0.1 vs lib/capgun/version.rb in capgun-0.0.3
- old
+ new
@@ -1,10 +1,30 @@
-module Capgun #:nodoc:
- module VERSION #:nodoc:
- MAJOR = 0
- MINOR = 0
- TINY = 1
+module Capgun
+ class Version
- STRING = [MAJOR, MINOR, TINY].join('.')
+ # @return [Integer]
+ def self.major
+ 0
+ end
+
+ # @return [Integer]
+ def self.minor
+ 0
+ end
+
+ # @return [Integer]
+ def self.patch
+ 3
+ end
+
+ # @return [String, NilClass]
+ def self.pre
+ nil
+ end
+
+ # @return [String]
+ def self.to_s
+ [major, minor, patch, pre].compact.join('.')
+ end
+
end
end
-