{"id":24571015,"url":"https://github.com/nikukyugamer/prekin","last_synced_at":"2025-04-23T00:45:21.293Z","repository":{"id":38145859,"uuid":"172474654","full_name":"nikukyugamer/prekin","owner":"nikukyugamer","description":"Judge whether the target day of month is 'PREMIUM FRIDAY' or not.","archived":false,"fork":false,"pushed_at":"2025-04-15T04:35:16.000Z","size":161,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T16:55:59.939Z","etag":null,"topics":["date","date-format","date-format-validator","date-formatter","date-formatting","date-time","dates","datetime","premium-friday","rubygem","rubygems"],"latest_commit_sha":null,"homepage":"https://www.meti.go.jp/policy/mono_info_service/service/premium-friday/index.html","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/nikukyugamer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-25T09:25:47.000Z","updated_at":"2025-04-15T04:35:18.000Z","dependencies_parsed_at":"2024-07-10T02:46:11.323Z","dependency_job_id":"1fb9ab24-8ae8-4ff2-88dd-8ba41dd2e295","html_url":"https://github.com/nikukyugamer/prekin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikukyugamer%2Fprekin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikukyugamer%2Fprekin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikukyugamer%2Fprekin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikukyugamer%2Fprekin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikukyugamer","download_url":"https://codeload.github.com/nikukyugamer/prekin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250348875,"owners_count":21415907,"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":["date","date-format","date-format-validator","date-formatter","date-formatting","date-time","dates","datetime","premium-friday","rubygem","rubygems"],"created_at":"2025-01-23T17:58:58.297Z","updated_at":"2025-04-23T00:45:21.274Z","avatar_url":"https://github.com/nikukyugamer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Prekin](https://github.com/nikukyugamer/prekin/actions/workflows/config.yml/badge.svg?branch=main)](https://github.com/nikukyugamer/prekin/actions/workflows/config.yml)\n\n# Prekin\n\n## What is Prekin?\n\n### Naming\n\n- `Prekin` means `PREMIUM FRIDAY`\n  - `kin` means FRIDAY (`kin-yo-bi`) in Japanese\n  - So `PRE`mium `KIN`-yo-bi is `Prekin`\n\n### Webpage\n\n- A webpage by Ministry of Economy, Trade and Industry in Japan\n  - http://www.meti.go.jp/policy/mono_info_service/service/premium-friday/\n- A webpage by Premium Friday Committee\n  - https://premium-friday.com/\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'prekin'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install prekin\n\n## Usage\n\n### 1. require\n- `require 'prekin'`\n\n### 2. call\n\n#### 2-1. Time class\n- `Time.local(2020, 10, 30, 0, 0, 0).prekin? #=\u003e true`\n\n#### 2-2. Date class\n- `Date.new(2020, 10, 30).prekin? #=\u003e true`\n\n#### 2-3. DateTime class\n- `DateTime.new(2020, 10, 30, 0, 0, 0, '+09:00').prekin? #=\u003e true`\n\n#### 2-4. String class\n- `'2020/10/30 00:00:00 +09:00'.prekin? #=\u003e true`\n\n#### 2-5. Next Prekin\n- `Prekin.next #=\u003e \"2020-10-30\"`\n- `Prekin.next('2023-12-28') #=\u003e \"2023-12-29\"`\n- `Prekin.next('2023-12-29') #=\u003e \"2023-12-29\"`\n- `Prekin.next('2023-12-30') #=\u003e \"2024-01-26\"`\n\n## Note\n- This gem overwrites `Time`, `Date`, `DateTime` and `String` class.\n  - So if you use `Time`, `Date`, `DateTime` and `String` class in your code, you should be careful.\n\n## Development\n\n#### 1. bundle install\n- `bundle install`\n\n#### 2. irb\n- `bundle exec irb`\n\n#### 3. require\n- `require 'prekin'`\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikukyugamer%2Fprekin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikukyugamer%2Fprekin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikukyugamer%2Fprekin/lists"}