2017-08-13 13:14:22 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2010-03-02 04:02:55 +00:00
|
|
|
module Rails
|
2014-02-18 21:13:23 +00:00
|
|
|
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
|
|
|
|
def self.gem_version
|
|
|
|
Gem::Version.new VERSION::STRING
|
|
|
|
end
|
|
|
|
|
2013-03-30 03:16:46 +00:00
|
|
|
module VERSION
|
2021-02-04 16:46:53 +00:00
|
|
|
MAJOR = 7
|
|
|
|
MINOR = 0
|
2013-04-01 21:26:34 +00:00
|
|
|
TINY = 0
|
2020-12-02 23:37:26 +00:00
|
|
|
PRE = "alpha"
|
2010-03-02 04:02:55 +00:00
|
|
|
|
2013-03-30 03:16:46 +00:00
|
|
|
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
2010-03-02 04:02:55 +00:00
|
|
|
end
|
|
|
|
end
|