sportradar-api 0.10.52 → 0.10.53

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: ed874cde0b953a6a91884f57c461278470a79e9f
4
- data.tar.gz: 301c1b61527bb7cd5e167771dcd9750328b910ea
3
+ metadata.gz: 9c67c316bd398f1582fc349714a08ca429f6f781
4
+ data.tar.gz: d323f76ef18469f6f9dc681b9c56cde51109b6e3
5
5
  SHA512:
6
- metadata.gz: 410c99e8f447d12b648a1acb90e73614dc382c039c56eb6053bb811144bf3616d27a791fa168c12cf4375469414cb43f17d4b5084691ebf4394f9d6c57c70047
7
- data.tar.gz: d28b8468d2026ac854a8a11166835814c8c76b6a366e6b08114087927a00c1b09c94f06049a46a81ba6b93a2ce3ab7a031d325e6feed12832410c93148073fbf
6
+ metadata.gz: d6aecfbd744648797aa2fed51a01c7eb6ed05dfd9c1fede738472e724150efea5d16bb595ad90cd3194c11719bf5c53aca4d122ac7671ecb68bb2d9f781235b6
7
+ data.tar.gz: 02a90c941ee9c85067ffdf36ce4d8acf5bfd2f336a0dc79c46e16ab7d5ea91b275a2bb8a117f9e30d0e846884f9afb9217ecd184d0db64fd2626fb79d73a75fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.10.52)
4
+ sportradar-api (0.10.53)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -112,4 +112,4 @@ DEPENDENCIES
112
112
  webmock
113
113
 
114
114
  BUNDLED WITH
115
- 1.14.6
115
+ 1.15.0
@@ -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 score.values.uniq.size == 1
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
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.10.52"
3
+ VERSION = "0.10.53"
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.52
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-22 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler