test_bench-bootstrap 6.1.0 → 6.1.1

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 +11 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a477bb3e37ba7658184cef18d64bb583ebc6b806450ac7d2b414551e9de7865e
4
- data.tar.gz: 385937532fa15f4fb5b3a616ed1bbe685dbf75bbd062ce56d907a6a95adf99cd
3
+ metadata.gz: 767df4583392029c9c3e454af34c912e19f5225cc643c988d2ea81b0fe0ea32c
4
+ data.tar.gz: 67b64b8a37af6c351600dd2ca3091eff995ba3e2c35ae7ee50772a4accdab207
5
5
  SHA512:
6
- metadata.gz: bc54646b9be52b8f4d244cea662a7f18e4c4a757f16ba424c5855076428c75dec148d1ad4b5973b69d47c4f0c2e3d9cb9d594aa428f0a1505961213fb417abb2
7
- data.tar.gz: ad3987c5017ebca65f1db95e436e9deef09a25746119389b2f57602f007933a1df9db5ed154d602f26e28711aaa4fe42b39ffa4289457bca4174ae32ffee3d03
6
+ metadata.gz: 80795f1e607dadb28337d300c6c02c7879a393c4ba8a41d6f8b640df54c2235ef36e9cabc1bc886df5e7bab90b0a70b0dcb05ba44e0db661c1bad5fd3b4482b9
7
+ data.tar.gz: 6300cbfab8047d96ded07e36227a2b6c1e787c67e017f44ad42ccee592e107231289666866f4efcfd6915274cb137f6eeb759826f2e0f544ffff74c75cd0aee1
@@ -159,7 +159,11 @@ module TestBench
159
159
  details = [detail, *additional_details]
160
160
 
161
161
  if quote.nil?
162
- quote = details.last.end_with?("\n")
162
+ if additional_details == ['']
163
+ quote = true
164
+ else
165
+ quote = details.last.end_with?("\n")
166
+ end
163
167
  end
164
168
 
165
169
  if quote
@@ -174,11 +178,16 @@ module TestBench
174
178
  end
175
179
 
176
180
  details.each do |detail|
181
+ if detail.empty?
182
+ Output.indent("\e[2;3m(empty)\e[23;22m")
183
+ next
184
+ end
185
+
177
186
  if quote
178
187
  detail.each_line do |line|
179
188
  line.chomp!
180
189
 
181
- Output.indent("\e[2m>\e[22m \e[3m#{line}\e[0m")
190
+ Output.indent("\e[2m> \e[22m#{line}")
182
191
  end
183
192
  else
184
193
  Output.indent(detail)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd