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.
This commit is contained in:
Tyler Brock 2013-07-03 09:50:42 -04:00
parent f34b3189dd
commit 5c099a6f06
1 changed files with 4 additions and 2 deletions

View File

@ -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