Skip to content
Snippets Groups Projects
Unverified Commit a55454df authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #6992 from igas/url-in-json

Add stable url, tag and revision to json output
parents 63f73c09 5ef9b886
No related branches found
No related tags found
No related merge requests found
......@@ -1626,6 +1626,7 @@ class Formula
"head" => head&.version&.to_s,
"bottle" => !bottle_specification.checksums.empty?,
},
"urls" => {},
"revision" => revision,
"version_scheme" => version_scheme,
"bottle" => {},
......@@ -1677,6 +1678,11 @@ class Formula
}
end
hsh["bottle"][spec_sym] = bottle_info
hsh["urls"][spec_sym] = {
"url" => spec.url,
"tag" => spec.specs[:tag],
"revision" => spec.specs[:revision],
}
end
hsh["options"] = options.map do |opt|
......
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