blizzard_api 0.5.0 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +21 -0
  3. data/CHANGELOG.md +22 -0
  4. data/Gemfile.lock +9 -9
  5. data/README.md +58 -218
  6. data/blizzard_api.gemspec +6 -4
  7. data/lib/blizzard_api/diablo/community/act.rb +2 -2
  8. data/lib/blizzard_api/diablo/community/artisan.rb +2 -2
  9. data/lib/blizzard_api/diablo/community/character.rb +2 -2
  10. data/lib/blizzard_api/diablo/community/follower.rb +1 -1
  11. data/lib/blizzard_api/diablo/community/item.rb +1 -1
  12. data/lib/blizzard_api/diablo/community/item_type.rb +2 -2
  13. data/lib/blizzard_api/diablo/community/profile.rb +4 -4
  14. data/lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb +3 -3
  15. data/lib/blizzard_api/hearthstone/game_data/back.rb +1 -1
  16. data/lib/blizzard_api/hearthstone/game_data/card.rb +2 -2
  17. data/lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb +2 -2
  18. data/lib/blizzard_api/request.rb +3 -3
  19. data/lib/blizzard_api/starcraft.rb +7 -0
  20. data/lib/blizzard_api/starcraft/community/account.rb +1 -1
  21. data/lib/blizzard_api/starcraft/community/ladder.rb +2 -2
  22. data/lib/blizzard_api/starcraft/community/legacy.rb +88 -0
  23. data/lib/blizzard_api/starcraft/community/profile.rb +5 -5
  24. data/lib/blizzard_api/starcraft/game_data/league.rb +1 -1
  25. data/lib/blizzard_api/version.rb +1 -1
  26. data/lib/blizzard_api/wow.rb +24 -7
  27. data/lib/blizzard_api/wow/game_data/achievement.rb +3 -3
  28. data/lib/blizzard_api/wow/game_data/auction.rb +1 -1
  29. data/lib/blizzard_api/wow/game_data/azerite_essence.rb +1 -1
  30. data/lib/blizzard_api/wow/game_data/covenant.rb +79 -0
  31. data/lib/blizzard_api/wow/game_data/creature.rb +6 -6
  32. data/lib/blizzard_api/wow/game_data/generic_data_endpoint.rb +3 -3
  33. data/lib/blizzard_api/wow/game_data/guild_crest.rb +2 -2
  34. data/lib/blizzard_api/wow/game_data/item.rb +6 -6
  35. data/lib/blizzard_api/wow/game_data/journal.rb +8 -8
  36. data/lib/blizzard_api/wow/game_data/modified_crafting.rb +67 -0
  37. data/lib/blizzard_api/wow/game_data/mythic_keystone.rb +6 -6
  38. data/lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb +1 -1
  39. data/lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb +2 -2
  40. data/lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb +1 -1
  41. data/lib/blizzard_api/wow/game_data/pet.rb +4 -4
  42. data/lib/blizzard_api/wow/game_data/playable_class.rb +4 -4
  43. data/lib/blizzard_api/wow/game_data/playable_specialization.rb +2 -2
  44. data/lib/blizzard_api/wow/game_data/profession.rb +4 -4
  45. data/lib/blizzard_api/wow/game_data/pvp_season.rb +3 -3
  46. data/lib/blizzard_api/wow/game_data/pvp_tier.rb +1 -1
  47. data/lib/blizzard_api/wow/game_data/quest.rb +6 -6
  48. data/lib/blizzard_api/wow/game_data/reputation.rb +4 -4
  49. data/lib/blizzard_api/wow/game_data/spell.rb +1 -1
  50. data/lib/blizzard_api/wow/game_data/talent.rb +2 -2
  51. data/lib/blizzard_api/wow/game_data/tech_talent.rb +57 -0
  52. data/lib/blizzard_api/wow/game_data/wow_token.rb +1 -1
  53. data/lib/blizzard_api/wow/profile/character_profile.rb +63 -49
  54. data/lib/blizzard_api/wow/profile/guild.rb +8 -8
  55. data/lib/blizzard_api/wow/profile/profile.rb +5 -5
  56. data/lib/blizzard_api/wow/search/search_request.rb +1 -1
  57. metadata +14 -8
  58. data/.gitlab-ci.yml +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79f0c2964787e385ec480a01f0286a455a5869b7d6d3e9d8f4f46b9ac0bd98b6
4
- data.tar.gz: c79b59fb2862b32e325240159a8d7dc08199c4f6f9fb3c060df4d73016de414d
3
+ metadata.gz: df5491aa580d19886cc9508e2ec5b448172b3ddf4921a48c10d6ec4086204cf0
4
+ data.tar.gz: 8842b00597c073318df660741eb8b57e9406e5659cfe60f11f31885553e1ca9f
5
5
  SHA512:
6
- metadata.gz: a425ba4f7b554a3381f7fb588650ff4525320da241c5f10c21e472bd8ef982659929bce064eb19c107b0b7ccabd1702d215fbbb256024e2be2a0cad7913110d0
7
- data.tar.gz: b8d2b32b759989fd5f7d2a129b9cb2e6c5b23d06e1ea5bbaa9159a7c65bc1d771fbfd3fb782260950553d2c0feaaeca748567e0db4337357c9e9ac0135b7f8de
6
+ metadata.gz: 4fe7082429eccbb69765ed1ff7253f6b65a2e6a7d0ff6ffd6d575c2eff503b206d76d53640416ac6c37eb3cc90249f228e4cb977b57344fc020ae051b5a764dd
7
+ data.tar.gz: 21b8f259a6cae19fabe6ce3cbf06b33dad06822a3f1842afc70984da5b11361b6e12469e7103f50ceb1e41619bdbeddae35080041a3a4d81060255a5c0137877
@@ -0,0 +1,21 @@
1
+ name: Ruby
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
12
+ with:
13
+ ruby-version: 2.6
14
+ - name: Install dependencies
15
+ run: bundle install
16
+ - name: Run tests
17
+ run: bundle exec rake
18
+ env:
19
+ BNET_APPLICATION_ID: ${{ secrets.BNET_APPLICATION_ID }}
20
+ BNET_APPLICATION_SECRET: ${{ secrets.BNET_APPLICATION_SECRET }}
21
+ USE_CACHE: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  Please view this file on the master branch, otherwise it may be outdated
2
2
 
3
+ **Version 0.5.5**
4
+
5
+ Removing old and deprecated function from community endpoint.
6
+
7
+ Refactored all `options` arguments to use double splat syntax.
8
+
9
+ Modified README.md to point to the actual documentation and include missing endpoints.
10
+
11
+ **Version 0.5.4**
12
+
13
+ Added missing legacy SC2 endpoints
14
+
15
+ See https://github.com/francis-schiavo/blizzard_api/pull/2
16
+
17
+ **Version 0.5.2**
18
+
19
+ Added new endpoints: https://us.forums.blizzard.com/en/blizzard/t/wow-shadowlands-api-update-covenenats-soulbinds-more/13385
20
+
21
+ **Version 0.5.1**
22
+
23
+ Added new endpoints: https://us.forums.blizzard.com/en/blizzard/t/wow-game-data-api-modified-crafting-support/12727
24
+
3
25
  **Version 0.5.0**
4
26
 
5
27
  This version brings a lot of internal changes to the way the gem works. While
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blizzard_api (0.5.0)
4
+ blizzard_api (0.5.5)
5
5
  redis (~> 4.1, >= 4.1.0)
6
6
 
7
7
  GEM
@@ -10,24 +10,24 @@ GEM
10
10
  ast (2.4.1)
11
11
  dotenv (2.7.6)
12
12
  minitest (5.14.2)
13
- parallel (1.19.2)
14
- parser (2.7.1.5)
13
+ parallel (1.20.1)
14
+ parser (2.7.2.0)
15
15
  ast (~> 2.4.1)
16
16
  rainbow (3.0.0)
17
17
  rake (13.0.1)
18
- redis (4.2.2)
19
- regexp_parser (1.8.0)
18
+ redis (4.2.5)
19
+ regexp_parser (2.0.0)
20
20
  rexml (3.2.4)
