sportradar-api 0.20.0.pre2 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a4d74bbc98d4c89505d04f448536bc7ec81fff059ca2a2d4099bb52aec5be0a
4
- data.tar.gz: 8c4f9b76a6f8abc00a6ec0b674c8b09a34cb91a16151622998a7378b74c7e557
3
+ metadata.gz: feff44514bfe6c281e70d1653b6731e8aac164aba41c8a553c91c2423e63f431
4
+ data.tar.gz: 194fc5979bcb4854dca7e84635f6573a6cc70e0deff8203cf5fe5e8ad04a762e
5
5
  SHA512:
6
- metadata.gz: 19e8efe729085c89fe2845e8b3758b76589c947d267917bf1291d390ce2818c60b37a4d66e3ff327848b66ec74ab88c984f26570faf72a79766b7f4b9fce1847
7
- data.tar.gz: 5b46459f020f0321e1b5af4ba50c31722a7d35d751a833d12af1216b5271febf7374268bfc598ad2820cb12233586eec16d7b35506395232afa9a4254643e573
6
+ metadata.gz: dd72783790004da3c337019dbcd0756e0d0d39701680f7f2d7d9970af3500825c6cd8dbe1bb3185674872b2826018d31bc85c3b9444a58c7e53ace5c70f48975
7
+ data.tar.gz: 323013f8c74cd2dcaa166fe6d76e1c1989ed8547dcf74ea2a71db6e1d41b51e4b8177639e5797b46e4e88cf87cb16989da598e2e14871b0419ba29441ca092fd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.20.0.pre2)
4
+ sportradar-api (0.20.1)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -21,6 +21,9 @@ module Sportradar
21
21
  end
22
22
 
23
23
  def update(data, **opts)
24
+ if data["summaries"]
25
+ update(data["summaries"][0])
26
+ end
24
27
  if data["sport_event"]
25
28
  update(data["sport_event"])
26
29
  end
@@ -93,7 +96,7 @@ module Sportradar
93
96
  end
94
97
 
95
98
  def api
96
- @api ||= Sportradar::Api::Mma.new
99
+ @api ||= Sportradar::Api::Mma::Api.new
97
100
  end
98
101
 
99
102
 
@@ -65,7 +65,7 @@ module Sportradar
65
65
  self
66
66
  end
67
67
  def api
68
- @api ||= Sportradar::Api::Mma.new
68
+ @api ||= Sportradar::Api::Mma::Api.new
69
69
  end
70
70
 
71
71
 
@@ -4,7 +4,7 @@ module Sportradar
4
4
  class Api < Request
5
5
  attr_accessor :access_level, :language_code, :error, :base_path
6
6
 
7
- def initialize(base_path: base_path, access_level: default_access_level, language_code: 'en', **args)
7
+ def initialize(base_path:, access_level: default_access_level, language_code: 'en', **args)
8
8
  @language_code = language_code
9
9
  @access_level = access_level
10
10
  @base_path = base_path
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.20.0.pre2"
3
+ VERSION = "0.20.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportradar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.pre2
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-23 00:00:00.000000000 Z
11
+ date: 2022-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -459,9 +459,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
459
459
  version: '0'
460
460
  required_rubygems_version: !ruby/object:Gem::Requirement
461
461
  requirements:
462
- - - ">"
462
+ - - ">="
463
463
  - !ruby/object:Gem::Version
464
- version: 1.3.1
464
+ version: '0'
465
465
  requirements: []
466
466
  rubygems_version: 3.0.3.1
467
467
  signing_key: