Forum: Ruby How to deactivate RubyGems?

Posted by Thomas Sawyer (7rans)
on 2012-12-28 17:22
(Received via mailing list)
Is there are way to run ruby the old fashioned way -- without RubyGems?

Thanks.
Posted by Florian Gilcher (skade)
on 2012-12-28 18:16
(Received via mailing list)
Jep:

 ruby --disable-gems -S irb
Posted by Thomas Sawyer (7rans)
on 2012-12-28 20:59
(Received via mailing list)
Thanks, Florian. I thought there was I just couldn't remember how it was
done.

Follow-up question... Do you have any idea if this sets a flag that can 
be
accessed from Ruby code?

I'm working on a project that can be configured to omit GEM_PATH from 
it's
searches. I was thinking that maybe I could tap into this flag instead 
of
using my own env variable.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.