sports_api 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +39 -0
  3. data/CHANGELOG.md +5 -0
  4. data/CODE_OF_CONDUCT.md +84 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +310 -0
  7. data/Rakefile +12 -0
  8. data/docs/.nojekyll +0 -0
  9. data/docs/README.md +12 -0
  10. data/docs/_media/favicon.ico +0 -0
  11. data/docs/_media/home-logo.svg +57 -0
  12. data/docs/_media/readme-logo.png +0 -0
  13. data/docs/_sidebar.md +42 -0
  14. data/docs/cover.md +2 -0
  15. data/docs/index.html +44 -0
  16. data/docs/installation.md +17 -0
  17. data/docs/resources.md +932 -0
  18. data/docs/usage.md +13 -0
  19. data/lib/sports_api/collection.rb +30 -0
  20. data/lib/sports_api/error.rb +5 -0
  21. data/lib/sports_api/football/client.rb +180 -0
  22. data/lib/sports_api/football/objects/coach.rb +8 -0
  23. data/lib/sports_api/football/objects/country.rb +8 -0
  24. data/lib/sports_api/football/objects/fixtures/fixture.rb +8 -0
  25. data/lib/sports_api/football/objects/fixtures/fixture_event.rb +8 -0
  26. data/lib/sports_api/football/objects/fixtures/fixture_head_to_head.rb +8 -0
  27. data/lib/sports_api/football/objects/fixtures/fixture_lineup.rb +8 -0
  28. data/lib/sports_api/football/objects/fixtures/fixture_player_statistic.rb +8 -0
  29. data/lib/sports_api/football/objects/fixtures/fixture_round.rb +8 -0
  30. data/lib/sports_api/football/objects/fixtures/fixture_statistic.rb +8 -0
  31. data/lib/sports_api/football/objects/injury.rb +8 -0
  32. data/lib/sports_api/football/objects/leagues/league.rb +8 -0
  33. data/lib/sports_api/football/objects/leagues/league_season.rb +8 -0
  34. data/lib/sports_api/football/objects/odds_in_play/odds_live.rb +8 -0
  35. data/lib/sports_api/football/objects/odds_in_play/odds_live_bet.rb +8 -0
  36. data/lib/sports_api/football/objects/odds_pre_match/odds.rb +8 -0
  37. data/lib/sports_api/football/objects/odds_pre_match/odds_bet.rb +8 -0
  38. data/lib/sports_api/football/objects/odds_pre_match/odds_bookmaker.rb +8 -0
  39. data/lib/sports_api/football/objects/odds_pre_match/odds_mapping.rb +8 -0
  40. data/lib/sports_api/football/objects/players/player.rb +8 -0
  41. data/lib/sports_api/football/objects/players/player_season.rb +8 -0
  42. data/lib/sports_api/football/objects/players/player_squad.rb +8 -0
  43. data/lib/sports_api/football/objects/players/player_top_assist.rb +8 -0
  44. data/lib/sports_api/football/objects/players/player_top_red_card.rb +8 -0
  45. data/lib/sports_api/football/objects/players/player_top_scorer.rb +8 -0
  46. data/lib/sports_api/football/objects/players/player_top_yellow_card.rb +8 -0
  47. data/lib/sports_api/football/objects/prediction.rb +8 -0
  48. data/lib/sports_api/football/objects/sidelined.rb +8 -0
  49. data/lib/sports_api/football/objects/standing.rb +8 -0
  50. data/lib/sports_api/football/objects/teams/team.rb +8 -0
  51. data/lib/sports_api/football/objects/teams/team_country.rb +8 -0
  52. data/lib/sports_api/football/objects/teams/team_season.rb +8 -0
  53. data/lib/sports_api/football/objects/teams/team_statistic.rb +8 -0
  54. data/lib/sports_api/football/objects/timezone.rb +8 -0
  55. data/lib/sports_api/football/objects/transfer.rb +8 -0
  56. data/lib/sports_api/football/objects/trophy.rb +8 -0
  57. data/lib/sports_api/football/objects/venue.rb +8 -0
  58. data/lib/sports_api/football/resources/coach.rb +21 -0
  59. data/lib/sports_api/football/resources/country.rb +26 -0
  60. data/lib/sports_api/football/resources/fixtures/fixture.rb +32 -0
  61. data/lib/sports_api/football/resources/fixtures/fixture_event.rb +17 -0
  62. data/lib/sports_api/football/resources/fixtures/fixture_head_to_head.rb +24 -0
  63. data/lib/sports_api/football/resources/fixtures/fixture_lineup.rb +17 -0
  64. data/lib/sports_api/football/resources/fixtures/fixture_player_statistic.rb +15 -0
  65. data/lib/sports_api/football/resources/fixtures/fixture_round.rb +16 -0
  66. data/lib/sports_api/football/resources/fixtures/fixture_statistic.rb +16 -0
  67. data/lib/sports_api/football/resources/injury.rb +21 -0
  68. data/lib/sports_api/football/resources/leagues/league.rb +27 -0
  69. data/lib/sports_api/football/resources/leagues/league_season.rb +12 -0
  70. data/lib/sports_api/football/resources/odds_in_play/odds_live.rb +16 -0
  71. data/lib/sports_api/football/resources/odds_in_play/odds_live_bet.rb +20 -0
  72. data/lib/sports_api/football/resources/odds_pre_match/odds.rb +21 -0
  73. data/lib/sports_api/football/resources/odds_pre_match/odds_bet.rb +20 -0
  74. data/lib/sports_api/football/resources/odds_pre_match/odds_bookmaker.rb +20 -0
  75. data/lib/sports_api/football/resources/odds_pre_match/odds_mapping.rb +14 -0
  76. data/lib/sports_api/football/resources/players/player.rb +20 -0
  77. data/lib/sports_api/football/resources/players/player_season.rb +14 -0
  78. data/lib/sports_api/football/resources/players/player_squad.rb +15 -0
  79. data/lib/sports_api/football/resources/players/player_top_assist.rb +21 -0
  80. data/lib/sports_api/football/resources/players/player_top_red_card.rb +21 -0
  81. data/lib/sports_api/football/resources/players/player_top_scorer.rb +21 -0
  82. data/lib/sports_api/football/resources/players/player_top_yellow_card.rb +21 -0
  83. data/lib/sports_api/football/resources/prediction.rb +14 -0
  84. data/lib/sports_api/football/resources/sidelined.rb +15 -0
  85. data/lib/sports_api/football/resources/standing.rb +16 -0
  86. data/lib/sports_api/football/resources/teams/team.rb +26 -0
  87. data/lib/sports_api/football/resources/teams/team_country.rb +12 -0
  88. data/lib/sports_api/football/resources/teams/team_season.rb +14 -0
  89. data/lib/sports_api/football/resources/teams/team_statistic.rb +24 -0
  90. data/lib/sports_api/football/resources/timezone.rb +12 -0
  91. data/lib/sports_api/football/resources/transfer.rb +15 -0
  92. data/lib/sports_api/football/resources/trophy.rb +15 -0
  93. data/lib/sports_api/football/resources/venue.rb +23 -0
  94. data/lib/sports_api/football.rb +84 -0
  95. data/lib/sports_api/object.rb +35 -0
  96. data/lib/sports_api/resource.rb +32 -0
  97. data/lib/sports_api/version.rb +5 -0
  98. data/lib/sports_api.rb +8 -0
  99. data/sig/sports_api.rbs +4 -0
  100. data/sports_api.gemspec +40 -0
  101. metadata +175 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cbaf5d195c814f5dc0727d743b4e460bd69b42b8edbf814d202ffd3eaf48754c
