lib/rdf/spec/version.rb in rdf-spec-0.3.11 vs lib/rdf/spec/version.rb in rdf-spec-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
module RDF; module Spec
module VERSION
- VERSION_FILE = File.expand_path("../../../../VERSION", __FILE__)
- MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chop.split(".")
- 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