ruby-changes:58831
From: Kazuhiro <ko1@a...>
Date: Tue, 19 Nov 2019 00:39:42 +0900 (JST)
Subject: [ruby-changes:58831] fea24bbfdb (master): Fix glob base in bundler.gemspec
https://git.ruby-lang.org/ruby.git/commit/?id=fea24bbfdb From fea24bbfdbe17da1038355fe7e0f7063f8c26c87 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Mon, 18 Nov 2019 23:41:26 +0900 Subject: Fix glob base in bundler.gemspec diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index e778809..6f78490 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -159,7 +159,8 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/path.rb#L159 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/