blizzard_api 0.5.1 → 0.5.6
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.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +21 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +16 -16
- data/README.md +58 -218
- data/blizzard_api.gemspec +6 -4
- data/lib/blizzard_api/diablo/community/act.rb +2 -2
- data/lib/blizzard_api/diablo/community/artisan.rb +2 -2
- data/lib/blizzard_api/diablo/community/character.rb +2 -2
- data/lib/blizzard_api/diablo/community/follower.rb +1 -1
- data/lib/blizzard_api/diablo/community/item.rb +1 -1
- data/lib/blizzard_api/diablo/community/item_type.rb +2 -2
- data/lib/blizzard_api/diablo/community/profile.rb +4 -4
- data/lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb +3 -3
- data/lib/blizzard_api/hearthstone/game_data/back.rb +1 -1
- data/lib/blizzard_api/hearthstone/game_data/card.rb +2 -2
- data/lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb +2 -2
- data/lib/blizzard_api/request.rb +3 -3
- 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 +2 -2
- data/lib/blizzard_api/starcraft/community/legacy.rb +88 -0
- data/lib/blizzard_api/starcraft/community/profile.rb +5 -5
- data/lib/blizzard_api/starcraft/game_data/league.rb +1 -1
- data/lib/blizzard_api/version.rb +1 -1
- data/lib/blizzard_api/wow.rb +16 -7
- data/lib/blizzard_api/wow/game_data/achievement.rb +3 -3
- data/lib/blizzard_api/wow/game_data/auction.rb +1 -1
- data/lib/blizzard_api/wow/game_data/azerite_essence.rb +1 -1
- data/lib/blizzard_api/wow/game_data/covenant.rb +79 -0
- data/lib/blizzard_api/wow/game_data/creature.rb +6 -6
- data/lib/blizzard_api/wow/game_data/generic_data_endpoint.rb +3 -3
- data/lib/blizzard_api/wow/game_data/guild_crest.rb +2 -2
- data/lib/blizzard_api/wow/game_data/item.rb +6 -6
- data/lib/blizzard_api/wow/game_data/journal.rb +8 -8
- data/lib/blizzard_api/wow/game_data/modified_crafting.rb +4 -4
- data/lib/blizzard_api/wow/game_data/mythic_keystone.rb +6 -6
- data/lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb +1 -1
- data/lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb +2 -2
- data/lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb +1 -1
- data/lib/blizzard_api/wow/game_data/pet.rb +4 -4
- data/lib/blizzard_api/wow/game_data/playable_class.rb +4 -4
- data/lib/blizzard_api/wow/game_data/playable_specialization.rb +2 -2
- data/lib/blizzard_api/wow/game_data/profession.rb +4 -4
- data/lib/blizzard_api/wow/game_data/pvp_season.rb +3 -3
- data/lib/blizzard_api/wow/game_data/pvp_tier.rb +1 -1
- data/lib/blizzard_api/wow/game_data/quest.rb +6 -6
- data/lib/blizzard_api/wow/game_data/reputation.rb +4 -4
- data/lib/blizzard_api/wow/game_data/spell.rb +1 -1
- data/lib/blizzard_api/wow/game_data/talent.rb +2 -2
- data/lib/blizzard_api/wow/game_data/tech_talent.rb +57 -0
- data/lib/blizzard_api/wow/game_data/wow_token.rb +1 -1
- data/lib/blizzard_api/wow/profile/character_profile.rb +63 -49
- data/lib/blizzard_api/wow/profile/guild.rb +8 -8
- data/lib/blizzard_api/wow/profile/profile.rb +5 -5
- data/lib/blizzard_api/wow/search/search_request.rb +1 -1
- metadata +13 -8
- 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: b285d4489642a601b88964d4b1a150edde7e95fef456be3bf2ea03fa0bc2c7e9
|
4
|
+
data.tar.gz: 8856431d0831292b61e54b7a558270bcb8c3288153490a20268057a00a91a505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98257842acc25c914dc2f1b3237b52ae52c6d197906c9c42b3a4ddca3fd54a25718bf61a15ed97155c330c9cad1ef0b2938dc266e4537da32d7e880b97b230a8
|
7
|
+
data.tar.gz: a6f85d169c53bf0a9e671b07b73fbd21333bc1eb3457d4be9c5e47fae57be6a99083f575f91c112ca1dea8c89d9a1c7e073f8f7b54569421cf5a5de5e0faf349
|
@@ -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.6**
|
4
|
+
|
5
|
+
Upgrade gem dependencies to fix a security vulnerability
|
6
|
+
|
7
|
+
**Version 0.5.5**
|
8
|
+
|
9
|
+
Removing old and deprecated function from community endpoint.
|
10
|
+
|
11
|
+
Refactored all `options` arguments to use double splat syntax.
|
12
|
+
|
13
|
+
Modified README.md to point to the actual documentation and include missing endpoints.
|
14
|
+
|
15
|
+
**Version 0.5.4**
|
16
|
+
|
17
|
+
Added missing legacy SC2 endpoints
|
18
|
+
|
19
|
+
See https://github.com/francis-schiavo/blizzard_api/pull/2
|
20
|
+
|
21
|
+
**Version 0.5.2**
|
22
|
+
|
23
|
+
Added new endpoints: https://us.forums.blizzard.com/en/blizzard/t/wow-shadowlands-api-update-covenenats-soulbinds-more/13385
|
24
|
+
|
3
25
|
**Version 0.5.1**
|
4
26
|
|
5
27
|
Added new endpoints: https://us.forums.blizzard.com/en/blizzard/t/wow-game-data-api-modified-crafting-support/12727
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blizzard_api (0.5.
|
4
|
+
blizzard_api (0.5.6)
|
5
5
|
redis (~> 4.1, >= 4.1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.4.
|
10
|
+
ast (2.4.2)
|
11
11
|
dotenv (2.7.6)
|
12
|
-
minitest (5.14.
|
13
|
-
parallel (1.
|
14
|
-
parser (
|
12
|
+
minitest (5.14.4)
|
13
|
+
parallel (1.20.1)
|
14
|
+
parser (3.0.1.1)
|
15
15
|
ast (~> 2.4.1)
|
16
16
|
rainbow (3.0.0)
|
17
|
-
rake (13.0.
|
18
|
-
redis (4.2.
|
19
|
-
regexp_parser (1.
|
20
|
-
rexml (3.2.
|
21
|
-
rubocop (0.
|
17
|
+
rake (13.0.3)
|
18
|
+
redis (4.2.5)
|
19
|
+
regexp_parser (2.1.1)
|
20
|
+
rexml (3.2.5)
|
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.
|
25
|
+
regexp_parser (>= 1.8)
|
26
26
|
rexml
|
27
|
-
rubocop-ast (>= 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 (
|
31
|
-
parser (>=
|
32
|
-
ruby-progressbar (1.
|
30
|
+
rubocop-ast (1.5.0)
|
31
|
+
parser (>= 3.0.1.1)
|
32
|
+
ruby-progressbar (1.11.0)
|
33
33
|
unicode-display_width (1.7.0)
|
34
|
-
yard (0.9.
|
34
|
+
yard (0.9.26)
|
35
35
|
|
36
36
|
PLATFORMS
|
37
37
|
ruby
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
# Blizzard Api
|
2
2
|
|
3
|
-
[](https://gitlab.com/francisschiavo/blizzard_api/commits/master)
|
4
3
|
[](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
@@ -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
|
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.
|