upton 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e698a957b406a6e4276c0dbb309d6836fcdb940
4
- data.tar.gz: ed1a38014d618893b757d24dfedfa58da97b3231
3
+ metadata.gz: 30ffbcc40d4a5923dee8bc8d8b8c5788696c704a
4
+ data.tar.gz: 0a2b7010a9c09b537236f3f3cf7633060dd61e60
5
5
  SHA512:
6
- metadata.gz: e78964c70d4a69464a852e03fb1b824b9f62ef60efc3184c932891639147835aab12df543941e3b1e0771cade5cf7151b9b678c00fc255057c366d145b860e4d
7
- data.tar.gz: 1aab9d3fe1caffd5d2715d9c482b32738eb27223cc973a0d28620698d03296fbda57f68ad9e49e77e2a89e85fd671b998913cb2a41438d5a97b5dcd7999763b4
6
+ metadata.gz: f0e0d2fe27b926292fabfc0e079629972f95b4538d5ba470c23ce553bc1ec817e4d3ca9749ce33b311fbb520fa2bde6b4d2dbb2dc1cff0e6a8e742f5ad3f4b52
7
+ data.tar.gz: 250ee586b0487119d63eca18b225cb1889049e315b074d33327f3088c991f5bcd951c9afd469ec0cdb95915985081cc4303038a1426a31b4cbc2f4d8eb824e3b
@@ -56,6 +56,8 @@ module Upton
56
56
  puts "404 error, skipping: #{uri}" if @verbose
57
57
  rescue RestClient::InternalServerError
58
58
  puts "500 Error, skipping: #{uri}" if @verbose
59
+ rescue RestClient::ServiceUnavailable
60
+ puts "503 Error, skipping: #{uri}" if @verbose
59
61
  rescue URI::InvalidURIError
60
62
  puts "Invalid URI: #{uri}" if @verbose
61
63
  rescue RestClient::RequestTimeout
@@ -141,7 +143,7 @@ module Upton
141
143
  end
142
144
 
143
145
  def initialize_cache!
144
- unless Dir.exists?(cache_location)
146
+ unless Dir.exist?(cache_location)
145
147
  Dir.mkdir(cache_location)
146
148
  FileUtils.chmod 0700, cache_location
147
149
  end
@@ -1,3 +1,3 @@
1
1
  module Upton # :nodoc:
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
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.3.4
4
+ version: 0.3.5
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: 2015-09-03 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.4.5.1
167
+ rubygems_version: 2.6.11
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: A simple web-scraping framework
@@ -181,4 +181,3 @@ test_files:
181
181
  - spec/upton_spec.rb
182
182
  - spec/spec_helper.rb
183
183
  - spec/upton_downloader_spec.rb
184
- has_rdoc: true