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.
- checksums.yaml +4 -4
- data/lib/test_bench/bootstrap.rb +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 767df4583392029c9c3e454af34c912e19f5225cc643c988d2ea81b0fe0ea32c
|
4
|
+
data.tar.gz: 67b64b8a37af6c351600dd2ca3091eff995ba3e2c35ae7ee50772a4accdab207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80795f1e607dadb28337d300c6c02c7879a393c4ba8a41d6f8b640df54c2235ef36e9cabc1bc886df5e7bab90b0a70b0dcb05ba44e0db661c1bad5fd3b4482b9
|
7
|
+
data.tar.gz: 6300cbfab8047d96ded07e36227a2b6c1e787c67e017f44ad42ccee592e107231289666866f4efcfd6915274cb137f6eeb759826f2e0f544ffff74c75cd0aee1
|
data/lib/test_bench/bootstrap.rb
CHANGED
@@ -159,7 +159,11 @@ module TestBench
|
|
159
159
|
details = [detail, *additional_details]
|
160
160
|
|
161
161
|
if quote.nil?
|
162
|
-
|
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
|
190
|
+
Output.indent("\e[2m> \e[22m#{line}")
|
182
191
|
end
|
183
192
|
else
|
184
193
|
Output.indent(detail)
|