sus 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f878b94ac4b8236fdb411866336061b34cca3c59a9573e4cb0ef238d545ffe3d
4
- data.tar.gz: c61aaee1228f6ab7796811ee739de195a5b59cf1a014f304d08f3d64488c94ba
3
+ metadata.gz: 4c4e40f000e1811b16c1718c123e165cafbb2fe8b576954f6c8824ea61097985
4
+ data.tar.gz: 42a5387eae3f2588b13ed33b3e75a1df5193b6d636a3a730c4454e9b3ad81a16
5
5
  SHA512:
6
- metadata.gz: 181ee960cee58bf710d7de09a6f83f72a71f01d25716d18dd386562bf2984e14f690cfa1561b298d36bc068d06676481979866f48ee2a2716866e725a9d3c07f
7
- data.tar.gz: 206fa66d07315578142b07b3802a66af629668502a2745dbf4a3f60cbebf4c8d8cc8c2edd4011397a22b7d039c753874409fe576d42890745629d4d5ac57a906
6
+ metadata.gz: 4af49c129c2acef1b1884e3bf3f7269f4340f47a264e6eab595eaf967d5f4dda14ce74a24adaf0bfc85bf362846c27c6e469218da5b32917bbd8c4d418477329
7
+ data.tar.gz: 20da00aa7d81f0e5444af2938f1bc346a1e5dd958b9ebea2826d26d637af64bfbbab5c21002b2e85afbffcc904c59c4a709c67f36562254e20e508860fa53a01
checksums.yaml.gz.sig CHANGED
Binary file
@@ -130,6 +130,10 @@ module Sus
130
130
  end
131
131
  end
132
132
 
133
+ def inform(message)
134
+ @output.puts(:indent, :inform, inform_prefix, message)
135
+ end
136
+
133
137
  # Add deferred assertions.
134
138
  def defer(&block)
135
139
  @deferred << block
@@ -266,5 +270,9 @@ module Sus
266
270
  def fail_prefix
267
271
  "✗ "
268
272
  end
273
+
274
+ def inform_prefix
275
+ "ℹ "
276
+ end
269
277
  end
270
278
  end
data/lib/sus/base.rb CHANGED
@@ -34,8 +34,8 @@ module Sus
34
34
  @__assertions__.assert(...)
35
35
  end
36
36
 
37
- def refute(...)
38
- @__assertions__.refute(...)
37
+ def inform(...)
38
+ @__assertions__.inform(...)
39
39
  end
40
40
  end
41
41
 
data/lib/sus/output.rb CHANGED
@@ -40,6 +40,7 @@ module Sus
40
40
  output[:passed] = output.style(:green)
41
41
  output[:failed] = output.style(:red)
42
42
  output[:error] = output.style(:red)
43
+ # output[:inform] = output.style(nil, nil, :bold)
43
44
 
44
45
  return output
45
46
  end
data/lib/sus/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  module Sus
7
- VERSION = "0.11.2"
7
+ VERSION = "0.12.0"
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file