{"id":18103949,"url":"https://github.com/svoop/airac","last_synced_at":"2025-09-25T07:31:18.890Z","repository":{"id":62553087,"uuid":"450806870","full_name":"svoop/airac","owner":"svoop","description":"AIRAC cycle calculations","archived":false,"fork":false,"pushed_at":"2025-07-21T01:04:42.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-02T19:43:53.648Z","etag":null,"topics":["aviation","gem","openflightmaps","ruby"],"latest_commit_sha":null,"homepage":"https://bitcetera.com","language":"Ruby","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/svoop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"svoop","custom":"https://donorbox.org/bitcetera"}},"created_at":"2022-01-22T12:09:56.000Z","updated_at":"2025-07-21T01:04:42.000Z","dependencies_parsed_at":"2023-12-29T01:26:00.754Z","dependency_job_id":"86af3c21-4f68-467e-97f2-3c111905b990","html_url":"https://github.com/svoop/airac","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.09999999999999998,"last_synced_commit":"e2727c714e8fb7ebaaf5fb0bd9af964c67ceef18"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/svoop/airac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fairac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fairac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fairac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fairac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svoop","download_url":"https://codeload.github.com/svoop/airac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fairac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276881827,"owners_count":25721413,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aviation","gem","openflightmaps","ruby"],"created_at":"2024-10-31T22:13:35.958Z","updated_at":"2025-09-25T07:31:18.869Z","avatar_url":"https://github.com/svoop.png","language":"Ruby","funding_links":["https://github.com/sponsors/svoop","https://donorbox.org/bitcetera"],"categories":[],"sub_categories":[],"readme":"[![Version](https://img.shields.io/gem/v/airac.svg?style=flat)](https://rubygems.org/gems/airac)\n[![Tests](https://img.shields.io/github/actions/workflow/status/svoop/airac/test.yml?style=flat\u0026label=tests)](https://github.com/svoop/airac/actions?workflow=Test)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/svoop/airac.svg?style=flat)](https://codeclimate.com/github/svoop/airac/)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/svoop.svg)](https://github.com/sponsors/svoop)\n\n# AIRAC\n\n[AIRAC (Aeronautical Information Regulation And Control)](https://en.wikipedia.org/wiki/Aeronautical_Information_Publication) cycle calculations for Ruby.\n\n* [Homepage](https://github.com/svoop/airac)\n* [API](https://www.rubydoc.info/gems/airac)\n* Author: [Sven Schwyn - Bitcetera](https://bitcetera.com)\n\nThank you for supporting free and open-source software by sponsoring on [GitHub](https://github.com/sponsors/svoop) or on [Donorbox](https://donorbox.com/bitcetera). Any gesture is appreciated, from a single Euro for a ☕️ cup of coffee to 🍹 early retirement.\n\n## Install\n\nAdd the following to the \u003ctt\u003eGemfile\u003c/tt\u003e or \u003ctt\u003egems.rb\u003c/tt\u003e of your [Bundler](https://bundler.io) powered Ruby project:\n\n```ruby\ngem 'airac'\n```\n\nAnd then install the bundle:\n\n```\nbundle install\n```\n\n## Usage\n\nYou can use this gem in your Ruby project:\n\n```ruby\ncycle = AIRAC::Cycle.new('2018-01-01')\ncycle.date         # =\u003e #\u003cDate: 2017-12-07\u003e\ncycle.effective    # =\u003e 2017-12-07 00:00:00 UTC..2018-01-03 23:59:59 UTC\ncycle.id           # =\u003e 1713\n(cycle + 5).id     # =\u003e 1804\n(cycle - 5).id     # =\u003e 1708\n```\n\nThe cycle can be formatted similar to `Date#strftime`, however, the placeholder `%i` represents the AIRAC cycle ID:\n\n```ruby\ncycle = AIRAC::Cycle.new('2018-01-01')\ncycle.to_s                            # \"1713 2017-12-07\"\ncycle.to_s(\"@%i as per %b %-d, %Y\")   # =\u003e \"@1713 as per Dec 7, 2017\"\n```\n\nThe current AIRAC cycle scheme started on 2015-06-25, therefore any calculation which leads to dates prior to inception will cause an error:\n\n```ruby\n(cycle - 100).id   # =\u003e ArgumentError\n```\n\nThe `AIRAC::Cycle` class implements `Comparable` and its instances can safely be used s `Hash` keys.\n\nIf you prefer to do the math on the shell, the `airac` executable is your friend:\n\n```shell\nairac --help\n```\n\n## Development\n\nTo install the development dependencies and then run the test suite:\n\n```\nbundle install\nbundle exec rake    # run tests once\nbundle exec guard   # run tests whenever files are modified\n```\n\nYou're welcome to [submit issues](https://github.com/svoop/airac/issues) and contribute code by [forking the project and submitting pull requests](https://docs.github.com/en/get-started/quickstart/fork-a-repo).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvoop%2Fairac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvoop%2Fairac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvoop%2Fairac/lists"}