soft-assert 1.0.2 → 1.0.3

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.

Potentially problematic release.


This version of soft-assert might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/soft_assert.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 955cff3e3daa156a16999d5d4e2e4c570f974cebbeeac86e71eca4a0e053ca2a
4
- data.tar.gz: 040e5d3c564a106242dff679ee19af47a4b68cda99b8f65a0b8fc7d6fb490ff7
3
+ metadata.gz: 00f990ab1d78cc13eb608dd5e848a75902cdffe94061bf0c48766e7f47ad2b12
4
+ data.tar.gz: 3450a4f9f3f405ebee592f8feb34e71e593d53a26e356d57d5e4dcc0157e851e
5
5
  SHA512:
6
- metadata.gz: 416a1dce755674c5f904fc43663870f09ea333956e7a0c2c84701d756c380b615afae8f8c963e512dc4a5bba5ea6ba499ed32ec08c3f2b4f514415aa82a5c587
7
- data.tar.gz: 17225fdb4b8035bb6ad4bb3d5ab7f7241077053e8e7dffe781a7454bf0f57266c76ffb9f1e2ada345dd0b4008a93e9a9b8524e43dd4c9a492f8cc4294e28ac6c
6
+ metadata.gz: d63a53c78df8bf8c7ce9525bd92fddef447d1ca417591ad2761d82754b30385e5cab52423da9748dca19308f24136314e7a7861ddc4581d99370bf802df58a17
7
+ data.tar.gz: f0f21bdc85d0e9775f3e7fb01a4a58a6662d17dd0d010aac6cc77e315fe0634ab31a998d418da1ae6f1cba009c4714cd3a8c5057da01479fdbed2c3843f76241
data/lib/soft_assert.rb CHANGED
@@ -11,6 +11,9 @@ require 'test/unit/assertions'
11
11
  module SoftAssert
12
12
  extend Minitest::Assertions
13
13
 
14
+ class SoftAssertionError < Minitest::Assertion
15
+ end
16
+
14
17
  class << self
15
18
  attr_accessor :assertions
16
19
  end
@@ -193,6 +196,8 @@ module SoftAssert
193
196
 
194
197
  errors = @soft_errors
195
198
  @soft_errors = []
196
- raise "Soft Assertion\n#{errors.join("\n\n")}\n"
199
+
200
+ message = "Soft Assertion\n#{errors.join("\n\n")}\n"
201
+ raise SoftAssertionError, message
197
202
  end
198
203
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soft-assert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashitha Rao
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-18 00:00:00.000000000 Z
12
+ date: 2026-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest