blizzard_api 0.5.2 → 0.6.0
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 +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
@@ -18,8 +18,8 @@ module BlizzardApi
|
|
18
18
|
# @!macro request_options
|
19
19
|
#
|
20
20
|
# @!macro response
|
21
|
-
def get(options
|
22
|
-
api_request base_url(:user_profile).to_s, default_options.merge(options)
|
21
|
+
def get(**options)
|
22
|
+
api_request base_url(:user_profile).to_s, **default_options.merge(options)
|
23
23
|
end
|
24
24
|
|
25
25
|
##
|
@@ -28,8 +28,8 @@ module BlizzardApi
|
|
28
28
|
# @!macro request_options
|
29
29
|
#
|
30
30
|
# @!macro response
|
31
|
-
def protected_character(realm_id, character_id, options
|
32
|
-
api_request "#{base_url(:user_profile)}/protected-character/#{realm_id}-#{character_id}", default_options.merge(options)
|
31
|
+
def protected_character(realm_id, character_id, **options)
|
32
|
+
api_request "#{base_url(:user_profile)}/protected-character/#{realm_id}-#{character_id}", **default_options.merge(options)
|
33
33
|
end
|
34
34
|
|
35
35
|
##
|
@@ -38,8 +38,8 @@ module BlizzardApi
|
|
38
38
|
# @!macro request_options
|
39
39
|
#
|
40
40
|
# @!macro response
|
41
|
-
def collection(options
|
42
|
-
api_request "#{base_url(:user_profile)}/collections", default_options.merge(options)
|
41
|
+
def collection(**options)
|
42
|
+
api_request "#{base_url(:user_profile)}/collections", **default_options.merge(options)
|
43
43
|
end
|
44
44
|
|
45
45
|
##
|
@@ -48,8 +48,8 @@ module BlizzardApi
|
|
48
48
|
# @!macro request_options
|
49
49
|
#
|
50
50
|
# @!macro response
|
51
|
-
def mounts(options
|
52
|
-
api_request "#{base_url(:user_profile)}/collections/mounts", default_options.merge(options)
|
51
|
+
def mounts(**options)
|
52
|
+
api_request "#{base_url(:user_profile)}/collections/mounts", **default_options.merge(options)
|
53
53
|
end
|
54
54
|
|
55
55
|
##
|
@@ -58,8 +58,8 @@ module BlizzardApi
|
|
58
58
|
# @!macro request_options
|
59
59
|
#
|
60
60
|
# @!macro response
|
61
|
-
def pets(options
|
62
|
-
api_request "#{base_url(:user_profile)}/collections/pets", default_options.merge(options)
|
61
|
+
def pets(**options)
|
62
|
+
api_request "#{base_url(:user_profile)}/collections/pets", **default_options.merge(options)
|
63
63
|
end
|
64
64
|
|
65
65
|
protected
|
@@ -13,11 +13,11 @@ module BlizzardApi
|
|
13
13
|
#
|
14
14
|
# @!macro request_options
|
15
15
|
# @!macro response
|
16
|
-
def search(page = 1, page_size = 100, options
|
16
|
+
def search(page = 1, page_size = 100, **options)
|
17
17
|
search_options = SearchComposer.new(page, page_size)
|
18
18
|
yield search_options if block_given?
|
19
19
|
|
20
|
-
api_request "#{endpoint_uri(nil, :search)}?#{search_options.to_search_query}", default_options.merge(options)
|
20
|
+
api_request "#{endpoint_uri(nil, :search)}?#{search_options.to_search_query}", **default_options.merge(options)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blizzard_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Schiavo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -30,6 +30,20 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 4.1.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: thwait
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.2.0
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.2.0
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
48
|
name: dotenv
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,13 +116,13 @@ dependencies:
|
|
102
116
|
version: '0'
|
103
117
|
description: This is a simple interface to obtain data from Blizzard API
|
104
118
|
email:
|
105
|
-
- francis
|
119
|
+
- francis@schiavo.dev
|
106
120
|
executables: []
|
107
121
|
extensions: []
|
108
122
|
extra_rdoc_files: []
|
109
123
|
files:
|
124
|
+
- ".github/workflows/ruby.yml"
|
110
125
|
- ".gitignore"
|
111
|
-
- ".gitlab-ci.yml"
|
112
126
|
- ".rubocop.yml"
|
113
127
|
- ".rubocop_todo.yml"
|
114
128
|
- CHANGELOG.md
|
@@ -146,6 +160,7 @@ files:
|
|
146
160
|
- lib/blizzard_api/starcraft.rb
|
147
161
|
- lib/blizzard_api/starcraft/community/account.rb
|
148
162
|
- lib/blizzard_api/starcraft/community/ladder.rb
|
163
|
+
- lib/blizzard_api/starcraft/community/legacy.rb
|
149
164
|
- lib/blizzard_api/starcraft/community/profile.rb
|
150
165
|
- lib/blizzard_api/starcraft/game_data/league.rb
|
151
166
|
- lib/blizzard_api/starcraft/request.rb
|
@@ -192,13 +207,15 @@ files:
|
|
192
207
|
- lib/blizzard_api/wow/search/search_composer.rb
|
193
208
|
- lib/blizzard_api/wow/search/search_request.rb
|
194
209
|
- lib/blizzard_api/wow/slug.rb
|
195
|
-
homepage: https://
|
210
|
+
homepage: https://github.com/francis-schiavo/blizzard_api
|
196
211
|
licenses:
|
197
212
|
- MIT
|
198
213
|
metadata:
|
199
|
-
homepage_uri: https://
|
200
|
-
source_code_uri: https://
|
201
|
-
|
214
|
+
homepage_uri: https://github.com/francis-schiavo/blizzard_api
|
215
|
+
source_code_uri: https://github.com/francis-schiavo/blizzard_api
|
216
|
+
bug_tracker_uri: https://github.com/francis-schiavo/blizzard_api/issues
|
217
|
+
changelog_uri: https://github.com/francis-schiavo/blizzard_api/blob/master/CHANGELOG.md
|
218
|
+
documentation_uri: https://rubydoc.info/gems/blizzard_api
|
202
219
|
post_install_message:
|
203
220
|
rdoc_options: []
|
204
221
|
require_paths:
|
@@ -207,14 +224,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
224
|
requirements:
|
208
225
|
- - ">="
|
209
226
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
227
|
+
version: 2.7.2
|
211
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
229
|
requirements:
|
213
230
|
- - ">="
|
214
231
|
- !ruby/object:Gem::Version
|
215
232
|
version: '0'
|
216
233
|
requirements: []
|
217
|
-
rubygems_version: 3.1.
|
234
|
+
rubygems_version: 3.1.4
|
218
235
|
signing_key:
|
219
236
|
specification_version: 4
|
220
237
|
summary: Unofficial Ruby client for Blizzard Entertainment API
|