amazing-activist 0.7.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 541998aec21a78778cf6cbe4ed8abfe84f86873c43e42edc965b4a78c97288e0
4
- data.tar.gz: 9aa931fd204447211f02848d4e288a9edab389f3c65e3c3a4725fa7ada14b0a0
3
+ metadata.gz: c059cc4ff198a6fb4d721683061c51063050fa209f4bdb3d0e27b0232abd2e7f
4
+ data.tar.gz: 1cfd1f85b06587f6c3ab903e36ae15fdd25c5f7c9f366690e041a89a71fcb952
5
5
  SHA512:
6
- metadata.gz: e4d7b6fff7d8191b23b4cd4dc924939af064a3bd92cda61fbdc4f7e3fed5a06a1d13f05834352e469b0dddf603819d0cdbf74b10deba539df71f8226dd5d7437
7
- data.tar.gz: c342b3f260a7e66a395a13f5c01b60fcdde87c94fb00745ccaf426271e6ff4afdf0bf243133229bb21ab2862a178801f670da4ff768ae0b8f267e88f6e509375
6
+ metadata.gz: 1f21b35f615f84a428d6b53c859b4bcf0c1a60bbb5f41c3bea265135c1acd32e7cf99d734b05bdae3913199095517d632ee042da175581c9ac7fc335b30a97ae
7
+ data.tar.gz: f8123ee0debd3ae42218f1651b8b9df163aef428f778b26f1e12296861b354c7710eb8f5e97ab042746a6e881cb467e36b2dc676b230731e9fdf4621affe73a2
data/CHANGES.md CHANGED
@@ -8,6 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ## [Unreleased]
9
9
 
10
10
 
11
+ ## [0.8.0] - 2025-05-01
12
+
13
+ ### Changed
14
+
15
+ - (BREAKING) Prohibit `AmazingActivist::Base#new` calls. All activities must be
16
+ called via `.call`, i.e. `A.call(...)` instead of `A.new(...).call`.
17
+
18
+ ### Removed
19
+
20
+ - (BREAKING) Don't provide default catch-all `params` prop.
21
+
22
+
11
23
  ## [0.7.0] - 2025-04-14
12
24
 
13
25
  ### Added
@@ -97,7 +109,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
97
109
 
98
110
  - Initial release.
99
111
 
100
- [Unreleased]: https://github.com/ixti/amazing-activist/compare/v0.7.0...main
112
+ [Unreleased]: https://github.com/ixti/amazing-activist/compare/v0.8.0...main
113
+ [0.8.0]: https://github.com/ixti/amazing-activist/compare/v0.7.0...v0.8.0
101
114
  [0.7.0]: https://github.com/ixti/amazing-activist/compare/v0.6.0...v0.7.0
102
115
  [0.6.0]: https://github.com/ixti/amazing-activist/compare/v0.5.2...v0.6.0
103
116
  [0.5.2]: https://github.com/ixti/amazing-activist/compare/v0.5.1...v0.5.2
@@ -11,6 +11,8 @@ module AmazingActivist
11
11
  # [source,ruby]
12
12
  # ----
13
13
  # class OnboardActivity < AmazingActivist::Base
14
+ # prop :params, _Hash(Symbol, _Any?), :**
15
+ #
14
16
  # def call
15
17
  # user = User.new(params)
16
18
  #
@@ -31,7 +33,10 @@ module AmazingActivist
31
33
  class Base
32
34
  extend Irresistible
33
35
 
34
- prop :params, _Hash(Symbol, _Any?), :**
36
+ class << self
37
+ # Prohibit `Activity.new(...).call` style, as it makes activist not much `Irresistable`
38
+ private :new
39
+ end
35
40
 
36
41
  # @return [Outcome::Success, Outcome::Failure]
37
42
  def call
@@ -12,7 +12,6 @@ module AmazingActivist
12
12
 
13
13
  # Initialize and call activity.
14
14
  #
15
- # @see #initialize
16
15
  # @see #call
17
16
  def call(...)
18
17
  activity = new(...)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AmazingActivist
4
- VERSION = "0.7.0"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazing-activist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Zapparov
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-14 00:00:00.000000000 Z
10
+ date: 2025-05-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -83,9 +83,9 @@ licenses:
83
83
  - MIT
84
84
  metadata:
85
85
  homepage_uri: https://github.com/ixti/amazing-activist
86
- source_code_uri: https://github.com/ixti/amazing-activist/tree/v0.7.0
86
+ source_code_uri: https://github.com/ixti/amazing-activist/tree/v0.8.0
87
87
  bug_tracker_uri: https://github.com/ixti/amazing-activist/issues
88
- changelog_uri: https://github.com/ixti/amazing-activist/blob/v0.7.0/CHANGES.md
88
+ changelog_uri: https://github.com/ixti/amazing-activist/blob/v0.8.0/CHANGES.md
89
89
  rubygems_mfa_required: 'true'
90
90
  rdoc_options: []
91
91
  require_paths: