flatware-rspec 2.0.0.rc3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/flatware/rspec/formatter.rb +5 -0
- data/lib/flatware/rspec/formatters/console.rb +4 -0
- data/lib/flatware/rspec.rb +9 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3d305777635120686ef79fe1d4ae92e687c11f721553f954b4b0b7fe53ff105
|
4
|
+
data.tar.gz: ba6c21f547971de936e42594f255ede16696f3c773b25163ee7590d1eb4c37e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00f0dd0f74b060f30a3945dbc55f8c6275df137339aae3ff951fc402ef2d0ad89e5bd4d456f4614514c7521ca4b4c45b3664f4398bbe44777135de2e04167784
|
7
|
+
data.tar.gz: cd39ce19e03a231814250053d144a8ee7e327335be8b78589fadae0dba9187fcd0fb61f9c9b51d8745e0ee7935b48ddf3b8dd1d3b6cb54583ccdc0367e6148b7
|
data/README.md
CHANGED
@@ -114,7 +114,7 @@ Flatware.configure do |conf|
|
|
114
114
|
end
|
115
115
|
|
116
116
|
conf.after_fork do |test_env_number|
|
117
|
-
config = ActiveRecord::Base.
|
117
|
+
config = ActiveRecord::Base.connection_db_config.configuration_hash
|
118
118
|
|
119
119
|
ActiveRecord::Base.establish_connection(
|
120
120
|
config.merge(
|
@@ -29,6 +29,10 @@ module Flatware
|
|
29
29
|
send_progress :pending
|
30
30
|
end
|
31
31
|
|
32
|
+
def message(message)
|
33
|
+
Sink.client.message message
|
34
|
+
end
|
35
|
+
|
32
36
|
def close(*)
|
33
37
|
Sink.client.checkpoint checkpoint
|
34
38
|
@checkpoint = nil
|
@@ -50,6 +54,7 @@ module Flatware
|
|
50
54
|
:example_passed,
|
51
55
|
:example_failed,
|
52
56
|
:example_pending,
|
57
|
+
:message,
|
53
58
|
:close
|
54
59
|
)
|
55
60
|
end
|
data/lib/flatware/rspec.rb
CHANGED
@@ -21,9 +21,17 @@ module Flatware
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
def output_stream
|
25
|
+
StringIO.new.tap do |output|
|
26
|
+
output.define_singleton_method(:tty?) do
|
27
|
+
$stdout.tty?
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
24
32
|
def run(job, _options = [])
|
25
33
|
::RSpec.configuration.deprecation_stream = StringIO.new
|
26
|
-
::RSpec.configuration.output_stream =
|
34
|
+
::RSpec.configuration.output_stream = output_stream
|
27
35
|
::RSpec.configuration.add_formatter(Flatware::RSpec::Formatter)
|
28
36
|
|
29
37
|
runner.run(Array(job), $stderr, $stdout)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatware-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flatware
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,14 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '2.6'
|
80
80
|
- - "<"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
82
|
+
version: '3.3'
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - "
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
87
|
+
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
89
|
+
rubygems_version: 3.3.7
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: A distributed rspec runner
|