Merge pull request #14030 from Rylan12/checksum-json-api
Add stable checksum to the JSON API
This commit is contained in:
commit
faa995022d
@ -2107,6 +2107,7 @@ class Formula
|
|||||||
"url" => stable.url,
|
"url" => stable.url,
|
||||||
"tag" => stable.specs[:tag],
|
"tag" => stable.specs[:tag],
|
||||||
"revision" => stable.specs[:revision],
|
"revision" => stable.specs[:revision],
|
||||||
|
"checksum" => stable.checksum&.to_s,
|
||||||
}
|
}
|
||||||
|
|
||||||
hsh["bottle"]["stable"] = bottle_hash if bottle_defined?
|
hsh["bottle"]["stable"] = bottle_hash if bottle_defined?
|
||||||
|
|||||||
@ -159,6 +159,7 @@ module Formulary
|
|||||||
stable do
|
stable do
|
||||||
url urls_stable["url"]
|
url urls_stable["url"]
|
||||||
version json_formula["versions"]["stable"]
|
version json_formula["versions"]["stable"]
|
||||||
|
sha256 urls_stable["checksum"] if urls_stable["checksum"].present?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user