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.
- checksums.yaml +4 -4
- data/lib/soft_assert.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00f990ab1d78cc13eb608dd5e848a75902cdffe94061bf0c48766e7f47ad2b12
|
|
4
|
+
data.tar.gz: 3450a4f9f3f405ebee592f8feb34e71e593d53a26e356d57d5e4dcc0157e851e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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:
|
|
12
|
+
date: 2026-11-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: minitest
|