u-case 4.2.0 → 4.2.1

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: 4b6e79d90ba9b66b09c320bcd68465f9db2289086b4530123ccf01db2376f752
4
- data.tar.gz: 4b6138b6384302eeb45bf17bd653d4918e0076d2c22c4fbdbcc54588d069c2d2
3
+ metadata.gz: b9b498ae868d7b556a8a0e3a35c314e4704e206c8708b195d585bef6a7766b8b
4
+ data.tar.gz: 699ee398f8757ffa406ee1fd86e5d54fa757c7a79d30b73e8af86ba51a65f233
5
5
  SHA512:
6
- metadata.gz: f5c4ea89afe401408e10484875588a63242319a87d0a1e4e95299dc87f08fa02787e571218be57fb581c8b09288cf34925738ad7fc534ef741ea52b2720be091
7
- data.tar.gz: c7eefe6ecc11d20f46495a52052c31a6ab2884bd79dd79a068d5babc26a3bd3c0800cb4ff6337a3f5c8e6739b9111a59de07c5811b2fe804975e9f598824e926
6
+ metadata.gz: b869538c2bff9f728f3dccee9f1be07bd68d47746dae078394e393962a4b29fe881d1909bd574d19ca0ebf82eddb1951932e29cf92aeed00975a73a61b53cb3b
7
+ data.tar.gz: 7adc5bf983cdbb9e1ce4cb0eea5ab985ab0df4889ccc43545585381695d5163ec4ca139b7399e41399e736a4989923b3992aece149a6126e6315f9db760a19d0
data/.travis.sh CHANGED
@@ -3,36 +3,41 @@
3
3
  ruby_v=$(ruby -v)
4
4
 
5
5
  ACTIVERECORD_VERSION='3.2' bundle update
6
- ACTIVERECORD_VERSION='3.2' ENABLE_TRANSITIONS='false' bundle exec rake test
7
6
  ACTIVERECORD_VERSION='3.2' ENABLE_TRANSITIONS='true' bundle exec rake test
7
+ ACTIVERECORD_VERSION='3.2' ENABLE_TRANSITIONS='false' bundle exec rake test
8
8
 
9
9
  ACTIVERECORD_VERSION='4.0' bundle update
10
- ACTIVERECORD_VERSION='4.0' bundle exec rake test
10
+ ACTIVERECORD_VERSION='4.0' ENABLE_TRANSITIONS='true' bundle exec rake test
11
+ ACTIVERECORD_VERSION='4.0' ENABLE_TRANSITIONS='false' bundle exec rake test
11
12
 
12
13
  ACTIVERECORD_VERSION='4.1' bundle update
13
- ACTIVERECORD_VERSION='4.1' bundle exec rake test
14
+ ACTIVERECORD_VERSION='4.1' ENABLE_TRANSITIONS='true' bundle exec rake test
15
+ ACTIVERECORD_VERSION='4.1' ENABLE_TRANSITIONS='false' bundle exec rake test
14
16
 
15
17
  ACTIVERECORD_VERSION='4.2' bundle update
16
- ACTIVERECORD_VERSION='4.2' bundle exec rake test
18
+ ACTIVERECORD_VERSION='4.2' ENABLE_TRANSITIONS='true' bundle exec rake test
19
+ ACTIVERECORD_VERSION='4.2' ENABLE_TRANSITIONS='false' bundle exec rake test
17
20
 
18
21
  ACTIVERECORD_VERSION='5.0' bundle update
19
- ACTIVERECORD_VERSION='5.0' bundle exec rake test
22
+ ACTIVERECORD_VERSION='5.0' ENABLE_TRANSITIONS='true' bundle exec rake test
23
+ ACTIVERECORD_VERSION='5.0' ENABLE_TRANSITIONS='false' bundle exec rake test
20
24
 
21
25
  ACTIVERECORD_VERSION='5.1' bundle update
