rspec-multiprocess_runner 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/rspec/multiprocess_runner/file_coordinator.rb +4 -3
- data/lib/rspec/multiprocess_runner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e0686de0f6ec92d9bfd7eddfb6a8c6ed3a781337dfa8557a49f3034eeff9fdf
|
4
|
+
data.tar.gz: 61a4bc72b7bff1eace52541606b2b1d9a38bfe2c0a0ae6e6b110947824ddeda8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e0d567808840b2672055500fa190e998fd66a08a8459e7456aaa3b3f417197ba4a763f36493a31513060384fb0b0a67bd3686865d503cac4ca6d707189b3eb
|
7
|
+
data.tar.gz: 72767efc1dfefeb4db2632dab59a9e098e7492475451f90589b5bbee54fcc93455088113ae37e3f514e005aa35e216a8e66bc22241e295bd1f1370d58c92d47c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'rspec/multiprocess_runner'
|
3
3
|
require 'socket'
|
4
|
+
require 'json'
|
4
5
|
require 'set'
|
5
6
|
|
6
7
|
module RSpec::MultiprocessRunner
|
@@ -14,7 +15,7 @@ module RSpec::MultiprocessRunner
|
|
14
15
|
COMMAND_FINISHED = "finished"
|
15
16
|
COMMAND_START = "start"
|
16
17
|
|
17
|
-
def initialize(files, options=
|
18
|
+
def initialize(files, options=RSpec::MultiprocessRunner::CommandLineOptions.new)
|
18
19
|
@spec_files = []
|
19
20
|
@results = Set.new
|
20
21
|
@threads = []
|
@@ -123,7 +124,7 @@ module RSpec::MultiprocessRunner
|
|
123
124
|
break unless raw_response
|
124
125
|
command, results, node = JSON.parse(raw_response)
|
125
126
|
if command == COMMAND_START
|
126
|
-
if results == options.
|
127
|
+
if results == options.run_identifier
|
127
128
|
socket.puts COMMAND_START
|
128
129
|
else
|
129
130
|
socket.puts COMMAND_FINISHED
|
@@ -144,7 +145,7 @@ module RSpec::MultiprocessRunner
|
|
144
145
|
|
145
146
|
def start?
|
146
147
|
begin
|
147
|
-
@node_socket.puts [COMMAND_START, options.
|
148
|
+
@node_socket.puts [COMMAND_START, options.run_identifier].to_json
|
148
149
|
response = @node_socket.gets
|
149
150
|
response = response.chomp if response
|
150
151
|
raise BadStartStringError if response == COMMAND_FINISHED
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-multiprocess_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rhett Sutphin
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-12-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|