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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ef816ca82a212ab5b8eba60fd57c68393d1443876b527b85b507c933974fdb9
4
- data.tar.gz: 539b605da36b8383a5645fd191920e9c16c7ff7c6f1582dc435bf521a96366a8
3
+ metadata.gz: f682b46b68f9f7eb58605a48d06c6c5e47a2963703c8424086b0533bde9cb96c
4
+ data.tar.gz: ff2df0abbf4bf66a7d7225deecd6475d95f8ff395cfb4f1f6694375126eb6610
5
5
  SHA512:
6
- metadata.gz: 9c23dd6b7f40ead5fa9fd81008bef073a7b94fe3e98738f3a03a22733e7a732b5e1ba92e0ec26cc66cf41380a96155c643144e90f450500f8039e8fa0e663087
7
- data.tar.gz: e58de764348c401f5321864f761e421415536a31e607ea13567d2e0374c563125162c395f4ed0d70488c026c44b841f655fd43fba359e8cc18565a0349f3aa39
6
+ metadata.gz: 98f8807c4e3c289b2618643979ed0ecf4a44e41f974b732138a9e07312d2e4396d0b52433b10d9b964bfa8b418697171f7aff143460df8c5252ed2b9e1c147d7
7
+ data.tar.gz: ea91a2b8c8ddb7ffe95b196e884ed3aaded8a0a3f47d3a13b5399ee819071a3dd3091bf10c0022fe74771e94a80dee6bde9290e2815461979ba4b6e6f85d7e6d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.4.1 / 2018-04-17
2
+
3
+ ### Fixed
4
+
5
+ - Fixed issue with Form::Validity check crashing while processing `many` elements
6
+
1
7
  # 0.4.0 / 2018-03-28
2
8
 
3
9
  ### Added
@@ -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
- errors.empty? && children.map { |child| visit(child) }.all?
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)
@@ -1,3 +1,3 @@
1
1
  module Formalist
2
- VERSION = "0.4.0".freeze
2
+ VERSION = "0.4.1".freeze
3
3
  end
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.0
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-03-28 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable