On Nov 19, 10:47 pm, Rodrigo K. email@example.com wrote:
How can i change the RubyGem load path, so that requiring a gem from
within my application loads it from a custom path instead of the
I’ve tried setting Gem.path and overriding Gem.default_path but none
You should look into GEM_PATH and GEM_HOME environment variables.
Merb is doing something similar, making their bundled gems first in
the search of GEM_PATH.
You can do something like this:
ENV[‘GEM_HOME’] = File.join(Dir.pwd, ‘gems’)
ENV[‘GEM_PATH’] = File.join(Dir.pwd, ‘gems’)
Now you can do your show adding or removing gems from there