lib/rdf/json/version.rb in rdf-json-0.3.0 vs lib/rdf/json/version.rb in rdf-json-1.0.0

- old
+ new

@@ -1,12 +1,9 @@ module RDF; module JSON module VERSION - MAJOR = 0 - MINOR = 3 - TINY = 0 - EXTRA = nil - - STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.') + FILE = File.expand_path('../../../../VERSION', __FILE__) + MAJOR, MINOR, TINY, EXTRA = File.read(FILE).chomp.split('.') + STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.').freeze ## # @return [String] def self.to_s() STRING end