vegas_insider_scraper 0.0.8 → 0.0.9
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 +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7066ec4d5b8b406cd029b0a0cbaae9b0ccbec72
|
4
|
+
data.tar.gz: 8fabd49651be3c359e68d51e0eaa408e971a5317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fae4f407d35c2833ba6ca14ebec77a3cb3bcf34a4884b6db13b6ca2890603d69b5f938df9f9f32e90421330f945421b09a8adee26209169a4a8db057944ea14
|
7
|
+
data.tar.gz: ef503576ce7096db509976a2e8774a32a68b5bffe95b83fcb4ce50f9b2588c3e01f27c50bb7f7d1068e17895ecb8eca2fa207419bb70d4b8c23ed240e1fd0715
|
@@ -230,9 +230,6 @@ class ScraperLeague
|
|
230
230
|
nickname_array = nickname.split(' ')
|
231
231
|
nickname = nickname_array.each_slice( (nickname_array.size/2.0).round ).to_a[1].join(' ')
|
232
232
|
nickname = nickname_exceptions(identifier,nickname)
|
233
|
-
puts identifier
|
234
|
-
puts nickname
|
235
|
-
puts "****************************"
|
236
233
|
end
|
237
234
|
|
238
235
|
return {
|
@@ -462,7 +459,7 @@ class ScraperLeague
|
|
462
459
|
# Utility method for scraping team page results
|
463
460
|
# * gets the identifier for an opponent without links
|
464
461
|
def custom_opponent_identifier(cell)
|
465
|
-
cell.content.strip.gsub(/(\s| )+/, '-').gsub('@-').downcase[0..-3]
|
462
|
+
cell.content.strip.gsub(/(\s| )+/, '-').gsub('@-','').downcase[0..-3]
|
466
463
|
end
|
467
464
|
|
468
465
|
# General Utility Method
|
@@ -475,7 +472,7 @@ class ScraperLeague
|
|
475
472
|
# used the remove all whitespace from the content of the element
|
476
473
|
def remove_element_whitespace(element)
|
477
474
|
string = element.content.gsub(/(\s| )+/, '')
|
478
|
-
string.empty? ?
|
475
|
+
string.empty? ? '' : string
|
479
476
|
end
|
480
477
|
|
481
478
|
def matchdata_to_hash(matchdata)
|