sportradar-api 0.11.41 → 0.11.42

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5da13da43f025ff280a024561e806f504def7154
4
- data.tar.gz: 7f9ecd058f68b2a85f811ab95315d65ee24ff351
3
+ metadata.gz: 1c4a934a7cdc80279bc69a712a8f2985fdeafeca
4
+ data.tar.gz: c7fb271d44ad96385aaf5a8f063f0b3fd2463389
5
5
  SHA512:
6
- metadata.gz: 83fa3060d69269b75a92da5e10af726f96d3e590a6166af4a2b134bf83723dafcaed9c1cd29a0442815623cf0e9edb842e260e88df6e2b9c7e688fc4dd01317b
7
- data.tar.gz: e3dc7192b0da4f0699e7b72cc746a931a913eff3e6035ec998560f4994c2b81c2709ef366cdb313064787971b1711db64c3aa0055a99eac18b68698cbe37d2a7
6
+ metadata.gz: 58bab309da3fc9902fa0e62cd1e4422a2e2b5c85e191477f05109e8d1ffeed8ee5e06728ae1723c8cc8a1d58c012c93cf6d44992170ce4f701b2808ede58862b
7
+ data.tar.gz: 9cf2f77331f6d4c413b4e6292f32651e40e40c80198a96490aae0922637f4e28c484af5a364a44699556bc7bc9d58d0f178fe9870474d18d2e387212f3c57ea9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.11.41)
4
+ sportradar-api (0.11.42)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -95,14 +95,18 @@ module Sportradar
95
95
  case end_reason
96
96
  when 'Touchdown', :pat
97
97
  'Touchdown'
98
- when 'Field Goal', 'Missed FG', "Blocked FG, Downs", 'Muffed FG', 'Blocked FG, Safety', :fg
98
+ when 'Field Goal', 'Missed FG', "Blocked FG, Downs", 'Muffed FG', :fg
99
99
  'Field Goal'
100
100
  when 'Downs'
101
101
  'Downs'
102
102
  when 'Interception', 'Fumble', :fumble, :interception
103
103
  'Turnover'
104
- when 'Punt', :punt
104
+ when 'Punt', 'Blocked Punt, Downs', 'Blocked Punt, Safety', :punt
105
105
  'Punt'
106
+ when 'End of Half', 'End of Game'
107
+ end_reason
108
+ when 'Safety', 'Blocked FG, Safety'
109
+ 'Safety'
106
110
  else
107
111
  'Other'
108
112
  end
@@ -4,6 +4,16 @@ module Sportradar
4
4
  class Ncaafb
5
5
  class Play < Sportradar::Api::Football::Play
6
6
 
7
+ def play_type
8
+ if @play_type == 'Kick'
9
+ 'Kickoff'
10
+ elsif @play_type == 'ExtraPoint'
11
+ 'Extra Point'
12
+ else
13
+ super
14
+ end
15
+ end
16
+
7
17
  def yards
8
18
  (counted_play? && (statistics.pass&.first || statistics.rush&.first)&.yards).to_i
9
19
  end
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.11.41"
3
+ VERSION = "0.11.42"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportradar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.41
4
+ version: 0.11.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett