vegas_insider_scraper 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sports/scraper_league.rb +6 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0211e0567d22ac58107e578bbba34f39b27a2b39
4
- data.tar.gz: c517f31b9b57f4075299091effc1a1f7fc65a293
3
+ metadata.gz: 4406cf01f39908cc6e374486a063ad22f52374bf
4
+ data.tar.gz: 445c1ddcdbae187568c046f21b09f187a6fbe7f7
5
5
  SHA512:
6
- metadata.gz: 3daa3cca88c4b93fd19321003f5d8f337ff50808948a3e812b5414ea39eda004646b44771a9592ce7d35839fb263744cd143a0f5259f18a5222de1f404fe29dd
7
- data.tar.gz: 05ccba2f909cb98207a7bde07dca33b515945fde644fca9278ac7a893f95f0eee2a7b887d5f980fbeee0cc3a1afaf0cb46dfeb1d2bbb03fa470d5d0643f47d99
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.14
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-09-23 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri