formalist 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/formalist/form/validity_check.rb +3 -1
- data/lib/formalist/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: f682b46b68f9f7eb58605a48d06c6c5e47a2963703c8424086b0533bde9cb96c
|
4
|
+
data.tar.gz: ff2df0abbf4bf66a7d7225deecd6475d95f8ff395cfb4f1f6694375126eb6610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f8807c4e3c289b2618643979ed0ecf4a44e41f974b732138a9e07312d2e4396d0b52433b10d9b964bfa8b418697171f7aff143460df8c5252ed2b9e1c147d7
|
7
|
+
data.tar.gz: ea91a2b8c8ddb7ffe95b196e884ed3aaded8a0a3f47d3a13b5399ee819071a3dd3091bf10c0022fe74771e94a80dee6bde9290e2815461979ba4b6e6f85d7e6d
|
data/CHANGELOG.md
CHANGED
@@ -41,7 +41,9 @@ module Formalist
|
|
41
41
|
def visit_many(node)
|
42
42
|
_name, _type, errors, _attributes, _child_template, children = node
|
43
43
|
|
44
|
-
|
44
|
+
# The `children`` parameter for `many` elements is for some reason
|
45
|
+
# doubly nested right now, so we need to flatten it.
|
46
|
+
errors.empty? && children.flatten(1).map { |child| visit(child) }.all?
|
45
47
|
end
|
46
48
|
|
47
49
|
def visit_section(node)
|
data/lib/formalist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formalist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|