carlhuda/bundler — Issue #1499: Bundler 1.1.rc: Forgetting a comma in the Gemfile causes a parse error
Author: patshaughnessy
Created: 2011-10-23 11:55:17+00:00
State: open

Add this to a Gemfile:

gem 'mysql2' '~> 0.2'

(There's a missing comma between 'mysql2' and '~> 0.2")

Run bundler and you get:

lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?): http://rubygems.org/api/v1/dependencies?gems=rails,mysql2~> 0.2,paperclip,scaffoldhub,rack,haml,rake,gmaps4rails,will_paginate,rspec-rails,factory_girl_rails (URI::InvalidURIError)
from /Users/pat/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/uri/common.rb:485:in `parse'
from /Users/pat/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.1.rc/lib/bundler/fetcher.rb:159:in `fetch_dependency_remote_specs'
from /Users/pat/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.1.rc/lib/bundler/fetcher.rb:122:in `fetch_remote_specs'

etc...