glia-errors 0.11.6 → 0.11.7

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: 18b0771e4477d3bad79df4926e73e03178e12838a40d254ac24738ca208147d0
4
- data.tar.gz: 8497c21a809704770feb7ee1c1bf687269a699b9419a49879a2abdab5fcf1396
3
+ metadata.gz: d71a904099bb9ddc69b22b6f8781ec5f73d30f15db34a117f92b0dde9700b2e3
4
+ data.tar.gz: 58dab077b61ebf6143d38afdcc3a8468a3ccdfe57586a099bf26633482d93526
5
5
  SHA512:
6
- metadata.gz: a1ba73e500036b0b18f240841d3c7fe33267e259954c0b12a61c08d3d511a770e3afa1b0644d972e302b1834a91f98654b3cdf178af11b474df564134de66114
7
- data.tar.gz: 88f2d9b04a99d2d48e2faca49cdb830e75704133d1165c696534fe919713833e41577c7945e22d169fb3711b0bfdbffe4b5af725793fab0de34f77dd526a1bda
6
+ metadata.gz: 5a8c8fc492018dbc59f262b3068c7e81b42a88b477e67698f52c8b70e35543ca73fa4281d721cecabaeda2084f7749157a33ce3e24ce97d28fa887dc0c210779
7
+ data.tar.gz: 72ce9907b06c59e05d5920a18bf00920dfca7ef49145509f949adf3bed8190a303896e7901b31dca542d64bd36efeefd041dcc8c00bb86a5cf1bc5ed91e3cbf9
data/Appraisals CHANGED
@@ -1,9 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  appraise 'dry_validation_v0' do
4
+ gem 'dry-core', '~> 0.5.0'
4
5
  gem 'dry-validation', '~> 0.13.0'
5
6
  end
6
7
 
7
8
  appraise 'dry_validation_v1' do
8
- gem 'dry-validation', '~> 1.6.0'
9
+ gem 'dry-validation', '~> 1.7.0'
9
10
  end
data/README.md CHANGED
@@ -33,7 +33,7 @@ glia_error = Glia::Errors::ResourceNotFoundError.new(resource: :engagement)
33
33
 
34
34
  Currently 2 `dry-validation` versions are supported:
35
35
  * `v0` up to `0.13`
36
- * `v1` up to `1.6`
36
+ * `v1` up to `1.7`
37
37
 
38
38
  ```ruby
39
39
  schema = Dry::Validation.Schema do
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'
@@ -9,6 +9,7 @@ gem "rubocop", "~> 1.5"
9
9
  gem "rubocop-rake", "~> 0.5"
10
10
  gem "rubocop-rspec", "~> 2.0"
11
11
  gem "super_diff"
12
+ gem "dry-core", "~> 0.5.0"
12
13
  gem "dry-validation", "~> 0.13.0"
13
14
 
14
15
  group :test do
@@ -9,7 +9,7 @@ gem "rubocop", "~> 1.5"
9
9
  gem "rubocop-rake", "~> 0.5"
10
10
  gem "rubocop-rspec", "~> 2.0"
11
11
  gem "super_diff"
12
- gem "dry-validation", "~> 1.6.0"
12
+ gem "dry-validation", "~> 1.7.0"
13
13
 
14
14
  group :test do
15
15
  gem "appraisal"
data/glia-errors.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'glia-errors'
8
- spec.version = '0.11.6'
8
+ spec.version = '0.11.7'
9
9
  spec.authors = ['Glia TechMovers']
10
10
  spec.email = ['techmovers@glia.com']
11
11
 
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.6')
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.6
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-01-20 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email: