zedtux / brewformulas.org

A website to search and discover formulas from Homebrew for Mac
brewformulas.org
555 stars 16 forks source link

Version of IPFS formula is Unavailable #50

Closed boozook closed 7 years ago

boozook commented 8 years ago

brewformulas.org/ipfs screen shot 2016-04-12 at 20 21 34

But in the (formula) all is OK.

zedtux commented 8 years ago

Thank you @fzzr- for your issue.

The offending method is Homebrew::Tools.extract_attributes which expects to find a version element but it seems now it's an url element with arguments to parse.

A new scenario needs to added to the features/look_at_a_formula.feature file.

zedtux commented 7 years ago

Based on what I can see, the version is fetched from the formula URL, and the version method is used only when Homebrew fails at it.

I will then do the same and see.

zedtux commented 7 years ago

Here is regular expression to extract the version from the URL for the majority of the formulas: (\d[\d\.\_]+\w?)(?:\.|-src|rc\d+)[\w\.]+$.

I will also implement the case where the is a tag key given to url.