aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-06-08 23:34:15 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-06-08 23:34:15 -0300
commit29248c6119e2e195ab0fae929569eb8a47f91138 (patch)
tree16da6093166b7d026c8b2c2ce761e4ed8439e7e8 /lib
parent47943277ed39156053ecfb7b2a59aa31cc2f6ea9 (diff)
downloadbundler-29248c6119e2e195ab0fae929569eb8a47f91138.tar.gz
Get rid of warning in ruby 1.9.3
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/rubygems_integration.rb2
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)