sus 0.24.3 → 0.24.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a211ce538f3e1c9d4c5ae3e75f77e4209ca0a0387eec6069c914f891d734bdbd
4
- data.tar.gz: 23b4244bc9552bc5f796df831269823b4d68b7e0bf95ea58d20be1eeeb6fe9e4
3
+ metadata.gz: 67342c168a6bdadd4fac4b58f2acf6a5e4cf5057de757b3fdd8a51f9e678ab84
4
+ data.tar.gz: 84d9628daaf545f8eceb1fb0dd6e3a9920dd8a16f5dbc5c09288e2012d1db26f
5
5
  SHA512:
6
- metadata.gz: df8a5038b85ba56492ada143828a830472a8143351b131948397a7a1fcd916f8a2c9cc9a960717a621065cc43304500d637bed2ef85fe79e2fe0705766e53e5a
7
- data.tar.gz: 63c761793fa298c19b86e753975fe7b7f430f2f61a60cc99eb73df470379865ce45df5e943ef669edb50337aaa7c0d43a095e507cce5987d461f338bfa43f730
6
+ metadata.gz: 6a7148c1023aad25cc26674a5d778619ed91abc9286240376b9295a3c9705a957c827dfccedf2e5df9787534602c9e6b79ac82f73676ed9365894b4fb8a24396
7
+ data.tar.gz: aec658edbded84cb1e90d4defac4112ae74dd8e732c2a9d04c00bda7986fde88a8879a7bbc10a9bd7fe375487c64c85bafc73099605da93f1bad44b5f37a1cc7
checksums.yaml.gz.sig CHANGED
Binary file
@@ -199,13 +199,6 @@ module Sus
199
199
  end
200
200
  end
201
201
 
202
- def message
203
- {
204
- text: @output.string,
205
- location: @identity&.to_location
206
- }
207
- end
208
-
209
202
  def each_failure(&block)
210
203
  return to_enum(__method__) unless block_given?
211
204
 
data/lib/sus/expect.rb CHANGED
@@ -8,6 +8,10 @@ module Sus
8
8
  def initialize(assertions, subject, inverted: false, distinct: false)
9
9
  @assertions = assertions
10
10
  @subject = subject
11
+
12
+ # We capture this here, as changes to state may cause the inspect output to change, affecting the output produced by #print.
13
+ @inspect = @subject.inspect
14
+
11
15
  @inverted = inverted
12
16
  @distinct = true
13
17
  end
@@ -22,10 +26,10 @@ module Sus
22
26
  end
23
27
 
24
28
  def print(output)
25
- output.write("expect ", :variable, @subject.inspect, :reset, " ")
29
+ output.write("expect ", :variable, @inspect, :reset, " ")
26
30
 
27
31
  if @inverted
28
- output.write("to not", :reset)
32
+ output.write("not to", :reset)
29
33
  else
30
34
  output.write("to", :reset)
31
35
  end
@@ -55,8 +55,6 @@ module Sus
55
55
  @io.tty?
56
56
  end
57
57
 
58
- attr :io
59
-
60
58
  def [] key
61
59
  @styles[key]
62
60
  end
data/lib/sus/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2023, by Samuel Williams.
5
5
 
6
6
  module Sus
7
- VERSION = "0.24.3"
7
+ VERSION = "0.24.5"
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.24.3
4
+ version: 0.24.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-01-24 00:00:00.000000000 Z
41
+ date: 2024-01-26 00:00:00.000000000 Z
42
42
  dependencies: []
43
43
  description:
44
44
  email:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.5.3
124
+ rubygems_version: 3.5.5
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: A fast and scalable test runner.
metadata.gz.sig CHANGED
Binary file