Skip to content

Commit

Permalink
Support git ls-files ....split style for file list of gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 7, 2025
1 parent 2ed1962 commit e776efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/rbinstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,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
Expand Down

0 comments on commit e776efd

Please sign in to comment.