lib/ember/version.rb in ember-source-1.0.1 vs lib/ember/version.rb in ember-source-1.1.0
- old
+ new
@@ -4,14 +4,8 @@
VERSION = File.read(File.expand_path('../../../VERSION', __FILE__)).strip
# we might want to unify this with the ember version string,
# but consistency?
def rubygems_version_string
- if VERSION =~ /rc/
- major, rc = VERSION.sub('-','.').scan(/(\d+\.\d+\.\d+\.rc)\.(\d+)/).first
-
- "#{major}#{rc}"
- else
- VERSION
- end
+ VERSION.gsub(/[-\+]/,'.')
end
end