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

  module VERSION
9
    MAJOR = 5
M
Matthew Draper 已提交
10
    MINOR = 2
11
    TINY  = 0
M
Matthew Draper 已提交
12
    PRE   = "alpha"
13 14 15 16

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