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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/makwa/returning_interaction.rb +4 -1
- data/lib/makwa/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: 39c2e632adb09e11750166bd946d28514bbc0f5affc9abd20cf5d5c6428236eb
|
|
4
|
+
data.tar.gz: 38add41a243b3f8d896f5ad84276a71fd3b2c351317d2bf01a3741695fe29a92
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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|
|
|
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
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.
|
|
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:
|
|
12
|
+
date: 2026-01-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: active_interaction
|