From 5c099a6f06abe1ab75844c44e9716b8f8d7ecceb Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Wed, 3 Jul 2013 09:50:42 -0400 Subject: 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. --- railties/lib/rails/info.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'railties') 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 -- cgit v1.2.3