delano / rye

Safe, parallel access to Unix shells from Ruby
http://delano.github.com/rye
MIT License
235 stars 32 forks source link

cannot require 'ridley' to 'rye' #53

Open donfanning opened 10 years ago

donfanning commented 10 years ago

If I were to create the following two line program:

require 'rye'
require 'ridley'

The application when executed by ruby will immediately explode and many small children and puppies become hurt by it.

However, if I write an application requiring them individually, all the world is right with many woodland animals rubbing against my legs. I can't tell if Ridley is the issue or if 'rye' is as Ridley supposedly has addressed the issue before.

/home/username/.rvm/gems/ruby-2.0.0-p353/gems/buff-extensions-0.5.0/lib/buff/extensions/boolean.rb:1:in `<top (required)>': Boolean is not a module (TypeError)
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/buff-extensions-0.5.0/lib/buff/extensions.rb:7:in `require_relative'
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/buff-extensions-0.5.0/lib/buff/extensions.rb:7:in `<top (required)>'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/varia_model-0.3.2/lib/varia_model.rb:1:in `<top (required)>'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/ridley-3.1.0/lib/ridley/chef_object.rb:1:in `<top (required)>'
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/ridley-3.1.0/lib/ridley.rb:63:in `require_relative'
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/ridley-3.1.0/lib/ridley.rb:63:in `<module:Ridley>'
    from /home/username/.rvm/gems/ruby-2.0.0-p353/gems/ridley-3.1.0/lib/ridley.rb:13:in `<top (required)>'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
    from /home/username/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
    from ryebugtest.rb:2:in `<main>'
donfanning commented 10 years ago

Issue opened against Ridley: https://github.com/RiotGames/ridley/issues/269

Already has comment:

"@donfanning this is because Rye is defining the constant Boolean as a class 
and then Ridley is requiring in the Buff-Extensions library which is attempting 
to define the same constant as a Module."