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