gem_version.rb 349 字节
Newer Older
1 2
# frozen_string_literal: true

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

  module VERSION
10 11
    MAJOR = 6
    MINOR = 0
12
    TINY  = 3
G
George Claghorn 已提交
13
    PRE   = "3"
14 15 16 17

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