servactory 2.9.1 → 2.9.2

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: 2170d941843c249577c0e416a62708a4b0a595b9af08b4d6910ddb1a5f82525a
4
- data.tar.gz: 3c534a35cc3363a2af08d07f1065ed0dd91d5b16ac4c26a64ce87ef8c16c149f
3
+ metadata.gz: dc774d1b1a59ffb653f33406b18ca938a8429f12181f75971bf06f42e4b9981f
4
+ data.tar.gz: c4b1e02b91511de91587dd656de85a5bfc219b39dac99c99c9e80cb2d175a01a
5
5
  SHA512:
6
- metadata.gz: 451bcdc055a60ef58af613c9245456c7fa1b0c96ff0b753e8a849e396ceef5158811db9b9e840d8e608101575570a060cce4b580efa5c3f625a903401d332222
7
- data.tar.gz: 00c5d9b555d40e8900b301cd0b94a0e9a0183b5cfb0ff1f7c129f783cf8e67d4ee6b644b1423ce818f811f644ccfabd26a8a4e258bb99e4e1336ab29524332d6
6
+ metadata.gz: 375ea6b23a62c0da8900fb34fb98cb56f9f3d0027f7233201bb1b1e90821358b7ce4434a011b4f748816893e3b9f78baa89a8d48e1c9533944e3e3047d70b825
7
+ data.tar.gz: 6780416158ae4f77ff61688bcabd3a83df4ab9374d49409bbd98d3b311fe693a89dd022db6340feb5bb4c27c373429c2238f915b5305a2a25bdbd4936b50f515
@@ -58,7 +58,7 @@ module Servactory
58
58
  if yield.is_a?(Hash)
59
59
  yield
60
60
  else
61
- { with_bang ? :exception : :error => yield }
61
+ { exception: yield }
62
62
  end
63
63
  else
64
64
  {}
@@ -89,7 +89,7 @@ module Servactory
89
89
  )
90
90
  .public_send(
91
91
  and_return_or_raise,
92
- if as_success
92
+ if as_success || !with_bang
93
93
  Servactory::TestKit::Result.public_send(result_type, **result)
94
94
  else
95
95
  Servactory::TestKit::Result.public_send(result_type, result)
@@ -4,7 +4,7 @@ module Servactory
4
4
  module VERSION
5
5
  MAJOR = 2
6
6
  MINOR = 9
7
- PATCH = 1
7
+ PATCH = 2
8
8
  PRE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Sokolov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport