glia-errors 0.11.7 → 0.11.8
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/.rubocop.yml +3 -0
- data/.ruby-version +1 -1
- data/Appraisals +8 -4
- data/Gemfile +4 -0
- data/Gemfile.lock +63 -24
- data/README.md +1 -1
- data/Rakefile +12 -3
- data/gemfiles/dry_validation_v0.gemfile +3 -1
- data/gemfiles/dry_validation_v1.gemfile +3 -1
- data/glia-errors.gemspec +2 -2
- data/lib/glia/errors.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60637b108734e188c93f311dfe47eff44b1a674758f8a57be79abd3992931c3e
|
|
4
|
+
data.tar.gz: 93cb024740d9e8285bba6d47662af6c36b9489822d8955e5d04aec5baa40a607
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7006e976f159bf23b2540af04b55d8ca156fddb45257f80c23bafdfd8b87c884c802b5e55a07d013d926229177e4e94cc53dd108fa16531f202cb4104fc8e0ab
|
|
7
|
+
data.tar.gz: eb2421995bccf24037acd5d5f6e3af524301b03ac236422ab37b4e5d9f48e748b87178401498e0b7a2a509d71d31b180dc2014fbda34dcb74f3e1ccf0eb55104
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-
|
|
1
|
+
ruby-3.1
|
data/Appraisals
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
ruby_major_version = RUBY_VERSION.split('.').first.to_i
|
|
4
|
+
|
|
5
|
+
if ruby_major_version < 3
|
|
6
|
+
appraise 'dry_validation_v0' do
|
|
7
|
+
gem 'dry-core', '~> 0.5.0'
|
|
8
|
+
gem 'dry-validation', '~> 0.13.0'
|
|
9
|
+
end
|
|
6
10
|
end
|
|
7
11
|
|
|
8
12
|
appraise 'dry_validation_v1' do
|
|
9
|
-
gem 'dry-validation', '~> 1.7
|
|
13
|
+
gem 'dry-validation', '~> 1.7'
|
|
10
14
|
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
glia-errors (0.11.8)
|
|
5
|
+
|
|
1
6
|
GEM
|
|
2
7
|
remote: https://rubygems.org/
|
|
3
8
|
specs:
|
|
@@ -5,19 +10,53 @@ GEM
|
|
|
5
10
|
bundler
|
|
6
11
|
rake
|
|
7
12
|
thor (>= 0.14.0)
|
|
8
|
-
ast (2.4.
|
|
9
|
-
attr_extras (6.2.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
ast (2.4.2)
|
|
14
|
+
attr_extras (6.2.5)
|
|
15
|
+
concurrent-ruby (1.1.10)
|
|
16
|
+
diff-lcs (1.5.0)
|
|
17
|
+
dry-configurable (0.14.0)
|
|
18
|
+
concurrent-ruby (~> 1.0)
|
|
19
|
+
dry-core (~> 0.6)
|
|
20
|
+
dry-container (0.9.0)
|
|
21
|
+
concurrent-ruby (~> 1.0)
|
|
22
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
|
23
|
+
dry-core (0.7.1)
|
|
24
|
+
concurrent-ruby (~> 1.0)
|
|
25
|
+
dry-inflector (0.2.1)
|
|
26
|
+
dry-initializer (3.1.1)
|
|
27
|
+
dry-logic (1.2.0)
|
|
28
|
+
concurrent-ruby (~> 1.0)
|
|
29
|
+
dry-core (~> 0.5, >= 0.5)
|
|
30
|
+
dry-schema (1.9.1)
|
|
31
|
+
concurrent-ruby (~> 1.0)
|
|
32
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
|
33
|
+
dry-core (~> 0.5, >= 0.5)
|
|
34
|
+
dry-initializer (~> 3.0)
|
|
35
|
+
dry-logic (~> 1.0)
|
|
36
|
+
dry-types (~> 1.5)
|
|
37
|
+
dry-types (1.5.1)
|
|
38
|
+
concurrent-ruby (~> 1.0)
|
|
39
|
+
dry-container (~> 0.3)
|
|
40
|
+
dry-core (~> 0.5, >= 0.5)
|
|
41
|
+
dry-inflector (~> 0.1, >= 0.1.2)
|
|
42
|
+
dry-logic (~> 1.0, >= 1.0.2)
|
|
43
|
+
dry-validation (1.8.0)
|
|
44
|
+
concurrent-ruby (~> 1.0)
|
|
45
|
+
dry-container (~> 0.7, >= 0.7.1)
|
|
46
|
+
dry-core (~> 0.5, >= 0.5)
|
|
47
|
+
dry-initializer (~> 3.0)
|
|
48
|
+
dry-schema (~> 1.9, >= 1.9.1)
|
|
49
|
+
optimist (3.0.1)
|
|
50
|
+
parallel (1.22.1)
|
|
51
|
+
parser (3.1.1.0)
|
|
13
52
|
ast (~> 2.4.1)
|
|
14
|
-
patience_diff (1.
|
|
15
|
-
|
|
53
|
+
patience_diff (1.2.0)
|
|
54
|
+
optimist (~> 3.0)
|
|
16
55
|
prettier (0.22.0)
|
|
17
|
-
rainbow (3.
|
|
56
|
+
rainbow (3.1.1)
|
|
18
57
|
rake (13.0.1)
|
|
19
|
-
regexp_parser (2.
|
|
20
|
-
rexml (3.2.
|
|
58
|
+
regexp_parser (2.2.1)
|
|
59
|
+
rexml (3.2.5)
|
|
21
60
|
rspec (3.10.0)
|
|
22
61
|
rspec-core (~> 3.10.0)
|
|
23
62
|
rspec-expectations (~> 3.10.0)
|
|
@@ -31,30 +70,28 @@ GEM
|
|
|
31
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
32
71
|
rspec-support (~> 3.10.0)
|
|
33
72
|
rspec-support (3.10.0)
|
|
34
|
-
rubocop (1.
|
|
73
|
+
rubocop (1.26.1)
|
|
35
74
|
parallel (~> 1.10)
|
|
36
|
-
parser (>=
|
|
75
|
+
parser (>= 3.1.0.0)
|
|
37
76
|
rainbow (>= 2.2.2, < 4.0)
|
|
38
77
|
regexp_parser (>= 1.8, < 3.0)
|
|
39
78
|
rexml
|
|
40
|
-
rubocop-ast (>= 1.
|
|
79
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
|
41
80
|
ruby-progressbar (~> 1.7)
|
|
42
|
-
unicode-display_width (>= 1.4.0, <
|
|
43
|
-
rubocop-ast (1.
|
|
44
|
-
parser (>=
|
|
81
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
82
|
+
rubocop-ast (1.16.0)
|
|
83
|
+
parser (>= 3.1.1.0)
|
|
45
84
|
rubocop-rake (0.5.1)
|
|
46
85
|
rubocop
|
|
47
|
-
rubocop-rspec (2.0
|
|
48
|
-
rubocop (~> 1.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
super_diff (0.5.2)
|
|
86
|
+
rubocop-rspec (2.9.0)
|
|
87
|
+
rubocop (~> 1.19)
|
|
88
|
+
ruby-progressbar (1.11.0)
|
|
89
|
+
super_diff (0.8.0)
|
|
52
90
|
attr_extras (>= 6.2.4)
|
|
53
91
|
diff-lcs
|
|
54
92
|
patience_diff
|
|
55
93
|
thor (1.0.1)
|
|
56
|
-
|
|
57
|
-
unicode-display_width (1.7.0)
|
|
94
|
+
unicode-display_width (2.1.0)
|
|
58
95
|
|
|
59
96
|
PLATFORMS
|
|
60
97
|
ruby
|
|
@@ -62,6 +99,8 @@ PLATFORMS
|
|
|
62
99
|
|
|
63
100
|
DEPENDENCIES
|
|
64
101
|
appraisal
|
|
102
|
+
dry-validation (~> 1.8)
|
|
103
|
+
glia-errors!
|
|
65
104
|
prettier (~> 0.22)
|
|
66
105
|
rake (~> 13.0)
|
|
67
106
|
rspec (~> 3.10)
|
|
@@ -71,4 +110,4 @@ DEPENDENCIES
|
|
|
71
110
|
super_diff
|
|
72
111
|
|
|
73
112
|
BUNDLED WITH
|
|
74
|
-
2.
|
|
113
|
+
2.3.9
|
data/README.md
CHANGED
data/Rakefile
CHANGED
|
@@ -25,12 +25,21 @@ task :install_test_deps do
|
|
|
25
25
|
sh 'bundle exec appraisal install'
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
ruby_major_version = RUBY_VERSION.split('.').first.to_i
|
|
29
|
+
|
|
30
|
+
# dry-validation 0.x won't load in Ruby 3
|
|
31
|
+
if ruby_major_version < 3
|
|
32
|
+
task test: %i[test_dry_validation_v1 test_dry_validation_v0]
|
|
33
|
+
else
|
|
34
|
+
task test: :test_dry_validation_v1
|
|
35
|
+
end
|
|
29
36
|
|
|
30
37
|
task test_dry_validation_v1: :install_test_deps do
|
|
31
38
|
sh 'bundle exec appraisal dry_validation_v1 rspec'
|
|
32
39
|
end
|
|
33
40
|
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
if ruby_major_version < 3
|
|
42
|
+
task test_dry_validation_v0: :install_test_deps do
|
|
43
|
+
sh 'bundle exec appraisal dry_validation_v0 rspec --tag dry_validation_v0'
|
|
44
|
+
end
|
|
36
45
|
end
|
|
@@ -9,9 +9,11 @@ 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"
|
|
13
12
|
gem "dry-validation", "~> 0.13.0"
|
|
13
|
+
gem "dry-core", "~> 0.5.0"
|
|
14
14
|
|
|
15
15
|
group :test do
|
|
16
16
|
gem "appraisal"
|
|
17
17
|
end
|
|
18
|
+
|
|
19
|
+
gemspec path: "../"
|
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.
|
|
8
|
+
spec.version = '0.11.8'
|
|
9
9
|
spec.authors = ['Glia TechMovers']
|
|
10
10
|
spec.email = ['techmovers@glia.com']
|
|
11
11
|
|
|
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
20
20
|
spec.require_paths = ['lib']
|
|
21
21
|
|
|
22
|
-
spec.required_ruby_version = '
|
|
22
|
+
spec.required_ruby_version = '>= 2.5', '< 4.0'
|
|
23
23
|
end
|
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.8')
|
|
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.8
|
|
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-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: ''
|
|
14
14
|
email:
|
|
@@ -49,16 +49,19 @@ require_paths:
|
|
|
49
49
|
- lib
|
|
50
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '2.5'
|
|
55
|
+
- - "<"
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: '4.0'
|
|
55
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
59
|
requirements:
|
|
57
60
|
- - ">="
|
|
58
61
|
- !ruby/object:Gem::Version
|
|
59
62
|
version: '0'
|
|
60
63
|
requirements: []
|
|
61
|
-
rubygems_version: 3.
|
|
64
|
+
rubygems_version: 3.3.7
|
|
62
65
|
signing_key:
|
|
63
66
|
specification_version: 4
|
|
64
67
|
summary: Glia REST API errors
|