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.
- checksums.yaml +4 -4
- data/lib/test_bench/bootstrap.rb +22 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: febf97af4be1d698e916883487cabb3c97744fb131a21c0f90480615152cc2b2
|
4
|
+
data.tar.gz: a4672760952c94f5d286ae7b805fb5f2f6331b9a528ffc89b5c997ced799d7d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2f01bb6c75c2634166590b1daae4befffdae3f4dd29db85e83bd379a9e783e6355c2b05c817040582604873d16da6a55d8c79b85cf382a2a5208bb4fe453603
|
7
|
+
data.tar.gz: db121e97235618571c7fadc8478efb0e027873ba027acad04c1914963e4d9f5a3b08be94ad98a119f84a8454438933160bda71d1bf8eb76fdf003c24c9395a34
|
data/lib/test_bench/bootstrap.rb
CHANGED
@@ -152,11 +152,30 @@ module TestBench
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def comment(text)
|
155
|
-
Output.
|
155
|
+
Output.indent(text)
|
156
156
|
end
|
157
157
|
|
158
|
-
def detail(text)
|
159
|
-
|
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
|
+
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-
|
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.
|
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
|