carlhuda/bundler — Issue #1594: "unknown regexp options" when invalid :path
Author: rchekaluk
Created: 2011-12-19 22:56:01+00:00
State: open

Specifying an invalid :path for a gem requirement like this (missing string quotes):

gem 'delayed_job', :path => /home/aaa/bbb/delayed_job

Gives this fatal error:

Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/dsl.rb:7:in `instance_eval': /home/aaa/bbb/Gemfile:43: unknown regexp options - rb (SyntaxError)
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/dsl.rb:7:in `evaluate'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/definition.rb:17:in `build'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler.rb:137:in `definition'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/cli.rb:262:in `update'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/lib/bundler/vendor/thor/base.rb:386:in `start'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.rc.3/bin/bundle:13:in `'
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19:in `

'

$ bundle version
Bundler version 1.1.rc.3