I am creating a gem, which has a dependency on another published gem.
In my_gem.gemspec, I have added the dependency to the other gem:
gem.add_dependency "other_gem", "~> 1.0.0"
Now, I found a feature that can be tweaked in other_gem, so I forked the repository, made my changes and committed it to the fork (It has not been pulled into the original repository).
My question is how do I tell my_gem to lookup other_gem locally? The below code snippet is not valid, as :path is not an option in add_dependency call, as mentioned in Gem Specification Reference:
gem.add_dependency "other_gem", "~> 1.0.0", :path => '/path/to/local/other_gem
Locally it’s much easier: while you’re doing development, you can include:
or
in your gemfile, as this should override the gemspec