curb_threadpool 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/curb_threadpool.gemspec +1 -1
- data/lib/curb_threadpool.rb +4 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/curb_threadpool.gemspec
CHANGED
data/lib/curb_threadpool.rb
CHANGED
@@ -72,7 +72,10 @@ class Curl::ThreadPool
|
|
72
72
|
# instead of being returned directly
|
73
73
|
#
|
74
74
|
# @return [Hash<Key, String>] Hash of responses, if no block given
|
75
|
-
def
|
75
|
+
def perform(no_block=false, &block)
|
76
|
+
|
77
|
+
@results = {} if not @results.empty?
|
78
|
+
|
76
79
|
@clients.each do |client|
|
77
80
|
@threads << Thread.new do
|
78
81
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curb_threadpool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chetan Sarva
|