sportradar-api 0.10.17 → 0.10.18

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: f031688e8ea5c14c72e63ef629bfe875ea8a010c
4
- data.tar.gz: cd59da17320437aa80e66d487c2a429cc4bccf2a
3
+ metadata.gz: c5417d7d3d2cc628a831c3eb45bb3bd9a07a04f3
4
+ data.tar.gz: ed774fddea02284e3d5cb8e6451a6cc421f78caa
5
5
  SHA512:
6
- metadata.gz: f07816555d823dd13f3ad02573ad6506a3331e3664d4b6018e6f61aca2e46aafc6b1ba93a194d3cfb2e272278482ff908f8e57fcd6319ed03f88d243df14e868
7
- data.tar.gz: 15e978b504aeb190e7e7f6bf77b483b4db4b8e152a6f937af01d32db8c37c7d5144440645934cee820943c1fee9712766524f777f0f4e6b25c8fdfaa7ea33b81
6
+ metadata.gz: 485dbc7f78cfe47db4217f58a0480f1115853d7d793d547d9d9b5c8bb8c65bfa31b6d1e03e3283bb88628834180c4b98bf855875423b182c7e8fdaa46a2537b1
7
+ data.tar.gz: 8a684006533ad64158133752a6782b929e668dbf59a3350b9c11ef767df283d30085faf349a5d9e339a35a93f84f5fd21a792a49638a2ae0331a4548ae0b8d8a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.10.17)
4
+ sportradar-api (0.10.18)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -7,7 +7,7 @@ module Sportradar
7
7
  def initialize(data, **opts)
8
8
  @response = data # comment this out when done developing
9
9
  @api = opts[:api]
10
- # @team = opts[:team]
10
+ @team = opts[:team]
11
11
 
12
12
  @id = data["id"]
13
13
 
@@ -61,7 +61,7 @@ module Sportradar
61
61
  update_injuries(data)
62
62
  update_draft(data)
63
63
 
64
- # @team.update_player_stats(self, data['statistics'], opts[:game]) if data['statistics']
64
+ @team.update_player_stats(self, data['statistics'], opts[:game]) if data['statistics']
65
65
  if stats = data['statistics']
66
66
  @fielding = stats.dig('fielding', 'overall')
67
67
  @pitching = stats.dig('pitching', 'overall')
@@ -32,19 +32,20 @@ module Sportradar
32
32
  parse_records(data) if data['win']
33
33
  parse_players(data.dig('players'), opts[:game]) if data.dig('players')
34
34
 
35
- # if opts[:game]
36
- # opts[:game].update_from_team(id, "runs"=>6)
37
- # opts[:game].update_from_team(id, "hits"=>11)
38
- # opts[:game].update_from_team(id, "errors"=>1)
39
- # opts[:game].update_from_team(id, "win"=>11)
40
- # opts[:game].update_from_team(id, "loss"=>16)
41
- # opts[:game].update_from_team(id, "probable_pitcher"=>{"jersey_number"=>"45", "id"=>"c1f19b5a-9dee-4053-9cad-ee4196f921e1", "win"=>2, "loss"=>3, "era"=>5.0})
42
- # opts[:game].update_from_team(id, "starting_pitcher"=>{"last_name"=>"Cotton", "first_name"=>"Jharel", "preferred_name"=>"Jharel", "jersey_number"=>"45"})
43
- # opts[:game].update_from_team(id, "current_pitcher"=>{"last_name"=>"Dull", "first_name"=>"Ryan", "preferred_name"=>"Ryan", "jersey_number"=>"66"})
44
- # # add_game(opts[:game])
45
- # # opts[:game].update_score(id => @runs) if @runs
46
- # # opts[:game].update_stats(self, data['statistics']) if data['statistics']
47
- # end
35
+ if opts[:game]
36
+ # opts[:game].update_from_team(id, "runs"=>6)
37
+ # opts[:game].update_from_team(id, "hits"=>11)
38
+ # opts[:game].update_from_team(id, "errors"=>1)
39
+ # opts[:game].update_from_team(id, "win"=>11)
40
+ # opts[:game].update_from_team(id, "loss"=>16)
41
+ # opts[:game].update_from_team(id, "probable_pitcher"=>{"jersey_number"=>"45", "id"=>"c1f19b5a-9dee-4053-9cad-ee4196f921e1", "win"=>2, "loss"=>3, "era"=>5.0})
42
+ # opts[:game].update_from_team(id, "starting_pitcher"=>{"last_name"=>"Cotton", "first_name"=>"Jharel", "preferred_name"=>"Jharel", "jersey_number"=>"45"})
43
+ # opts[:game].update_from_team(id, "current_pitcher"=>{"last_name"=>"Dull", "first_name"=>"Ryan", "preferred_name"=>"Ryan", "jersey_number"=>"66"})
44
+ # add_game(opts[:game])
45
+ # opts[:game].update_score(id => @runs) if @runs
46
+ opts[:game].update_stats(self, data['statistics']) if data['statistics']
47
+ binding.pry
48
+ end
48
49
  end
49
50
  def handle_names(data)
50
51
  # need to do some more work here
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.10.17"
3
+ VERSION = "0.10.18"
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.10.17
4
+ version: 0.10.18
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-05-08 00:00:00.000000000 Z
11
+ date: 2017-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler