Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove cask-source, bottle and versions APIs
These are no longer needed after Homebrew/brew#14439 and Homebrew/brew#14500 are merged and in a stable tag.
- Loading branch information
1 parent
6cd3554
commit b5704d4
Showing
12 changed files
with
10 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
#!/usr/bin/env brew ruby | ||
os = ARGV.first | ||
tap_name = ARGV.second | ||
tap_name = ARGV.first | ||
tap = Tap.fetch(tap_name) | ||
|
||
directories = ["_data/formula", "_data/bottle", "api/formula", "api/bottle", "formula"] | ||
directories = ["_data/formula", "api/formula", "formula"] | ||
FileUtils.rm_rf directories + ["_data/formula_canonical.json"] | ||
FileUtils.mkdir_p directories | ||
|
||
json_template = IO.read "_api_formula.json.in" | ||
bottle_template = IO.read "_api_bottle.json.in" | ||
html_template = IO.read "_formula.html.in" | ||
|
||
tap.formula_names.each do |n| | ||
f = Formulary.factory(n) | ||
IO.write("_data/formula/#{f.name.tr("+", "_")}.json", "#{JSON.pretty_generate(f.to_hash_with_variations)}\n") | ||
IO.write("_data/bottle/#{f.name.tr("+", "_")}.json", "#{JSON.pretty_generate(f.to_recursive_bottle_hash)}\n") | ||
IO.write("api/formula/#{f.name}.json", json_template) | ||
IO.write("api/bottle/#{f.name}.json", bottle_template) | ||
IO.write("formula/#{f.name}.html", html_template.gsub("title: $TITLE", "title: \"#{f.name}\"")) | ||
end | ||
IO.write("_data/formula_canonical.json", "#{JSON.pretty_generate(tap.formula_renames.merge(tap.alias_table))}\n") |