blizzard_api 3.4.0 → 3.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/lib/blizzard_api/api_standards.rb +1 -1
- data/lib/blizzard_api/version.rb +1 -1
- data/lib/blizzard_api/wow/game_data/wow_token.rb +1 -1
- data/lib/blizzard_api/wow/profile/{profile.rb → account_profile.rb} +20 -0
- data/lib/blizzard_api/wow/profile/character_profile.rb +28 -0
- data/lib/blizzard_api/wow.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8a5178383a51b7598cc64b98159fc06b59f368602ea7735386183fb17db2f3c
|
4
|
+
data.tar.gz: e8980a8052eec717672b577070346225c6bf466692a3ea3b282a922bff4bd323
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c261788c93ed802647a809d5fffc394899b50ee33e211d86a355673fdbd429f5009819ac0ec917f788afaa39aae1030f5ae2afde042d2c57ce5f4a65ff3e1d9
|
7
|
+
data.tar.gz: f9afd208d352a2473f9bc17e76a15999f64c116efb18ed81e9e54d6eb1d7d425ac5fb54824226aaff88eca5d23471f909e5684ab6330c996873f3ed559a0f7d2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blizzard_api (3.4.
|
4
|
+
blizzard_api (3.4.3)
|
5
5
|
redis (~> 4.1, >= 4.1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,15 +9,17 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
11
|
dotenv (2.8.1)
|
12
|
-
minitest (5.
|
13
|
-
parallel (1.
|
14
|
-
parser (3.
|
12
|
+
minitest (5.20.0)
|
13
|
+
parallel (1.23.0)
|
14
|
+
parser (3.2.2.4)
|
15
15
|
ast (~> 2.4.1)
|
16
|
+
racc
|
17
|
+
racc (1.7.1)
|
16
18
|
rainbow (3.1.1)
|
17
19
|
rake (13.0.6)
|
18
|
-
redis (4.8.
|
19
|
-
regexp_parser (2.
|
20
|
-
rexml (3.2.
|
20
|
+
redis (4.8.1)
|
21
|
+
regexp_parser (2.8.2)
|
22
|
+
rexml (3.2.6)
|
21
23
|
rubocop (0.93.1)
|
22
24
|
parallel (~> 1.10)
|
23
25
|
parser (>= 2.7.1.5)
|
@@ -27,13 +29,11 @@ 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.
|
31
|
-
parser (>= 3.
|
32
|
-
ruby-progressbar (1.
|
32
|
+
rubocop-ast (1.29.0)
|
33
|
+
parser (>= 3.2.1.0)
|
34
|
+
ruby-progressbar (1.13.0)
|
33
35
|
unicode-display_width (1.8.0)
|
34
|
-
|
35
|
-
yard (0.9.28)
|
36
|
-
webrick (~> 1.7.0)
|
36
|
+
yard (0.9.34)
|
37
37
|
|
38
38
|
PLATFORMS
|
39
39
|
ruby
|
@@ -47,7 +47,7 @@ module BlizzardApi
|
|
47
47
|
|
48
48
|
return "static-#{version}#{region}" if options[:namespace].eql? :static
|
49
49
|
|
50
|
-
return "profile-#{region}" if options[:namespace].eql? :profile
|
50
|
+
return "profile-#{version}#{region}" if options[:namespace].eql? :profile
|
51
51
|
|
52
52
|
raise ArgumentError, 'Invalid namespace scope'
|
53
53
|
end
|
data/lib/blizzard_api/version.rb
CHANGED
@@ -52,6 +52,26 @@ module BlizzardApi
|
|
52
52
|
api_request "#{base_url(:user_profile)}/collections/mounts", **default_options.merge(options)
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# Returns the toy collection index for the account
|
57
|
+
#
|
58
|
+
# @!macro request_options
|
59
|
+
#
|
60
|
+
# @!macro response
|
61
|
+
def toys(**options)
|
62
|
+
api_request "#{base_url(:user_profile)}/collections/toys", **default_options.merge(options)
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Returns the heirloom collection index for the account
|
67
|
+
#
|
68
|
+
# @!macro request_options
|
69
|
+
#
|
70
|
+
# @!macro response
|
71
|
+
def heirloom(**options)
|
72
|
+
api_request "#{base_url(:user_profile)}/collections/heirloom", **default_options.merge(options)
|
73
|
+
end
|
74
|
+
|
55
75
|
##
|
56
76
|
# Returns the pet collection index for the account
|
57
77
|
#
|
@@ -110,6 +110,34 @@ module BlizzardApi
|
|
110
110
|
character_request realm, character, 'collections/mounts', **options
|
111
111
|
end
|
112
112
|
|
113
|
+
##
|
114
|
+
# Return a character's toy collection
|
115
|
+
#
|
116
|
+
# @see https://develop.battle.net/documentation/api-reference/world-of-warcraft-profile-api
|
117
|
+
#
|
118
|
+
# @param realm [String] The character realm's slug
|
119
|
+
# @param character [String] The character name
|
120
|
+
# @!macro request_options
|
121
|
+
#
|
122
|
+
# @!macro response
|
123
|
+
def toys(realm, character, **options)
|
124
|
+
character_request realm, character, 'collections/toys', **options
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# Return a character's heirloom collection
|
129
|
+
#
|
130
|
+
# @see https://develop.battle.net/documentation/api-reference/world-of-warcraft-profile-api
|
131
|
+
#
|
132
|
+
# @param realm [String] The character realm's slug
|
133
|
+
# @param character [String] The character name
|
134
|
+
# @!macro request_options
|
135
|
+
#
|
136
|
+
# @!macro response
|
137
|
+
def heirlooms(realm, character, **options)
|
138
|
+
character_request realm, character, 'collections/heirlooms', **options
|
139
|
+
end
|
140
|
+
|
113
141
|
##
|
114
142
|
# Return a character's encounter summary
|
115
143
|
#
|
data/lib/blizzard_api/wow.rb
CHANGED
@@ -305,7 +305,7 @@ module BlizzardApi
|
|
305
305
|
BlizzardApi::Wow::WowToken.new(**options)
|
306
306
|
end
|
307
307
|
|
308
|
-
require_relative 'wow/profile/
|
308
|
+
require_relative 'wow/profile/account_profile'
|
309
309
|
require_relative 'wow/profile/guild'
|
310
310
|
require_relative 'wow/profile/character_profile'
|
311
311
|
|
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: 3.4.
|
4
|
+
version: 3.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Schiavo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -199,9 +199,9 @@ files:
|
|
199
199
|
- lib/blizzard_api/wow/game_data/title.rb
|
200
200
|
- lib/blizzard_api/wow/game_data/toy.rb
|
201
201
|
- lib/blizzard_api/wow/game_data/wow_token.rb
|
202
|
+
- lib/blizzard_api/wow/profile/account_profile.rb
|
202
203
|
- lib/blizzard_api/wow/profile/character_profile.rb
|
203
204
|
- lib/blizzard_api/wow/profile/guild.rb
|
204
|
-
- lib/blizzard_api/wow/profile/profile.rb
|
205
205
|
- lib/blizzard_api/wow/request.rb
|
206
206
|
- lib/blizzard_api/wow/search/search_composer.rb
|
207
207
|
- lib/blizzard_api/wow/search/search_request.rb
|
@@ -215,7 +215,7 @@ metadata:
|
|
215
215
|
bug_tracker_uri: https://github.com/francis-schiavo/blizzard_api/issues
|
216
216
|
changelog_uri: https://github.com/francis-schiavo/blizzard_api/blob/master/CHANGELOG.md
|
217
217
|
documentation_uri: https://rubydoc.info/gems/blizzard_api
|
218
|
-
post_install_message:
|
218
|
+
post_install_message:
|
219
219
|
rdoc_options: []
|
220
220
|
require_paths:
|
221
221
|
- lib
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
233
|
rubygems_version: 3.3.7
|
234
|
-
signing_key:
|
234
|
+
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Unofficial Ruby client for Blizzard Entertainment API
|
237
237
|
test_files: []
|