Skip to content

Commit

Permalink
Add Rack version to Rails info
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Mar 14, 2009
1 parent 07710fd commit 1120563
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/vendor/rack-1.0/rack.rb
Expand Up @@ -3,7 +3,7 @@
# Rack is freely distributable under the terms of an MIT-style license.
# See COPYING or http://www.opensource.org/licenses/mit-license.php.

$:.unshift(File.expand_path(File.dirname(__FILE__)))
$: << File.expand_path(File.dirname(__FILE__))


# The Rack main module, serving as a namespace for all core Rack
Expand All @@ -23,7 +23,7 @@ def self.version

# Return the Rack release as a dotted string.
def self.release
"0.4"
"1.0 bundled"
end

autoload :Builder, "rack/builder"
Expand Down
4 changes: 4 additions & 0 deletions railties/builtin/rails_info/rails/info.rb
Expand Up @@ -85,6 +85,10 @@ def git_info
Gem::RubyGemsVersion
end

property 'Rack version' do
::Rack.release
end

# The Rails version.
property 'Rails version' do
Rails::VERSION::STRING
Expand Down

0 comments on commit 1120563

Please sign in to comment.