Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #6323 - MSP-Greg:fix_fbb1ff7_pr6237, r=hsbt
Browse files Browse the repository at this point in the history
Fix source_location call in PR 6237 and commit fbb1ff7

Thanks to @nobu for pointing out the error (which was mine).  `source_location` returns an array, not a string.
  • Loading branch information
bundlerbot committed Mar 5, 2018
2 parents 56a49bb + f9f61d6 commit ffe58a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/rubygems_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def undo_replacements
redefine_method(klass, sym, method)
end
if Binding.public_method_defined?(:source_location)
post_reset_hooks.reject! {|proc| proc.binding.source_location == __FILE__ }
post_reset_hooks.reject! {|proc| proc.binding.source_location[0] == __FILE__ }
else
post_reset_hooks.reject! {|proc| proc.binding.eval("__FILE__") == __FILE__ }
end
Expand Down

0 comments on commit ffe58a3

Please sign in to comment.