From fea24bbfdbe17da1038355fe7e0f7063f8c26c87 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Mon, 18 Nov 2019 23:41:26 +0900 Subject: [PATCH] Fix glob base in bundler.gemspec --- spec/bundler/support/path.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index e778809830..6f78490fe8 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -159,7 +159,8 @@ module Spec def with_root_gemspec if ruby_core? root_gemspec = root.join("bundler.gemspec") - spec = Gem::Specification.load(gemspec.to_s) + # Dir.chdir(root) for Dir.glob in gemspec + spec = Dir.chdir(root) { Gem::Specification.load(gemspec.to_s) } spec.bindir = "libexec" File.open(root_gemspec.to_s, "w") {|f| f.write spec.to_ruby } yield(root_gemspec)