diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-02-07 11:02:42 +0900 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-02-10 08:29:08 -0800 |
| commit | 5b226fdb8df4a954476d8ee1b855539adaf82091 (patch) | |
| tree | ad7b25b94bbb531182425422f2d3d3d661c1b0bb | |
| parent | 84b60a03cd908c1b2efdfee65d71ffc03418ea21 (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 bb2e6a293c..029f358066 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -980,7 +980,7 @@ end def load_gemspec(file, base = nil) file = File.realpath(file) code = File.read(file, encoding: "utf-8:-") - code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do + code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split(\([^\)]*\))?/m) do files = [] if base Dir.glob("**/*", File::FNM_DOTMATCH, base: base) do |n| |
