aboutsummaryrefslogtreecommitdiffstats
path: root/version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'version.rb')
-rw-r--r--version.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/version.rb b/version.rb
index ec878f9dcf..7d74b1bfe5 100644
--- a/version.rb
+++ b/version.rb
@@ -1,10 +1,15 @@
module Rails
- module VERSION #:nodoc:
- MAJOR = 4
+ # Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
+ def self.gem_version
+ Gem::Version.new VERSION::STRING
+ end
+
+ module VERSION
+ MAJOR = 5
MINOR = 0
TINY = 0
- PRE = "beta"
+ PRE = "alpha"
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
end