This pull request fixes a few warnings I encounter with the -w flag enabled when I run bundle exec rake.
bundle exec rake
Fix "warning: assigned but unused variable - reqs".
I'm sorry, but this patch totally doesn't work for me. I'd like to remove the warnings, perhaps you could fix it?
[andre ~/sw/gems/bundler](1-0-stable)$ RUBYOPT='-w' dbundle exec rake
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:263: warning: `*' interpreted as argument prefix
/Users/andre/sw/gems/bundler/lib/bundler/rubygems_ext.rb:155:in `remove_method': method `hash' not defined in Gem::Platform (NameError)
from /Users/andre/sw/gems/bundler/lib/bundler.rb:11:in `require'
from /Users/andre/sw/gems/bundler/bin/bundle:4:in `require'
Hm, that's odd. If the call to method_defined? returns true, then remove_method shouldn't blow up.
What version of Ruby (patch level, if possible, please) and RubyGems are you running?
[andre ~/sw/gems/bundler](1-0-stable⚡)$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
[andre ~/sw/gems/bundler](1-0-stable⚡)$ gem -v
Fix "method redefined" warnings.
Fix "instance variable @installed not initialized" warning.
Alright, fixed the 1.8.7 case and caught one more warning. Specs run cleanly in 1.8 and 1.9.