Skip to content

Commit

Permalink
Merge pull request rubygems#1231 from smartinez87/1-0-stable
Browse files Browse the repository at this point in the history
Get rid of warning in ruby 1.9.3
  • Loading branch information
Andre Arko committed Jun 10, 2011
2 parents 1c39e23 + 29248c6 commit 766102a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/rubygems_integration.rb
Expand Up @@ -123,7 +123,7 @@ def replace_gem(specs)
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)
Expand Down

0 comments on commit 766102a

Please sign in to comment.