lib/comable/version.rb in comable-0.0.3 vs lib/comable/version.rb in comable-0.1.0
- old
+ new
@@ -1,3 +1,16 @@
module Comable
- VERSION = '0.0.3'
+ class << self
+ def gem_version
+ Gem::Version.new VERSION::STRING
+ end
+
+ def version
+ VERSION::STRING
+ end
+ end
+
+ module VERSION
+ STRING = File.read(File.expand_path('../../../COMABLE_VERSION', __FILE__)).strip
+ MAJOR, MINOR, TINY, PRE = Comable.gem_version.segments
+ end
end