I am working on a gem (Gem A) which uses another gem (Gem B) that I have also written. Until this point Gem B has been added in the gemspec for Gem A:
gem.add_dependency "gem_a", "~> 0.0.4"
But I now find the need to debug using my local version.
To declare a local dependency in a Gemfile I could do:
gem 'gem_a', path: "/local/path/to/gem_a"
But how do I declare a local dependency in a .gemspec
?
gem build
do with a local dependency? The resulting package couldn't be reliably distributed. – Neil Slater