From fa3cc4afcbdebfbf1485a7808189baba54e5eb79 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Tue, 24 Oct 2023 17:12:36 -0500 Subject: [rubygems/rubygems] Set file path when eval-ing local specification in EndpointSpecification Not strictly necessary, but there is no reason not to be helpful and set the path https://github.com/rubygems/rubygems/commit/894c0303dd --- lib/bundler/endpoint_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bundler/endpoint_specification.rb b/lib/bundler/endpoint_specification.rb index 0bb0e9c7fa..b639918f70 100644 --- a/lib/bundler/endpoint_specification.rb +++ b/lib/bundler/endpoint_specification.rb @@ -94,7 +94,7 @@ module Bundler def _local_specification return unless @loaded_from && File.exist?(local_specification_path) - eval(File.read(local_specification_path)).tap do |spec| + eval(File.read(local_specification_path), nil, local_specification_path).tap do |spec| spec.loaded_from = @loaded_from end end -- cgit v1.2.3