result_vault 1.2.3 → 1.3.0

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: cc62221bda4ff92f32af12135f1e99b44a85c0960494b3daad9d727dbc7f78f0
4
- data.tar.gz: c2d5f53c3919a4eca97a89e1c11d1e89167eff80b5de6d5f94595d9e7d398b4c
3
+ metadata.gz: 6c671fcc654b2656919f94b9552b53ae4e2a479557004b09a5c5e2012cedf3c6
4
+ data.tar.gz: 2f995336f27d98253b7347e82182d3b57293e42a9d8b1321f66642d92a93e7c2
5
5
  SHA512:
6
- metadata.gz: 5a6028e1dbc8910a763ddc914f2261280d1d8371747ff480e028774048735620bdf695be5bd9d2c0067582c421b739a96e80d7332a5a4bc250b3ddb669a55ba1
7
- data.tar.gz: dea5c853880da64aca0e40924960c7787b77c68f80c718a6f0f7875e50b574c3422cd526f2828ff5f038919d2632d674ed17bcaee0f368a0a7caecf2aa2ca7d0
6
+ metadata.gz: 363e3220a079d30749fb5b3d11594073d38dd29427ca5d24def50e89f155b09ad9dc6bfc854a6d5286a95b77561e23752b4dec2391bcbf0b63a05084ae1b013f
7
+ data.tar.gz: eace09a16e1d4affd64b22c84611e1be6923ec814e6b4a92369fc099ca6587ce5e83e3441b9311e39356c0e9115726336ec20af5f36f62a7be73d5a50ceab3dc
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ResultVault
4
- VERSION = "1.2.3"
4
+ VERSION = '1.3.0'
5
5
  end
data/lib/result_vault.rb CHANGED
@@ -202,7 +202,8 @@ class ResultVault
202
202
 
203
203
  when :exception
204
204
  _assert_valid_exception(val)
205
- @exception = val
205
+ @exception = val
206
+ @error_message = exception.to_s if [nil, ""].include?(@error_message)
206
207
 
207
208
  when :success, :ok, :good, :pass, :passed, :succeeded
208
209
  @success = !!val
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: result_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CodeMeister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-25 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " When your method needs to return more than a single value, ResultVault
14
14
  is a pure ruby solution that lets you add all the extra bits you need while
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
45
  requirements: []
46
- rubygems_version: 3.5.5
46
+ rubygems_version: 3.5.6
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: When your method needs to return more than a single value.