dry-mutations 1.1.3 → 1.3.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dry/mutations/errors/error_atom.rb +2 -2
- data/lib/dry/mutations/extensions/command.rb +1 -1
- data/lib/dry/mutations/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60597a6711b2d98f341ed7ca46025bc6cd68d6b2
|
4
|
+
data.tar.gz: 068fe030d1105fb6d3f477d5453158b0b876c11a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693a71a1a0117b6b6e70359201a4ae1901859708157109e18ee17f777a51a0222693fa25d851cabbc6f478b2780be03759fe2477b6fc12757dd46cd9c75989f7
|
7
|
+
data.tar.gz: 0c635275a3585b993c4e9043437d478015d18db047b38f7b12dacf99c07f9c040fe92a1c553544e44a7e9b88961c5b7d539bb4228669ae035179a695f416b1e4
|
data/Gemfile.lock
CHANGED
@@ -21,7 +21,7 @@ module Dry
|
|
21
21
|
fail TypeError, "Expected: ::Dry::Validation::MessageSet; got: #{set.class}" unless set.is_a?(::Dry::Validation::MessageSet)
|
22
22
|
|
23
23
|
set.map.with_index.with_object(::Mutations::ErrorHash.new) do |(msg, idx), memo|
|
24
|
-
key = msg.path.join('.')
|
24
|
+
# key = msg.path.join('.')
|
25
25
|
last = msg.path.pop
|
26
26
|
tail = msg.path.inject(memo) { |acc, curr| acc[curr.to_s] ||= ::Mutations::ErrorHash.new }
|
27
27
|
tail[last.to_s] = case tail[last.to_s]
|
@@ -31,7 +31,7 @@ module Dry
|
|
31
31
|
end
|
32
32
|
|
33
33
|
tail[last.to_s] << new(last, msg.predicate, msg, message: msg.text, index: idx)
|
34
|
-
memo[key] = new(key, msg.predicate, msg, message: msg.text, index: idx)
|
34
|
+
# memo[key] = new(key, msg.predicate, msg, message: msg.text, index: idx)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -119,7 +119,7 @@ module Dry
|
|
119
119
|
path.inject(errs) do |cur_errors, part|
|
120
120
|
cur_errors[part.to_s] ||= ::Mutations::ErrorHash.new
|
121
121
|
end[last] = atom
|
122
|
-
end[key] = Errors::ErrorAtom.new(key, kind, dry_message, message: message)
|
122
|
+
end # [key] = Errors::ErrorAtom.new(key, kind, dry_message, message: message)
|
123
123
|
end
|
124
124
|
|
125
125
|
def messages
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-mutations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksei Matiushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|