blizzard_api 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +21 -0
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +21 -17
- data/README.md +58 -218
- data/blizzard_api.gemspec +8 -5
- data/lib/blizzard_api/configuration.rb +10 -34
- data/lib/blizzard_api/diablo/community/act.rb +4 -4
- data/lib/blizzard_api/diablo/community/artisan.rb +4 -4
- data/lib/blizzard_api/diablo/community/character.rb +4 -4
- data/lib/blizzard_api/diablo/community/follower.rb +2 -2
- data/lib/blizzard_api/diablo/community/item.rb +2 -2
- data/lib/blizzard_api/diablo/community/item_type.rb +4 -4
- data/lib/blizzard_api/diablo/community/profile.rb +4 -4
- data/lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb +6 -6
- data/lib/blizzard_api/hearthstone/game_data/back.rb +2 -2
- data/lib/blizzard_api/hearthstone/game_data/card.rb +4 -4
- data/lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb +4 -4
- data/lib/blizzard_api/request.rb +8 -7
- data/lib/blizzard_api/starcraft.rb +7 -0
- data/lib/blizzard_api/starcraft/community/account.rb +1 -1
- data/lib/blizzard_api/starcraft/community/ladder.rb +4 -4
- data/lib/blizzard_api/starcraft/community/legacy.rb +88 -0
- data/lib/blizzard_api/starcraft/community/profile.rb +10 -10
- data/lib/blizzard_api/starcraft/game_data/league.rb +2 -2
- data/lib/blizzard_api/version.rb +1 -1
- data/lib/blizzard_api/wow.rb +0 -7
- data/lib/blizzard_api/wow/game_data/achievement.rb +6 -6
- data/lib/blizzard_api/wow/game_data/auction.rb +2 -2
- data/lib/blizzard_api/wow/game_data/azerite_essence.rb +2 -2
- data/lib/blizzard_api/wow/game_data/covenant.rb +10 -10
- data/lib/blizzard_api/wow/game_data/creature.rb +12 -12
- data/lib/blizzard_api/wow/game_data/generic_data_endpoint.rb +23 -11
- data/lib/blizzard_api/wow/game_data/guild_crest.rb +4 -4
- data/lib/blizzard_api/wow/game_data/item.rb +12 -12
- data/lib/blizzard_api/wow/game_data/journal.rb +15 -15
- data/lib/blizzard_api/wow/game_data/modified_crafting.rb +8 -8
- data/lib/blizzard_api/wow/game_data/mythic_keystone.rb +12 -12
- data/lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb +2 -2
- data/lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb +4 -4
- data/lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb +2 -2
- data/lib/blizzard_api/wow/game_data/pet.rb +8 -8
- data/lib/blizzard_api/wow/game_data/playable_class.rb +12 -12
- data/lib/blizzard_api/wow/game_data/playable_specialization.rb +10 -10
- data/lib/blizzard_api/wow/game_data/profession.rb +8 -8
- data/lib/blizzard_api/wow/game_data/pvp_season.rb +6 -6
- data/lib/blizzard_api/wow/game_data/pvp_tier.rb +2 -2
- data/lib/blizzard_api/wow/game_data/quest.rb +12 -12
- data/lib/blizzard_api/wow/game_data/reputation.rb +8 -8
- data/lib/blizzard_api/wow/game_data/spell.rb +2 -2
- data/lib/blizzard_api/wow/game_data/talent.rb +4 -4
- data/lib/blizzard_api/wow/game_data/tech_talent.rb +6 -6
- data/lib/blizzard_api/wow/game_data/wow_token.rb +2 -2
- data/lib/blizzard_api/wow/profile/character_profile.rb +53 -53
- data/lib/blizzard_api/wow/profile/guild.rb +10 -10
- data/lib/blizzard_api/wow/profile/profile.rb +10 -10
- data/lib/blizzard_api/wow/search/search_request.rb +2 -2
- metadata +27 -10
- data/.gitlab-ci.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7671ab9869534ec9c4c8031eac8e73ac9f389b9199cd9ca61a0e80127de66c53
|
4
|
+
data.tar.gz: 915f7c1ff4b867b4b403dcb55128ab134b5012f380e90a8c589097ba57bf28a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ce63d400f8997131913f6b677b3676bf68c5134d0acf5328276a37d861073f57004eb3c922821c261608a17610e25c956a1401633d99d25af68cb05c8729f8
|
7
|
+
data.tar.gz: f57a645a37541c1ab06113439529822b84fe71808447303d04b25ba947e368754169e7cb6532482d584061c5a0708b1c7ecf0fe9392c896e236bc132f8c4885b
|
@@ -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: 3.0.0-preview1
|
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,29 @@
|
|
1
1
|
Please view this file on the master branch, otherwise it may be outdated
|
2
2
|
|
3
|
+
**Version 0.6.0**
|
4
|
+
|
5
|
+
Upgraded gem dependencies and refactored the code to support Ruby 3.0.0
|
6
|
+
Required ruby version upgraded to 2.7.2
|
7
|
+
Added concurrency to all WoW game data *complete* methods. Default of 4 threads. Should be close to # of threads available.
|
8
|
+
|
9
|
+
**Version 0.5.6**
|
10
|
+
|
11
|
+
Upgrade gem dependencies to fix a security vulnerability
|
12
|
+
|
13
|
+
**Version 0.5.5**
|
14
|
+
|
15
|
+
Removing old and deprecated function from community endpoint.
|
16
|
+
|
17
|
+
Refactored all `options` arguments to use double splat syntax.
|
18
|
+
|
19
|
+
Modified README.md to point to the actual documentation and include missing endpoints.
|
20
|
+
|
21
|
+
**Version 0.5.4**
|
22
|
+
|
23
|
+
Added missing legacy SC2 endpoints
|
24
|
+
|
25
|
+
See https://github.com/francis-schiavo/blizzard_api/pull/2
|
26
|
+
|
3
27
|
**Version 0.5.2**
|
4
28
|
|
5
29
|
Added new endpoints: https://us.forums.blizzard.com/en/blizzard/t/wow-shadowlands-api-update-covenenats-soulbinds-more/13385
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blizzard_api (0.
|
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.
|
11
|
+
ast (2.4.2)
|
11
12
|
dotenv (2.7.6)
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
e2mmap (0.1.0)
|
14
|
+
minitest (5.14.4)
|
15
|
+
parallel (1.20.1)
|
16
|
+
parser (3.0.1.1)
|
15
17
|
ast (~> 2.4.1)
|
16
18
|
rainbow (3.0.0)
|
17
|
-
rake (13.0.
|
18
|
-
redis (4.2.
|
19
|
-
regexp_parser (1.
|
20
|
-
rexml (3.2.
|
21
|
-
rubocop (0.
|
19
|
+
rake (13.0.3)
|
20
|
+
redis (4.2.5)
|
21
|
+
regexp_parser (2.1.1)
|
22
|
+
rexml (3.2.5)
|
23
|
+
rubocop (0.93.1)
|
22
24
|
parallel (~> 1.10)
|
23
25
|
parser (>= 2.7.1.5)
|
24
26
|
rainbow (>= 2.2.2, < 4.0)
|
25
|
-
regexp_parser (>= 1.
|
27
|
+
regexp_parser (>= 1.8)
|
26
28
|
rexml
|
27
|
-
rubocop-ast (>= 0.
|
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 (
|
31
|
-
parser (>=
|
32
|
-
ruby-progressbar (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.
|
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.
|
52
|
+
2.2.17
|
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
|
-
|
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
|
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
|
-
*
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
*
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
*
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
*
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
*
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
*
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
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
|
301
|
-
|
302
|
-
|
303
|
-
* BlizzardApi::Diablo
|
304
|
-
|
305
|
-
|
306
|
-
* BlizzardApi::Diablo
|
307
|
-
|
308
|
-
* BlizzardApi::Diablo
|
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
|
325
|
-
|
326
|
-
|
327
|
-
|
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
|
339
|
-
|
340
|
-
* BlizzardApi::Starcraft
|
341
|
-
|
342
|
-
|
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
|
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
@@ -5,14 +5,14 @@ $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.
|
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']
|
12
|
-
spec.email = ['francis
|
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://
|
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://
|
24
|
-
spec.metadata['
|
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.
|
@@ -33,6 +35,7 @@ Gem::Specification.new do |spec|
|
|
33
35
|
spec.require_paths = ['lib']
|
34
36
|
|
35
37
|
spec.add_runtime_dependency 'redis', '~> 4.1', '>= 4.1.0'
|
38
|
+
spec.add_runtime_dependency 'thwait', '~> 0.2.0'
|
36
39
|
|
37
40
|
spec.add_development_dependency 'dotenv'
|
38
41
|
spec.add_development_dependency 'minitest', '~> 5.0'
|