flatware-rspec 2.0.0.rc3 → 2.0.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: 436149ce293c8e877b3c81d196dc5af1f74f697b8d10e12d0f29952f615c55ac
|
4
|
+
data.tar.gz: 0e888d9cf1b1a6a267a57670769c42dcd5af22982fa788524999a24f83914169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af1b7330e2622dc1a43980870672fa020d4c1e49f36fa628a2ca28adac65cf0f5c4bbc86e5fe7fa0bb896b9c7c54215f0d6562c15fe428d0ee0b9a88330b2e9c
|
7
|
+
data.tar.gz: 21462ec96b948ec20853db6f34512e48fb8e757de345be832391114a45d70c63f01fba02ba9e0141d559407fae9c9d738c687a13a9d22925bef56e495eeddebf
|
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.0.0
|
4
|
+
version: 2.0.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: 2022-09-07 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.0.0
|
19
|
+
version: 2.0.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.0.0
|
26
|
+
version: 2.0.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.2'
|
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
|