GICodeWarrior-threaded-rspec 0.4.0 → 0.6.0
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/VERSION +1 -1
- data/lib/threaded_rspec/example_group_runner.rb +3 -13
- data/threaded-rspec.gemspec +1 -1
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
@@ -4,28 +4,18 @@ module ThreadedRspec
|
|
4
4
|
super(options)
|
5
5
|
@options = options
|
6
6
|
@thread_count = thread_count.to_i
|
7
|
-
|
8
|
-
# parser = OptionParser.new do |p|
|
9
|
-
# p.on('--thread-count N', Integer,
|
10
|
-
# 'Number of concurrent threads.') do |n|
|
11
|
-
# @thread_count = n
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# parser.parse!(options.argv)
|
15
7
|
end
|
16
8
|
|
17
9
|
def run
|
18
10
|
prepare
|
19
11
|
queue = Queue.new
|
20
|
-
example_groups.each{|
|
12
|
+
example_groups.each{|g| queue << g}
|
21
13
|
|
22
14
|
success = true
|
23
15
|
threads = []
|
24
16
|
@thread_count.times do
|
25
|
-
threads << Thread.new
|
26
|
-
while !
|
27
|
-
success &= q.pop.run(opts)
|
28
|
-
end
|
17
|
+
threads << Thread.new do
|
18
|
+
success &= queue.pop.run(@options) while !queue.empty?
|
29
19
|
end
|
30
20
|
end
|
31
21
|
threads.each{|t| t.join}
|
data/threaded-rspec.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: GICodeWarrior-threaded-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rusty Burchfield
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- threaded-rspec.gemspec
|
46
46
|
has_rdoc: false
|
47
47
|
homepage: http://github.com/GICodeWarrior/threaded-rspec
|
48
|
+
licenses:
|
48
49
|
post_install_message:
|
49
50
|
rdoc_options:
|
50
51
|
- --charset=UTF-8
|
@@ -65,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
66
|
requirements: []
|
66
67
|
|
67
68
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.3.5
|
69
70
|
signing_key:
|
70
71
|
specification_version: 3
|
71
72
|
summary: Threaded rspec runner
|