sportradar-api 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sportradar/api/nfl.rb +4 -4
- data/lib/sportradar/api/version.rb +1 -1
- metadata +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd4cadcbbe823db62d23ef33adb34cd72ea1f74b
|
4
|
+
data.tar.gz: e40c67f34e09c20bcd95d6afa3b2fbe18245a029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d67ccdd07eca88136c2d44ae9849a553b827b719064f04dd0263bde8c6b9c39f7b412a69c34e297aa9641abd87e6e8ef2b4fc5db55ce5e354a8ec03b9ba81d
|
7
|
+
data.tar.gz: c06a4c634385dd91f475828f05abec99376345d5d32500bdb0f18bcd2c319f1d108b0afbe3fb1f6a3e493c5cb6f0ede3612de832606734fa5b7a4d17e7b19a25
|
data/Gemfile.lock
CHANGED
data/lib/sportradar/api/nfl.rb
CHANGED
@@ -92,7 +92,7 @@ module Sportradar
|
|
92
92
|
Sportradar::Api::Nfl::Changelog.new response["league"]["changelog"] if response.success? && response["league"] && response["league"]["changelog"]
|
93
93
|
end
|
94
94
|
|
95
|
-
def
|
95
|
+
def simulation_games
|
96
96
|
[
|
97
97
|
"f45b4a31-b009-4039-8394-42efbc6d5532",
|
98
98
|
"5a7042cb-fe7a-4838-b93f-6b8c167ec384",
|
@@ -100,8 +100,8 @@ module Sportradar
|
|
100
100
|
]
|
101
101
|
end
|
102
102
|
|
103
|
-
def
|
104
|
-
game =
|
103
|
+
def active_simulation
|
104
|
+
game = simulation_games.lazy.map {|game_id| game_boxscore game_id }.find{ |game| game.status == 'inprogress'}
|
105
105
|
if game
|
106
106
|
puts "Live Game: #{game.summary.home.full_name} vs #{game.summary.away.full_name}. Q#{game.quarter} #{game.clock}. game_id='#{game.id}'"
|
107
107
|
else
|
@@ -112,7 +112,7 @@ module Sportradar
|
|
112
112
|
private
|
113
113
|
|
114
114
|
def check_simulation(game_id)
|
115
|
-
@simulation = true if
|
115
|
+
@simulation = true if simulation_games.include?(game_id)
|
116
116
|
end
|
117
117
|
|
118
118
|
def request_url(path)
|
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.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
@@ -307,4 +307,3 @@ signing_key:
|
|
307
307
|
specification_version: 4
|
308
308
|
summary: Sportradar API client
|
309
309
|
test_files: []
|
310
|
-
has_rdoc:
|