Permalink
Browse files

Gem.activate deprecation fix

  • Loading branch information...
1 parent a632a45 commit d55e4008051a38cb431f6a76a3fef896b3211e2b Deepak Prasanna committed Mar 23, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 ext/extconf.rb
View
6 ext/extconf.rb
@@ -21,7 +21,11 @@ def sys(cmd)
installer.install 'debugger-ruby_core_source'
Gem.refresh
- Gem.activate('debugger-ruby_core_source') # for 1.9.1
+ if Gem.method_defined? :activate
+ Gem.activate('debugger-ruby_core_source') # for 1.9.1
+ else
+ Gem::Specification.find_by_name('debugger-ruby_core_source').activate
+ end
require "debugger/ruby_core_source"
end

0 comments on commit d55e400

Please sign in to comment.