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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 780721e94bb01f11aeec1d1403e40089f95e992a
4
- data.tar.gz: 3b9c68f4b8573f70ba7147a96c9d87122d154206
3
+ metadata.gz: dd4cadcbbe823db62d23ef33adb34cd72ea1f74b
4
+ data.tar.gz: e40c67f34e09c20bcd95d6afa3b2fbe18245a029
5
5
  SHA512:
6
- metadata.gz: 7085b9b72a97c9aa466213d760ee79bf5790517d346e629a1f0868d6357f1d561a36e3c71b9e6007f1b30faff797d2a73c1f40b246b62c0db89b0f63448955ea
7
- data.tar.gz: fc17aa495f9e2d8573b4af50358f7b277ea3d3651ae9330e6e3cf99a373092db2cb3470930e290ccf9635eaa18cca3ca3dd71c564fdbe24198aaa09e17f258ba
6
+ metadata.gz: 51d67ccdd07eca88136c2d44ae9849a553b827b719064f04dd0263bde8c6b9c39f7b412a69c34e297aa9641abd87e6e8ef2b4fc5db55ce5e354a8ec03b9ba81d
7
+ data.tar.gz: c06a4c634385dd91f475828f05abec99376345d5d32500bdb0f18bcd2c319f1d108b0afbe3fb1f6a3e493c5cb6f0ede3612de832606734fa5b7a4d17e7b19a25
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.1.26)
4
+ sportradar-api (0.1.28)
5
5
  activesupport
6
6
  httparty (>= 0.13.3)
7
7
 
@@ -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 simulation_matches
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 active_simulation_match
104
- game = simulation_matches.lazy.map {|game_id| game_boxscore game_id }.find{ |game| game.status == 'inprogress'}
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 simulation_matches.include?(game_id)
115
+ @simulation = true if simulation_games.include?(game_id)
116
116
  end
117
117
 
118
118
  def request_url(path)
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.1.27"
3
+ VERSION = "0.1.28"
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.1.27
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: