blizzard_api 0.5.3 → 0.6.1

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -1
  3. data/.rubocop.yml +1 -1
  4. data/CHANGELOG.md +23 -1
  5. data/Gemfile.lock +16 -12
  6. data/README.md +57 -215
  7. data/blizzard_api.gemspec +2 -1
  8. data/lib/blizzard_api/configuration.rb +10 -34
  9. data/lib/blizzard_api/diablo/community/act.rb +4 -4
  10. data/lib/blizzard_api/diablo/community/artisan.rb +4 -4
  11. data/lib/blizzard_api/diablo/community/character.rb +4 -4
  12. data/lib/blizzard_api/diablo/community/follower.rb +2 -2
  13. data/lib/blizzard_api/diablo/community/item.rb +2 -2
  14. data/lib/blizzard_api/diablo/community/item_type.rb +4 -4
  15. data/lib/blizzard_api/diablo/community/profile.rb +4 -4
  16. data/lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb +6 -6
  17. data/lib/blizzard_api/hearthstone/game_data/back.rb +2 -2
  18. data/lib/blizzard_api/hearthstone/game_data/card.rb +4 -4
  19. data/lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb +4 -4
  20. data/lib/blizzard_api/request.rb +26 -9
  21. data/lib/blizzard_api/starcraft.rb +3 -3
  22. data/lib/blizzard_api/starcraft/community/account.rb +1 -1
  23. data/lib/blizzard_api/starcraft/community/ladder.rb +4 -4
  24. data/lib/blizzard_api/starcraft/community/legacy.rb +9 -10
  25. data/lib/blizzard_api/starcraft/community/profile.rb +10 -10
  26. data/lib/blizzard_api/starcraft/game_data/league.rb +2 -2
  27. data/lib/blizzard_api/version.rb +1 -1
  28. data/lib/blizzard_api/wow.rb +0 -7
  29. data/lib/blizzard_api/wow/game_data/achievement.rb +6 -6
  30. data/lib/blizzard_api/wow/game_data/auction.rb +20 -2
  31. data/lib/blizzard_api/wow/game_data/azerite_essence.rb +2 -2
  32. data/lib/blizzard_api/wow/game_data/covenant.rb +10 -10
  33. data/lib/blizzard_api/wow/game_data/creature.rb +19 -13
  34. data/lib/blizzard_api/wow/game_data/generic_data_endpoint.rb +23 -11
  35. data/lib/blizzard_api/wow/game_data/guild_crest.rb +6 -4
  36. data/lib/blizzard_api/wow/game_data/item.rb +16 -12
  37. data/lib/blizzard_api/wow/game_data/journal.rb +15 -15
  38. data/lib/blizzard_api/wow/game_data/modified_crafting.rb +8 -8
  39. data/lib/blizzard_api/wow/game_data/mythic_keystone.rb +12 -12
  40. data/lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb +2 -2
  41. data/lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb +4 -4
  42. data/lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb +2 -2
  43. data/lib/blizzard_api/wow/game_data/pet.rb +8 -8
  44. data/lib/blizzard_api/wow/game_data/playable_class.rb +14 -12
  45. data/lib/blizzard_api/wow/game_data/playable_specialization.rb +10 -10
  46. data/lib/blizzard_api/wow/game_data/profession.rb +8 -8
  47. data/lib/blizzard_api/wow/game_data/pvp_season.rb +8 -6
  48. data/lib/blizzard_api/wow/game_data/pvp_tier.rb +2 -2
  49. data/lib/blizzard_api/wow/game_data/quest.rb +12 -12
  50. data/lib/blizzard_api/wow/game_data/reputation.rb +8 -8
  51. data/lib/blizzard_api/wow/game_data/spell.rb +2 -2
  52. data/lib/blizzard_api/wow/game_data/talent.rb +4 -4
  53. data/lib/blizzard_api/wow/game_data/tech_talent.rb +6 -6
  54. data/lib/blizzard_api/wow/game_data/wow_token.rb +2 -2
  55. data/lib/blizzard_api/wow/profile/character_profile.rb +53 -53
  56. data/lib/blizzard_api/wow/profile/guild.rb +10 -10
  57. data/lib/blizzard_api/wow/profile/profile.rb +10 -10
  58. data/lib/blizzard_api/wow/search/search_request.rb +2 -2
  59. metadata +18 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf8d2354d8c5693db38cc06fb9a531ea3088c2ef03df14de07369e7b3bf30e3b
4
- data.tar.gz: 05fd0395084f152722138b93bed892ceb5cbb826563aae96830b5f4d85acfd0b
3
+ metadata.gz: 685ed4874fe22bf7c07093ae2865d2776763649d55db19bc358c94da9147486b
4
+ data.tar.gz: f499dbaa688ed302d84f06e91a586b7ee117c224703b5cdff1b65f893c8ddc00
5
5
  SHA512:
6
- metadata.gz: fcc914e44f283a236eccd316601f175925d0304b34a6dae3dd5a69c5c441cbd5b8f7ba9e7f4b1080375a7b53f82bb93e5e273deedeba1586e612ea7eb6368066
7
- data.tar.gz: 5a28789fa6f1839f4a81a8de96756a6d8b7a6ae5ae7c25f9b6f9747f4acd9fd0e7a762ed29f0578465141a278510bf7a211308e4701c1aca1f6d16b8d53bd600
6
+ metadata.gz: 6e29618d647f7c1f5ed875600cc95cb458ba54e9714d9e06cf0119d3ce530e26d5de6b9874b57a80af09a6cc01fba8a9f1e2b30c44570c53a784c01caa07bdb8
7
+ data.tar.gz: d7b5f790f4027e267fb701786ccfc130d33cddbc1a2da62606ad863d6b5773bb88c02a3c0c066f3555d9fd2b88230fe5ff1825bb0bee82365946842f7bfc95d7
@@ -10,7 +10,7 @@ jobs:
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
12
12
  with:
13
- ruby-version: 2.6
13
+ ruby-version: 3.0.0-preview1
14
14
  - name: Install dependencies
15
15
  run: bundle install
16
16
  - name: Run tests
data/.rubocop.yml CHANGED
@@ -11,7 +11,7 @@ Metrics/AbcSize:
11
11
  Max: 20
12
12
 
13
13
  AllCops:
14
- TargetRubyVersion: 2.5
14
+ TargetRubyVersion: 2.7
15
15
  NewCops: enable
16
16
  Exclude:
17
17
  - 'vendor/**/*'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,28 @@
1
1
  Please view this file on the master branch, otherwise it may be outdated
2
2
 
3
- **Version 0.5.3**
3
+ **Version 0.6.1**
4
+
5
+ Added support for TBCC and Classice Era endpoints.
6
+
7
+ **Version 0.6.0**
8
+
9
+ Upgraded gem dependencies and refactored the code to support Ruby 3.0.0
10
+ Required ruby version upgraded to 2.7.2
11
+ Added concurrency to all WoW game data *complete* methods. Default of 4 threads. Should be close to # of threads available.
12
+
13
+ **Version 0.5.6**
14
+
15
+ Upgrade gem dependencies to fix a security vulnerability
16
+
17
+ **Version 0.5.5**
18
+
19
+ Removing old and deprecated function from community endpoint.
20
+
21
+ Refactored all `options` arguments to use double splat syntax.
22
+
23
+ Modified README.md to point to the actual documentation and include missing endpoints.
24
+
25
+ **Version 0.5.4**
4
26
 
5
27
  Added missing legacy SC2 endpoints
6
28
 
data/Gemfile.lock CHANGED
@@ -1,23 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blizzard_api (0.5.2)
4
+ blizzard_api (0.6.0)
5
5
  redis (~> 4.1, >= 4.1.0)
6
+ thwait (~> 0.2.0)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- ast (2.4.1)
11
+ ast (2.4.2)
11
12
  dotenv (2.7.6)
12
- minitest (5.14.2)
13
+ e2mmap (0.1.0)
14
+ minitest (5.14.4)
13
15
  parallel (1.20.1)
14
- parser (2.7.2.0)
16
+ parser (3.0.1.1)
15
17
  ast (~> 2.4.1)
16
18
  rainbow (3.0.0)
17
- rake (13.0.1)
19
+ rake (13.0.3)
18
20
  redis (4.2.5)
