glia-errors 0.11.6 → 0.11.7
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/Appraisals +2 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/gemfiles/dry_validation_v0.gemfile +1 -0
- data/gemfiles/dry_validation_v1.gemfile +1 -1
- 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: d71a904099bb9ddc69b22b6f8781ec5f73d30f15db34a117f92b0dde9700b2e3
|
|
4
|
+
data.tar.gz: 58dab077b61ebf6143d38afdcc3a8468a3ccdfe57586a099bf26633482d93526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a8c8fc492018dbc59f262b3068c7e81b42a88b477e67698f52c8b70e35543ca73fa4281d721cecabaeda2084f7749157a33ce3e24ce97d28fa887dc0c210779
|
|
7
|
+
data.tar.gz: 72ce9907b06c59e05d5920a18bf00920dfca7ef49145509f949adf3bed8190a303896e7901b31dca542d64bd36efeefd041dcc8c00bb86a5cf1bc5ed91e3cbf9
|
data/Appraisals
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
|
@@ -25,7 +25,7 @@ task :install_test_deps do
|
|
|
25
25
|
sh 'bundle exec appraisal install'
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
task test: %i[test_dry_validation_v1]
|
|
28
|
+
task test: %i[test_dry_validation_v1 test_dry_validation_v0]
|
|
29
29
|
|
|
30
30
|
task test_dry_validation_v1: :install_test_deps do
|
|
31
31
|
sh 'bundle exec appraisal dry_validation_v1 rspec'
|
data/glia-errors.gemspec
CHANGED
data/lib/glia/errors.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Glia
|
|
|
13
13
|
dry_validation_version = Gem.loaded_specs['dry-validation'].version
|
|
14
14
|
if dry_validation_version < Gem::Version.new('1.0')
|
|
15
15
|
Mapper.from_dry_validation_result(result.output, result.errors, custom_error_map)
|
|
16
|
-
elsif dry_validation_version <= Gem::Version.new('1.
|
|
16
|
+
elsif dry_validation_version <= Gem::Version.new('1.7')
|
|
17
17
|
Mapper.from_dry_validation_result(result.to_h, result.errors.to_h, custom_error_map)
|
|
18
18
|
else
|
|
19
19
|
raise 'Unsupported dry-validation version'
|
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.11.
|
|
4
|
+
version: 0.11.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Glia TechMovers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: ''
|
|
14
14
|
email:
|