upton 0.2.10 → 0.2.11

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/upton.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46903360868525008977cd6ed14f99aa48508f2e
4
- data.tar.gz: 5003dd6031339e8aa19fb429fdd10e78cd8c2608
3
+ metadata.gz: 2ef1916db6e2fb734cb8ea7ed33eb5edb67b37e3
4
+ data.tar.gz: 2a9da49f8a47dfc9e1feab2138045f7aa49268d6
5
5
  SHA512:
6
- metadata.gz: b1bcd61e00617300959f076b1b78ee9136096a405158b8504f77903120a1d6fb7164870f577590f699c727c5d3be62969646c7e1f046ede9d3e27bd1f5a594f5
7
- data.tar.gz: 56cea905090eaededa2295eef89a9b7142870771a097745e404cb667fc95bffaebac782ce7f497087ace6256755c2c8dbab77e8513b79c0f8b9bda4eb900cdfe
6
+ metadata.gz: e94a228a8fb01c90c0e7535b106b2af4dd8983ea3e92b2813cd5d038c3985a5f55c5fbcac19ee5f16f3271ad9e390d426f0ad8ad7b0c08afdf3b9d745cff2738
7
+ data.tar.gz: f8b0475e022980cd6ca0eec6dc8512394723084ba59d0b47cd36c24c736fbfc4a58b52ce186a3f5b91c69fd1241dfaa9d57c5f71bf6867255426e0fd3f26ed0f
data/lib/upton.rb CHANGED
@@ -207,7 +207,7 @@ module Upton
207
207
  # Handles getting pages with Downlader, which handles stashing.
208
208
  ##
209
209
  def get_page(url, stash=false, options={})
210
- return EMPTY_STRING if url.empty?
210
+ return EMPTY_STRING if url.nil? || url.empty? #url is nil if the <a> lacks an `href` attribute.
211
211
  global_options = {
212
212
  :cache => stash,
213
213
  :verbose => @verbose
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy B. Merrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack