vegas_insider_scraper 0.0.13 → 0.0.14
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.
- checksums.yaml +4 -4
- data/lib/sports/scraper_league.rb +1 -5
- 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: 0211e0567d22ac58107e578bbba34f39b27a2b39
|
|
4
|
+
data.tar.gz: c517f31b9b57f4075299091effc1a1f7fc65a293
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3daa3cca88c4b93fd19321003f5d8f337ff50808948a3e812b5414ea39eda004646b44771a9592ce7d35839fb263744cd143a0f5259f18a5222de1f404fe29dd
|
|
7
|
+
data.tar.gz: 05ccba2f909cb98207a7bde07dca33b515945fde644fca9278ac7a893f95f0eee2a7b887d5f980fbeee0cc3a1afaf0cb46dfeb1d2bbb03fa470d5d0643f47d99
|
|
@@ -46,12 +46,9 @@ class ScraperLeague
|
|
|
46
46
|
conference_title = conference.at_css(".viHeaderNorm")
|
|
47
47
|
|
|
48
48
|
next if conference_title.nil?
|
|
49
|
-
puts "***********************************"
|
|
50
|
-
puts conference_title.content
|
|
51
|
-
puts "***********************************"
|
|
52
49
|
|
|
53
50
|
table = conference.css('.viBodyBorderNorm table')[standings_table_index]
|
|
54
|
-
table = conference.css('.viBodyBorderNorm table')[2] if conference_title.content == 'Conference USA'
|
|
51
|
+
table = conference.css('.viBodyBorderNorm table')[2] if (conference_title.content == 'Conference USA' && sport_name == 'college-football')
|
|
55
52
|
|
|
56
53
|
if table
|
|
57
54
|
table.css('tr').each_with_index do |row, index|
|
|
@@ -114,7 +111,6 @@ class ScraperLeague
|
|
|
114
111
|
value = remove_element_whitespace(cell)
|
|
115
112
|
case cell_index
|
|
116
113
|
when 0
|
|
117
|
-
puts value
|
|
118
114
|
team[:info] = format_college_team(cell.at_css('a'), teams_doc)
|
|
119
115
|
when 5 then team[:record][:overall_wins] = value.to_i
|
|
120
116
|
when 6 then team[:record][:overall_losses] = value.to_i
|
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.14
|
|
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-
|
|
11
|
+
date: 2017-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|