gem_version.rb 310 字节
Newer Older
1 2 3 4 5 6 7
module Rails
  # Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
  def self.gem_version
    Gem::Version.new VERSION::STRING
  end

  module VERSION
8 9
    MAJOR = 5
    MINOR = 0
10
    TINY  = 0
A
Aaron Patterson 已提交
11
    PRE   = "beta1.1"
12 13 14 15

    STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
  end
end