list_spider 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/list_spider.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 953230901b6be11119f46537b4c5418c65d6ff54
|
4
|
+
data.tar.gz: 76f15338dbea2c3b1864ffc7bd2fdb168e2b4139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8e2ccad29aa3378c771d606e7d46b4e34106561dc0226d58c89aa664d8fc2cf2132ab8bc2b68fa3b8386e4788091bb9b39c772cb9082b518172c579d26dcb8
|
7
|
+
data.tar.gz: aab513e1f32969b793675f1befbbaa3943a9cf0a588526d5f6cde15f25bc883bda2890e55d1e3cedff370161c52bec9b8b5939be08ceae6967a98df2383e1e7b
|
data/lib/list_spider.rb
CHANGED
@@ -173,6 +173,14 @@ module ListSpider
|
|
173
173
|
res_header = nil
|
174
174
|
res_header = e.request_object.response_header if e.request_object
|
175
175
|
pm.call(e.local_path, e.extra_data, res_header)
|
176
|
+
when 4
|
177
|
+
res_header = nil
|
178
|
+
res_header = e.request_object.response_header if e.request_object
|
179
|
+
|
180
|
+
req = nil
|
181
|
+
req = e.request_object.req if e.request_object
|
182
|
+
|
183
|
+
pm.call(e.local_path, e.extra_data, res_header, req)
|
176
184
|
else
|
177
185
|
puts "Error! The number of arguments is:#{pm.arity}. While expected number is 1, 2, 3"
|
178
186
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: list_spider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Zhang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-http-request
|