use_cases 2.0.5 → 2.0.7

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: 0eeb3dbfaea03f3428d29cc4f962c451b45450b483fca46fcb6cd57e49d68ab8
4
- data.tar.gz: f762a4103472c0d451a7904a2ea1826e2496e4856b19ec10301fdcd5cbfbcfed
3
+ metadata.gz: 72739169a47d340ca0a214d5545d51da25abf076eb07d117405a89b64b950cab
4
+ data.tar.gz: 99eaab606b81e3c4640ac00f2f55ef0b38d5d8a1cbdd91bdf206f704cd19f2be
5
5
  SHA512:
6
- metadata.gz: 95fb413aef5d081dceab61857d514b8a0cdc85ec6e59ac255c027e7b5e8cc3192d1ced90d1f28da46595140e22258e1f51f7333f9ecbdbbfbfd08572c9e51101
7
- data.tar.gz: 8e4497d22b20a6894b43b4f23bc3f10be0d40064ecebc6887e7b02f2fb769b14337364af1806a2a999984849516a214bff3272f71074054b3dfe750f932e2dd0
6
+ metadata.gz: 7273f8f7e7f352f67f481a46ffc21f63e459eaa89a4dd248963c589eda01c8fc4ec7919a0f22268e3cffe12564c4bdf0a04ae9c478e3f90a526e2ef58cb610bf
7
+ data.tar.gz: a90835551dddd23ed614d8c03cb29919d122ebcffe6f185ce3e7bcf5456d7ba1d9c0fea622c6c5dd0b48c10eee7dd1d53fd1f550c17f773dfba97cace62123b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- use_cases (2.0.5)
4
+ use_cases (2.0.6)
5
5
  activesupport (>= 5.1)
6
6
  dry-matcher (>= 0.8.1)
7
7
  dry-monads (>= 1.0.0)
@@ -9,8 +9,6 @@ module UseCases
9
9
 
10
10
  def do_call(*args)
11
11
  result = super(*args)
12
- raise InvalidReturnValue, "For a tee step, a Monad will have no effect." if result.is_a?(Dry::Monads::Result)
13
-
14
12
  Success(args.first)
15
13
  end
16
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UseCases
4
- VERSION = "2.0.5"
4
+ VERSION = "2.0.7"
5
5
  end
data/lib/use_cases.rb CHANGED
@@ -24,7 +24,10 @@ module UseCases
24
24
  config_proc = config.dry_validation
25
25
 
26
26
  proc do
27
- config_proc.call(config)
27
+ begin
28
+ config_proc.call(config)
29
+ rescue Dry::Configurable::FrozenConfig
30
+ end
28
31
  end
29
32
  end
30
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: use_cases
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ring Twice
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-01 00:00:00.000000000 Z
11
+ date: 2022-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport