thread 0.0.1 → 0.0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/thread/pool.rb +3 -3
- data/thread.gemspec +2 -1
- metadata +4 -3
data/lib/thread/pool.rb
CHANGED
|
@@ -39,10 +39,10 @@ class Thread::Pool
|
|
|
39
39
|
|
|
40
40
|
begin
|
|
41
41
|
@block.call(*@arguments)
|
|
42
|
-
rescue Exception =>
|
|
43
|
-
if
|
|
42
|
+
rescue Exception => reason
|
|
43
|
+
if reason.is_a? Timeout
|
|
44
44
|
@timedout = true
|
|
45
|
-
elsif
|
|
45
|
+
elsif reason.is_a? Asked
|
|
46
46
|
return
|
|
47
47
|
else
|
|
48
48
|
@exception = reason
|
data/thread.gemspec
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Gem::Specification.new {|s|
|
|
2
2
|
s.name = 'thread'
|
|
3
|
-
s.version = '0.0.1'
|
|
3
|
+
s.version = '0.0.1.1'
|
|
4
4
|
s.author = 'meh.'
|
|
5
5
|
s.email = 'meh@schizofreni.co'
|
|
6
6
|
s.homepage = 'http://github.com/meh/ruby-thread'
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.summary = 'Various extensions to the base thread stdlib.'
|
|
9
|
+
s.description = 'Includes a thread pool, message passing capabilities and a recursive mutex.'
|
|
9
10
|
|
|
10
11
|
s.files = `git ls-files`.split("\n")
|
|
11
12
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thread
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1
|
|
4
|
+
version: 0.0.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,9 +9,10 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-10
|
|
12
|
+
date: 2012-12-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description:
|
|
14
|
+
description: Includes a thread pool, message passing capabilities and a recursive
|
|
15
|
+
mutex.
|
|
15
16
|
email: meh@schizofreni.co
|
|
16
17
|
executables: []
|
|
17
18
|
extensions: []
|