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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/list_spider.rb +8 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa975b345606cc3995e08310737afd1338ad4c80
4
- data.tar.gz: a5d15c9dcf5f1f78395f75911370617c9481b1ea
3
+ metadata.gz: 953230901b6be11119f46537b4c5418c65d6ff54
4
+ data.tar.gz: 76f15338dbea2c3b1864ffc7bd2fdb168e2b4139
5
5
  SHA512:
6
- metadata.gz: 8fd86f3186bf640d2d895028d1373984046183e941619bf01b0c2d611deb7a62d4a52098da23e3299d20949212b776a6b368a4923c37e152d2e3e3038b433a1a
7
- data.tar.gz: 722ee573500abe11549e679b3def10def9830ef58ae6f4bf24e0e98d0fc872524d97c964ce17df3dc9718eedfb3e66067f09fdeda89bce6d39f0c2fa1bbca750
6
+ metadata.gz: 5b8e2ccad29aa3378c771d606e7d46b4e34106561dc0226d58c89aa664d8fc2cf2132ab8bc2b68fa3b8386e4788091bb9b39c772cb9082b518172c579d26dcb8
7
+ data.tar.gz: aab513e1f32969b793675f1befbbaa3943a9cf0a588526d5f6cde15f25bc883bda2890e55d1e3cedff370161c52bec9b8b5939be08ceae6967a98df2383e1e7b
@@ -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.7
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-10 00:00:00.000000000 Z
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