aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorTyler Brock <tyler.brock@gmail.com>2013-07-03 09:50:42 -0400
committerTyler Brock <tyler.brock@gmail.com>2013-07-03 09:57:51 -0400
commit5c099a6f06abe1ab75844c44e9716b8f8d7ecceb (patch)
tree556c276f59446ac77ea556837b5931e2510ac243 /railties
parentf34b3189dd0e4dda64607736afb74e2ebbbb4ff0 (diff)
downloadrails-5c099a6f06abe1ab75844c44e9716b8f8d7ecceb.tar.gz
rails-5c099a6f06abe1ab75844c44e9716b8f8d7ecceb.tar.bz2
rails-5c099a6f06abe1ab75844c44e9716b8f8d7ecceb.zip
Add patch level to Ruby version information
Given the recent security related patches to ruby and rails it is more important than ever to know what patch level you are running.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/info.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/lib/rails/info.rb b/railties/lib/rails/info.rb
index f06ce659c5..97a1f0b788 100644
--- a/railties/lib/rails/info.rb
+++ b/railties/lib/rails/info.rb
@@ -61,8 +61,10 @@ module Rails
end
end
- # The Ruby version and platform, e.g. "1.8.2 (powerpc-darwin8.2.0)".
- property 'Ruby version', "#{RUBY_VERSION} (#{RUBY_PLATFORM})"
+ # The Ruby version and platform, e.g. "2.0.0p247 (x86_64-darwin12.4.0)".
+ property 'Ruby version' do
+ "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})"
+ end
# The RubyGems version, if it's installed.
property 'RubyGems version' do