Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit 5c099a6f06abe1ab75844c44e9716b8f8d7ecceb 1 parent f34b318
Tyler Brock TylerBrock authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 railties/lib/rails/info.rb
6 railties/lib/rails/info.rb
@@ -61,8 +61,10 @@ def to_html
61 61 end
62 62 end
63 63
64   - # The Ruby version and platform, e.g. "1.8.2 (powerpc-darwin8.2.0)".
65   - property 'Ruby version', "#{RUBY_VERSION} (#{RUBY_PLATFORM})"
  64 + # The Ruby version and platform, e.g. "2.0.0p247 (x86_64-darwin12.4.0)".
  65 + property 'Ruby version' do
  66 + "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})"
  67 + end
66 68
67 69 # The RubyGems version, if it's installed.
68 70 property 'RubyGems version' do

0 comments on commit 5c099a6

Eugene Gilburg

Example should say "2.0.0-p247" based on code, or else remove the '-' from the code if you don't want it.

Carlos Antonio da Silva

That's true, I missed that. Fixed in d6e1d6d. Thanks.

Tyler Brock

Sorry about that, thanks!

Please sign in to comment.
Something went wrong with that request. Please try again.