module Ember
  extend self

  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
  end
end

module Ember
  extend self

  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
    major, rc = VERSION.sub('-','.').scan(/(\d+\.\d+\.\d+\.rc)\.(\d+)/).first

    "#{major}#{rc}"
  end
end

--- 
+++ 
@@ -6,8 +6,12 @@
   # we might want to unify this with the ember version string,
   # but consistency?
   def rubygems_version_string
-    major, rc = VERSION.sub('-','.').scan(/(\d+\.\d+\.\d+\.rc)\.(\d+)/).first
+    if VERSION =~ /rc/
+      major, rc = VERSION.sub('-','.').scan(/(\d+\.\d+\.\d+\.rc)\.(\d+)/).first
 
-    "#{major}#{rc}"
+      "#{major}#{rc}"
+    else
+      VERSION
+    end
   end
 end
Fix ember-source to handle non-RCs
