I have IronRuby 1.0 with RubyGems 1.3.6 and Bundler 0.9.25.
When I run Bundler.setup I get this error:
NameError: undefined method gem' for moduleBundler::SharedHelpers’
from
C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:90:in reverse_rubygems_kernel_mixin' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:84:inmodule_eval’
from
C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:84:in reverse_rubygems_kernel_mixin' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:95:incripple_rubygems’
from
C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/runtime.rb:18:in setup' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler.rb:76:ingem_setup’
from (irb):3
from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:150:in eval_input' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:263:insignal_status’
from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:147:in eval_input' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:146:ineval_input’
from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:70:in start' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:69:incatch’
from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:69:in `start’
from C:/IronRuby-1.0/bin/irb:13
reverse_rubygems_kernel_mixin looks like this:
def reverse_rubygems_kernel_mixin
# Disable rubygems’ gem activation system
::Kernel.class_eval do
if private_method_defined?(:gem_original_require)
alias rubygems_require require
alias require gem_original_require
end
undef gem
end
end
If I run this in irb I get this error:
NameError: undefined method gem' for classObject’