19
- regexp_parser (2.0.0)
20
- rexml (3.2.4)
21
+ regexp_parser (2.1.1)
22
+ rexml (3.2.5)
21
23
  rubocop (0.93.1)
22
24
  parallel (~> 1.10)
23
25
  parser (>= 2.7.1.5)
@@ -27,11 +29,13 @@ GEM
27
29
  rubocop-ast (>= 0.6.0)
28
30
  ruby-progressbar (~> 1.7)
29
31
  unicode-display_width (>= 1.4.0, < 2.0)
30
- rubocop-ast (1.3.0)
31
- parser (>= 2.7.1.5)
32
- ruby-progressbar (1.10.1)
32
+ rubocop-ast (1.5.0)
33
+ parser (>= 3.0.1.1)
34
+ ruby-progressbar (1.11.0)
35
+ thwait (0.2.0)
36
+ e2mmap
33
37
  unicode-display_width (1.7.0)
34
- yard (0.9.25)
38
+ yard (0.9.26)
35
39
 
36
40
  PLATFORMS
37
41
  ruby
@@ -45,4 +49,4 @@ DEPENDENCIES
45
49
  yard
46
50
 
47
51
  BUNDLED WITH
48
- 2.1.4
52
+ 2.2.17
data/README.md CHANGED
@@ -63,11 +63,9 @@ race = BlizzardApi::Wow.race
63
63
  race_data = race.complete
64
64
  ```
65
65
 
66
- :bulb: If you use the wrapper it will always use the default region specified in the configuration file.
66
+ Most **game data** endpoints will have always 3 methods available `index`, `get` and `complete`.
67
67
 
68
- Most **data** endpoints will have always 3 methods available `index`, `get` and `complete`.
69
-
70
- * `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.
71
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.
72
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.
73
71
 
@@ -75,7 +73,6 @@ Most **data** endpoints will have always 3 methods available `index`, `get` and
75
73
 
76
74
  Some endpoints support search filters. To perform a search you can use the following formats:
77
75
 
78
-
79
76
  To use the **or** operator you may pass an array of values as argument to `where` or `where_not` methods.
80
77
  ```ruby
81
78
  realm = BlizzardApi::Wow.realm
@@ -125,227 +122,72 @@ end
125
122
 
126
123
  ### 4.1. World of Warcraft endpoints
127
124
 
128
- * Blizzard::Wow::Achievement
129
- - get :id
130
- - index
131
- - categories
132
- - category :id
133
- - media :id
134
- * Blizzard::Wow::ConnectedRealm
135
- - index
136
- - get :id
137
- - complete
138
- * Blizzard::Wow::Creature
139
- - get :id
140
- - families
141
- - family :id
142
- - family_media :id
143
- - types
144
- - type :id
145
- - display_media :id
146
- - search
147
- * Blizzard::Wow::Guild
148
- - rewards
149
- - perks
150
- - get :realm, :guild
151
- - roster :realm, :guild
152
- - achievements :realm, :guild
153
- * Blizzard::Wow::GuildCrest
154
- - index
155
- - border_media :id
156
- - emblem_media :id
157
- * Blizzard::Wow::MythicKeystonesAffix
158
- - index
159
- - get :id
160
- - complete
161
- * Blizzard::Wow::MythicKeystone
162
- - index
163
- - dungeons
164
- - dungeon :id
165
- - periods
166
- - period :id
167
- - seasons
168
- - season :id
169
- * Blizzard::Wow::MythicRaidLeaderboard
170
- - get :raid_slug, :faction_slug
171
- * Blizzard::Wow::Mount
172
- - index
173
- - get :id
174
- - complete
175
- * Blizzard::Wow::MythicKeystoneLeaderboard
176
- - index :connected_realm_id
177
- - get :connected_realm_id, :dungeon_id, :period
178
- * Blizzard::Wow::Pet
179
- - index
180
- - get
181
- - ability :id
182
- - species :id
183
- - stats :level, :breed_id, :quality_id
184
- - types
185
- * Blizzard::Wow::PlayableClass
186
- - index
187
- - get :id
188
- - complete
189
- - talent_slots :id
190
- * Blizzard::Wow::PlayableSpecialization
191
- - index
192
- - get :id
193
- - complete
194
- * Blizzard::Wow::PowerType
195
- - index
196
- - get :id
197
- - complete
198
- * Blizzard::Wow::PvpSeason
199
- - index
200
- - get :id
201
- - leaderboards :season_id
202
- - leaderboard :season_id, :brackets
203
- - rewards :season_id
204
- * Blizzard::Wow::PvpTier
205
- - index
206
- - get :id
207
- - tier_media :id
208
- * Blizzard::Wow::Realm
209
- - index
210
- - get :id
211
- - complete
212
- - status :realms
213
- - search
214
- * Blizzard::Wow::Region
215
- - index
216
- - get :id
217
- - complete
218
- * Blizzard::Wow::WowToken
219
- - get
220
- * Blizzard::Wow::Race
221
- - index
222
- - get :id
223
- - complete
224
- * Blizzard::Wow::Title
225
- - index
226
- - get :id
227
- * Blizzard::Wow::Item
228
- - get :id
229
- - item_set :id
230
- - classes
231
- - class :id
232
- - subclass :class_id, :subclass_id
233
- - media :id
234
- - search
235
- * Blizzard::Wow::AzeriteEssence
236
- - index
237
- - get :id
238
- - media :id
239
- - search
240
- * Blizzard::Wow::ReputationTier
241
- - index
242
- - get :id
243
- * Blizzard::Wow::ReputationFaction
244
- - index
245
- - get :id
246
-
247
- * Blizzard::Wow::Auction
248
- - get :realm
249
- * Blizzard::Wow::Boss
250
- - index
251
- - get :id
252
- * Blizzard::Wow::Challenge
253
- - realm_index
254
- - region_index
255
- * Blizzard::Wow::Guild
256
- - get :relam, :name, :fields
257
- - rewards
258
- - perks
259
- * Blizzard::Wow::PvP
260
- - get :bracket
261
- * Blizzard::Wow::Quest
262
- - get :id
263
- * Blizzard::Wow::Recipe
264
- - get :id
265
- * Blizzard::Wow::Spell
266
- - get :id
267
- - search
268
- * Blizzard::Wow::Zone
269
- - index
270
- - get :id
271
-
272
- * BlizzardApi::Wow::CharacterProfile
273
- - get_user_characters :user_token
274
- - get :realm, :character, :fields
275
- - status :realm, :character
276
- - pvp_summmary :realm, :character, :user_token
277
- - pvp_bracket :realm, :character, :bracket, :user_token
278
- - achievements :realm, :character
279
- - appearance :realm, :character
280
- - equipment :realm, :character
281
- - media :realm, :character
282
- - pvp_bracket :realm, :character, :bracket
283
- - pvp_summary :realm, :character
284
- - specializations :realm, :character
285
- - statistics :realm, :character
286
- - titles :realm, :character
287
- - mythic_keystone_profile :realm, :character
288
- - mythic_keystone_seasons :realm, :character
289
- - collections :realm, :character
290
- - pets :realm, :character
291
- - mounts :realm, :character
292
- - hunter_pets :realm, :character
293
- - reputations :realm, :character
294
- - 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)
295
162
 
296
163
  ### 4.2. Diablo III endpoints
297
164
 
298
- * BlizzardApi::Diablo::Act
299
- - index
300
- - get :id
301
- * BlizzardApi::Diablo::Artisan
302
- - get :artisan_slug
303
- - recipe :artisan_slug, :recipe_slug
304
- * BlizzardApi::Diablo::Follower
305
- - get :slug
306
- * BlizzardApi::Diablo::Character
307
- - get :class_slug
308
- - skill :class_slug, :skill_slug
309
- * BlizzardApi::Diablo::ItemType
310
- - index
311
- - get :item_type_slug
312
- * BlizzardApi::Diablo::Item
313
- - get :item_slug, :item_id
314
- * BlizzardApi::Diablo::Profile
315
- - index :battletag, :oauth_token
316
- - hero :battletag, :oauth_token, :hero_id
317
- - hero_items :battletag, :oauth_token, :hero_id
318
- - 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)
319
174
 
320
175
  ### 4.3. Hearthstone endpoints
321
176
 
322
- * BlizzardApi::Hearthstone::Card
323
- - index
324
- - get :id_or_slug
325
- - search :search_options
326
- * BlizzardApi::Hearthstone::Deck
327
- - get :deck_code
328
- * BlizzardApi::Hearthstone::Metadata
329
- - index
330
- - 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)
331
181
 
332
182
  ### 4.4. Starcraft II endpoints
333
183
 
334
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`
335
185
 
336
- * BlizzardApi::Starcraft::League
337
- - get :season_id, :queue_id, :team_type, :league_id
338
- * BlizzardApi::Starcraft::Profile
339
- - static :region_id
340
- - metadata :region_id, :realm_id, :profile_id
341
- - profile :region_id, :realm_id, :profile_id
342
- - ladder_summary :region_id, :realm_id, :profile_id
343
- - ladder :region_id, :realm_id, :profile_id, :ladder_id
344
- * BlizzardApi::Starcraft::Ladder
345
- - grandmaster :region_id, :options
346
- - season :region_id
347
- * BlizzardApi::Starcraft::Account
348
- - 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)
349
191
 
350
192
  ## Contributing
351
193
 
data/blizzard_api.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'blizzard_api/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.required_ruby_version = '>= 2.5'
8
+ spec.required_ruby_version = '>= 2.7.2'
9
9
  spec.name = 'blizzard_api'
10
10
  spec.version = BlizzardApi::VERSION
11
11
  spec.authors = ['Francis Schiavo']
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.require_paths = ['lib']
36
36
 
37
37
  spec.add_runtime_dependency 'redis', '~> 4.1', '>= 4.1.0'
38
+ spec.add_runtime_dependency 'thwait', '~> 0.2.0'
38
39
 
39
40
  spec.add_development_dependency 'dotenv'
40
41
  spec.add_development_dependency 'minitest', '~> 5.0'
@@ -45,13 +45,12 @@ module BlizzardApi
45
45
  attr_accessor :redis_port
46
46
 
47
47
  ##
48
- # @!attribute format
49
- # Response format:
50
- # * *:raw* plain text (String)
51
- # * *:json* for native ruby json (Array).
52
- # * Any other value *OpenStruct* will be used.
53
- # @return [Symbol] Response format.
54
- attr_accessor :format
48
+ #
49
+ # @!attribute concurrency
50
+ # How many threads to use for WoW game data `complete` payloads. Defaults to 4.
51
+ # Should be set to the amount of available cores on the system.
52
+ # @return [Integer] Concurrency
53
+ attr_writer :concurrency
55
54
 
56
55
  ##
57
56
  # @!attribute access_token
@@ -59,33 +58,6 @@ module BlizzardApi
59
58
  # @return [String] Access token.
60
59
  attr_accessor :access_token
61
60
 
62
- ##
63
- # @!attribute icons_directory
64
- # Icons directory.
65
- # This directory stores icons for many World of Warcraft endpoints.
66
- # @return [String] icons_directory
67
- attr_accessor :wow_icons_directory
68
-
69
- ##
70
- # @!attribute guild_emblem_directory
71
- # Guild crest images directory. Some sub directories will be created.
72
- # @see https://develop.battle.net/access/clients
73
- # @return [String] Guild crest directory
74
- attr_accessor :wow_guild_crest_directory
75
-
76
- ##
77
- # @!attribute wow_character_profile_directory
78
- # This directory stores images for World of Warcraft character profiles. Sub directories will be created for
79
- # each realm and character.
80
- # @return [String] Character profile media directory
81
- attr_accessor :wow_character_profile_directory
82
-
83
- ##
84
- # @!attribute wow_npc_directory
85
- # This directory stores images for World of Warcraft NPCs and creatures.
86
- # @return [String] NPCs media directory
87
- attr_accessor :wow_npc_directory
88
-
89
61
  ##
90
62
  # This method return the singleton instance of the configuration module. Use this to initialize the default values
91
63
  # and options.
@@ -110,5 +82,9 @@ module BlizzardApi
110
82
  def configure
111
83
  yield self
112
84
  end
85
+
86
+ def concurrency
87
+ @concurrency ||= 4
88
+ end
113
89
  end
114
90
  end