{"id":24160551,"url":"https://github.com/simpleweb/public_holidays","last_synced_at":"2025-10-11T21:13:14.179Z","repository":{"id":137435346,"uuid":"139147678","full_name":"simpleweb/public_holidays","owner":"simpleweb","description":"A ruby gem used by Tutorhub that provides helper functionality for working with dates in which public holidays are a concern","archived":false,"fork":false,"pushed_at":"2018-06-29T12:39:00.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T03:41:38.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/simpleweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-06-29T12:37:46.000Z","updated_at":"2018-08-20T10:46:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0e04373-069a-4622-a434-eaa73f02bf63","html_url":"https://github.com/simpleweb/public_holidays","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simpleweb/public_holidays","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fpublic_holidays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fpublic_holidays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fpublic_holidays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fpublic_holidays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleweb","download_url":"https://codeload.github.com/simpleweb/public_holidays/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fpublic_holidays/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008736,"owners_count":26084494,"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-10-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2025-01-12T16:14:30.532Z","updated_at":"2025-10-11T21:13:14.173Z","avatar_url":"https://github.com/simpleweb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Public Holidays\n\n\u003e Note: Project is in early development and the API is likely to change.\n\nA gem that provides helper functionality for working with dates in which public holidays are a concern.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'public_holidays', :git =\u003e \"git://github.com/adambutler/public_holidays.git\", :branch =\u003e \"master\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install public_holidays\n\n## Usage\n\nConfigure -\n\n```ruby\nPublicHolidays.configure do |config|\n  config.iso_3166_1 = \"gb\"\nend\n```\n\nGet the next holiday from today -\n\n```ruby\nPublicHolidays.next\n# =\u003e #\u003cDate: 2016-01-01 ...\u003e\n```\n\nGet the next working day from today -\n\n```ruby\nPublicHolidays.next_working_day\n# =\u003e #\u003cDate: 2016-01-01 ...\u003e\n```\n\nGet the next working day from a specific date -\n\n```ruby\nfrom_date = Date.parse(\"2016/12/26\")\nPublicHolidays.next_working_day(from_date)\n# =\u003e #\u003cDate: 2016-01-28 ...\u003e\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/adambutler/public_holidays/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fpublic_holidays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleweb%2Fpublic_holidays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fpublic_holidays/lists"}