Skip to content

Commit fea24bb

Browse files
committed
Fix glob base in bundler.gemspec
1 parent 9aa7579 commit fea24bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/bundler/support/path.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ def tmpdir(*args)
159159
def with_root_gemspec
160160
if ruby_core?
161161
root_gemspec = root.join("bundler.gemspec")
162-
spec = Gem::Specification.load(gemspec.to_s)
162+
# Dir.chdir(root) for Dir.glob in gemspec
163+
spec = Dir.chdir(root) { Gem::Specification.load(gemspec.to_s) }
163164
spec.bindir = "libexec"
164165
File.open(root_gemspec.to_s, "w") {|f| f.write spec.to_ruby }
165166
yield(root_gemspec)

0 commit comments

Comments
 (0)