Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundler: `bundle package` with a :git source

I'm trying to get my app to package my gems before deployment (to heroku) One of my gems in my Gemfile is a custom gem that I've written and I'm using the :git option of bundler to use the specific tag of my interest as such:

gem "my_gem", :git => "[email protected]:my_username/my_gem.git", :tag => "v0.1.0"

When I run bundle package however, this gem is not included into my vendor/cache directory. Is this a known issue, namely, that Bundler does not package gems that use the git source rather than a packaged .gem file?

I haven't found anything in the docs that says either way, but I was really hoping using this :git option would save me the hassle of having to actually build the gem and host it somewhere. (All this code is NOT open source or public in any way so I don't want to push it to gemcutter)

Also note that I need to package my gems first as heroku won't have access to the git source on deployment due to public key issues.

like image 945
brad Avatar asked Aug 23 '10 12:08

brad


People also ask

What is GitHub bundle?

The one displayed in the top right corner in GitHub is your GitHub username - this is the one you use to login to GitHub when you enter the site and when you commit over HTTPS, and the one that appears in the URLs of your GitHub repositories.

How do you install a bundler?

Install BundlerSelect Tools | Bundler | Install Bundler from the main menu. Press Ctrl twice and execute the gem install bundler command in the invoked popup. Open the RubyMine terminal emulator and execute the gem install bundler command.


2 Answers

This is now possible, using bundler 1.2, with:

bundle package --all
like image 182
benilov Avatar answered Sep 20 '22 20:09

benilov


Turns out this is not yet supported, scheduled for v1.1

like image 30
brad Avatar answered Sep 22 '22 20:09

brad