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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c7ed50452251f91a122a1870cf0034e737bd9e245a2effca63876d352b6dfaa
4
- data.tar.gz: 204dc1af97debe14947500af0bf54da88f5b5d6a8e95eda320b94ef81315be7f
3
+ metadata.gz: e3d305777635120686ef79fe1d4ae92e687c11f721553f954b4b0b7fe53ff105
4
+ data.tar.gz: ba6c21f547971de936e42594f255ede16696f3c773b25163ee7590d1eb4c37e6
5
5
  SHA512:
6
- metadata.gz: 19970bba746199d0514531e83ceacdfd48a89ef3f0531ff6a9d42c5b89927e107fd429c11594f9a3e784c03014ee12911be9217188150609582e78091c4e578d
7
- data.tar.gz: 8b1284ae49367edfa7ba0e5e06f95fe7df5523f9091340f0f5e08fba3e9a6332dcb6a342d075990ed78ed5fe723ae25b4604336a5cb60e16fc95918d8807cd45
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.connection_config
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
@@ -17,6 +17,10 @@ module Flatware
17
17
  progress_formatter.public_send(message_for(result), nil)
18
18
  end
19
19
 
20
+ def message(message)
21
+ out.puts(message.message)
22
+ end
23
+
20
24
  def summarize(checkpoints)
21
25
  return if checkpoints.empty?
22
26
 
@@ -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 = StringIO.new
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.rc3
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: 2021-03-15 00:00:00.000000000 Z
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.0.0.rc3
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.0.0.rc3
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.1'
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: 1.3.1
87
+ version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.2.3
89
+ rubygems_version: 3.3.7
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: A distributed rspec runner