lib/ember/version.rb in ember-source-2.16.3 vs lib/ember/version.rb in ember-source-2.17.0.beta.4

- old
+ new

@@ -1,11 +1,9 @@ +require 'json' + module Ember extend self - VERSION = File.read(File.expand_path('../../../VERSION', __FILE__)).strip + package = File.read(File.expand_path('../../../package.json', __FILE__)) - # we might want to unify this with the ember version string, - # but consistency? - def rubygems_version_string - VERSION.gsub(/[-\+]/,'.') - end + VERSION = JSON.parse(package)['version'].strip.gsub(/[-\+]/, '.') end