summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-10-24 17:12:36 -0500
committergit <svn-admin@ruby-lang.org>2023-10-25 17:24:06 +0000
commitfa3cc4afcbdebfbf1485a7808189baba54e5eb79 (patch)
tree7a135304881b85437b9dac93c2da5a794e9f6488
parent8197bbb0a9c6f774c6906036a25f748db2b1d3e1 (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
-rw-r--r--lib/bundler/endpoint_specification.rb2
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