blizzard_api 0.5.4 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) 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 +27 -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 +1 -1
  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_composer.rb +2 -2
  59. data/lib/blizzard_api/wow/search/search_request.rb +2 -2
  60. metadata +18 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 360667c9c66306b2c7557365d3d412b92eb9d64110526f34ebcfe77f47afff9b
4
- data.tar.gz: eb1d4b42631e6fa56b11727ea2a437b77a6e89400b7848c65f5f197fda206c77
3
+ metadata.gz: 4e14a76f532abc2360a9a74e693193e472d79ea0749536d0403a8981d6845db4
4
+ data.tar.gz: 8495ff7e71e1363babfcd25b7b27c841984e186609853103c243313eeaaeecec
5
5
  SHA512:
6
- metadata.gz: 3a85c0a3953367f8ce5ea531c82f67f78a67799ebcf5450196a6bc32ae9e7ccb23a75dd6b77c8721b5b9048c6c1046db1fea5f510e2fc01739c32960ce4dd49a
7
- data.tar.gz: 8a6f610c43bf199170cf94f4075541213ed6ef90d80966790c5a5349e1362f24a176a780f4d49cb0720592268ad113a21e8275f1b6edb0c22960bab6425746a9
6
+ metadata.gz: e20a235281a8b7dbd693e326103d78c8d56b976d6f599fff0bc06751361609a69441d303c49e22a44d041186435a5410eb7c8d106b327e104a9562690932d65b
7
+ data.tar.gz: f40d893688257ecfabadf1050b2e65146d03665ca85435b9a9e789f0c1c7dedc7ecc3289bbe077d2ef748cc162a161c12553422f1aa6e0872c6f77881600dd4a
@@ -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,32 @@
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.2**
4
+
5
+ Fixed an encoding problem on search endpoints.
6
+
7
+ **Version 0.6.1**
8
+
9
+ Added support for TBCC and Classice Era endpoints.
10
+
11
+ **Version 0.6.0**
12
+
13
+ Upgraded gem dependencies and refactored the code to support Ruby 3.0.0
14
+ Required ruby version upgraded to 2.7.2
15
+ Added concurrency to all WoW game data *complete* methods. Default of 4 threads. Should be close to # of threads available.
16
+
17
+ **Version 0.5.6**
18
+
19
+ Upgrade gem dependencies to fix a security vulnerability
20
+
21
+ **Version 0.5.5**
22
+
23
+ Removing old and deprecated function from community endpoint.
24
+
25
+ Refactored all `options` arguments to use double splat syntax.
26
+
27
+ Modified README.md to point to the actual documentation and include missing endpoints.
28
+
29
+ **Version 0.5.4**
4
30
 
5
31
  Added missing legacy SC2 endpoints
6
32
 
data/Gemfile.lock CHANGED
@@ -1,23 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blizzard_api (0.5.3)
4
+ blizzard_api (0.6.2)
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