22
- ACTIVERECORD_VERSION='5.1' bundle exec rake test
26
+ ACTIVERECORD_VERSION='5.1' ENABLE_TRANSITIONS='true' bundle exec rake test
27
+ ACTIVERECORD_VERSION='5.1' ENABLE_TRANSITIONS='false' bundle exec rake test
23
28
 
24
29
  if [[ ! $ruby_v =~ '2.2.0' ]]; then
25
30
  ACTIVERECORD_VERSION='5.2' bundle update
26
- ACTIVERECORD_VERSION='5.2' ENABLE_TRANSITIONS='false' bundle exec rake test
27
31
  ACTIVERECORD_VERSION='5.2' ENABLE_TRANSITIONS='true' bundle exec rake test
32
+ ACTIVERECORD_VERSION='5.2' ENABLE_TRANSITIONS='false' bundle exec rake test
28
33
  fi
29
34
 
30
35
  if [[ $ruby_v =~ '2.5.' ]] || [[ $ruby_v =~ '2.6.' ]] || [[ $ruby_v =~ '2.7.' ]]; then
31
36
  ACTIVERECORD_VERSION='6.0' bundle update
32
- ACTIVERECORD_VERSION='6.0' ENABLE_TRANSITIONS='false' bundle exec rake test
33
37
  ACTIVERECORD_VERSION='6.0' ENABLE_TRANSITIONS='true' bundle exec rake test
38
+ ACTIVERECORD_VERSION='6.0' ENABLE_TRANSITIONS='false' bundle exec rake test
34
39
  fi
35
40
 
36
41
  bundle update
37
- ENABLE_TRANSITIONS='false' bundle exec rake test
38
42
  ENABLE_TRANSITIONS='true' bundle exec rake test
43
+ ENABLE_TRANSITIONS='false' bundle exec rake test
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.2.0 | https://github.com/serradura/u-case/blob/v4.x/README.md
42
+ 4.2.1 | 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, < 6.1 | ~> 2.0 |
105
- | 4.2.0 | v4.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 2.0 |
105
+ | 4.2.1 | v4.x | >= 2.2.0 | >= 3.2, < 6.1 | ~> 2.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 |
@@ -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.2.0 | https://github.com/serradura/u-case/blob/v4.x/README.md
42
+ 4.2.1 | 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
 
101
101
  | u-case | branch | ruby | activemodel | u-attributes |
102
102
  | -------------- | ------- | -------- | ------------- | ------------ |
103
- | 4.2.0 | main | >= 2.2.0 | >= 3.2, < 6.1 | ~> 2.0 |
103
+ | 4.2.1 | main | >= 2.2.0 | >= 3.2, < 6.1 | ~> 2.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 |
@@ -135,7 +135,7 @@ module Micro
135
135
  ids = (Thread.current[InspectKey] ||= [])
136
136
 
137
137
  if ids.include?(object_id)
138
- return sprintf('#<%s: {...}>', self)
138
+ return sprintf('#<%s: ...>', self)
139
139
  end
140
140
 
141
141
  begin
@@ -41,7 +41,7 @@ module Micro
41
41
  instance_info = '%s (%s) type=:%s data=%s' % [pretty_type, self.class, @type, data]
42
42
  transitions_info = ' transitions=%d' % [@__transitions.size] if Micro::Case::Result.transitions_enabled?
43
43
 
44
- "<#{instance_info}#{transitions_info}>"
44
+ "#<#{instance_info}#{transitions_info}>"
45
45
  end
46
46
 
47
47
  def to_ary
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Micro
4
4
  class Case
5
- VERSION = '4.2.0'.freeze
5
+ VERSION = '4.2.1'.freeze
6
6
  end
7
7
  end
@@ -23,7 +23,7 @@ module Micro
23
23
  end
24
24
 
25
25
  def inspect
26
- '<(%s) use_cases=%s>' % [self.class, @use_cases]
26
+ '#<(%s) use_cases=%s>' % [self.class, @use_cases]
27
27
  end
28
28
 
29
29
  def call!(input:, result:)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: u-case
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Serradura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-19 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kind