amazing-activist 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/lib/amazing_activist/outcome/failure.rb +5 -2
- data/lib/amazing_activist/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b67a3e5f375db018b80c5576790c70199cab89e8e352bf2700f06e2efa8678
|
4
|
+
data.tar.gz: 313e959d99e39ec6c6c759748bdd08889c73945388ed5240e5919043968558f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f97922ccb1e84836578e2103f17b34e6a0081d29f6370aac8438b9cfdbf53974c3d14ab66f92f56569ca2481c0000e069db0967be80614578d7edf8881f7bfa
|
7
|
+
data.tar.gz: a53cc57eb23851df4af94092f83506fc23d79769158d8ac7105badd94742d68e08959add4746eb41f767bb1fd2b0fec082ee161caf73722a200420a96cd68a72
|
data/CHANGES.md
CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
|
11
|
+
## [0.5.1] - 2023-04-26
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
- Optimize `Failure#deconstruct_keys` to avoid message generation if requested
|
16
|
+
keys are present and do not include it.
|
17
|
+
|
18
|
+
|
10
19
|
## [0.5.0] - 2023-03-13
|
11
20
|
|
12
21
|
### Changed
|
@@ -52,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
52
61
|
|
53
62
|
- Initial release.
|
54
63
|
|
64
|
+
[0.5.1]: https://github.com/ixti/amazing-activist/compare/v0.5.0...v0.5.1
|
55
65
|
[0.5.0]: https://github.com/ixti/amazing-activist/compare/v0.4.0...v0.5.0
|
56
66
|
[0.4.0]: https://github.com/ixti/amazing-activist/compare/v0.3.0...v0.4.0
|
57
67
|
[0.3.0]: https://github.com/ixti/amazing-activist/compare/v0.2.0...v0.3.0
|
@@ -49,8 +49,11 @@ module AmazingActivist
|
|
49
49
|
|
50
50
|
# @api internal
|
51
51
|
# @return [Hash]
|
52
|
-
def deconstruct_keys(
|
53
|
-
{ failure: @code, activity: @activity,
|
52
|
+
def deconstruct_keys(keys)
|
53
|
+
deconstructed = { failure: @code, activity: @activity, exception: exception, context: context }
|
54
|
+
deconstructed[:message] = message if keys.nil? || keys.include?(:message)
|
55
|
+
|
56
|
+
deconstructed
|
54
57
|
end
|
55
58
|
|
56
59
|
# @yieldparam self [self]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazing-activist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Zapparov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -69,9 +69,9 @@ licenses:
|
|
69
69
|
- MIT
|
70
70
|
metadata:
|
71
71
|
homepage_uri: https://github.com/ixti/amazing-activist
|
72
|
-
source_code_uri: https://github.com/ixti/amazing-activist/tree/v0.5.
|
72
|
+
source_code_uri: https://github.com/ixti/amazing-activist/tree/v0.5.1
|
73
73
|
bug_tracker_uri: https://github.com/ixti/amazing-activist/issues
|
74
|
-
changelog_uri: https://github.com/ixti/amazing-activist/blob/v0.5.
|
74
|
+
changelog_uri: https://github.com/ixti/amazing-activist/blob/v0.5.1/CHANGES.md
|
75
75
|
rubygems_mfa_required: 'true'
|
76
76
|
post_install_message:
|
77
77
|
rdoc_options: []
|