test_bench-bootstrap 4.1.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/test_bench/bootstrap.rb +22 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a61e98241c90eeb97185b93f941d689fcc8f9f78c776c490130d5d055adb9f0
4
- data.tar.gz: 4810d767fd1dda8c53f2279ef6b0971101dca745c3eb4fab81c0f591b397c245
3
+ metadata.gz: febf97af4be1d698e916883487cabb3c97744fb131a21c0f90480615152cc2b2
4
+ data.tar.gz: a4672760952c94f5d286ae7b805fb5f2f6331b9a528ffc89b5c997ced799d7d3
5
5
  SHA512:
6
- metadata.gz: b8447b2e32eb2950ea87e33a83228dd95d48acdf831539d3ee2afae671405261ee847b5810cd6b15bd0068ab5fcd2ca13787128b583e2da46e20e2dc5ea13f28
7
- data.tar.gz: 911dd76a71af1d84a8874790f1abb136ac70ea72df5c29746f487cd0cbf91d272861d0d4e78fd4dc97593ee19dac0891dcca2c4bc7c8a03bfdd6eacb80b0f4dc
6
+ metadata.gz: e2f01bb6c75c2634166590b1daae4befffdae3f4dd29db85e83bd379a9e783e6355c2b05c817040582604873d16da6a55d8c79b85cf382a2a5208bb4fe453603
7
+ data.tar.gz: db121e97235618571c7fadc8478efb0e027873ba027acad04c1914963e4d9f5a3b08be94ad98a119f84a8454438933160bda71d1bf8eb76fdf003c24c9395a34
@@ -152,11 +152,30 @@ module TestBench
152
152
  end
153
153
 
154
154
  def comment(text)
155
- Output.write(text)
155
+ Output.indent(text)
156
156
  end
157
157
 
158
- def detail(text)
159
- comment(text)
158
+ def detail(text, *supplemental_lines, title: nil)
159
+ if supplemental_lines.none? && title.nil?
160
+ comment(text)
161
+ return
162
+ end
163
+
164
+ title = !text.end_with?("\n") if title.nil?
165
+
166
+ if title
167
+ title_text = text.chomp
168
+ Output.indent(title_text, sgr_codes: [0x1, 0x4])
169
+ else
170
+ first_supplemental_line = text
171
+ supplemental_lines.unshift(first_supplemental_line)
172
+ end
173
+
174
+ supplemental_lines.each do |line|
175
+ line.chomp!
176
+
177
+ Output.indent("\e[2m>\e[22m \e[3m#{line}\e[0m")
178
+ end
160
179
  end
161
180
 
162
181
  def fixture(cls, *args, **kwargs, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-11-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: nathanladd+github@gmail.com
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
- rubygems_version: 3.3.22
39
+ rubygems_version: 3.3.23
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: A minimal test framework for testing TestBench