2010-03-02 12:02:55 +08:00
|
|
|
module Rails
|
2014-02-19 05:13:23 +08: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 11:16:46 +08:00
|
|
|
module VERSION
|
2013-04-02 05:26:34 +08:00
|
|
|
MAJOR = 4
|
2014-02-23 20:14:43 +08:00
|
|
|
MINOR = 2
|
2013-04-02 05:26:34 +08:00
|
|
|
TINY = 0
|
2014-08-20 10:32:51 +08:00
|
|
|
PRE = "beta1"
|
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
|