carlhuda/bundler — Issue #1552: Bundle (1.1rc) bundle install --without pulls :git and causes error.
Author: envygeeks
Created: 2011-11-25 09:05:07+00:00
State: open

jordon@envygeeks:$ bundle install --path bundler --without dev
Fetching git://github.com/pry/pry.git
remote: Counting objects: 9986, done.
remote: Compressing objects: 100% (4342/4342), done.
remote: Total 9986 (delta 5702), reused 9773 (delta 5500)
Receiving objects: 100% (9986/9986), 2.80 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (5702/5702), done.
Fetching gem metadata from http://rubygems.org/.......
Installing json (1.6.1) with native extensions
Using bundler (1.1.rc)
Your bundle is complete! It was installed into ./bundler
Removing (pry 4373b3d3c770)
jordon@envygeeks:~/Development/api.envygeeks.com$ rake pry
git://github.com/pry/pry.git (at master) is not checked out. Please run `bundle install`

Gemfile:

source "http://rubygems.org"
gem 'json'

group :dev do
gem 'minitest'
gem 'rspec'
gem 'cucumber'
gem 'pry-doc'
gem 'pry-stack_explorer', '>=0.2.2pre1'
gem 'pry', :git => 'git://github.com/pry/pry.git'
end

Simply doing `require 'bundler/setup'` in the Rakefile kills any of my manual `Gem.available? 'pry'` checks because it apparently thinks that pry is needed when I told it not to install :dev so it should have never been branded as a dependency.