Skip to content

Commit e776efd

Browse files
committed
Support git ls-files ....split style for file list of gemspec
1 parent 2ed1962 commit e776efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/rbinstall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def load_gemspec(file, base = nil)
783783
next if File.directory?(File.join(base, n))
784784
files << n.dump
785785
end if base
786-
code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do
786+
code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split(\([^\)]*\))?/m) do
787787
"[" + files.join(", ") + "]"
788788
end
789789
code.gsub!(/IO\.popen\(.*git.*?\)/) do

0 commit comments

Comments
 (0)