lib/zh/version.rb in zh-0.1.0 vs lib/zh/version.rb in zh-1.0.0
- old
+ new
@@ -1,3 +1,13 @@
class Zh
- VERSION = "0.1.0"
+ def self.version
+ Gem::Version.new VERSION::STRING
+ end
+
+ module VERSION
+ MAJOR = 1
+ MINOR = 0
+ PATCH = 0
+
+ STRING = [MAJOR, MINOR, PATCH].compact.join('.')
+ end
end