Move urls code and add devel urls

This commit is contained in:
Igor Kapkov 2020-02-02 17:11:29 +01:00
parent 82fde4e1e5
commit 5ef9b8863a

View File

@ -1626,13 +1626,7 @@ class Formula
"head" => head&.version&.to_s, "head" => head&.version&.to_s,
"bottle" => !bottle_specification.checksums.empty?, "bottle" => !bottle_specification.checksums.empty?,
}, },
"urls" => { "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" => {},
@ -1684,6 +1678,11 @@ class Formula
} }
end end
hsh["bottle"][spec_sym] = bottle_info hsh["bottle"][spec_sym] = bottle_info
hsh["urls"][spec_sym] = {
"url" => spec.url,
"tag" => spec.specs[:tag],
"revision" => spec.specs[:revision],
}
end end
hsh["options"] = options.map do |opt| hsh["options"] = options.map do |opt|