{"id":22423420,"url":"https://github.com/prantlf/update-formula","last_synced_at":"2025-09-12T00:37:09.828Z","repository":{"id":212730657,"uuid":"732177138","full_name":"prantlf/update-formula","owner":"prantlf","description":"Updates version numbers and SHA-256 hashes in Homebrew formula files for GitHub releases.","archived":false,"fork":false,"pushed_at":"2024-04-28T11:29:37.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T10:43:04.021Z","etag":null,"topics":["formula","github-release","homebrew","update"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-15T20:59:21.000Z","updated_at":"2024-04-28T11:29:41.000Z","dependencies_parsed_at":"2024-04-28T12:29:17.840Z","dependency_job_id":null,"html_url":"https://github.com/prantlf/update-formula","commit_stats":null,"previous_names":["prantlf/update-formula"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fupdate-formula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fupdate-formula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fupdate-formula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fupdate-formula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/update-formula/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791899,"owners_count":20672668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formula","github-release","homebrew","update"],"created_at":"2024-12-05T18:11:17.832Z","updated_at":"2025-09-12T00:37:09.813Z","avatar_url":"https://github.com/prantlf.png","language":"V","readme":"# update-formula\n\nUpdates version numbers and SHA-256 hashes in [Homebrew formula files] for GitHub releases. Helps updating a tap after publishing a new release on GitHub with new binary assets to install using Homebrew.\n\n## Synopsis\n\nAn example of a formula:\n\n```rb\nclass Yaml2json \u003c Formula\n  desc \"Converts YAML input to JSON/JSON5 output.\"\n  homepage \"https://github.com/prantlf/v-yaml2json\"\n  version \"0.2.0\"\n\n  on_macos do\n    if Hardware::CPU.intel?\n      url \"https://github.com/prantlf/yaml2json/releases/download/v0.2.0/yaml2json-macos-x64.zip\"\n      sha256 \"4bfd850ae85fdf539cfe2e30babbbe427896280ea7302191458d47489f646e3f\"\n    elsif Hardware::CPU.arm? \u0026\u0026 Hardware::CPU.is_64_bit?\n      url \"https://github.com/prantlf/yaml2json/releases/download/v0.2.0/yaml2json-macos-arm64.zip\"\n      sha256 \"c124a4d8506c8a1cb79156f722bcb8ddbf62c9d53e89d0a15a0c7198d99f89e0\"\n    end\n  end\n\n ...\n```\n\nUpdate version numbers and SHA-256 hashes to the latest available version:\n\n    update-formula yaml2json.rb\n\n## Usage\n\n    update-formula [options] [\u003cfile\u003e ...]\n\n      \u003cfile\u003e        formula file to update\n\n    Options:\n      -d|--dry-run  only print what would be done without doing it\n      -V|--version  print the version of the executable and exit\n      -h|--help     print the usage information and exit\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.\n\n## License\n\nCopyright (c) 2023-2025 Ferdinand Prantl\n\nLicensed under the MIT license.\n\n[Homebrew formula files]: https://docs.brew.sh/Formula-Cookbook\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fupdate-formula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fupdate-formula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fupdate-formula/lists"}