I am trying to require a gem source code that I've downloaded and modified. The require works for the main file, but the main file require other files (classes and modules) and unfortunately, these classes and modules are loaded from the previously installed gem (via gem command) and not the locally modified ones.
I am doing a require './lib/foo', any idea to tell the require to load only local files?
EDITED: My require './lib/foo' is working. foo is the local version I want. But foo does other requires, and theses requires point to the files of the gem installed (which I don't want as I am trying to correct stuff inside).
uninstall the original gem from system by command
gem uninstall some_gem
then go the root of downloaded source code and build your own gem from modified source with command
gem build some_gem.gemspec
the install the gem by specifying the generated source file name.
gem install some_gem-version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With