rbinstall.rb: relaxed split argument
did_you_mean splits the output by `$/`.
This commit is contained in:
parent
5894ea5954
commit
e025113d71
@ -874,7 +874,7 @@ end
|
|||||||
def load_gemspec(file, expanded = false)
|
def load_gemspec(file, expanded = false)
|
||||||
file = File.realpath(file)
|
file = File.realpath(file)
|
||||||
code = File.read(file, encoding: "utf-8:-")
|
code = File.read(file, encoding: "utf-8:-")
|
||||||
code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\(\"(?:\\.|[^\"])*\"\)/m) do
|
code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do
|
||||||
files = []
|
files = []
|
||||||
if expanded
|
if expanded
|
||||||
base = File.dirname(file)
|
base = File.dirname(file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user