glia-errors 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/glia-errors.gemspec +1 -1
- data/lib/glia/errors.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: f3f1709fffc93f8968a42d643b4efc6fd300ab47de475c21f5632b804085d07d
|
4
|
+
data.tar.gz: 1b93f359b7083f4a5c9a8776c89d4f7bb4bcac2f419ebec7abb4ef025d0e3573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bddb2518cbaf055d1ad9dc75f44f7d4eab2ef6a43506af2c24d2a41fd239bf1790d14069f73895aedc04e3beebe8ec83272d318d254e5c6ecfff50e429bb40d
|
7
|
+
data.tar.gz: c2b84141ccabb62b3da2a1875f83d679a60ee39d420bd77b222c508bd5f07234e31e2224855d3f2fdf9bb0535b173df58f19540cd63f37ba8f7e9e274c3547b1
|
data/glia-errors.gemspec
CHANGED
data/lib/glia/errors.rb
CHANGED
@@ -12,7 +12,7 @@ module Glia
|
|
12
12
|
def self.from_dry_validation_result(result, custom_error_map = {})
|
13
13
|
dry_validation_version = Gem.loaded_specs['dry-validation'].version
|
14
14
|
if dry_validation_version < Gem::Version.new('1.0')
|
15
|
-
Mapper.from_dry_validation_result(result.output, result.
|
15
|
+
Mapper.from_dry_validation_result(result.output, result.errors, custom_error_map)
|
16
16
|
elsif dry_validation_version <= Gem::Version.new('1.6')
|
17
17
|
Mapper.from_dry_validation_result(result.to_h, result.errors.to_h, custom_error_map)
|
18
18
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glia-errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glia TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ''
|
14
14
|
email:
|