4
+ data.tar.gz: 32187e31ca795a35d24eb87f0d3b4858848f488c704cb2ae5a2ffc40714e3b84
5
+ SHA512:
6
+ metadata.gz: 364751ef0ded90636db0290f7dcadcddee8040f982a32218ebc0581f343e881f115cad02c80a5a38bc7dd9d0cbebc5949287a74b090fbf69c95a8baadf5befe8
7
+ data.tar.gz: 4bbf8c4104929c57b451214a0281b22b7dae8a73c85506e898b4f2a0a87941e7985a863b81d072d0d2868ad86280d5d605770fc9b9d76af9400942010e05fa3e
data/.rubocop.yml ADDED
@@ -0,0 +1,39 @@
1
+ require:
2
+ - rubocop-minitest
3
+ - rubocop-rake
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 3.2.2
7
+ NewCops: enable
8
+
9
+ Gemspec/DevelopmentDependencies:
10
+ Enabled: false
11
+
12
+ Layout/LineLength:
13
+ Max: 120
14
+
15
+ Lint/UnusedMethodArgument:
16
+ Enabled: false
17
+
18
+ Metrics/MethodLength:
19
+ Enabled: false
20
+
21
+ Minitest/MultipleAssertions:
22
+ Enabled: false
23
+
24
+ Style/ArgumentsForwarding:
25
+ Enabled: false
26
+
27
+ Style/Documentation:
28
+ Enabled: false
29
+
30
+ Style/OpenStructUse:
31
+ Enabled: false
32
+
33
+ Style/StringLiterals:
34
+ Enabled: true
35
+ EnforcedStyle: single_quotes
36
+
37
+ Style/StringLiteralsInInterpolation:
38
+ Enabled: true
39
+ EnforcedStyle: double_quotes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-03-20
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at sanchez.dav90@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 David Sanchez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,310 @@
1
+ <a href="https://sanchezdav.github.io/sports_api/#/"><img src="./docs/_media/readme-logo.png" align="center" width="50%" height="50%"></a>
2
+
3
+ The `sports_api` gem provides a convenient Ruby interface to interact with the [api-sports.io](https://api-sports.io/) sports statistics, live scores, and predictions API. It allows developers to easily integrate sports data into their Ruby applications with minimal effort.
4
+
5
+ It currently supports the V3 of [api-sports.io](https://api-sports.io/).
6
+
7
+ ## Getting Started
8
+
9
+ The best starting point is the [Sports API Website](https://sanchezdav.github.io/sports_api/#/), with its introduction and explanation.
10
+
11
+ ## Features
12
+
13
+ - Access to a wide range of sports statistics, including live scores and predictions.
14
+ - Simple and intuitive API wrapper for seamless integration into Ruby projects.
15
+ - Supports various sports categories such as football, basketball, baseball, and more.
16
+ - Easy-to-use methods for fetching data.
17
+
18
+ ## Installation
19
+
20
+ Add this line to your application's Gemfile:
21
+
22
+ gem 'sports_api', github: "Sanchezdav/sports_api"
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install sports_api
31
+
32
+
33
+ ## Usage
34
+
35
+ To access the API, you'll need to create a client and pass in your API key. You can find your API key at [https://dashboard.api-football.com/profile](https://dashboard.api-football.com/profile?access), example:
36
+
37
+ ```ruby
38
+ client = SportsApi::Football::Client.new(api_key: ENV["SPORTS_API_KEY"])
39
+ ```
40
+
41
+ The client then gives you access to each of the resources.
42
+
43
+ ## Resources
44
+
45
+ The gem maps as closely as we can to the Sports API so you can easily convert API examples to gem code.
46
+
47
+ Responses are created as objects like `SportsApi::Football::League`. They're built using OpenStruct so you can easily access data in a Ruby-ish way.
48
+
49
+ ### Football
50
+
51
+ #### Coach
52
+
53
+ ```ruby
54
+ client.coaches.list(search: 'Tuchel')
55
+ client.coaches.find(id: 40)
56
+ ```
57
+
58
+ #### Country
59
+
60
+ ```ruby
61
+ client.countries.list
62
+ client.countries.list(search: "Mex")
63
+ client.countries.find_by_code(code: "MX")
64
+ client.countries.find_by_name(name: "Mexico")
65
+ ```
66
+
67
+ #### Fixture
68
+
69
+ ```ruby
70
+ client.fixtures.list(live: "all", league: 262)
71
+ client.fixtures.find(id: 1187546)
72
+ ```
73
+
74
+ #### Fixture Round
75
+
76
+ ```ruby
77
+ client.fixture_rounds.list(league: 262, season: 2023)
78
+ ```
79
+
80
+ #### Fixture Head to Head
81
+
82
+ ```ruby
83
+ client.fixture_head_to_head.list(h2h: "2287-2278")
84
+ ```
85
+
86
+ #### Fixture Statistic
87
+
88
+ ```ruby
89
+ client.fixture_statistics.list(fixture: '463')
90
+ ```
91
+
92
+ #### Fixture Event
93
+
94
+ ```ruby
95
+ client.fixture_events.list(fixture: '215662')
96
+ ```
97
+
98
+ #### Fixture Lineup
99
+
100
+ ```ruby
101
+ client.fixture_lineups.list(fixture: '592872')
102
+ ```
103
+
104
+ #### Fixture Player Statistic
105
+
106
+ ```ruby
107
+ client.fixture_player_statistics.list(fixture: '169080', team: 2284)
108
+ ```
109
+
110
+ #### Injury
111
+
112
+ ```ruby
113
+ client.injuries.list(fixture: '686314')
114
+ ```
115
+
116
+ #### League
117
+
118
+ ```ruby
119
+ client.leagues.list
120
+ client.leagues.list(code: "MX", season: 2023)
121
+ client.leagues.find(id: 262)
122
+ ```
123
+
124
+ #### League Season
125
+
126
+ ```ruby
127
+ client.league_seasons.list
128
+ ```
129
+
130
+ #### Odds
131
+
132
+ ```ruby
133
+ client.odds.list(fixture: '326090', bookmaker: 6)
134
+ ```
135
+
136
+ #### Odds Bet
137
+
138
+ ```ruby
139
+ client.odds_bets.list(search: 'under')
140
+ client.odds_bets.find(id: 1)
141
+ ```
142
+
143
+ #### Odds Bookmaker
144
+
145
+ ```ruby
146
+ client.odds_bookmakers.list
147
+ client.odds_bookmakers.find(id: 8)
148
+ ```
149
+
150
+ #### Odds Live
151
+
152
+ ```ruby
153
+ client.odds_lives.list(fixture: '721238')
154
+ ```
155
+
156
+ #### Odds Live Bet
157
+
158
+ ```ruby
159
+ client.odds_live_bets.list
160
+ client.odds_live_bets.find(id: 1)
161
+ ```
162
+
163
+ #### Odds Mapping
164
+
165
+ ```ruby
166
+ client.odds_mappings.list
167
+ ```
168
+
169
+ #### Player
170
+
171
+ ```ruby
172
+ client.players.list(team: 2287, season: 2023)
173
+ client.players.list(id: 35603, season: 2023)
174
+ ```
175
+
176
+ #### Player Season
177
+
178
+ ```ruby
179
+ client.player_seasons.list
180
+ client.player_seasons.list(player: 276)
181
+ ```
182
+
183
+ #### Player Squad
184
+
185
+ ```ruby
186
+ client.player_squads.list(team: 33)
187
+ ```
188
+
189
+ #### Player Top Assist
190
+
191
+ ```ruby
192
+ client.player_top_assists.list(league: 262, season: 2023)
193
+ ```
194
+
195
+ #### Player Top Scorer
196
+
197
+ ```ruby
198
+ client.player_top_scorers.list(league: 262, season: 2023)
199
+ ```
200
+
201
+ #### Player Top Red Card
202
+
203
+ ```ruby
204
+ client.player_top_red_cards.list(league: 262, season: 2023)
205
+ ```
206
+
207
+ #### Player Top Yellow Card
208
+
209
+ ```ruby
210
+ client.player_top_yellow_cards.list(league: 262, season: 2023)
211
+ ```
212
+
213
+ #### Prediction
214
+
215
+ ```ruby
216
+ client.predictions.list(fixture: '198772')
217
+ ```
218
+
219
+ #### Sidelined
220
+
221
+ ```ruby
222
+ client.sidelined.list(player: 35603)
223
+ ```
224
+
225
+ #### Standing
226
+
227
+ ```ruby
228
+ client.standings.list(season: 2023, team: 2287)
229
+ ```
230
+
231
+ #### Team
232
+
233
+ ```ruby
234
+ client.teams.list
235
+ client.teams.list(country: "Mexico")
236
+ client.teams.find(id: 2287)
237
+ ```
238
+
239
+ #### Team Country
240
+
241
+ ```ruby
242
+ client.team_countries.list
243
+ ```
244
+
245
+ #### Team Statistic
246
+
247
+ ```ruby
248
+ client.team_statistics.find(league: 39, team: 33, season: 2019)
249
+ ```
250
+
251
+ #### Team Season
252
+
253
+ ```ruby
254
+ client.team_seasons.list(team: 2287)
255
+ ```
256
+
257
+ #### Timezone
258
+
259
+ ```ruby
260
+ client.timezones.list
261
+ ```
262
+
263
+ #### Transfer
264
+
265
+ ```ruby
266
+ client.transfers.list(team: 2287)
267
+ ```
268
+
269
+ #### Trophy
270
+
271
+ ```ruby
272
+ client.trophies.list(player: 35603)
273
+ ```
274
+
275
+ #### Venue
276
+
277
+ ```ruby
278
+ client.venues.list(search: "Mex")
279
+ client.venues.find(id: 556)
280
+ ```
281
+
282
+ ## Development
283
+
284
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment, for example:
285
+
286
+ ```ruby
287
+ # Create your client
288
+ client = SportsApi::Football::Client.new(api_key: ENV["SPORTS_API_KEY"])
289
+
290
+ # List all leagues
291
+ client.leagues.list
292
+ ```
293
+
294
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
295
+
296
+ ### Documentation Site
297
+
298
+ To run the documentation site locally you have to run `docsify serve docs` and you can check all the content within the `./docs` folder.
299
+
300
+ ## Contributing
301
+
302
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Sanchezdav/sports_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Sanchezdav/sports_api/blob/main/CODE_OF_CONDUCT.md).
303
+
304
+ ## License
305
+
306
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
307
+
308
+ ## Code of Conduct
309
+
310
+ Everyone interacting in the SportsApi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Sanchezdav/sports_api/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
5
+
6
+ task default: %w[test]
7
+
8
+ Rake::TestTask.new do |task|
9
+ task.libs << 'test'
10
+ task.test_files = FileList['test/**/*_test.rb']
11
+ task.verbose = true
12
+ end
data/docs/.nojekyll ADDED
File without changes
data/docs/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Intro
2
+
3
+ The `sports_api` gem provides a convenient Ruby interface to interact with the [api-sports.io](https://api-sports.io/) sports statistics, live scores, and predictions API. It allows developers to easily integrate sports data into their Ruby applications with minimal effort.
4
+
5
+ It currently supports the V3 of [api-sports.io](https://api-sports.io/).
6
+
7
+ ## Features
8
+
9
+ - Access to a wide range of sports statistics, including live scores and predictions.
10
+ - Simple and intuitive API wrapper for seamless integration into Ruby projects.
11
+ - Supports various sports categories such as football, basketball, baseball, and more.
12
+ - Easy-to-use methods for fetching data.
Binary file