axn 0.1.0.pre.alpha.2.8 → 0.1.0.pre.alpha.2.8.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/action/core/contract.rb +2 -0
- data/lib/action/core/flow/handlers/invoker.rb +4 -4
- data/lib/axn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e825e850ff02abfa953a14dac87254b9775affb063a64f7c0138d98eda4b99d
|
4
|
+
data.tar.gz: de54b6c1a8274de2ec8131e1c3d2c53c7ea9eb844b0ec0661682f212dc00cda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b307adb81a4eac8b0cebca6778eeb060af5013a6b008f414085501e5cb7c8bb9fc32fbd4770ac8e458bf5a4f919d61b022bc5bc129199b3ae7b2f562f85f4b6a
|
7
|
+
data.tar.gz: 692efe5f507fd04dec768862eb9277e2a39af3b8eea182b2e8f1ca09e0f0910ab7080dd07f6d7f5605a673cab0feab7aa1194032b54ad2c550e42b794bc44965
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.2.8.1
|
4
|
+
* [BUGFIX] Fixed symbol callback and message handlers not working in inherited classes due to private method visibility issues
|
5
|
+
* [BUGFIX] `default_error` and `default_success` are now properly available for before hooks
|
6
|
+
|
3
7
|
## 0.1.0-alpha.2.8
|
4
8
|
* [FEAT] Custom RuboCop cop `Axn/UncheckedResult` to enforce proper result handling in Actions with configurable nested/non-nested checking
|
5
9
|
* [FEAT] Added `prefix:` keyword support to `error` method for customizing error message prefixes
|
data/lib/action/core/contract.rb
CHANGED
@@ -155,6 +155,8 @@ module Action
|
|
155
155
|
def internal_context = @internal_context ||= _build_context_facade(:inbound)
|
156
156
|
def result = @result ||= _build_context_facade(:outbound)
|
157
157
|
|
158
|
+
delegate :default_error, :default_success, to: :internal_context
|
159
|
+
|
158
160
|
# Accepts either two positional arguments (key, value) or a hash of key/value pairs
|
159
161
|
def expose(*args, **kwargs)
|
160
162
|
if args.any?
|
@@ -40,18 +40,18 @@ module Action
|
|
40
40
|
def callable?(value) = value.respond_to?(:arity)
|
41
41
|
|
42
42
|
def call_symbol_handler(action:, symbol:, exception: nil)
|
43
|
-
unless action.respond_to?(symbol)
|
43
|
+
unless action.respond_to?(symbol, true)
|
44
44
|
action.warn("Ignoring apparently-invalid symbol #{symbol.inspect} -- action does not respond to method")
|
45
45
|
return nil
|
46
46
|
end
|
47
47
|
|
48
48
|
method = action.method(symbol)
|
49
49
|
if exception && accepts_exception_keyword?(method)
|
50
|
-
action.
|
50
|
+
action.send(symbol, exception:)
|
51
51
|
elsif exception && accepts_positional_exception?(method)
|
52
|
-
action.
|
52
|
+
action.send(symbol, exception)
|
53
53
|
else
|
54
|
-
action.
|
54
|
+
action.send(symbol)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
data/lib/axn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: axn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.alpha.2.8
|
4
|
+
version: 0.1.0.pre.alpha.2.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kali Donovan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|