vegas_insider_scraper 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sports/scraper_league.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4406cf01f39908cc6e374486a063ad22f52374bf
|
4
|
+
data.tar.gz: 445c1ddcdbae187568c046f21b09f187a6fbe7f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61eb9deb49c1fec787015199b3eabd24a503773c4a15df7dcea3b2670db5d4fcc9a8d2a8ef7929245b5633c782b4b5706b79d6d928a5be11c7b8e55b42d97787
|
7
|
+
data.tar.gz: 5e62b335b39d4788356b335757bc2454d06dec2b490e0ea8043cebc9b7b6c72ae25486b14a504fcf45d7739639a308b762124697b82f82c7a25036dcf843ce98
|
@@ -135,12 +135,12 @@ class ScraperLeague
|
|
135
135
|
when 2 then team[:record][:overall_losses] = content.to_i
|
136
136
|
when 3 then team[:record][:overall_ties] = content.to_i
|
137
137
|
when 7
|
138
|
-
record = RegularExpressions::NFL_RECORD_REGEX.match(content)
|
138
|
+
record = RegularExpressions::NFL_RECORD_REGEX.match(content) || { wins: 0, losses: 0, ties: 0 }
|
139
139
|
team[:record][:home_wins] = record[:wins]
|
140
140
|
team[:record][:home_losses] = record[:losses]
|
141
141
|
team[:record][:home_ties] = record[:ties]
|
142
142
|
when 8
|
143
|
-
record = RegularExpressions::NFL_RECORD_REGEX.match(content)
|
143
|
+
record = RegularExpressions::NFL_RECORD_REGEX.match(content) || { wins: 0, losses: 0, ties: 0 }
|
144
144
|
team[:record][:away_wins] = record[:wins]
|
145
145
|
team[:record][:away_losses] = record[:losses]
|
146
146
|
team[:record][:away_ties] = record[:ties]
|
@@ -160,11 +160,11 @@ class ScraperLeague
|
|
160
160
|
when 1 then team[:record][:overall_wins] = content.to_i
|
161
161
|
when 2 then team[:record][:overall_losses] = content.to_i
|
162
162
|
when 5
|
163
|
-
record = RegularExpressions::RECORD_REGEX.match(content)
|
163
|
+
record = RegularExpressions::RECORD_REGEX.match(content) || { wins: 0, losses: 0 }
|
164
164
|
team[:record][:home_wins] = record[:wins]
|
165
165
|
team[:record][:home_losses] = record[:losses]
|
166
166
|
when 6
|
167
|
-
record = RegularExpressions::RECORD_REGEX.match(content)
|
167
|
+
record = RegularExpressions::RECORD_REGEX.match(content) || { wins: 0, losses: 0 }
|
168
168
|
team[:record][:away_wins] = record[:wins]
|
169
169
|
team[:record][:away_losses] = record[:losses]
|
170
170
|
end
|
@@ -186,13 +186,13 @@ class ScraperLeague
|
|
186
186
|
when 4 then team[:record][:shootout_losses] = content.to_i
|
187
187
|
when 5 then team[:record][:points] = content.to_i
|
188
188
|
when 8
|
189
|
-
record = RegularExpressions::NHL_RECORD_REGEX.match(content)
|
189
|
+
record = RegularExpressions::NHL_RECORD_REGEX.match(content) || { wins: 0, losses: 0, ot_losses: 0, shootout_losses: 0 }
|
190
190
|
team[:record][:home_wins] = record[:wins]
|
191
191
|
team[:record][:home_losses] = record[:losses]
|
192
192
|
team[:record][:home_over_time_losses] = record[:ot_losses]
|
193
193
|
team[:record][:home_shootout_losses] = record[:shootout_losses]
|
194
194
|
when 9
|
195
|
-
record = RegularExpressions::NHL_RECORD_REGEX.match(content)
|
195
|
+
record = RegularExpressions::NHL_RECORD_REGEX.match(content) || { wins: 0, losses: 0, ot_losses: 0, shootout_losses: 0 }
|
196
196
|
team[:record][:away_wins] = record[:wins]
|
197
197
|
team[:record][:away_losses] = record[:losses]
|
198
198
|
team[:record][:away_over_time_losses] = record[:ot_losses]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vegas_insider_scraper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Reitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|