2017-08-13 21:14:22 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2010-03-02 12:02:55 +08:00
|
|
|
module Rails
|
2023-06-23 09:49:30 +08:00
|
|
|
# Returns the currently loaded version of \Rails as a +Gem::Version+.
|
2014-02-19 05:13:23 +08:00
|
|
|
def self.gem_version
|
|
|
|
Gem::Version.new VERSION::STRING
|
|
|
|
end
|
|
|
|
|
2013-03-30 11:16:46 +08:00
|
|
|
module VERSION
|
2024-05-14 00:44:50 +08:00
|
|
|
MAJOR = 8
|
|
|
|
MINOR = 0
|
2013-04-02 05:26:34 +08:00
|
|
|
TINY = 0
|
2023-09-27 11:59:11 +08:00
|
|
|
PRE = "alpha"
|
2010-03-02 12:02:55 +08:00
|
|
|
|
2013-03-30 11:16:46 +08:00
|
|
|
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
2010-03-02 12:02:55 +08:00
|
|
|
end
|
|
|
|
end
|