diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-02-07 11:02:42 +0900 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-02-13 17:42:41 -0800 |
| commit | 787436cd1ae00616b88bc494baaaee7c361f31b9 (patch) | |
| tree | d37ba059dd51721d528042005544a81f404da1f6 | |
| parent | 555373aec859413efd3237cf717931f4b7ac1cb1 (diff) | |
Support `git ls-files ...`.split style for file list of gemspec
| -rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index ebd76dc2c9..b194f2c9c2 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -772,7 +772,7 @@ def load_gemspec(file, base = nil) next if File.directory?(File.join(base, n)) files << n.dump end if base - code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do + code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split(\([^\)]*\))?/m) do "[" + files.join(", ") + "]" end code.gsub!(/IO\.popen\(.*git.*?\)/) do |
