Skip to content

Commit

Permalink
use Gem::Specification#activate over deprecated Gem.activate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Jarvis committed Jun 4, 2011
1 parent 29994bf commit 39f206e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/gem_setup.rake
Expand Up @@ -54,7 +54,7 @@ task :gem_setup do

log "activating #{name}"

Gem.activate(name, *version)
Gem::Specification.find_by_name(name, *version).activate
rescue Gem::LoadError
log "activating #{name} failed, try to install"

Expand All @@ -70,7 +70,7 @@ task :gem_setup do
installer.install(name, *version)
end

Gem.activate(name, *version)
Gem::Specification.find_by_name(name, *version).activate

log "install and final activation successful"
rescue Gem::GemNotFoundException => ex
Expand Down

0 comments on commit 39f206e

Please sign in to comment.