GICodeWarrior-threaded-rspec 0.2.0 → 0.3.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 +9 -9
- data/threaded-rspec.gemspec +1 -1
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
@@ -1,17 +1,17 @@
|
|
1
1
|
module ThreadedRspec
|
2
2
|
class ExampleGroupRunner < Spec::Runner::ExampleGroupRunner
|
3
|
-
def initialize(options)
|
3
|
+
def initialize(options, thread_count)
|
4
4
|
super(options)
|
5
5
|
@options = options
|
6
|
-
@thread_count =
|
6
|
+
@thread_count = thread_count.to_i
|
7
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)
|
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
15
|
end
|
16
16
|
|
17
17
|
def run
|
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.3.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
|