apiverve_phonenumbervalidator 1.2.2 → 1.2.3
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/README.md +8 -1
- data/lib/apiverve_phonenumbervalidator/client.rb +1 -1
- data/lib/apiverve_phonenumbervalidator.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c31d0ab1d664151dbb4307e8bbf5a6c3482702e43840e4b9aef583e45ef1a3bf
|
|
4
|
+
data.tar.gz: 2468afe9ed28a5c6fe1b1d2282b336db1d60a125ca975af028a295db4c658537
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 516619e1b45d90d039efee3e8205b592f7ba827b2d8c800873a7c003f8ba198426dd671accc4d4083d9f11da1adf23d448309933398dcb5edc6d0b6a357c9aa4
|
|
7
|
+
data.tar.gz: 7fdf15abc295e6de43dee955988f951f86a60112b5dd106d5139202dd9ef265720a56eec9eb9c9c2f86e905bb9d91c887d0bb200cf23d83c7288ebfad999813e
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Phone Number Validator API - Ruby Gem
|
|
2
2
|
|
|
3
|
-
Phone Number Validator checks a phone number and
|
|
3
|
+
Phone Number Validator checks a phone number and returns whether it is valid, its line type, country, area and time zone, and the carrier its mobile range was allocated to. It flags disposable and VoIP numbers and outputs E.164, international, national and RFC3966 formats.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -87,6 +87,13 @@ client = APIVerve::Phonenumbervalidator::Client.new(
|
|
|
87
87
|
"isVoip": false,
|
|
88
88
|
"isDisposable": false,
|
|
89
89
|
"type": "fixed_line_or_mobile",
|
|
90
|
+
"isValidNumber": true,
|
|
91
|
+
"nationalSignificantNumber": "8165551017",
|
|
92
|
+
"location": "Missouri",
|
|
93
|
+
"carrier": null,
|
|
94
|
+
"timezones": [
|
|
95
|
+
"America/Chicago"
|
|
96
|
+
],
|
|
90
97
|
"formatted": {
|
|
91
98
|
"international": "+1 816-555-1017",
|
|
92
99
|
"national": "(816) 555-1017",
|
|
@@ -19,7 +19,7 @@ module APIVerve
|
|
|
19
19
|
DEFAULT_TIMEOUT = 30
|
|
20
20
|
|
|
21
21
|
# Validation rules for parameters
|
|
22
|
-
VALIDATION_RULES = { 'number' => { type: 'string', required: true }, 'country' => { type: 'string', required:
|
|
22
|
+
VALIDATION_RULES = { 'number' => { type: 'string', required: true }, 'country' => { type: 'string', required: false, min_length: 2, max_length: 2 } }
|
|
23
23
|
|
|
24
24
|
# Format validation patterns
|
|
25
25
|
FORMAT_PATTERNS = {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiverve_phonenumbervalidator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- APIVerve
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -58,9 +58,10 @@ dependencies:
|
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '2.0'
|
|
61
|
-
description: Phone Number Validator checks a phone number and
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
description: Phone Number Validator checks a phone number and returns whether it is
|
|
62
|
+
valid, its line type, country, area and time zone, and the carrier its mobile range
|
|
63
|
+
was allocated to. It flags disposable and VoIP numbers and outputs E.164, international,
|
|
64
|
+
national and RFC3966 formats.
|
|
64
65
|
email:
|
|
65
66
|
- hello@apiverve.com
|
|
66
67
|
executables: []
|