TOSwimScraper 0.1.6 → 0.1.7

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/scraper.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01f1fa3b26db09cdf80d79afabbeb72812ce7432
4
- data.tar.gz: 3689546f96ddebad40edfa6b316b28238ee84648
3
+ metadata.gz: b4fed3bea1f735080116de6819d712611a382e66
4
+ data.tar.gz: b813a0cc0ced0f380fccba537d8c01d16c323344
5
5
  SHA512:
6
- metadata.gz: bec36af075996ca53d703f0f580708a2dc3dfae90cf170eb203850945429175a6b6dd02ab8cbcc6af86affc30aac3138e7ad865dd225847ac95f325b79fe9aa3
7
- data.tar.gz: 8a47b359289a069422b689adbd10b16c895ea2de6237aad4389902a3e567e9271acc17b2f62506f61b6a3d83f2809966645e8d4bb589435e597fc67fbbcfa936
6
+ metadata.gz: c706facb122c9d88cc81adc74cc7763a6878edc0ccbf62659cbc67bbba76d9667f093110979fa8341a2d73e92b63970b95d8edfb3f796188849b19fe5c23c666
7
+ data.tar.gz: db423fb6f5b419654119da4f61a25d0aeacc4990901e4a4346c943cd46019cf662dd3f573f80f95397ddf73deea5106d44ac8f0eb5dadd3fbbe2a9ed41490c2a
data/lib/scraper.rb CHANGED
@@ -25,7 +25,7 @@ module Scraper
25
25
  POOL_LIST_URLS.each do |url|
26
26
  doc = Nokogiri::HTML(open(url))
27
27
  pools = doc.at_css("#pfrBody > div.pfrListing > table > tbody")
28
- pool_names += pools.css('a').map { |link| link.children.text unless link.children.text == "" }.compact
28
+ pool_names += pools.css('a').map { |link| link.children.text unless ( link.children.text == "" || link['href'].match(/maps/) ) }.compact
29
29
  pool_links += pools.css('a').map { |link| link['href'] if link['href'].match(/parks\/prd\/facilities\/complex/) }.compact
30
30
  pool_addresses += gather_pool_addresses(pools)
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TOSwimScraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Welz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-04 00:00:00.000000000 Z
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler