diff options
author | MSP-Greg <MSP-Greg@users.noreply.github.com> | 2018-03-04 08:29:46 -0600 |
---|---|---|
committer | MSP-Greg <MSP-Greg@users.noreply.github.com> | 2018-03-04 08:29:46 -0600 |
commit | f9f61d6302b8ebe657092c09c587731a64b7fa50 (patch) | |
tree | f1a54fdf2012f4b537ad3e2adfa2d1b01549e618 | |
parent | d1ae89eda805606f7181984338da0879db6580ba (diff) | |
download | bundler-f9f61d6302b8ebe657092c09c587731a64b7fa50.tar.gz |
Fix error in PR 6237 and commit fbb1ff7
Thanks to @nobu for pointing out the error.
-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 231b085f05..57abeda088 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -571,7 +571,7 @@ module Bundler 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 |