diff options
author | Andre Arko <website+github.com@arko.net> | 2011-06-10 13:31:04 -0700 |
---|---|---|
committer | Andre Arko <website+github.com@arko.net> | 2011-06-10 13:31:04 -0700 |
commit | 766102a2f926c34886ee624cc68640c4964852d4 (patch) | |
tree | c5489a4b7433514c97d31f1403632ab81080ea63 /lib | |
parent | 1c39e23277a8589e08d112d93f4e1935306fc7a2 (diff) | |
parent | 29248c6119e2e195ab0fae929569eb8a47f91138 (diff) | |
download | bundler-766102a2f926c34886ee624cc68640c4964852d4.tar.gz |
Merge pull request #1231 from smartinez87/1-0-stable
Get rid of warning in ruby 1.9.3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index f2d2f5e2..6460fab5 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -123,7 +123,7 @@ module Bundler if executables.include? File.basename(caller.first.split(':').first) return end - opts = reqs.last.is_a?(Hash) ? reqs.pop : {} + reqs.pop if reqs.last.is_a?(Hash) unless dep.respond_to?(:name) && dep.respond_to?(:requirement) dep = Gem::Dependency.new(dep, reqs) |