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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sportradar/api/baseball/player.rb +2 -2
- data/lib/sportradar/api/baseball/team.rb +14 -13
- data/lib/sportradar/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5417d7d3d2cc628a831c3eb45bb3bd9a07a04f3
|
|
4
|
+
data.tar.gz: ed774fddea02284e3d5cb8e6451a6cc421f78caa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 485dbc7f78cfe47db4217f58a0480f1115853d7d793d547d9d9b5c8bb8c65bfa31b6d1e03e3283bb88628834180c4b98bf855875423b182c7e8fdaa46a2537b1
|
|
7
|
+
data.tar.gz: 8a684006533ad64158133752a6782b929e668dbf59a3350b9c11ef767df283d30085faf349a5d9e339a35a93f84f5fd21a792a49638a2ae0331a4548ae0b8d8a
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|