Permalink
Browse files

Merge pull request #54 from deepakprasanna/master

Gem.activate deprecation fix
  • Loading branch information...
2 parents a632a45 + d55e400 commit f9368a0a8585e917915515c02975140ed735e479 @tmm1 committed Mar 24, 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 f9368a0

Please sign in to comment.