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 CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{curb_threadpool}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chetan Sarva"]
@@ -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 exec(no_block=false, &block)
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chetan Sarva