From ca1d05cedefa9fd36df78e55c3a7b1a8bcc13697 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Mon, 12 Feb 2024 14:47:40 -0700 Subject: [PATCH] use full path for `instance_eval` in `eval_gemfile` (#25) see https://github.com/rubygems/rubygems/pull/7471 --- lib/bundler/multilock/ext/dsl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/multilock/ext/dsl.rb b/lib/bundler/multilock/ext/dsl.rb index aea4bb1..0235cf2 100644 --- a/lib/bundler/multilock/ext/dsl.rb +++ b/lib/bundler/multilock/ext/dsl.rb @@ -41,7 +41,7 @@ def eval_gemfile(gemfile, contents = nil, &block) if block instance_eval(&block) else - instance_eval(contents.dup.tap { |x| x.untaint if RUBY_VERSION < "2.7" }, gemfile.to_s, 1) + instance_eval(contents.dup.tap { |x| x.untaint if RUBY_VERSION < "2.7" }, @gemfile.to_s, 1) end rescue Exception => e # rubocop:disable Lint/RescueException message = "There was an error " \