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

1

6

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?

Isosteric answered 1/11, 2011 at 21:7 Comment(0)
W
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

Wilburnwilburt answered 1/11, 2011 at 23:33 Comment(1)
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!Whiff

© 2022 - 2024 — McMap. All rights reserved.