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

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

Fix ember-source to handle non-RCs
Fix ember-source to handle non-RCs
