diff options
author | Samuel Giddins <[email protected]> | 2023-10-24 17:12:36 -0500 |
---|---|---|
committer | git <[email protected]> | 2023-10-25 17:24:06 +0000 |
commit | fa3cc4afcbdebfbf1485a7808189baba54e5eb79 (patch) | |
tree | 7a135304881b85437b9dac93c2da5a794e9f6488 /lib/bundler/endpoint_specification.rb | |
parent | 8197bbb0a9c6f774c6906036a25f748db2b1d3e1 (diff) |
[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
Diffstat (limited to 'lib/bundler/endpoint_specification.rb')
-rw-r--r-- | lib/bundler/endpoint_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |