Merge pull request #8697 from MikeMcQuaid/formula-json-license-string

formula: use pretty license output in JSON.
This commit is contained in:
Mike McQuaid 2020-09-11 16:23:57 +01:00 committed by GitHub
commit 6d0fb50cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,