makwa 1.0.2 → 1.0.3

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: 347d964215a73774af300989657a8b00cc8ca7cfc33ef3574fc27ab9b2a2b70e
4
- data.tar.gz: 509297308f4826aae87b1ebe4b5d1bc0b92c481e0a32b8835fc90bf4c7691632
3
+ metadata.gz: 39c2e632adb09e11750166bd946d28514bbc0f5affc9abd20cf5d5c6428236eb
4
+ data.tar.gz: 38add41a243b3f8d896f5ad84276a71fd3b2c351317d2bf01a3741695fe29a92
5
5
  SHA512:
6
- metadata.gz: 2cbfa68e12c36034d16cc25f60150b165fdb8cc43d45eadbbd7ecf8be4d3d60d8254832e62ce5c6a93132fb83fa7aec2b5f413a87b0b56e147fb777abb037f03
7
- data.tar.gz: 7f9252de4f2b153d4a06369491615cf02b247666438f49047f80700a2237c40ed5f743aa4e8eabe452426e1de3ebe7d74b108a41bf9dc4695fd587bd36dc34ce
6
+ metadata.gz: db33162dd28e5e3f5a4fda88164e0bde18457bdf29fd71ecc25dc8ca2418dc3004af0b1484754b7d798549fdc856ddbc7b0cd750179ba0a6ed1bb616ad4b08b5
7
+ data.tar.gz: a0f01c2c9d86822aabd899a0db77d25120737fb156d494a678a73786fa0ce2e6fd8d44ce5ce93aee813d492654171ef90f0eb200637426fb7148dc05725bc378
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.3] - 2026-01-14
4
+
5
+ - Removes debug entries from the `Interaction#calling_interactions` call stack.
6
+ - Handles ReturningInteraction input filters that are not an attribute of the returned record when encountering validation errors.
7
+
3
8
  ## [1.0.2] - 2025-01-05
4
9
 
5
10
  - Updates #return_if_errors! to not include errors in exception object. This addresses an issue where errors
@@ -50,7 +50,10 @@ module Makwa
50
50
  # Add errors and values to the result object (so that the form can render them) and return the result object
51
51
  return result
52
52
  .tap { |r| r.errors.merge!(errors) }
53
- .tap { |r| r.assign_attributes(inputs.except(return_filter)) }
53
+ .tap { |r|
54
+ valid_attrs = inputs.except(return_filter).select { |key, _| r.respond_to?("#{key}=") }
55
+ r.assign_attributes(valid_attrs)
56
+ }
54
57
  end
55
58
 
56
59
  # Otherwise run the body of the interaction (along with any callbacks) ...
data/lib/makwa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makwa
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Hund
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-05 00:00:00.000000000 Z
12
+ date: 2026-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_interaction