glia-errors 0.11.4 → 0.11.6

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: bbaef28887dfc236d0f10cb730ac6dc44813f102bc8023da5fda37089815f318
4
- data.tar.gz: 4e33efaa3c820a47896b3b69b859f00fbebcc2477ae0dc8d796f3eab6ed4b17a
3
+ metadata.gz: 18b0771e4477d3bad79df4926e73e03178e12838a40d254ac24738ca208147d0
4
+ data.tar.gz: 8497c21a809704770feb7ee1c1bf687269a699b9419a49879a2abdab5fcf1396
5
5
  SHA512:
6
- metadata.gz: 52bdf038de5e035b2825c870d0f9912e93aa27254c464c2b55c5dac3864d429e05455b283fba81105cd03c0ba837b1d4aaf957d89af8b82f359c514bb0093c76
7
- data.tar.gz: fb6f1cd85a31526f692be5d5a4201074decaf2f82d1d40fec3bee9f24b43683c9300bc707c2ea918f7dfd73b1bfbcd92db4b70aabf05a3c65e0092c8ad5fe359
6
+ metadata.gz: a1ba73e500036b0b18f240841d3c7fe33267e259954c0b12a61c08d3d511a770e3afa1b0644d972e302b1834a91f98654b3cdf178af11b474df564134de66114
7
+ data.tar.gz: 88f2d9b04a99d2d48e2faca49cdb830e75704133d1165c696534fe919713833e41577c7945e22d169fb3711b0bfdbffe4b5af725793fab0de34f77dd526a1bda
data/Appraisals CHANGED
@@ -5,5 +5,5 @@ appraise 'dry_validation_v0' do
5
5
  end
6
6
 
7
7
  appraise 'dry_validation_v1' do
8
- gem 'dry-validation', '~> 1.6'
8
+ gem 'dry-validation', '~> 1.6.0'
9
9
  end
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 test_dry_validation_v0]
28
+ task test: %i[test_dry_validation_v1]
29
29
 
30
30
  task test_dry_validation_v1: :install_test_deps do
31
31
  sh 'bundle exec appraisal dry_validation_v1 rspec'
@@ -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"
12
+ gem "dry-validation", "~> 1.6.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.4'
8
+ spec.version = '0.11.6'
9
9
  spec.authors = ['Glia TechMovers']
10
10
  spec.email = ['techmovers@glia.com']
11
11
 
@@ -56,6 +56,7 @@ module Glia
56
56
  DATE = 'date'
57
57
  TIME = 'time'
58
58
  UUID = 'uuid'
59
+ URL = 'url'
59
60
  end
60
61
 
61
62
  def initialize(field:, format: nil, message: nil)
@@ -84,6 +85,8 @@ module Glia
84
85
  'ISO-8601 date and time'
85
86
  when Formats::UUID
86
87
  'UUID'
88
+ when Formats::URL
89
+ 'URL'
87
90
  else
88
91
  raise 'Unexpected InvalidFormatError format'
89
92
  end
@@ -125,7 +125,8 @@ module Glia
125
125
  'is missing' => MISSING_VALUE_ERROR,
126
126
  # Custom format errors
127
127
  'must be in E.164 format' => INVALID_FORMAT_ERROR,
128
- 'must be up to 7-digit string' => INVALID_FORMAT_ERROR,
128
+ 'must be up to 25 symbol string that contains only 1-7 digits and commas' =>
129
+ INVALID_FORMAT_ERROR,
129
130
  'must be a valid email' => INVALID_FORMAT_ERROR
130
131
  }.freeze
131
132
 
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
4
+ version: 0.11.6
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-08-11 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email: