ruby-1.8.7-p299 ➜ bundler --version
Bundler version 1.0.0.beta.2
ruby-1.8.7-p299 ➜ bundle install
Fetching source index for http://rubygems.org/
Could not find gem 'rspec (>= 0, runtime)' in any of the gem sources.
If I use gem "rspec" rather than gem :rspec it works fine. It retrospect, maybe this should have been obvious to me, but I spent close to an hour trying to figure out why bundler couldn't find the rspec gem. The error message is just flat-out wrong, and it led me down the wrong to path to trying to solve the issue.
I think bundler should do one of the following, and I don't particularly care which:
Support gem names specified using symbols. A simple name.to_s at the appropriate spot should work.
Not support symbols, and make it obvious by raising an appropriate error message such as Bundler does not support specifying gem names using symbols. Use a string instead.
I'm willing to submit a patch that fixes this, if the bundler team will provide guidance about which solution they would prefer.
The text was updated successfully, but these errors were encountered:
Given Ruby tradition, I am more comfortable with solution 2. If that causes problems, or raises a furor, we can always switch to option 1. If you do submit a patch, I will give this ticket priority and pull right away. :)