sportradar-api 0.10.52 → 0.10.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/sportradar/api/baseball/game.rb +8 -1
- data/lib/sportradar/api/baseball/pitch.rb +1 -1
- 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: 9c67c316bd398f1582fc349714a08ca429f6f781
|
4
|
+
data.tar.gz: d323f76ef18469f6f9dc681b9c56cde51109b6e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6aecfbd744648797aa2fed51a01c7eb6ed05dfd9c1fede738472e724150efea5d16bb595ad90cd3194c11719bf5c53aca4d122ac7671ecb68bb2d9f781235b6
|
7
|
+
data.tar.gz: 02a90c941ee9c85067ffdf36ce4d8acf5bfd2f336a0dc79c46e16ab7d5ea91b275a2bb8a117f9e30d0e846884f9afb9217ecd184d0db64fd2626fb79d73a75fe
|
data/Gemfile.lock
CHANGED
@@ -169,6 +169,13 @@ module Sportradar
|
|
169
169
|
def advance_inning
|
170
170
|
@inning_over = false
|
171
171
|
return unless count['outs'] == 3
|
172
|
+
if count['inning'] >= 9
|
173
|
+
if count['inning_half'] == 'T' && leading_team_id == home.id
|
174
|
+
return
|
175
|
+
elsif count['inning_half'] == 'B' && !tied?
|
176
|
+
return
|
177
|
+
end
|
178
|
+
end
|
172
179
|
@inning_over = true
|
173
180
|
@bases = DEFAULT_BASES.dup
|
174
181
|
half, inn = if count['inning_half'] == 'B'
|
@@ -207,7 +214,7 @@ module Sportradar
|
|
207
214
|
end
|
208
215
|
|
209
216
|
def leading_team_id
|
210
|
-
return nil if
|
217
|
+
return nil if tied?
|
211
218
|
score.max_by(&:last).first
|
212
219
|
end
|
213
220
|
|
@@ -2,7 +2,7 @@ module Sportradar
|
|
2
2
|
module Api
|
3
3
|
module Baseball
|
4
4
|
class Pitch < Data
|
5
|
-
attr_accessor :response, :id, :at_bat, :outcome_id, :status, :count, :is_ab_over, :is_hit, :warming_up, :runners, :errors, :pitch_type_name, :x, :y, :zone, :total_pitch_count, :atbat_pitch_count, :speed, :outcome, :hit_type, :balls, :strikes, :outs
|
5
|
+
attr_accessor :response, :id, :at_bat, :outcome_id, :status, :count, :is_ab_over, :is_hit, :warming_up, :runners, :errors, :pitch_type_name, :x, :y, :zone, :total_pitch_count, :atbat_pitch_count, :speed, :outcome, :hit_type, :balls, :strikes, :outs, :fielders
|
6
6
|
|
7
7
|
def initialize(data, **opts)
|
8
8
|
@response = data
|
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.53
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|