crawl 1.1.6 → 1.1.7

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: cd091ac6b2679c9dbe5336a73dfd7acab9e9ee65
4
- data.tar.gz: 6457eced0c6e538809ad22fc5045615d37ce8a78
3
+ metadata.gz: e78f8cac4eb1c4f697653e077375657bc70f434e
4
+ data.tar.gz: 0661a01505630ba89c31f3c1dfbafc6d692f2a11
5
5
  SHA512:
6
- metadata.gz: 5538098c9d5b5f6785524e1378564a7121443dca24c63eeb4ffb9f12721afbd9d09db08e3bbea22be560917468405bb519e1d09f24c683316e085d2ddf3e17a2
7
- data.tar.gz: 3f53020b8432926125b338f5114bdcdeb35560b7060d6d123855f5d69671a8398710d0b9a6a3d1e9ae333ba6635d03570218ac0c2339804c0d1109063bc48b1b
6
+ metadata.gz: 5cca6b1b04f7889cd1c80dc7f5f60a8d4f5245c74be45a93c23576b858131d1032fdab6846e48870cb671cafa673d58527a8a318ca1abe378b42ba61f4689fea
7
+ data.tar.gz: e11dbf7c280b91a9b6876141541cc2250e169d46fee26668a5581675b5328251e202171ab5a99cf905e3f5dfa5ea4241f277ea81106b670e0c72b11a14a91fa3
@@ -62,9 +62,14 @@ private
62
62
  absolute_url = options[:domain] + page.relative_url
63
63
 
64
64
  http = EventMachine::HttpRequest.new(absolute_url)
65
- req = http.get :redirects => MAX_REDIRECTS, :head => {'authorization' => [options[:username], options[:password]]}
66
- req.timeout(15)
67
-
65
+ req = http.get :redirects => MAX_REDIRECTS,
66
+ :connect_timeout => 20,
67
+ :inactivity_timeout => 20,
68
+ :head => {
69
+ 'authorization' => [
70
+ options[:username], options[:password]
71
+ ]
72
+ }
68
73
  req.errback do
69
74
  if req.nil?
70
75
  page.intermittent("Req is nil. WAT?")
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Crawl
3
- VERSION = "1.1.6"
3
+ VERSION = "1.1.7"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crawl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tor Erik Linnerud
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-09-07 00:00:00.000000000 Z
13
+ date: 2016-12-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.5.1
120
+ rubygems_version: 2.4.5.1
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Crawl pages witin a domain, reporting any page that returns a bad response
@@ -126,3 +126,4 @@ test_files:
126
126
  - spec/lib/crawl/page_spec.rb
127
127
  - spec/page_spec.rb
128
128
  - spec/spec_helper.rb
129
+ has_rdoc: