test_bench-bootstrap 6.0.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 +14 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bab482f0b0e6c9bd91cafe2eda531743d77bb46c67bc9ace7cc3d0b5d29048e
4
- data.tar.gz: 39f9bc31bd52f88621e13a6df81fd8f709ba62366aa4dbfd82acbba4d823324f
3
+ metadata.gz: 767df4583392029c9c3e454af34c912e19f5225cc643c988d2ea81b0fe0ea32c
4
+ data.tar.gz: 67b64b8a37af6c351600dd2ca3091eff995ba3e2c35ae7ee50772a4accdab207
5
5
  SHA512:
6
- metadata.gz: a365bd710e401b38b945b92f22c2aeb23929bd4dd4a1b3a43cb8a3138209816fa9f74076b04ef05f48112bd7855ee34dcd0e7e66106234a2982212b16a91da44
7
- data.tar.gz: 915db1d6c535c5663d677300ae4b1bde08087fb49b659efd0a565cc063e8cbf0c6683a48ae7580f67ac2fb9f48f85750cacf2050bbddc78b13a7542ec3e82293
6
+ metadata.gz: 80795f1e607dadb28337d300c6c02c7879a393c4ba8a41d6f8b640df54c2235ef36e9cabc1bc886df5e7bab90b0a70b0dcb05ba44e0db661c1bad5fd3b4482b9
7
+ data.tar.gz: 6300cbfab8047d96ded07e36227a2b6c1e787c67e017f44ad42ccee592e107231289666866f4efcfd6915274cb137f6eeb759826f2e0f544ffff74c75cd0aee1
@@ -151,15 +151,19 @@ module TestBench
151
151
  test(title)
152
152
  end
153
153
 
154
- def comment(comment)
155
- Output.indent(comment)
154
+ def comment(...)
155
+ detail(...)
156
156
  end
157
157
 
158
158
  def detail(detail, *additional_details, quote: nil, heading: nil)
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,14 +178,19 @@ 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
- Output.comment(detail)
193
+ Output.indent(detail)
185
194
  end
186
195
  end
187
196
  end
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.0.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd