title: Packaging local ruby gems using Bundler?
body: <p>I have a project that I'm working on that uses a gem we've created internally.  It's not hosted on rubygems.org or github.  But we do have it in our repository and in a path on our local machine.</p>
  
  <p>In our Gemfile, we have something similar to this:</p>
  
  <pre><code>gem "our-custom-gem", :path =&gt; "/path-to/our-custom-gem"
  </code></pre>
  
  <p>We're trying to package all our gems so we can use the warbler gem to create a .war file in order to deploy using jRuby.  </p>
  
  <p>We'd like to be able to run something like "bundle install" or "bundle install --local" to make sure all the gems are installed.  Then have bundler take all the dependencies specified in our Gemfile put them in vendor/bundle using the "bundle package" command.</p>
  
  <p>But based on this link (http://gembundler.com/man/bundle-package.1.html), it looks like bundler cannot package gems specified using :path or :git as the source.</p>
  
  <p>Has anyone found a way around this?</p>
  
  <p>How do you "bundle package" gems that are local and that are not part of a git repo or available on rubygems.org?</p>
  
  <p>Thanks.</p>