Add stable url, tag and revision to json output

This commit is contained in:
Igor Kapkov 2020-02-02 16:38:50 +01:00
parent 040e291188
commit 82fde4e1e5

View File

@ -1626,6 +1626,13 @@ class Formula
"head" => head&.version&.to_s, "head" => head&.version&.to_s,
"bottle" => !bottle_specification.checksums.empty?, "bottle" => !bottle_specification.checksums.empty?,
}, },
"urls" => {
"stable" => {
"url" => stable.url,
"tag" => stable.specs&.dig(:tag),
"revision" => stable.specs&.dig(:revision),
},
},
"revision" => revision, "revision" => revision,
"version_scheme" => version_scheme, "version_scheme" => version_scheme,
"bottle" => {}, "bottle" => {},