Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work #2

Closed
rkh opened this issue Mar 28, 2012 · 9 comments
Closed

Doesn't work #2

rkh opened this issue Mar 28, 2012 · 9 comments

Comments

@rkh
Copy link

rkh commented Mar 28, 2012

$ echo $RUBYOPT                                                                                                                                                                                                                                 
-r/Users/konstantin/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/noexec-0.0.3/lib/noexec/auto.rb
$ ruby -e "p require 'active_support'"                                                                                                                                                                                                          
true
$ ruby -r/Users/konstantin/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/noexec-0.0.3/lib/noexec/auto.rb -e "p require 'active_support'"                                                                                                                                                                                                          
true
$ bundle exec ruby -e "p require 'active_support'"
-e:1:in `require': cannot load such file -- active_support (LoadError)
    from -e:1:in `<main>'

Gemfile and Gemfile.lock are in pwd.

@joshbuddy
Copy link
Owner

ruby and irb are not provided by the Gemfile, and thus, were never considered candidates for usage by noexec. I've added ruby and irb to a list of bins permitted to load the Gemfile. I've bumped the version and released this. Let me know if it's fixed.

@matisojka
Copy link

Doesn't work for me either:

$ echo $RUBYOPT
-r/Library/Ruby/Gems/1.8/gems/noexec-0.0.4/lib/noexec/auto.rb

@joshbuddy
Copy link
Owner

So, I've added include/exclude lists that you can add to the processing of this. Take a look at the readme.

@YAGoOaR what are you trying to do there?

@joshbuddy
Copy link
Owner

Also, running with NOEXEC_DEBUG=1 will print out some illuminating stuff

@matisojka
Copy link

I try to run a rake task, in a directory where bundle exec is needed.

@rkh
Copy link
Author

rkh commented Mar 29, 2012

For some reason my Ruby (vanilla 1.9.3) doesn't pick up $RUBYOPT, will have to investigate.

@mpapis
Copy link
Collaborator

mpapis commented Apr 3, 2012

@rkh noexec just got merged to rubygems-bundler, please try with:

gem install rubygems-bundler --pre

and check instructions in readme: https://github.com/mpapis/rubygems-bundler

@mpapis
Copy link
Collaborator

mpapis commented Apr 9, 2012

the stable version of rubygesm-bundler 0.9.0 was released, the RUBYOPT is no more supported, please use above instructions and validate your problem persists.

@mpapis
Copy link
Collaborator

mpapis commented Dec 17, 2012

the code was merged into https://github.com/mpapis/rubygems-bundler please open any issues in there

@mpapis mpapis closed this as completed Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants