bundler icon indicating copy to clipboard operation
bundler copied to clipboard

wrong argument type Symbol (expected Proc)

Open d3ntaku opened this issue 15 years ago • 3 comments

i was getting this error - maybe this is a ruby 1.8.6 issue?

[dc@tetris:dev/fish]$ gem bundle --backtrace
ERROR: While executing gem ... (TypeError) wrong argument type Symbol (expected Proc) /Library/Ruby/Gems/1.8/gems/bundler-0.7.2/lib/bundler/dsl.rb:110:in gem' /Users/dc/dev/fish/Gemfile:8:inevaluate' /Library/Ruby/Gems/1.8/gems/bundler-0.7.2/lib/bundler/dsl.rb:14:in load_gemfile' /Library/Ruby/Gems/1.8/gems/bundler-0.7.2/lib/bundler/cli.rb:35:ininitialize' /Library/Ruby/Gems/1.8/gems/bundler-0.7.2/lib/bundler/cli.rb:6:in new' /Library/Ruby/Gems/1.8/gems/bundler-0.7.2/lib/bundler/cli.rb:6:inrun' /Library/Ruby/Gems/1.8/gems/bundler-0.7.2/lib/bundler/commands/bundle_command.rb:68:in execute' /Library/Ruby/Site/1.8/rubygems/command.rb:257:ininvoke' /Library/Ruby/Site/1.8/rubygems/command_manager.rb:132:in process_args' /Library/Ruby/Site/1.8/rubygems/command_manager.rb:102:inrun' /Library/Ruby/Site/1.8/rubygems/gem_runner.rb:58:in `run' /usr/bin/gem:21

the following hack fixes it:

  # keys = %w(vendored_at path only except git path bundle require_as tag branch ref).map(&:to_sym)
  keys = [:vendored_at, :path, :only, :except, :git, :path, :bundle, :require_as, :tag, :branch, :ref]

d3ntaku avatar Dec 25 '09 09:12 d3ntaku

related to #134

d3ntaku avatar Dec 25 '09 09:12 d3ntaku

the :?to_sym construct is only available in ruby 1.9 or when using rails activesupport.

ukabu avatar Jan 15 '10 15:01 ukabu

Thanks for the fix... to_sym also works in 1.8.7. but I've not upgraded on a particular production box yet.

midwire avatar Feb 10 '10 01:02 midwire