test-queue 0.2.12 → 0.2.13

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-queue (0.2.9)
4
+ test-queue (0.2.13)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+ gem 'rspec', '~> 3.0.0'
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ test-queue (0.2.12)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ builder (3.2.2)
10
+ cucumber (1.3.19)
11
+ builder (>= 2.1.2)
12
+ diff-lcs (>= 1.1.3)
13
+ gherkin (~> 2.12)
14
+ multi_json (>= 1.7.5, < 2.0)
15
+ multi_test (>= 0.1.2)
16
+ diff-lcs (1.2.5)
17
+ gherkin (2.12.2)
18
+ multi_json (~> 1.3)
19
+ multi_json (1.11.0)
20
+ multi_test (0.1.2)
21
+ rspec (3.0.0)
22
+ rspec-core (~> 3.0.0)
23
+ rspec-expectations (~> 3.0.0)
24
+ rspec-mocks (~> 3.0.0)
25
+ rspec-core (3.0.4)
26
+ rspec-support (~> 3.0.0)
27
+ rspec-expectations (3.0.4)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.0.0)
30
+ rspec-mocks (3.0.4)
31
+ rspec-support (~> 3.0.0)
32
+ rspec-support (3.0.4)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ cucumber (~> 1.3.10)
39
+ rspec (~> 3.0.0)
40
+ test-queue!
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+ gem 'rspec', '~> 3.1.0'
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ test-queue (0.2.12)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ builder (3.2.2)
10
+ cucumber (1.3.19)
11
+ builder (>= 2.1.2)
12
+ diff-lcs (>= 1.1.3)
13
+ gherkin (~> 2.12)
14
+ multi_json (>= 1.7.5, < 2.0)
15
+ multi_test (>= 0.1.2)
16
+ diff-lcs (1.2.5)
17
+ gherkin (2.12.2)
18
+ multi_json (~> 1.3)
19
+ multi_json (1.11.0)
20
+ multi_test (0.1.2)
21
+ rspec (3.1.0)
22
+ rspec-core (~> 3.1.0)
23
+ rspec-expectations (~> 3.1.0)
24
+ rspec-mocks (~> 3.1.0)
25
+ rspec-core (3.1.7)
26
+ rspec-support (~> 3.1.0)
27
+ rspec-expectations (3.1.2)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.1.0)
30
+ rspec-mocks (3.1.3)
31
+ rspec-support (~> 3.1.0)
32
+ rspec-support (3.1.2)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ cucumber (~> 1.3.10)
39
+ rspec (~> 3.1.0)
40
+ test-queue!
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+ gem 'rspec', '~> 3.2.0'
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ test-queue (0.2.12)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ builder (3.2.2)
10
+ cucumber (1.3.19)
11
+ builder (>= 2.1.2)
12
+ diff-lcs (>= 1.1.3)
13
+ gherkin (~> 2.12)
14
+ multi_json (>= 1.7.5, < 2.0)
15
+ multi_test (>= 0.1.2)
16
+ diff-lcs (1.2.5)
17
+ gherkin (2.12.2)
18
+ multi_json (~> 1.3)
19
+ multi_json (1.11.0)
20
+ multi_test (0.1.2)
21
+ rspec (3.2.0)
22
+ rspec-core (~> 3.2.0)
23
+ rspec-expectations (~> 3.2.0)
24
+ rspec-mocks (~> 3.2.0)
25
+ rspec-core (3.2.3)
26
+ rspec-support (~> 3.2.0)
27
+ rspec-expectations (3.2.1)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.2.0)
30
+ rspec-mocks (3.2.1)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.2.0)
33
+ rspec-support (3.2.2)
34
+
35
+ PLATFORMS
36
+ ruby
37
+
38
+ DEPENDENCIES
39
+ cucumber (~> 1.3.10)
40
+ rspec (~> 3.2.0)
41
+ test-queue!
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-queue (0.2.11)
4
+ test-queue (0.2.13)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-queue (0.2.9)
4
+ test-queue (0.2.13)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -193,7 +193,7 @@ module TestQueue
193
193
  return unless relay?
194
194
 
195
195
  sock = connect_to_relay
196
- message = " #{@slave_message}" if @slave_message
196
+ message = @slave_message ? " #{@slave_message}" : ""
197
197
  message.gsub!(/(\r|\n)/, "") # Our "protocol" is newline-separated
198
198
  sock.puts("SLAVE #{@concurrency} #{Socket.gethostname} #{@run_token}#{message}")
199
199
  response = sock.gets.strip
@@ -1,7 +1,22 @@
1
1
  module RSpec::Core
2
+ # RSpec 3.2 introduced:
3
+ unless Configuration.method_defined?(:with_suite_hooks)
4
+ class Configuration
5
+ def with_suite_hooks
6
+ begin
7
+ hook_context = SuiteHookContext.new
8
+ hooks.run(:before, :suite, hook_context)
9
+ yield
10
+ ensure
11
+ hooks.run(:after, :suite, hook_context)
12
+ end
13
+ end
14
+ end
15
+ end
16
+
2
17
  class QueueRunner < Runner
3
18
  def initialize
4
- options = ::RSpec::Core::ConfigurationOptions.new(ARGV)
19
+ options = ConfigurationOptions.new(ARGV)
5
20
  super(options)
6
21
  end
7
22
 
@@ -12,10 +27,7 @@ module RSpec::Core
12
27
 
13
28
  def run_specs(iterator)
14
29
  @configuration.reporter.report(@world.ordered_example_groups.count) do |reporter|
15
- begin
16
- hook_context = SuiteHookContext.new
17
- @configuration.hooks.run(:before, :suite, hook_context)
18
-
30
+ @configuration.with_suite_hooks do
19
31
  iterator.map { |g|
20
32
  print " #{g.description}: "
21
33
  start = Time.now
@@ -25,8 +37,6 @@ module RSpec::Core
25
37
 
26
38
  ret
27
39
  }.all? ? 0 : @configuration.failure_exit_code
28
- ensure
29
- @configuration.hooks.run(:after, :suite, hook_context)
30
40
  end
31
41
  end
32
42
  end
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'test-queue'
3
- s.version = '0.2.12'
3
+ s.version = '0.2.13'
4
4
  s.summary = 'parallel test runner'
5
5
  s.description = 'minitest/rspec parallel test runner for CI environments'
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-01 00:00:00.000000000 Z
12
+ date: 2015-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -62,6 +62,12 @@ files:
62
62
  - Gemfile
63
63
  - Gemfile-minitest4
64
64
  - Gemfile-minitest4.lock
65
+ - Gemfile-rspec3-0
66
+ - Gemfile-rspec3-0.lock
67
+ - Gemfile-rspec3-1
68
+ - Gemfile-rspec3-1.lock
69
+ - Gemfile-rspec3-2
70
+ - Gemfile-rspec3-2.lock
65
71
  - Gemfile-testunit
66
72
  - Gemfile-testunit.lock
67
73
  - Gemfile.lock