u-case 4.4.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa46dc88c0243c9844f1a648bc6743751c7b48d0af805e961fbff16f06eae51c
4
- data.tar.gz: 747a014e42d5cf5c97ae77e94dc54779d90bf0eeed06cd68d1a6cf782e7163cf
3
+ metadata.gz: '0698f0ab43f3865d2ead4f23980f541290c07dc64bd524495417ea93d995d5fd'
4
+ data.tar.gz: 0ca02bcf975055a3514931f28a55769f42f63f30f84b61b740193ebdf9a1a5fa
5
5
  SHA512:
6
- metadata.gz: 770d8703f12d6795494c9b00e30636770d8aead2909e96cdde3c16bfe5331385b28693e05dd0cfcbff77ba03f46d115e36765fd5193330016f6362bbba0a7dab
7
- data.tar.gz: fb27569e1553ded6577fa4ea5c823a364c22bf76414491dc7482250175f96c5c939d2ab498f633cb34e27ddff2cc3ead449fb3398094897d9a004a118ad5722b
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.4.0 | https://github.com/serradura/u-case/blob/v4.x/README.md
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.4.0 | v4.x | >= 2.2.0 | >= 3.2, < 7.0 | >= 2.7, < 3.0 |
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.4.0'
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.4.0 | https://github.com/serradura/u-case/blob/v4.x/README.md
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.4.0 | v4.x | >= 2.2.0 | >= 3.2, < 7.0 | >= 2.7, < 3.0 |
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.4.0'
127
+ gem 'u-case', '~> 4.5.0'
128
128
  ```
129
129
 
130
130
  E então execute:
@@ -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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Micro
4
4
  class Case
5
- VERSION = '4.4.0'.freeze
5
+ VERSION = '4.5.0'.freeze
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kind/active_model/validation'
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', '>= 4.0', '< 6.0'
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.0
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: '4.0'
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: '4.0'
29
+ version: '5.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '6.0'