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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 290c18d206342a875bfadb61a6d1cda66e7df96a44ecda1379a18e3aefc187fd
4
- data.tar.gz: d21e98ee9f606a7264cdf743f935f7c845832c884f86feef55076f8a3eae535f
3
+ metadata.gz: e1b67a3e5f375db018b80c5576790c70199cab89e8e352bf2700f06e2efa8678
4
+ data.tar.gz: 313e959d99e39ec6c6c759748bdd08889c73945388ed5240e5919043968558f5
5
5
  SHA512:
6
- metadata.gz: 3056d150ef3732e54396acd8915056cd20f5d11c6efc00eb3d131920deeaac92f42cbe5d92955e2667671fe3a14af93fc6cc495108fb797692b3280cb5449f7d
7
- data.tar.gz: 68886df50e8d078f52b03804ec09f146d64f6fcc6ad27c1153bc71b078e2b9b49868e5bb496a3caef9708321c18fe088d371c8a9eb4f9b8a1c09d62365d84ced
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, message: message, exception: exception, context: context }
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AmazingActivist
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
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.0
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-03-13 00:00:00.000000000 Z
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.0
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.0/CHANGES.md
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: []