Local Dependency in Gem .gemspec
Just so folks can find the answer (slightly) faster...
If you're creating a gem, and need to add a local dependency (while developing), in your gem's Gemfile, do something like:
source 'https://rubygems.org'# Specify your gem's dependencies in mygem.gemspecgemspecgem "local_gem", path: "/path/to/local_gem"
When you bundle
you should see it's now using the local path
Using local_gem 0.1.0 from source at `/path/to/local_gem`
Hm...what about adding it in gem's Gemfile
in :development
group?
UPD:I found similar question, maybe this helps
How to add dependency of a local gem to a rails plugin/engine, in .gemspec file