diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-01 18:56:56 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-01 18:56:56 +0000 |
commit | b4b47e560eb8627190fc6bcf3b54fd2faa62c5e2 (patch) | |
tree | fedf94475b90e25e37c1aaec92ed0262e1feeb3e /railties/lib/tasks | |
parent | 144f78be41c91553a6a4761f0b3c5c5ead699622 (diff) | |
download | rails-b4b47e560eb8627190fc6bcf3b54fd2faa62c5e2.tar.gz rails-b4b47e560eb8627190fc6bcf3b54fd2faa62c5e2.tar.bz2 rails-b4b47e560eb8627190fc6bcf3b54fd2faa62c5e2.zip |
Simplify gem search for :freeze_gems rake task.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks')
-rw-r--r-- | railties/lib/tasks/framework.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake index 51c277c641..9835cc6b16 100644 --- a/railties/lib/tasks/framework.rake +++ b/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 |