{"id":15612491,"url":"https://github.com/jpalumickas/csstats","last_synced_at":"2025-04-28T13:00:20.353Z","repository":{"id":8041231,"uuid":"9451474","full_name":"jpalumickas/csstats","owner":"jpalumickas","description":"Ruby gem which handle csstats.dat file generated by CSX module in AMX Mod X.","archived":false,"fork":false,"pushed_at":"2019-10-29T20:31:26.000Z","size":91,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T22:47:00.855Z","etag":null,"topics":["amxx","counter-strike","csstats","csx","ruby"],"latest_commit_sha":null,"homepage":"https://jpalumickas.com/csstats","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/jpalumickas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-15T15:12:17.000Z","updated_at":"2023-03-07T12:55:19.000Z","dependencies_parsed_at":"2022-08-18T05:15:12.998Z","dependency_job_id":null,"html_url":"https://github.com/jpalumickas/csstats","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fcsstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fcsstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fcsstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fcsstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpalumickas","download_url":"https://codeload.github.com/jpalumickas/csstats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319598,"owners_count":21570426,"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":["amxx","counter-strike","csstats","csx","ruby"],"created_at":"2024-10-03T06:43:13.351Z","updated_at":"2025-04-28T13:00:20.333Z","avatar_url":"https://github.com/jpalumickas.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSstats\n\nGem which handle `csstats.dat` file generated by CSX module\nin AMX Mod X ([https://www.amxmodx.org][amxx])\n\n[![Gem Version](https://img.shields.io/gem/v/csstats.svg?style=flat-square)][rubygems]\n[![Coverage Status](https://img.shields.io/codecov/c/github/jpalumickas/csstats?style=flat-square)][codecov]\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\n  gem 'csstats'\n```\n\n## Usage\n\n```ruby\nrequire 'csstats'\n\nstats = CSstats.new(path: 'csstats.dat')\nstats.players.find(2).nick\n```\n\nYou can set `max_players` option if you need to get specified number of players.\n\n```ruby\nstats = CSstats.new(path: 'csstats.dat', max_players: 15)\nstats.players.count\n # =\u003e 15\n```\n\nYou can get player information by specified name.\n\n```ruby\nstats = CSstats.new(path: 'csstats.dat')\nplayer_stats = stats.players.find_by(nick: 'my-super-nick')\n\nputs player_stats.kills\n  # =\u003e 3\n```\n\n## Supported Ruby Versions\n\nThis library aims to support and is [tested against][github_actions] the following Ruby\nimplementations:\n\n* Ruby 2.4.0\n* Ruby 2.5.0\n* Ruby 2.6.0\n\n## Copyright\nCopyright (c) 2013-2019 Justas Palumickas.\nSee [LICENSE][license] for details.\n\n[rubygems]: https://rubygems.org/gems/csstats\n[codecov]: https://codecov.io/gh/jpalumickas/csstats\n[github_actions]: https://github.com/jpalumickas/csstats/actions\n\n[amxx]: https://www.amxmodx.org\n[license]: https://raw.githubusercontent.com/jpalumickas/csstats/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpalumickas%2Fcsstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpalumickas%2Fcsstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpalumickas%2Fcsstats/lists"}