u-case 4.4.0 → 4.5.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 +4 -4
- data/README.md +3 -3
- data/README.pt-BR.md +3 -3
- data/lib/micro/case/result.rb +1 -1
- data/lib/micro/case/version.rb +1 -1
- data/lib/micro/case/with_activemodel_validation.rb +1 -5
- data/u-case.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0698f0ab43f3865d2ead4f23980f541290c07dc64bd524495417ea93d995d5fd'
|
4
|
+
data.tar.gz: 0ca02bcf975055a3514931f28a55769f42f63f30f84b61b740193ebdf9a1a5fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e8113cc4e997f014cb9797593079c56bad0c90364fa72a201902d02136172236a44bfce5efb55ecd6e6337787590dd90ea7c5be3cf274e56f518302e9a3cea9
|
7
|
+
data.tar.gz: 9bf33db4748dbe41539a59859943e016c79ee71391748ff51723ea752b8286cab156f7c2a226d1064ec7ea8c1c70adce1460dbc34ebabd93032c9f63d3c36254
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ The main project goals are:
|
|
39
39
|
Version | Documentation
|
40
40
|
--------- | -------------
|
41
41
|
unreleased| https://github.com/serradura/u-case/blob/main/README.md
|
42
|
-
4.
|
42
|
+
4.5.0 | https://github.com/serradura/u-case/blob/v4.x/README.md
|
43
43
|
3.1.0 | https://github.com/serradura/u-case/blob/v3.x/README.md
|
44
44
|
2.6.0 | https://github.com/serradura/u-case/blob/v2.x/README.md
|
45
45
|
1.1.0 | https://github.com/serradura/u-case/blob/v1.x/README.md
|
@@ -102,7 +102,7 @@ unreleased| https://github.com/serradura/u-case/blob/main/README.md
|
|
102
102
|
| u-case | branch | ruby | activemodel | u-attributes |
|
103
103
|
| -------------- | ------- | -------- | ------------- | ------------- |
|
104
104
|
| unreleased | main | >= 2.2.0 | >= 3.2, < 7.0 | >= 2.7, < 3.0 |
|
105
|
-
| 4.
|
105
|
+
| 4.5.0 | v4.x | >= 2.2.0 | >= 3.2, < 7.0 | >= 2.7, < 3.0 |
|
106
106
|
| 3.1.0 | v3.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 1.1 |
|
107
107
|
| 2.6.0 | v2.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 1.1 |
|
108
108
|
| 1.1.0 | v1.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 1.1 |
|
@@ -126,7 +126,7 @@ unreleased| https://github.com/serradura/u-case/blob/main/README.md
|
|
126
126
|
Add this line to your application's Gemfile:
|
127
127
|
|
128
128
|
```ruby
|
129
|
-
gem 'u-case', '~> 4.
|
129
|
+
gem 'u-case', '~> 4.5.0'
|
130
130
|
```
|
131
131
|
|
132
132
|
And then execute:
|
data/README.pt-BR.md
CHANGED
@@ -39,7 +39,7 @@ Principais objetivos deste projeto:
|
|
39
39
|
Versão | Documentação
|
40
40
|
--------- | -------------
|
41
41
|
unreleased| https://github.com/serradura/u-case/blob/main/README.md
|
42
|
-
4.
|
42
|
+
4.5.0 | https://github.com/serradura/u-case/blob/v4.x/README.md
|
43
43
|
3.1.0 | https://github.com/serradura/u-case/blob/v3.x/README.md
|
44
44
|
2.6.0 | https://github.com/serradura/u-case/blob/v2.x/README.md
|
45
45
|
1.1.0 | https://github.com/serradura/u-case/blob/v1.x/README.md
|
@@ -100,7 +100,7 @@ unreleased| https://github.com/serradura/u-case/blob/main/README.md
|
|
100
100
|
| u-case | branch | ruby | activemodel | u-attributes- |
|
101
101
|
| -------------- | ------- | -------- | ------------- | ------------- |
|
102
102
|
| unreleased | main | >= 2.2.0 | >= 3.2, < 7.0 | >= 2.7, < 3.0 |
|
103
|
-
| 4.
|
103
|
+
| 4.5.0 | v4.x | >= 2.2.0 | >= 3.2, < 7.0 | >= 2.7, < 3.0 |
|
104
104
|
| 3.1.0 | v3.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 1.1 |
|
105
105
|
| 2.6.0 | v2.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 1.1 |
|
106
106
|
| 1.1.0 | v1.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 1.1 |
|
@@ -124,7 +124,7 @@ unreleased| https://github.com/serradura/u-case/blob/main/README.md
|
|
124
124
|
Adicione essa linha ao Gemfile da sua aplicação:
|
125
125
|
|
126
126
|
```ruby
|
127
|
-
gem 'u-case', '~> 4.
|
127
|
+
gem 'u-case', '~> 4.5.0'
|
128
128
|
```
|
129
129
|
|
130
130
|
E então execute:
|
data/lib/micro/case/result.rb
CHANGED
@@ -111,7 +111,7 @@ module Micro
|
|
111
111
|
def on_exception(expected_exception = nil)
|
112
112
|
return self unless __failure_type?(:exception)
|
113
113
|
|
114
|
-
if !expected_exception || (Kind.is(Exception, expected_exception) && data.fetch(:exception).is_a?(expected_exception))
|
114
|
+
if !expected_exception || (Kind.is?(Exception, expected_exception) && data.fetch(:exception).is_a?(expected_exception))
|
115
115
|
yield(data, @use_case)
|
116
116
|
end
|
117
117
|
|
data/lib/micro/case/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kind/
|
3
|
+
require 'kind/validator'
|
4
4
|
|
5
5
|
require 'micro/case'
|
6
6
|
|
@@ -16,10 +16,6 @@ module Micro
|
|
16
16
|
@disable_auto_validation = true
|
17
17
|
end
|
18
18
|
|
19
|
-
def initialize(input)
|
20
|
-
__setup_use_case(input)
|
21
|
-
end
|
22
|
-
|
23
19
|
private
|
24
20
|
|
25
21
|
def __call_use_case
|
data/u-case.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.required_ruby_version = '>= 2.2.0'
|
27
27
|
|
28
|
-
spec.add_runtime_dependency 'kind', '>=
|
28
|
+
spec.add_runtime_dependency 'kind', '>= 5.6', '< 6.0'
|
29
29
|
spec.add_runtime_dependency 'u-attributes', '>= 2.7', '< 3.0'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: u-case
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Serradura
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.6'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '5.6'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.0'
|