sportradar-api 0.9.47 → 0.9.48

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
  SHA1:
3
- metadata.gz: d62c7cc0de81acb70e54241ed1de9b587ff92984
4
- data.tar.gz: '079bae6de04c0f5083966ead919bbbace0a161ac'
3
+ metadata.gz: c0713bc6ab30d4ffc103cb06b09329919f676a80
4
+ data.tar.gz: 2d9493cb41ea23ebd1d539f95ac8b6fdb778ef11
5
5
  SHA512:
6
- metadata.gz: fdd4143bcb730c78b9b5f2a53de43a191a15071ceefdf768e469c864954846c9149b2b0828a583ad9935987b209e635603283e332082d4d46c11fca987250877
7
- data.tar.gz: c4909827565098aaf9a3f003315c017ebc9492018884e36f7f8edfb1c6b6de078f5b4fb1e098a0fbfbba05b31e7b062b85ef6ab0d0b0099fd016cc56baf20520
6
+ metadata.gz: 476139aa72a2623c4560cc0d401a3342e6843385a514bd0f0c1741456b637074b88742a7ed438797b574ec9928c220f8b227b0003d3546d53e8f6d3b44704f9a
7
+ data.tar.gz: f1ce3ba45937a97a84ae696fd907921aad92b09ef42c6df9e51d8ee37f07635767a119655c3a370715f4eaa4cb6a9f895fe74afbe9ec5be895e681ae7a771744
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.9.47)
4
+ sportradar-api (0.9.48)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -17,7 +17,7 @@ GEM
17
17
  codeclimate-test-reporter (0.6.0)
18
18
  simplecov (>= 0.7.1, < 1.0.0)
19
19
  coderay (1.1.1)
20
- concurrent-ruby (1.0.2)
20
+ concurrent-ruby (1.0.4)
21
21
  coveralls (0.8.15)
22
22
  json (>= 1.8, < 3)
23
23
  simplecov (~> 0.12.0)
@@ -60,7 +60,7 @@ module Sportradar
60
60
  @jersey_number = data['jersey_number'] if data['jersey_number'] # "31",
61
61
  @experience = data['experience'] if data['experience'] # "3",
62
62
  @college = data['college'] if data['college'] # "Vanderbilt",
63
- @birth_place = data['birth_place'] if data['birth_place'] # "Benin City,, NGA",
63
+ @birth_place = data['birth_place'].gsub(',,', ', ') if data['birth_place'] # "Benin City,, NGA",
64
64
  @birthdate = data['birthdate'] if data['birthdate'] # "1989-10-21",
65
65
  @updated = data['updated'] if data['updated'] # "2016-07-08T12:11:59+00:00",
66
66
  update_injuries(data)
@@ -68,8 +68,8 @@ module Sportradar
68
68
 
69
69
  @team.update_player_stats(self, data['statistics'], opts[:game]) if data['statistics']
70
70
  if avgs = data.dig('overall', 'average')
71
- @averages = avgs
72
- @team.update_player_stats(self, @averages)
71
+ @averages = avgs.except(:player)
72
+ @team.update_player_stats(self, avgs)
73
73
  end
74
74
 
75
75
  self
@@ -110,6 +110,7 @@ module Sportradar
110
110
  def get_roster
111
111
  data = api.get_data(path_roster)['team']
112
112
  update(data)
113
+ data
113
114
  end
114
115
 
115
116
  def get_season_stats
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.9.47"
3
+ VERSION = "0.9.48"
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.9.47
4
+ version: 0.9.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler