We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aa7579 commit fea24bbCopy full SHA for fea24bb
spec/bundler/support/path.rb
@@ -159,7 +159,8 @@ def tmpdir(*args)
159
def with_root_gemspec
160
if ruby_core?
161
root_gemspec = root.join("bundler.gemspec")
162
- spec = Gem::Specification.load(gemspec.to_s)
+ # Dir.chdir(root) for Dir.glob in gemspec
163
+ spec = Dir.chdir(root) { Gem::Specification.load(gemspec.to_s) }
164
spec.bindir = "libexec"
165
File.open(root_gemspec.to_s, "w") {|f| f.write spec.to_ruby }
166
yield(root_gemspec)
0 commit comments