blizzard_api 0.3.8 → 0.3.9

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: 18b8829ee15345cbac3a2874955718a288bc75893fd8c7d282f30e3a176fd926
4
- data.tar.gz: eeba67d5fd5fbd5a14e380ffc78ae35bc28f88668ca73601572a6441f95eaee1
3
+ metadata.gz: f5d910aea832e66b20ed9e420baebbcefebe57081193f4854c550219a1f387dc
4
+ data.tar.gz: 965b558298098d263f75cc8e1089ac0a2c1168de22c5cab05bbd2a4bf0a30846
5
5
  SHA512:
6
- metadata.gz: 45e0f9eb2c89426546dc2d29a8462ee1a471e2463c9d1ac0cbd4b4e5a8066894bfed65b720fcaa176954f2548dcdd0624ae7e022ff03ac9f86acd78929e65b47
7
- data.tar.gz: f14afd42c690d863732156f588a87ae1977fcb68221e41b7289324aaa18ab21bcce84306469f2d37a9fab418db2e40b5a9eca6a32c2be8d7fadb42fcc5bf6a1b
6
+ metadata.gz: 0bf1e876ad1ad3021265b25bec50a6c3f92ab4decaf9ae8e5d94294443684c7fa2b31e57477c1a95c35e7484c76020b1811c82a49e36205fac5705fa7ff93f3c
7
+ data.tar.gz: c0a6e645caa3d90ff9db00e4724c244f1a3c99bef0284fca8e98d6224a8dffedd13d5660a7a70a94e37b7644a5c572b6cc329886e18522f84ef29d3a9dab306d
@@ -1,6 +1,11 @@
1
1
  Please view this file on the master branch, otherwise it may be outdated
2
2
 
3
+ **Version 0.3.9**
4
+
5
+ Fix D3 profile URLs.
6
+
3
7
  **Version 0.3.8**
8
+
4
9
  Added new profession endpoints.
5
10
 
6
11
  https://us.forums.blizzard.com/en/blizzard/t/world-of-warcraft-api-patch-notes-20200414/5680
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blizzard_api (0.3.7)
4
+ blizzard_api (0.3.9)
5
5
  redis (~> 4.1, >= 4.1.0)
6
6
 
7
7
  GEM
@@ -22,7 +22,7 @@ module BlizzardApi
22
22
  # @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
23
23
  def index(battletag, oauth_token, options = {})
24
24
  opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
25
- api_request "#{base_url(:community)}/data/profile/#{parse_battle_tag(battletag)}", opts
25
+ api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}", opts
26
26
  end
27
27
 
28
28
  ##
@@ -38,7 +38,7 @@ module BlizzardApi
38
38
  # @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
39
39
  def hero(battletag, oauth_token, hero_id, options = {})
40
40
  opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
41
- api_request "#{base_url(:community)}/data/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}", opts
41
+ api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}", opts
42
42
  end
43
43
 
44
44
  ##
@@ -54,7 +54,7 @@ module BlizzardApi
54
54
  # @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
55
55
  def hero_items(battletag, oauth_token, hero_id, options = {})
56
56
  opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
57
- api_request "#{base_url(:community)}/data/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}/items", opts
57
+ api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}/items", opts
58
58
  end
59
59
 
60
60
  ##
@@ -70,7 +70,7 @@ module BlizzardApi
70
70
  # @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
71
71
  def hero_follower_items(battletag, oauth_token, hero_id, options = {})
72
72
  opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
73
- api_request "#{base_url(:community)}/data/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}/follower-items", opts
73
+ api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}/follower-items", opts
74
74
  end
75
75
 
76
76
  private
@@ -2,5 +2,5 @@
2
2
 
3
3
  module BlizzardApi
4
4
  # Gem version
5
- VERSION = '0.3.8'
5
+ VERSION = '0.3.9'
6
6
  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.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Schiavo