version.rb 337 字节
Newer Older
1 2
# frozen_string_literal: true

3
module Rails
4 5 6 7 8
  # Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
  def self.gem_version
    Gem::Version.new VERSION::STRING
  end

9
  module VERSION
10 11
    MAJOR = 6
    MINOR = 0
G
George Claghorn 已提交
12 13
    TINY  = 1
    PRE   = "rc1"
14

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