blizzard_api 0.3.3 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5c188bb1adcbec831c3a8873ab78c3eca668047fb2dd299211c6b2d07d6cea3
4
- data.tar.gz: 125c0e5fcc66e7650d3b7c9f888d89944310f06744ef91da3e01cbd09fce9a03
3
+ metadata.gz: 2f04ee3226793f53388335a8ab735f6b3bc682babd278a4ff17ddfd061eda809
4
+ data.tar.gz: 8105bf3473bcef5a5faf3bf185f5f2a441a3fbe517c1c9d9353cd38ea573de19
5
5
  SHA512:
6
- metadata.gz: 1957b2cec5bd8be947f733945ea95732e07d8e4c9e6d97efec979f9998c09eb997322c33b64f6fd0a9b30ba1e84ce68419886b9f28c03fbcdee4373af05eb092
7
- data.tar.gz: 4f34f1c74ffcab76aa80e8bf63e537c093c7a457ce5ca9ea0749b9e4665163ff2c3da50b2fb7b48ed87511f4fe2e00661cddc6152d85515c7d0f38e1b7a0465b
6
+ metadata.gz: 307437b03cfd6e05dcdeb709450cbcfc3262e9b96ec334a6ee83f0e5617b9b4c518267b39da28d4fd37581a0d22af555054a0936d20e991473c8ec2b31d4dd43
7
+ data.tar.gz: 52ef45f2f7b93ef17a848ffc8b45559d3075d050fcd99de943cf3f3b6b0fe19157ffc33d77112abac3037c635258c55c474c72e57295490e6cbaad1a8541f7c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  Please view this file on the master branch, otherwise it may be outdated
2
2
 
3
+ **Version 0.3.4**
4
+
5
+ Fixed account endpoints
6
+
3
7
  **Version 0.3.3**
4
8
 
5
9
  Added character profile encounter endpoints:
@@ -2,5 +2,5 @@
2
2
 
3
3
  module BlizzardApi
4
4
  # Gem version
5
- VERSION = '0.3.3'
5
+ VERSION = '0.3.4'
6
6
  end
@@ -258,7 +258,7 @@ module BlizzardApi
258
258
  #
259
259
  # @return {Profile}
260
260
  def self.profile(token)
261
- BlizzardApi::Wow::Profile.new(token)
261
+ BlizzardApi::Wow::AccountProfile.new(token)
262
262
  end
263
263
 
264
264
  ##
@@ -7,7 +7,8 @@ module BlizzardApi
7
7
  class AccountProfile < Request
8
8
  ##
9
9
  # @param token [String] A token obtained using the authorization_code flow
10
- def initialize(token)
10
+ def initialize(token, region = nil)
11
+ super region
11
12
  @token = token
12
13
  end
13
14
 
@@ -17,8 +18,8 @@ module BlizzardApi
17
18
  # @!macro request_options
18
19
  #
19
20
  # @!macro response
20
- def get(_options = {})
21
- api_request base_url(:user_profile).to_s
21
+ def get(options = {})
22
+ api_request base_url(:user_profile).to_s, default_options.merge(options)
22
23
  end
23
24
 
24
25
  ##
@@ -67,8 +68,9 @@ module BlizzardApi
67
68
  { ttl: CACHE_HOUR, namespace: :profile }
68
69
  end
69
70
 
70
- def api_request(_uri, query_string = nil)
71
- query_string[:access_token] = @token
71
+ def api_request(_uri, query_string = {})
72
+ query_string.merge! access_token: @token
73
+ super
72
74
  end
73
75
  end
74
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blizzard_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Schiavo