list_spider 0.1.4 → 0.1.5

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 +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 624a5d306b193b1ece24867cc1ff8b8031931d90
4
- data.tar.gz: 00b861e2d021dfd668275cf33a87b275fafa0def
3
+ metadata.gz: b7fe803a88429fac480e8a5caeb849ed0e12f050
4
+ data.tar.gz: 5d941d4a9a4d18b5212dd02deade36f21688c638
5
5
  SHA512:
6
- metadata.gz: 1e739921dc0b12d47a267cb5ed01ff626055d4e5ff5589c9ec9330906ab4db051079631a23671772af51a27d5dca9c03652b8f163e0028e4ea04f4dd382c6f29
7
- data.tar.gz: dd6badf6fae1780525c5c4be335021624b3ecc943d7db12c60e9dd4c4bb21cfb731c30b24148c436858eb3617c1fd997c27ad01fea59e7dc5743e1b1dcdc94d2
6
+ metadata.gz: 8476135ee259429fb37ce9d58f0b64b3f7d8fec310fca172ac261fbc87e99328716ebbdbdfe9bb438365137f718956b5d7c233275f4ae1cf7beea9d1a1fc0252
7
+ data.tar.gz: ea8af75e48aee9f2d0101ba1d97d5db84f2bd615c6f5fa824cd842cbf5d88870bc81dee06e49aa9c78e6b070dec7e269eab01b561b132402d8b83ac1818ad67c
data/lib/list_spider.rb CHANGED
@@ -226,8 +226,8 @@ module ListSpider
226
226
  event_machine_start_list(get_next_task, method(:complete))
227
227
  end
228
228
 
229
- def get_one(task)
230
- get_list([task])
229
+ def get_one(task, inter_val: 0, max: 30)
230
+ get_list([task], inter_val: inter_val, max: max)
231
231
  end
232
232
 
233
233
  def add_task(task)
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
4
+ version: 0.1.5
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-06 00:00:00.000000000 Z
11
+ date: 2016-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em-http-request