phonelib 0.6.53 → 0.6.56

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: 4801da2a9c49dd2b0295e53602d7061b1c6177484e5da8e2ba470b0f2de547d5
4
- data.tar.gz: 282238ee5f874e8f03f813b0c575e410d2a1f3d3bf4ae51b53bdc45b12e246d4
3
+ metadata.gz: bc81b807a62a6de5d6b0cea3d86d92533ec36aaf489da37871d97b5078c60712
4
+ data.tar.gz: 54b56a7c12f8b5d7f214443888f46a2f2c11dad4febc1b48c6650a41b9f7ce2e
5
5
  SHA512:
6
- metadata.gz: aa81f599a3ec2e01f773fdd43b652aa447561b7c630f302ef2ea86e815311c9ab22b2c36624111c49e2c2faddc54858c780d6c1fb306365f5c889de9b37f1f0c
7
- data.tar.gz: b5753621b2cf0d7947b029dcf0ec6fae358706b4d73a67eed881150cfca6be8fe287b031e5021f3759022bfd408c92d3a235c8b1b90491d77294da4b9cadd6d2
6
+ metadata.gz: 153cfac4ad2408f8310f348335dea21f806915f4c99cd4601d00782cbba765d538a71c6da1b825682fe1143d6888f30b8897a2d7a2b4e51e574e0bfd348343ef
7
+ data.tar.gz: bfe3dd06f91091344f5dde61479d87fea0d28aad89aff687284aa87730eca2b3ab83b803b978a756ab517c4066b0b59c98150c1cfa74d9e92b87e88b9f0d649a
Binary file
data/data/phone_data.dat CHANGED
Binary file
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.6.53'
3
+ VERSION = '0.6.56'
4
4
  end
@@ -62,7 +62,7 @@ class PhoneValidator < ActiveModel::EachValidator
62
62
  @phone = parse(value, specified_country(record))
63
63
  valid = phone_valid? && valid_types? && valid_country? && valid_extensions?
64
64
 
65
- record.errors.add(attribute, message, options) unless valid
65
+ record.errors.add(attribute, message, **options) unless valid
66
66
  end
67
67
 
68
68
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.53
4
+ version: 0.6.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.10.8
33
+ version: 1.13.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.10.8
40
+ version: 1.13.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement