How to add dependency of a local gem to a rails plugin/engine, in .gemspec file
问题 I had tried in this way: s.add_dependency 'gem', :path => '../gem' like add gem in the gemfile, but it doesn't work, and will cause this error: /Users/chenqh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:81:in `parse': Illformed requirement 回答1: It's likely not possible to add local dependencies because other users will not be able to access the gem as it is local dependent and hence of no use after publish. Instead of that, Add remote dependency in your own