I'm pretty sure if you use jeweler to package the gem it lets you use a Gemfile instead of specifying deps in the gemspec, which will in turn allow you to specify a git repo.
-Ivan On 12/02/2011, at 6:07 PM, Ryan Bigg wrote: > Sadly this won't be the case. The gemspec can be read by the Gemfile (using > the gemspec method), but to my knowledge it is not possible the other way due > to rubygems loads it's dependencies. > > What I would recommend is forking the gem, altering the gemspec to have a > name like jpartogi-gem and then pushing that to RubyGems. Then you can make > this gem a dependency of the first gem, and RubyGems will install it and > treat it just like the others. > > > > On 12/02/2011, at 17:35, Chris Herring <[email protected]> wrote: > >> If you build your gem with bundler it will have a gem file so that means you >> can do this: >> >> gem "github-gem", :git => "git://github.com/github-gem.git" >> >> And then the gem will be included in your gem, I assume this will mean you >> generate your gemspec it will be listed in there. >> On Saturday, 12 February 2011 at 4:56 PM, Joshua Partogi wrote: >> >>> Hi, >>> >>> I have a rubygem and would like to include another gem as dependency. >>> Unfortunately that gem that I want to include has not been released to >>> rubygems.org and still in github. Is it possible to include this gem >>> in gemspec? >>> >>> Thanks. >>> >>> Kind regards, >>> Joshua. >>> >>> -- >>> http://twitter.com/jpartogi >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Ruby or Rails Oceania" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/rails-oceania?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby or Rails Oceania" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rails-oceania?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
