I am editing a stone in which there are the usual commands requirepointing to the loaded gem (the pearl that I am talking about is called nirvana, but the files in it contain require 'nirvana', require 'nirvana/shell'etc.).
When I use the bin file of the application ( /mypath/nirvana/bin/nirvana), I want the command require 'nirvana'written inside it to point to the files in the local fork of this gem (the ones that I edit), and I want not to load the original nirvana gem, which is installed with the classic gem install.
I do not want to substitute all the commands require 'nirvana'
require File.dirname(File.expand_path(__FILE__)) + '/../lib/nirvana.rb'
... it will solve my problem, but it is ugly! Is there any way not to load the nirvana gem and make require 'nirvana'my libraries load (maybe add them to $ LOAD_PATH ...)?
source
share