{"id":18234125,"url":"https://github.com/bodrovis/rating-chgk-v2","last_synced_at":"2025-08-03T11:31:46.923Z","repository":{"id":43634905,"uuid":"447726619","full_name":"bodrovis/rating-chgk-v2","owner":"bodrovis","description":"Ruby client for the competitive What? Where? When? (CHGK) API ","archived":false,"fork":false,"pushed_at":"2024-11-01T13:55:32.000Z","size":160,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-03T19:51:26.890Z","etag":null,"topics":["api","api-client","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","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/bodrovis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2022-01-13T19:29:40.000Z","updated_at":"2024-11-01T13:55:33.000Z","dependencies_parsed_at":"2024-11-01T14:28:43.218Z","dependency_job_id":"b0fdc3e7-9ba0-459f-a71f-7e376e6a9f0c","html_url":"https://github.com/bodrovis/rating-chgk-v2","commit_stats":{"total_commits":41,"total_committers":5,"mean_commits":8.2,"dds":"0.14634146341463417","last_synced_commit":"71e6111d51b490d810905e829cd7ab08eb782c4f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodrovis%2Frating-chgk-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodrovis%2Frating-chgk-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodrovis%2Frating-chgk-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodrovis%2Frating-chgk-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodrovis","download_url":"https://codeload.github.com/bodrovis/rating-chgk-v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228540830,"owners_count":17934029,"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":["api","api-client","ruby","ruby-gem"],"created_at":"2024-11-04T17:03:47.369Z","updated_at":"2024-12-07T00:00:06.434Z","avatar_url":"https://github.com/bodrovis.png","language":"Ruby","funding_links":[],"categories":["Результаты и статистика"],"sub_categories":["Работа с турнирным сайтом"],"readme":"# RatingChgkV2\n\n![Gem](https://img.shields.io/gem/v/rating-chgk-v2)\n![CI](https://github.com/bodrovis/rating-chgk-v2/actions/workflows/ci.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/bodrovis/rating-chgk-v2/badge.svg?branch=master)](https://coveralls.io/github/bodrovis/rating-chgk-v2?branch=master)\n![Downloads total](https://img.shields.io/gem/dt/rating-chgk-v2)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7f66becb60a968a1ca9f/maintainability)](https://codeclimate.com/github/bodrovis/rating-chgk-v2/maintainability)\n\nRuby client for [competitive \"What? Where? When?\" (aka \"CHGK\") API](http://api.rating.chgk.net/). This gem is a replacement for [ChgkRating](https://github.com/bodrovis/ChgkRating) which worked only with the deprecated API version.\n\n## Installation and requirements\n\nThis gem requires Ruby 2.7+. Install it by running:\n\n```\n$ gem install rating-chgk-v2\n```\n\nInclude it in your script:\n\n```ruby\nrequire 'rating_chgk_v2'\n```\n\n## Client initialization\n\nInitialize an API client:\n\n```ruby\n@client = RatingChgkV2.client\n```\n\nOptionally, provide your JWT token and connection options (please note that JWT is not required to access most of the endpoints):\n\n```ruby\n@client = RatingChgkV2.client token: 'MY_JWT', params: {open_timeout: 100, timeout: 500}\n```\n\nNow use client to perform API requests:\n\n```ruby\nteams = @client.teams itemsPerPage: 2, name: 'Н', page: 3\n```\n\n## Usage\n\n**[Please find documentation at our Wiki](https://github.com/bodrovis/rating-chgk-v2/wiki)**.\n\n## Running tests\n\nTests are written in RSpec (all HTTP requests are stubbed):\n\n```\nrspec .\n```\n\nObserve test results and coverage.\n\n## Copyright and license\n\nLicensed under the [MIT license](./LICENSE.md).\n\nCopyright (c) 2023 [Ilya Bodrov-Krukowski](http://bodrovis.tech)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodrovis%2Frating-chgk-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodrovis%2Frating-chgk-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodrovis%2Frating-chgk-v2/lists"}