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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 309f7b8f6587d121756b8c3ad5d1bf8d5ba7689935920a5cd7f8c791f4bf38c4
4
- data.tar.gz: '08f91a0d7344b04df8db6d9bb74bdbfb4fd095deb8dba8a105e8211dbaaa2ce0'
3
+ metadata.gz: 6e825e850ff02abfa953a14dac87254b9775affb063a64f7c0138d98eda4b99d
4
+ data.tar.gz: de54b6c1a8274de2ec8131e1c3d2c53c7ea9eb844b0ec0661682f212dc00cda7
5
5
  SHA512:
6
- metadata.gz: 1abdb9efc00cf6c9be0d73094c59a1322e84ca51968cf2d66af76178693db5c2fd20e99c2e2a0ee149665b92dd69ac7a3ed886ecd8567d2389b9e447978f79ac
7
- data.tar.gz: 241899334f89065dec935093bbf1277a07b81101855d78e4ab56511af8561814abd372506c2f9f6df762cc79f8b1971000bfc3b425c35db8f09d3faa4d70336c
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
@@ -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.public_send(symbol, exception:)
50
+ action.send(symbol, exception:)
51
51
  elsif exception && accepts_positional_exception?(method)
52
- action.public_send(symbol, exception)
52
+ action.send(symbol, exception)
53
53
  else
54
- action.public_send(symbol)
54
+ action.send(symbol)
55
55
  end
56
56
  end
57
57
 
data/lib/axn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Axn
4
- VERSION = "0.1.0-alpha.2.8"
4
+ VERSION = "0.1.0-alpha.2.8.1"
5
5
  end
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-22 00:00:00.000000000 Z
11
+ date: 2025-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel