6

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

   gem.add_dependency 'myapp', :git => "git@github.com:myaddress/myapp.git", :branch => "mybranch"

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

JZ.
  • 21,147
  • 32
  • 115
  • 192

1 Answers1

7

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

Christos
  • 1,297
  • 10
  • 9
  • So it seems you really gotta publish the gem before building another one on top of it. I got here because I wanted to make a gem Rails 3.2 compatible (but Rails 3.2 isn't out yet). I was gonna point it to Rails edge but it doesn't seem possible. I guess I'll need to leave it in the Gemfile for now! – Ramon Tayag Nov 08 '11 at 13:00