gem.add_dependency Jeweler how do you format a git source?

2.5k Views Asked by At

I'm trying to specify a git source in my Jeweler Rake file:

   gem.add_dependency 'myapp', :git => "[email protected]:myaddress/myapp.git", :branch => "mybranch"

but I hit a format error. Do you know how to format this?

1

There are 1 best solutions below

1
On BEST ANSWER

I don't think you can add a dependency for a git repo. It doesn't work like Bundler afaik.

http://docs.rubygems.org/read/chapter/20#dependencies