blizzard_api 4.0.0 → 4.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79f824ffc1cb26dddb1fc23ae4c029930feaf2c16f2d9bdbed6bbd20b815e47e
4
- data.tar.gz: 92271ac4aed4dd441dc9b43f74afae3794035b6fde44dd76651e9f4596868978
3
+ metadata.gz: e7001dfa4c7c5712eaf8b8e4cf4785006d000150148e6ba3757095b1ebac9a23
4
+ data.tar.gz: 300638e6cd003a6af590e0a9eeba272f2e2d3094417826ac494ec6fbef2ef1e0
5
5
  SHA512:
6
- metadata.gz: 564512eb1d3bb2a0157b33783cf277d3f1f1ec30757972bd5c2a97485567b0f9287ad59f49f9fdc2f3ad042e342e2852d3a811620328853a10245d36a73a112c
7
- data.tar.gz: dc87e72420e7be2f16861fb6b5ead8355fd66e7ae52f0151997440d838ca011d707ee2b7abfa2ba46bff8dd7d1d2760611fa6c3914ad014216323072719a9a1b
6
+ metadata.gz: dee9b6a3b3de00e4bf077245393bf7bf9308e17806c4237ad7a9088ebcd560db229dff31b60ac31424aad1aaa6dca6a64ec865e9079c0c90cbe181f89cb61db7
7
+ data.tar.gz: 4c635e72548d627edcf101cd06451476ddd4e8fd988ce4685dbf8668e1d8c9db34801783236bdce4c3172f0e31acfe2710c550074f65d156367980100090fd19
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  Please view this file on the master branch, otherwise it may be outdated
2
2
 
3
+ **Version 4.1.0**
4
+
5
+ Removed the discontinued Overwatch League API
6
+
7
+ Updated all dependencies to latest version
8
+
9
+ Note: While this introduces a breaking change, I did not bump version to 5.x.x
10
+ since the Overwatch League API was already broken.
11
+
3
12
  **Version 4.0.0**
4
13
 
5
14
  **Warning**: This version introduces breaking changes to the way the gem handles the Redis connection.
data/Gemfile.lock CHANGED
@@ -1,25 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blizzard_api (4.0.0)
4
+ blizzard_api (4.1.0)
5
5
  redis (~> 4.1, >= 4.1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
- dotenv (3.1.0)
12
- minitest (5.22.3)
13
- parallel (1.24.0)
14
- parser (3.3.1.0)
11
+ dotenv (3.1.2)
12
+ minitest (5.24.1)
13
+ parallel (1.25.1)
14
+ parser (3.3.4.0)
15
15
  ast (~> 2.4.1)
16
16
  racc
17
- racc (1.7.3)
17
+ racc (1.8.0)
18
18
  rainbow (3.1.1)
19
19
  rake (13.2.1)
20
20
  redis (4.8.1)
21
- regexp_parser (2.9.0)
22
- rexml (3.2.6)
21
+ regexp_parser (2.9.2)
22
+ rexml (3.3.2)
23
+ strscan
23
24
  rubocop (0.93.1)
24
25
  parallel (~> 1.10)
25
26
  parser (>= 2.7.1.5)
@@ -29,11 +30,12 @@ GEM
29
30
  rubocop-ast (>= 0.6.0)
30
31
  ruby-progressbar (~> 1.7)
31
32
  unicode-display_width (>= 1.4.0, < 2.0)
32
- rubocop-ast (1.31.2)
33
- parser (>= 3.3.0.4)
33
+ rubocop-ast (1.31.3)
34
+ parser (>= 3.3.1.0)
34
35
  rubocop-minitest (0.27.0)
35
36
  rubocop (>= 0.90, < 2.0)
36
37
  ruby-progressbar (1.13.0)
38
+ strscan (3.1.0)
37
39
  unicode-display_width (1.8.0)
38
40
  yard (0.9.36)
39
41
 
@@ -50,4 +52,4 @@ DEPENDENCIES
50
52
  yard (~> 0.9.36)
51
53
 
52
54
  BUNDLED WITH
53
- 2.5.4
55
+ 2.4.22
@@ -2,5 +2,5 @@
2
2
 
3
3
  module BlizzardApi
4
4
  # Gem version
5
- VERSION = '4.0.0'
5
+ VERSION = '4.1.0'
6
6
  end
data/lib/blizzard_api.rb CHANGED
@@ -11,7 +11,6 @@ require_relative 'blizzard_api/wow'
11
11
  require_relative 'blizzard_api/diablo'
12
12
  require_relative 'blizzard_api/hearthstone'
13
13
  require_relative 'blizzard_api/starcraft'
14
- require_relative 'blizzard_api/overwatch_league'
15
14
 
16
15
  # Blizzard namespace
17
16
  module BlizzardApi
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: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Schiavo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -154,13 +154,6 @@ files:
154
154
  - lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb
155
155
  - lib/blizzard_api/hearthstone/game_data/metadata.rb
156
156
  - lib/blizzard_api/hearthstone/request.rb
157
- - lib/blizzard_api/overwatch_league.rb
158
- - lib/blizzard_api/overwatch_league/community/matches.rb
159
- - lib/blizzard_api/overwatch_league/community/players.rb
160
- - lib/blizzard_api/overwatch_league/community/segments.rb
161
- - lib/blizzard_api/overwatch_league/community/summary.rb
162
- - lib/blizzard_api/overwatch_league/community/teams.rb
163
- - lib/blizzard_api/overwatch_league/request.rb
164
157
  - lib/blizzard_api/request.rb
165
158
  - lib/blizzard_api/starcraft.rb
166
159
  - lib/blizzard_api/starcraft/community/account.rb
@@ -239,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
232
  - !ruby/object:Gem::Version
240
233
  version: '0'
241
234
  requirements: []
242
- rubygems_version: 3.5.3
235
+ rubygems_version: 3.4.10
243
236
  signing_key:
244
237
  specification_version: 4
245
238
  summary: Unofficial Ruby client for Blizzard Entertainment API
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- module OverwatchLeague
5
- ##
6
- # This class allows access to OWL2 match data
7
- #
8
- # @see https://develop.battle.net/documentation/owl/community-apis
9
- #
10
- # You can get an instance of this class using the default region as follows:
11
- # api_instance = BlizzardApi::OverwatchLeague.matches
12
- class Matches < OverwatchLeague::Request
13
- ##
14
- # Returns match information
15
- #
16
- # @!macro request_options
17
- def get(match_id, **options)
18
- api_request "#{base_url(:community)}/v1/matches/#{match_id}", **{ ttl: CACHE_DAY }.merge(options)
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- module OverwatchLeague
5
- ##
6
- # This class allows access to OWL2 player data
7
- #
8
- # @see https://develop.battle.net/documentation/owl/community-apis
9
- #
10
- # You can get an instance of this class using the default region as follows:
11
- # api_instance = BlizzardApi::OverwatchLeague.players
12
- class Players < OverwatchLeague::Request
13
- ##
14
- # Returns player information
15
- #
16
- # @!macro request_options
17
- def get(player_id, **options)
18
- api_request "#{base_url(:community)}/v1/players/#{player_id}", **{ ttl: CACHE_DAY }.merge(options)
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- module OverwatchLeague
5
- ##
6
- # This class allows access to OWL2 segment data
7
- #
8
- # @see https://develop.battle.net/documentation/owl/community-apis
9
- #
10
- # You can get an instance of this class using the default region as follows:
11
- # api_instance = BlizzardApi::OverwatchLeague.segments
12
- class Segments < OverwatchLeague::Request
13
- ##
14
- # Returns segment information
15
- #
16
- # @!macro request_options
17
- def get(segment_id, **options)
18
- api_request "#{base_url(:community)}/v1/segments/#{segment_id}", **{ ttl: CACHE_DAY }.merge(options)
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- module OverwatchLeague
5
- ##
6
- # This class allows access to OWL2 summary data
7
- #
8
- # @see https://develop.battle.net/documentation/owl/community-apis
9
- #
10
- # You can get an instance of this class using the default region as follows:
11
- # api_instance = BlizzardApi::OverwatchLeague.summary
12
- class Summary < OverwatchLeague::Request
13
- ##
14
- # Returns summary information
15
- #
16
- # @!macro request_options
17
- def get(**options)
18
- api_request "#{base_url(:community)}/v1/owl2", **{ ttl: CACHE_DAY }.merge(options)
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- module OverwatchLeague
5
- ##
6
- # This class allows access to OWL2 team data
7
- #
8
- # @see https://develop.battle.net/documentation/owl/community-apis
9
- #
10
- # You can get an instance of this class using the default region as follows:
11
- # api_instance = BlizzardApi::OverwatchLeague.teams
12
- class Teams < OverwatchLeague::Request
13
- ##
14
- # Returns team information
15
- #
16
- # @!macro request_options
17
- def get(team_id, **options)
18
- api_request "#{base_url(:community)}/v1/teams/#{team_id}", **{ ttl: CACHE_DAY }.merge(options)
19
- end
20
- end
21
- end
22
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- module OverwatchLeague
5
- # Overwatch League requests
6
- class Request < BlizzardApi::Request
7
- ##
8
- # @!macro init_options
9
- def initialize(**options)
10
- super(**options)
11
- @game = 'owl'
12
- end
13
- end
14
- end
15
- end
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BlizzardApi
4
- # Overwatch League related classes
5
- module OverwatchLeague
6
- require_relative 'overwatch_league/request'
7
-
8
- # Overwatch League community api
9
- require_relative 'overwatch_league/community/summary'
10
- require_relative 'overwatch_league/community/players'
11
- require_relative 'overwatch_league/community/matches'
12
- require_relative 'overwatch_league/community/segments'
13
- require_relative 'overwatch_league/community/teams'
14
-
15
- ##
16
- # @!macro init_options
17
- # @return {Summary}
18
- def self.summary(**options)
19
- BlizzardApi::OverwatchLeague::Summary.new(**options)
20
- end
21
-
22
- ##
23
- # @!macro init_options
24
- # @return {Players}
25
- def self.players(**options)
26
- BlizzardApi::OverwatchLeague::Players.new(**options)
27
- end
28
-
29
- ##
30
- # @!macro init_options
31
- # @return {Matches}
32
- def self.matches(**options)
33
- BlizzardApi::OverwatchLeague::Matches.new(**options)
34
- end
35
-
36
- ##
37
- # @!macro init_options
38
- # @return {Segments}
39
- def self.segments(**options)
40
- BlizzardApi::OverwatchLeague::Segments.new(**options)
41
- end
42
-
43
- ##
44
- # @!macro init_options
45
- # @return {Teams}
46
- def self.teams(**options)
47
- BlizzardApi::OverwatchLeague::Teams.new(**options)
48
- end
49
- end
50
- end