vegas_insider_scraper 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sports/scraper_league.rb +2 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 078b7e0983c9f1b83cd879d2e272ffa82c428745
4
- data.tar.gz: 81b32f713782cf8c311c0fbb4c8d6424c4f77e40
3
+ metadata.gz: c7066ec4d5b8b406cd029b0a0cbaae9b0ccbec72
4
+ data.tar.gz: 8fabd49651be3c359e68d51e0eaa408e971a5317
5
5
  SHA512:
6
- metadata.gz: a009067788bec8673d29566a17d9a9cc13bacca4ad2be338269d962b1512a2dc74140c9054d510cf8be571584ff8ad28350a51ce488090eaaa8359a6d790ae43
7
- data.tar.gz: 855206426a8e92f1f76e9c1f91933601dd90c04c151d801327ec6ad74df211d54c27c529d245c77d730a7e4a7ab570926fe47a7d30cd4a815da04c84ecf3d2c9
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? ? nil : string
475
+ string.empty? ? '' : string
479
476
  end
480
477
 
481
478
  def matchdata_to_hash(matchdata)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vegas_insider_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Reitz