[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
This commit is contained in:
Samuel Giddins 2023-10-24 17:12:36 -05:00 committed by git
parent 8197bbb0a9
commit fa3cc4afcb

View File

@ -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