mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Support git ls-files ...
.split style for file list of gemspec
This commit is contained in:
parent
84b60a03cd
commit
5b226fdb8d
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue