thread_storm 0.7.0 → 0.7.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/CHANGELOG +5 -1
- data/VERSION +1 -1
- data/lib/thread_storm.rb +3 -1
- data/lib/thread_storm/execution.rb +2 -1
- data/thread_storm.gemspec +5 -12
- metadata +23 -43
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
0.7.1
|
2
|
+
- Aliased +threads+ to +primitives+ to align interface with FiberStorm.
|
3
|
+
0.7.0
|
4
|
+
- Internal refactoring.
|
1
5
|
0.6.0
|
2
6
|
- Fixed a bug with the :execute_blocks option.
|
3
7
|
- ThreadStorm::Execution#options (options specific to an execution).
|
@@ -39,4 +43,4 @@
|
|
39
43
|
- Fixed ThreadPool#shutdown.
|
40
44
|
|
41
45
|
0.1.0
|
42
|
-
- Initial version
|
46
|
+
- Initial version
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
data/lib/thread_storm.rb
CHANGED
@@ -148,6 +148,8 @@ class ThreadStorm
|
|
148
148
|
def threads
|
149
149
|
@workers.collect{ |worker| worker.thread }
|
150
150
|
end
|
151
|
+
|
152
|
+
alias_method :primitives, :threads
|
151
153
|
|
152
154
|
# Removes executions stored at ThreadStorm#executions. You can selectively remove
|
153
155
|
# them by passing in a block or a symbol. The following two lines are equivalent.
|
@@ -170,4 +172,4 @@ class ThreadStorm
|
|
170
172
|
cleared
|
171
173
|
end
|
172
174
|
|
173
|
-
end
|
175
|
+
end
|
@@ -39,6 +39,7 @@ class ThreadStorm
|
|
39
39
|
attr_reader :options
|
40
40
|
|
41
41
|
attr_reader :block, :thread #:nodoc:
|
42
|
+
alias_method :primitive, :thread
|
42
43
|
|
43
44
|
# call-seq:
|
44
45
|
# new(options = {}) -> Execution
|
@@ -302,4 +303,4 @@ class ThreadStorm
|
|
302
303
|
end
|
303
304
|
|
304
305
|
end
|
305
|
-
end
|
306
|
+
end
|
data/thread_storm.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{thread_storm}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = [%q{Christopher J. Bottaro}]
|
12
|
+
s.date = %q{2011-08-19}
|
13
13
|
s.description = %q{Simple thread pool with timeouts, default values, error handling, state tracking and unit tests.}
|
14
14
|
s.email = %q{cjbottaro@alumni.cs.utexas.edu}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -37,18 +37,11 @@ Gem::Specification.new do |s|
|
|
37
37
|
"thread_storm.gemspec"
|
38
38
|
]
|
39
39
|
s.homepage = %q{http://github.com/cjbottaro/thread_storm}
|
40
|
-
s.require_paths = [
|
41
|
-
s.rubygems_version = %q{1.
|
40
|
+
s.require_paths = [%q{lib}]
|
41
|
+
s.rubygems_version = %q{1.8.7}
|
42
42
|
s.summary = %q{Simple thread pool with a few advanced features.}
|
43
|
-
s.test_files = [
|
44
|
-
"test/helper.rb",
|
45
|
-
"test/test_callbacks.rb",
|
46
|
-
"test/test_execution.rb",
|
47
|
-
"test/test_thread_storm.rb"
|
48
|
-
]
|
49
43
|
|
50
44
|
if s.respond_to? :specification_version then
|
51
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
52
45
|
s.specification_version = 3
|
53
46
|
|
54
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,34 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: thread_storm
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 7
|
8
|
-
- 0
|
9
|
-
version: 0.7.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.7.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Christopher J. Bottaro
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-02-02 00:00:00 -06:00
|
18
|
-
default_executable:
|
12
|
+
date: 2011-08-19 00:00:00.000000000Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
14
|
+
description: Simple thread pool with timeouts, default values, error handling, state
|
15
|
+
tracking and unit tests.
|
22
16
|
email: cjbottaro@alumni.cs.utexas.edu
|
23
17
|
executables: []
|
24
|
-
|
25
18
|
extensions: []
|
26
|
-
|
27
|
-
extra_rdoc_files:
|
19
|
+
extra_rdoc_files:
|
28
20
|
- LICENSE
|
29
21
|
- README.rdoc
|
30
22
|
- TODO
|
31
|
-
files:
|
23
|
+
files:
|
32
24
|
- .document
|
33
25
|
- CHANGELOG
|
34
26
|
- LICENSE
|
@@ -46,40 +38,28 @@ files:
|
|
46
38
|
- test/test_execution.rb
|
47
39
|
- test/test_thread_storm.rb
|
48
40
|
- thread_storm.gemspec
|
49
|
-
has_rdoc: true
|
50
41
|
homepage: http://github.com/cjbottaro/thread_storm
|
51
42
|
licenses: []
|
52
|
-
|
53
43
|
post_install_message:
|
54
44
|
rdoc_options: []
|
55
|
-
|
56
|
-
require_paths:
|
45
|
+
require_paths:
|
57
46
|
- lib
|
58
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
48
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
65
|
-
version: "0"
|
66
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
54
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
- 0
|
73
|
-
version: "0"
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
74
59
|
requirements: []
|
75
|
-
|
76
60
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.
|
61
|
+
rubygems_version: 1.8.7
|
78
62
|
signing_key:
|
79
63
|
specification_version: 3
|
80
64
|
summary: Simple thread pool with a few advanced features.
|
81
|
-
test_files:
|
82
|
-
- test/helper.rb
|
83
|
-
- test/test_callbacks.rb
|
84
|
-
- test/test_execution.rb
|
85
|
-
- test/test_thread_storm.rb
|
65
|
+
test_files: []
|