sportradar-api 0.20.0 → 0.20.2

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: efdb1c2b6c7dfaab41b0f12a3ce3f36ba5c887a9165f4e9f55cf93da6e06ffc0
4
- data.tar.gz: fae52f1e64953e51d8329dcb8273de67cd83e156fe8f0c3b33200abe37c1fd34
3
+ metadata.gz: 842d41517346b22c3cb540f9132a514dff1baa8c256d04f013df6e560faf06f6
4
+ data.tar.gz: b815a45030f676ba70be4fce250b5e0a08aaa37c2e3f44b3324d9faeaef709df
5
5
  SHA512:
6
- metadata.gz: cbb4cdd8825d33afa1b392641884a3cbd954769e257a31142ed5ea22a6c3b6ec495bd9472ff7af0317693cdd9e5f168187de3cb36fa8ffc461ad7f47011c7510
7
- data.tar.gz: d731a41a12e03aa9f9e3353a896fefaa93c5719bba6a9029439ffa2f17e10cea20e5e7aa8383e136c549d215095cec5d03daf6edb6720b16b79610627064454d
6
+ metadata.gz: f5e73668cb8586e14ef06ee7b4844f1e134dead13d4258f76c3ed911c8f562ca6b05c809a91633fde56b85a4b4d3d1752ed13e354ec8564014d13b12d9c0a585
7
+ data.tar.gz: 0d56e21705c97697741d8ca42d1c58b0310b720b44710d11bc5f3639db638c018e790471c52cbdeab77601f59b27a36aee93bdd5fc2becd4663ed3234c68a146
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.20.0)
4
+ sportradar-api (0.20.2)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -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
@@ -29,9 +29,9 @@ module Sportradar
29
29
 
30
30
  def get_player_props
31
31
  prop_data = fetch_player_props.fetch('competition_sport_events_players_props', [])
32
- if prop_data.size == 10
32
+ if prop_data.size > 0
33
33
  new_data = prop_data
34
- while new_data.size == 10
34
+ while new_data.size > 0
35
35
  new_data = fetch_player_props(start: prop_data.size).fetch('competition_sport_events_players_props', [])
36
36
  prop_data += new_data
37
37
  end
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.20.0"
3
+ VERSION = "0.20.2"
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
4
+ version: 0.20.2
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-28 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler