Permalink
Browse files

Simplify gem search for :freeze_gems rake task.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 144f78b commit b4b47e560eb8627190fc6bcf3b54fd2faa62c5e2 @jeremy jeremy committed Nov 1, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/tasks/framework.rake
View
2 railties/lib/tasks/framework.rake
@@ -7,7 +7,7 @@ task :freeze_gems do
if version = ENV['VERSION']
puts "Freezing to the gems for Rails #{version}"
require 'rubygems'
- if rails = Gem.cache.search('rails').find { |g| g.version.to_s == version }
+ if rails = Gem.cache.search('rails', "= #{version}")
rails.dependencies.select { |g| deps.include? g.name }.each do |g|
system "cd vendor/rails; gem unpack -v '#{g.version_requirements}' #{g.name}; mv #{g.name}* #{g.name}"
end

0 comments on commit b4b47e5

Please sign in to comment.