Skip to content
Snippets Groups Projects
Unverified Commit b6772c1f authored by Xu Cheng's avatar Xu Cheng
Browse files

create: path.version may be nil

parent 092d4712
No related branches found
No related tags found
No related merge requests found
...@@ -110,8 +110,7 @@ class FormulaCreator ...@@ -110,8 +110,7 @@ class FormulaCreator
when %r{github\.com/\S+/(\S+)/archive/} when %r{github\.com/\S+/(\S+)/archive/}
@name = $1 @name = $1
else else
/(.*?)[-_.]?#{Regexp.escape(path.version)}/.match path.basename @name = path.basename.to_s[/(.*?)[-_.]?#{Regexp.escape(path.version.to_s)}/, 1]
@name = $1
end end
end end
update_path update_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment