diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-08-04 17:30:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-08-05 09:52:20 +0900 |
commit | 57911712011e285d76cf8132dd080b5727f43bf3 () | |
tree | 178a2a9a3e61945057ab5fc671a61e67c216463c /tool/lib/bundled_gem.rb | |
parent | 661536ab168ab99e1dae31d661ff4807e7734ae4 (diff) |
Load gemspec file at that directory
Gemspec files generated by old bundler run `git` without changing the working directory. Or some gemspec files expect an owned file at the top exists ath the current working directory.
Notes: Merged: https://.com/ruby/ruby/pull/6203
-rw-r--r-- | tool/lib/bundled_gem.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,8 +15,8 @@ module BundledGem end def copy(path, *rest) - spec = Gem::Specification.load(path) - path = File.dirname(path) prepare_test(spec, *rest) do |dir| FileUtils.rm_rf(dir) files = spec.files.reject {|f| f.start_with?(".git")} |