diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-06-08 23:34:15 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-06-08 23:34:15 -0300 |
commit | 29248c6119e2e195ab0fae929569eb8a47f91138 (patch) | |
tree | 16da6093166b7d026c8b2c2ce761e4ed8439e7e8 | |
parent | 47943277ed39156053ecfb7b2a59aa31cc2f6ea9 (diff) | |
download | bundler-29248c6119e2e195ab0fae929569eb8a47f91138.tar.gz |
Get rid of warning in ruby 1.9.3
-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) |