sportradar-api 0.11.24 → 0.11.25

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: 2a398d741ca5be02da26c58af0be8b4d0e9d0188
4
- data.tar.gz: 141df696774e1231d1b211f3e5e2ecb29d44adb4
3
+ metadata.gz: bd9c5c755df4ad320d8db6e1d084b9965a4ecd48
4
+ data.tar.gz: 1c7e3630f5671f9bbb07854b013f495372d694bb
5
5
  SHA512:
6
- metadata.gz: 4659aed911f1b80b8f4d8834c44701d83e6674a3075570db0d252bbf3bd0f3075dd7984df878e8a6f36efa7866bcc825d8897b3f898fbf89c445577e1ae63ace
7
- data.tar.gz: 25f52b4789c922e1aea14f0909bfdda44da16b2c2486c3d7c7f75d716d3aa45e1657cfbe3cf07c9a0cc8cda59b944539b87ccafe3d3ba04f7694caf3a57a4577
6
+ metadata.gz: be3aec970415ad06b58d36144d36c3386d24fd81f05255aed36a1d71fff0bd3bbaacfbdb19f3e7c3156e846bc38abe5bac360e4a26670408e44dbc34d5c7e047
7
+ data.tar.gz: 774a4ffa9f597dcc274773311ae95e4ddfffb53b754c5a245521f090761592b65299dc3381fa0ff23f6a1ed0222f933d0cf54f330614af5ba833e09d46f8cd55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.11.24)
4
+ sportradar-api (0.11.25)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -106,6 +106,34 @@ module Sportradar
106
106
  end
107
107
  end
108
108
 
109
+ def parse_description_for_drive_end
110
+ parsed_ending = case @description
111
+ when /intercepted/i
112
+ :interception
113
+ when /fumbles/i
114
+ :fumble
115
+ when /extra point is good/i
116
+ :touchdown
117
+ # when missed extra point
118
+ when /punts/i
119
+ :punt
120
+ when /Field Goal is No Good. blocked/i
121
+ :fg
122
+ when /Field Goal is No Good/i
123
+ :fg
124
+ # when missed field goal
125
+ when /Field Goal is Good/i
126
+ :fg
127
+ when "End of 1st Half"
128
+ :end_of_half
129
+ else
130
+ #
131
+ end
132
+ if parsed_ending
133
+ parsed_ending
134
+ end
135
+ end
136
+
109
137
  def parse_player
110
138
  # TODO: Currently there is an issue where we are only mapping one player_id to a play, but there are plays with multiple players involved.
111
139
  play_stats = @statistics.penalty || @statistics.rush || @statistics.return || @statistics.receive
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.11.24"
3
+ VERSION = "0.11.25"
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.24
4
+ version: 0.11.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett