formula: use pretty license output in JSON.

This will improve things for formulae.brew.sh.
This commit is contained in:
Mike McQuaid 2020-09-11 13:10:42 +01:00
parent 16ee849c43
commit 5d82f67427

View File

@ -1697,7 +1697,7 @@ class Formula
"aliases" => aliases.sort,
"versioned_formulae" => versioned_formulae.map(&:name),
"desc" => desc,
"license" => license,
"license" => SPDX.license_expression_to_string(license),
"homepage" => homepage,
"versions" => {
"stable" => stable&.version&.to_s,