Permalink
Browse files

rubygems 1.5.0 compatibility. Thanks Tim Serong

  • Loading branch information...
1 parent b0c3d45 commit abc06a2f769e6e451462460610369ccddb45255d @tenderlove tenderlove committed Feb 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/tasks/framework.rake
@@ -24,7 +24,7 @@ namespace :rails do
begin
chdir("vendor/rails") do
rails.dependencies.select { |g| deps.include? g.name }.each do |g|
- Gem::GemRunner.new.run(["unpack", g.name, "--version", g.version_requirements.to_s])
+ Gem::GemRunner.new.run(["unpack", g.name, "--version", g.respond_to?(:requirement) ? g.requirement.to_s : g.version_requirements.to_s])
mv(Dir.glob("#{g.name}*").first, g.name)
end

0 comments on commit abc06a2

Please sign in to comment.