21
- rubocop (0.92.0)
21
+ rubocop (0.93.1)
22
22
  parallel (~> 1.10)
23
23
  parser (>= 2.7.1.5)
24
24
  rainbow (>= 2.2.2, < 4.0)
25
- regexp_parser (>= 1.7)
25
+ regexp_parser (>= 1.8)
26
26
  rexml
27
- rubocop-ast (>= 0.5.0)
27
+ rubocop-ast (>= 0.6.0)
28
28
  ruby-progressbar (~> 1.7)
29
29
  unicode-display_width (>= 1.4.0, < 2.0)
30
- rubocop-ast (0.6.0)
30
+ rubocop-ast (1.3.0)
31
31
  parser (>= 2.7.1.5)
32
32
  ruby-progressbar (1.10.1)
33
33
  unicode-display_width (1.7.0)
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # Blizzard Api
2
2
 
3
- [![pipeline status](https://gitlab.com/francisschiavo/blizzard_api/badges/master/pipeline.svg)](https://gitlab.com/francisschiavo/blizzard_api/commits/master)
4
3
  [![Gem Version](https://badge.fury.io/rb/blizzard_api.svg)](https://badge.fury.io/rb/blizzard_api)
5
4
 
6
-
7
5
  This gem allow you to interface with the new blizzard api (2018) using the OAuth2 protocol for every request.
8
6
 
9
7
  **Important**: This gem does not support, nor will support China endpoints.
@@ -65,11 +63,9 @@ race = BlizzardApi::Wow.race
65
63
  race_data = race.complete
66
64
  ```
67
65
 
68
- :bulb: If you use the wrapper it will always use the default region specified in the configuration file.
69
-
70
- Most **data** endpoints will have always 3 methods available `index`, `get` and `complete`.
66
+ Most **game data** endpoints will have always 3 methods available `index`, `get` and `complete`.
71
67
 
72
- * `index` is used to get a list of all resources od that endpoint.
68
+ * `index` is used to get a list of all resources of that endpoint.
73
69
  * `get` is used to get all information about a entry of the index returned data. It receives an id or slug as the first parameter, that depends on the endpoint.
74
70
  * `complete` is a complete information of all items listed in index. **This may perform various calls to the blizzard api** only use if you really need all information.
75
71
 
@@ -77,7 +73,6 @@ Most **data** endpoints will have always 3 methods available `index`, `get` and
77
73
 
78
74
  Some endpoints support search filters. To perform a search you can use the following formats:
79
75
 
80
-
81
76
  To use the **or** operator you may pass an array of values as argument to `where` or `where_not` methods.
82
77
  ```ruby
83
78
  realm = BlizzardApi::Wow.realm
@@ -127,231 +122,76 @@ end
127
122
 
128
123
  ### 4.1. World of Warcraft endpoints
129
124
 
130
- * Blizzard::Wow::Achievement
131
- - get :id
132
- - index
133
- - categories
134
- - category :id
135
- - media :id
136
- * Blizzard::Wow::ConnectedRealm
137
- - index
138
- - get :id
139
- - complete
140
- * Blizzard::Wow::Creature
141
- - get :id
142
- - families
143
- - family :id
144
- - family_media :id
145
- - types
146
- - type :id
147
- - display_media :id
148
- - search
149
- * Blizzard::Wow::Guild
150
- - rewards
151
- - perks
152
- - get :realm, :guild
153
- - roster :realm, :guild
154
- - achievements :realm, :guild
155
- * Blizzard::Wow::GuildCrest
156
- - index
157
- - border_media :id
158
- - emblem_media :id
159
- * Blizzard::Wow::MythicKeystonesAffix
160
- - index
161
- - get :id
162
- - complete
163
- * Blizzard::Wow::MythicKeystone
164
- - index
165
- - dungeons
166
- - dungeon :id
167
- - periods
168
- - period :id
169
- - seasons
170
- - season :id
171
- * Blizzard::Wow::MythicRaidLeaderboard
172
- - get :raid_slug, :faction_slug
173
- * Blizzard::Wow::Mount
174
- - index
175
- - get :id
176
- - complete
177
- * Blizzard::Wow::MythicKeystoneLeaderboard
178
- - index :connected_realm_id
179
- - get :connected_realm_id, :dungeon_id, :period
180
- * Blizzard::Wow::Pet
181
- - index
182
- - get
183
- - ability :id
184
- - species :id
185
- - stats :level, :breed_id, :quality_id
186
- - types
187
- * Blizzard::Wow::PlayableClass
188
- - index
189
- - get :id
190
- - complete
191
- - talent_slots :id
192
- * Blizzard::Wow::PlayableSpecialization
193
- - index
194
- - get :id
195
- - complete
196
- * Blizzard::Wow::PowerType
197
- - index
198
- - get :id
199
- - complete
200
- * Blizzard::Wow::PvpSeason
201
- - index
202
- - get :id
203
- - leaderboards :season_id
204
- - leaderboard :season_id, :brackets
205
- - rewards :season_id
206
- * Blizzard::Wow::PvpTier
207
- - index
208
- - get :id
209
- - tier_media :id
210
- * Blizzard::Wow::Realm
211
- - index
212
- - get :id
213
- - complete
214
- - status :realms
215
- - search
216
- * Blizzard::Wow::Region
217
- - index
218
- - get :id
219
- - complete
220
- * Blizzard::Wow::WowToken
221
- - get
222
- * Blizzard::Wow::Race
223
- - index
224
- - get :id
225
- - complete
226
- * Blizzard::Wow::Title
227
- - index
228
- - get :id
229
- * Blizzard::Wow::Item
230
- - get :id
231
- - item_set :id
232
- - classes
233
- - class :id
234
- - subclass :class_id, :subclass_id
235
- - media :id
236
- - search
237
- * Blizzard::Wow::AzeriteEssence
238
- - index
239
- - get :id
240
- - media :id
241
- - search
242
- * Blizzard::Wow::ReputationTier
243
- - index
244
- - get :id
245
- * Blizzard::Wow::ReputationFaction
246
- - index
247
- - get :id
248
-
249
- * Blizzard::Wow::Auction
250
- - get :realm
251
- * Blizzard::Wow::Boss
252
- - index
253
- - get :id
254
- * Blizzard::Wow::Challenge
255
- - realm_index
256
- - region_index
257
- * Blizzard::Wow::Guild
258
- - get :relam, :name, :fields
259
- - rewards
260
- - perks
261
- * Blizzard::Wow::PvP
262
- - get :bracket
263
- * Blizzard::Wow::Quest
264
- - get :id
265
- * Blizzard::Wow::Recipe
266
- - get :id
267
- * Blizzard::Wow::Spell
268
- - get :id
269
- - search
270
- * Blizzard::Wow::Zone
271
- - index
272
- - get :id
273
-
274
- * BlizzardApi::Wow::CharacterProfile
275
- - get_user_characters :user_token
276
- - get :realm, :character, :fields
277
- - status :realm, :character
278
- - pvp_summmary :realm, :character, :user_token
279
- - pvp_bracket :realm, :character, :bracket, :user_token
280
- - achievements :realm, :character
281
- - appearance :realm, :character
282
- - equipment :realm, :character
283
- - media :realm, :character
284
- - pvp_bracket :realm, :character, :bracket
285
- - pvp_summary :realm, :character
286
- - specializations :realm, :character
287
- - statistics :realm, :character
288
- - titles :realm, :character
289
- - mythic_keystone_profile :realm, :character
290
- - mythic_keystone_seasons :realm, :character
291
- - collections :realm, :character
292
- - pets :realm, :character
293
- - mounts :realm, :character
294
- - hunter_pets :realm, :character
295
- - reputations :realm, :character
296
- - raid_progression :realm, :character (Not active yet on Blizzard servers)
125
+ * [BlizzardApi::Wow.achievement](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Achievement)
126
+ * [BlizzardApi::Wow.auction](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Auction)
127
+ * [BlizzardApi::Wow.azerite_essence](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/AzeriteEssence)
128
+ * [BlizzardApi::Wow.connected_realm](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/ConnectedRealm)
129
+ * [BlizzardApi::Wow.covenant](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Covenant)
130
+ * [BlizzardApi::Wow.creature](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Creature)
131
+ * [BlizzardApi::Wow.guild_crest](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/GuildCrest)
132
+ * [BlizzardApi::Wow.item](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Item)
133
+ * [BlizzardApi::Wow.journal](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Journal)
134
+ * [BlizzardApi::Wow.media](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Media)
135
+ * [BlizzardApi::Wow.modified_crafting](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/ModifiedCrafting)
136
+ * [BlizzardApi::Wow.mount](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Mount)
137
+ * [BlizzardApi::Wow.mythic_keystone_affix](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicKeystoneAffix)
138
+ * [BlizzardApi::Wow.mythic_keystone](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicKeystone)
139
+ * [BlizzardApi::Wow.mythic_raid_leaderboard](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicRaidLeaderboard)
140
+ * [BlizzardApi::Wow.mythic_keystone_leaderboard](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicKeystoneLeaderboard)
141
+ * [BlizzardApi::Wow.pet](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Pet)
142
+ * [BlizzardApi::Wow.playable_class](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PlayableClass)
143
+ * [BlizzardApi::Wow.playable_race](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PlayableRace)
144
+ * [BlizzardApi::Wow.playable_specialization](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PlayableSpecialization)
145
+ * [BlizzardApi::Wow.power_type](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PowerType)
146
+ * [BlizzardApi::Wow.profession](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Profession)
147
+ * [BlizzardApi::Wow.pvp_season](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PvpSeason)
148
+ * [BlizzardApi::Wow.pvp_tier](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PvpTier)
149
+ * [BlizzardApi::Wow.quest](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Quest)
150
+ * [BlizzardApi::Wow.realm](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Realm)
151
+ * [BlizzardApi::Wow.region](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Region)
152
+ * [BlizzardApi::Wow.reputation](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Reputation)
153
+ * [BlizzardApi::Wow.spell](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Spell)
154
+ * [BlizzardApi::Wow.talent](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Talent)
155
+ * [BlizzardApi::Wow.tech_talent](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/TechTalent)
156
+ * [BlizzardApi::Wow.title](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Title)
157
+ * [BlizzardApi::Wow.wow_token](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/WowToken)
158
+
159
+ * [BlizzardApi::Wow.profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Profile)
160
+ * [BlizzardApi::Wow.guild](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Guild)
161
+ * [BlizzardApi::Wow.character_profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/CharacterProfile)
297
162
 
298
163
  ### 4.2. Diablo III endpoints
299
164
 
300
- * BlizzardApi::Diablo::Act
301
- - index
302
- - get :id
303
- * BlizzardApi::Diablo::Artisan
304
- - get :artisan_slug
305
- - recipe :artisan_slug, :recipe_slug
306
- * BlizzardApi::Diablo::Follower
307
- - get :slug
308
- * BlizzardApi::Diablo::Character
309
- - get :class_slug
310
- - skill :class_slug, :skill_slug
311
- * BlizzardApi::Diablo::ItemType
312
- - index
313
- - get :item_type_slug
314
- * BlizzardApi::Diablo::Item
315
- - get :item_slug, :item_id
316
- * BlizzardApi::Diablo::Profile
317
- - index :battletag, :oauth_token
318
- - hero :battletag, :oauth_token, :hero_id
319
- - hero_items :battletag, :oauth_token, :hero_id
320
- - hero_follower_items :battletag, :oauth_token, :hero_id
165
+ * [BlizzardApi::Diablo.season](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Season)
166
+ * [BlizzardApi::Diablo.era](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Era)
167
+ * [BlizzardApi::Diablo.act](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Act)
168
+ * [BlizzardApi::Diablo.artisan](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Artisan)
169
+ * [BlizzardApi::Diablo.follower](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Follower)
170
+ * [BlizzardApi::Diablo.character](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Character)
171
+ * [BlizzardApi::Diablo.item_type](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/ItemType)
172
+ * [BlizzardApi::Diablo.item](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Item)
173
+ * [BlizzardApi::Diablo.profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Profile)
321
174
 
322
175
  ### 4.3. Hearthstone endpoints
323
176
 
324
- * BlizzardApi::Hearthstone::Card
325
- - index
326
- - get :id_or_slug
327
- - search :search_options
328
- * BlizzardApi::Hearthstone::Deck
329
- - get :deck_code
330
- * BlizzardApi::Hearthstone::Metadata
331
- - index
332
- - get :type
177
+ * [BlizzardApi::Hearthstone.card](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Card)
178
+ * [BlizzardApi::Hearthstone.back](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Back)
179
+ * [BlizzardApi::Hearthstone.deck](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Deck)
180
+ * [BlizzardApi::Hearthstone.metadata](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Metadata)
333
181
 
334
182
  ### 4.4. Starcraft II endpoints
335
183
 
336
184
  Every endpoint requiring a *region_id* parameter will accepts either the integer representation of the region described in the api docs or a symbol: `:US`, `:EU`, `:KO` or `:TW`
337
185
 
338
- * BlizzardApi::Starcraft::League
339
- - get :season_id, :queue_id, :team_type, :league_id
340
- * BlizzardApi::Starcraft::Profile
341
- - static :region_id
342
- - metadata :region_id, :realm_id, :profile_id
343
- - profile :region_id, :realm_id, :profile_id
344
- - ladder_summary :region_id, :realm_id, :profile_id
345
- - ladder :region_id, :realm_id, :profile_id, :ladder_id
346
- * BlizzardApi::Starcraft::Ladder
347
- - grandmaster :region_id, :options
348
- - season :region_id
349
- * BlizzardApi::Starcraft::Account
350
- - player :account_id
186
+ * [BlizzardApi::Starcraft.profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Profile)
187
+ * [BlizzardApi::Starcraft.ladder](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Ladder)
188
+ * [BlizzardApi::Starcraft.account](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Account)
189
+ * [BlizzardApi::Starcraft.legacy](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Legacy)
190
+ * [BlizzardApi::Starcraft.league](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/League)
351
191
 
352
192
  ## Contributing
353
193
 
354
- Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/francisschiavo/blizzard_api/issues
194
+ Bug reports and pull requests are welcome on Github at https://github.com/francis-schiavo/blizzard_api/issues
355
195
 
356
196
  ## License
357
197
 
data/blizzard_api.gemspec CHANGED
@@ -9,10 +9,10 @@ Gem::Specification.new do |spec|
9
9
  spec.name = 'blizzard_api'
10
10
  spec.version = BlizzardApi::VERSION
11
11
  spec.authors = ['Francis Schiavo']
12
- spec.email = ['francis.schiavo@francisschiavo.com']
12
+ spec.email = ['francis@schiavo.dev']
13
13
  spec.summary = 'Unofficial Ruby client for Blizzard Entertainment API'
14
14
  spec.description = 'This is a simple interface to obtain data from Blizzard API'
15
- spec.homepage = 'https://gitlab.com/francisschiavo/blizzard_api'
15
+ spec.homepage = 'https://github.com/francis-schiavo/blizzard_api'
16
16
  spec.license = 'MIT'
17
17
 
18
18
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -20,8 +20,10 @@ Gem::Specification.new do |spec|
20
20
  raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
21
21
 
22
22
  spec.metadata['homepage_uri'] = spec.homepage
23
- spec.metadata['source_code_uri'] = 'https://gitlab.com/francisschiavo/blizzard_api'
24
- spec.metadata['changelog_uri'] = 'https://gitlab.com/francisschiavo/blizzard_api/blob/master/CHANGELOG.md'
23
+ spec.metadata['source_code_uri'] = 'https://github.com/francis-schiavo/blizzard_api'
24
+ spec.metadata['bug_tracker_uri'] = 'https://github.com/francis-schiavo/blizzard_api/issues'
25
+ spec.metadata['changelog_uri'] = 'https://github.com/francis-schiavo/blizzard_api/blob/master/CHANGELOG.md'
26
+ spec.metadata['documentation_uri'] = 'https://rubydoc.info/gems/blizzard_api'
25
27
 
26
28
  # Specify which files should be added to the gem when it is released.
27
29
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.