phone_number_validation 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +189 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/example/example_validate.rb +30 -0
- data/lib/phone_number_validation.rb +73 -0
- data/lib/phone_number_validation/validate/validate_exception.rb +15 -0
- data/lib/phone_number_validation/validate/validate_options.rb +19 -0
- data/lib/phone_number_validation/validate/validate_request.rb +16 -0
- data/lib/phone_number_validation/validate/validate_response.rb +17 -0
- data/lib/phone_number_validation/version.rb +3 -0
- data/phone_number_validation.gemspec +35 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 25053ae25b5a9075d35cf842b287d2ecb3035ff7
|
4
|
+
data.tar.gz: eb7256577f2d4f9381678844c183328dcead145b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e8b7405a1878568b7eeb6430e9ea09fd911ffefccc57613dba10cd3498613769ac11c7fc047b3923129e6d99ffbb359cb4c38cacd56ebc29a3c124c233ee5050
|
7
|
+
data.tar.gz: 333d107cc79cec6e471ec2c50066182e85e207c9a58d354bd6a9a7d21748f9624f1d709e71c6e9803773db31869169e2d0f7b33cb0a6776d985b33fd30a36d6a
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at github@petermolgaard.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Peter Andreas Moelgaard
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
[![Travis](https://travis-ci.org/pmoelgaard/phone_number_validation.svg)](Travis)
|
2
|
+
|
3
|
+
# phone_number_validation (incomplete)
|
4
|
+
|
5
|
+
Ruby Library for the numverify API, Global Phone Number Validation & Lookup, [https://numverify.com/](https://numverify.com/)
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```
|
14
|
+
gem 'phone_number_validation'
|
15
|
+
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
```
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
```
|
28
|
+
$ gem install phone_number_validation
|
29
|
+
|
30
|
+
```
|
31
|
+
|
32
|
+
---
|
33
|
+
|
34
|
+
## Configuration
|
35
|
+
|
36
|
+
Before using the numverify API client you have to setup your account and obtain your API Access Key.
|
37
|
+
You can get it by signing up at [https://numverify.com/product](https://numverify.com/product).
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
## API Overview
|
42
|
+
All endpoints in the public API is available through this library.
|
43
|
+
|
44
|
+
- validate
|
45
|
+
- countries (not yet implemented)
|
46
|
+
|
47
|
+
---
|
48
|
+
|
49
|
+
## Usage
|
50
|
+
|
51
|
+
The general API is documented here: [https://numverify.com/documentation](https://numverify.com/documentation).
|
52
|
+
You can find parameters, result set definitions and status codes documented here as well.
|
53
|
+
|
54
|
+
In the examples directory you can find demos and samples of general usage of all the API functions.
|
55
|
+
|
56
|
+
### Setup
|
57
|
+
|
58
|
+
First we require the module
|
59
|
+
|
60
|
+
```
|
61
|
+
require 'phone_number_validation'
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
Second we instantiate the client
|
66
|
+
|
67
|
+
```
|
68
|
+
@client = NumverifyLayer::Client.new( [access_key] )
|
69
|
+
|
70
|
+
```
|
71
|
+
|
72
|
+
#### Required Parameters
|
73
|
+
|
74
|
+
###### access_key
|
75
|
+
Your unique key that you can find on the dashboard of your account under the numverify account.
|
76
|
+
|
77
|
+
#### Optional Parameters
|
78
|
+
|
79
|
+
###### Secure (only available for Basic, Pro and Enterprise accounts)
|
80
|
+
Boolean value to indicate if the calls to the API should use a secure protocol or insecure (HTTP/HTTPS). Defaults to false (HTTP, insecure).
|
81
|
+
|
82
|
+
---
|
83
|
+
|
84
|
+
## Validate
|
85
|
+
|
86
|
+
Takes a string representing a phone number and validates and analyses it.
|
87
|
+
|
88
|
+
###### Define Query
|
89
|
+
|
90
|
+
First we get a reference to the string that needs to be detected
|
91
|
+
|
92
|
+
```
|
93
|
+
number = '+14158586273'
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
Second we define an options object.
|
98
|
+
All the options are documented here: [https://numverify.com/documentation](https://numverify.com/documentation)
|
99
|
+
|
100
|
+
```
|
101
|
+
options = NumverifyLayer::ValidateOptions.new()
|
102
|
+
|
103
|
+
```
|
104
|
+
|
105
|
+
###### Call Client
|
106
|
+
We then place the actual call to the API, passing in the email we wish to check and the options we defined above.
|
107
|
+
|
108
|
+
```
|
109
|
+
response = @client.validate( [number] [, options] )
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
###### Response
|
114
|
+
|
115
|
+
If we pass the number ```+14158586273``` as the query argument above, we get the following result:
|
116
|
+
|
117
|
+
```
|
118
|
+
{
|
119
|
+
"valid": true,
|
120
|
+
"number": "14158586273",
|
121
|
+
"local_format": "4158586273",
|
122
|
+
"international_format": "+14158586273",
|
123
|
+
"country_prefix": "+1",
|
124
|
+
"country_code": "US",
|
125
|
+
"country_name": "United States of America",
|
126
|
+
"location": "Novato",
|
127
|
+
"carrier": "AT&T Mobility LLC",
|
128
|
+
"line_type": "mobile"
|
129
|
+
}
|
130
|
+
|
131
|
+
```
|
132
|
+
---
|
133
|
+
|
134
|
+
## Example Application
|
135
|
+
|
136
|
+
In the [rootdir]/example directory there is a fully functional application which runs all requests against all the endpoints in the API, the examples above can be seen there as source code.
|
137
|
+
|
138
|
+
The example application uses a process.env variable to hold the access key.
|
139
|
+
|
140
|
+
---
|
141
|
+
|
142
|
+
## Tests
|
143
|
+
|
144
|
+
The tests are written using the rspec testing library.
|
145
|
+
**RSpec** [http://rspec.info/](http://rspec.info/)
|
146
|
+
|
147
|
+
In order to run the tests, the following environment variables needs to be set:
|
148
|
+
|
149
|
+
```
|
150
|
+
ACCESS_KEY = [access_key]
|
151
|
+
|
152
|
+
```
|
153
|
+
|
154
|
+
|
155
|
+
---
|
156
|
+
|
157
|
+
## Customer Support
|
158
|
+
|
159
|
+
Need any assistance? [Get in touch with Customer Support](mailto:support@apilayer.net?subject=%numverify%5D).
|
160
|
+
|
161
|
+
---
|
162
|
+
|
163
|
+
## Updates
|
164
|
+
Stay up to date by following [@apilayernet](https://twitter.com/apilayernet) on Twitter.
|
165
|
+
|
166
|
+
---
|
167
|
+
|
168
|
+
## Legal
|
169
|
+
|
170
|
+
All usage of the numverify website, API, and services is subject to the [numverify Terms & Conditions](https://numverify.com/terms) and all annexed legal documents and agreements.
|
171
|
+
|
172
|
+
---
|
173
|
+
|
174
|
+
## Author
|
175
|
+
Peter Andreas Moelgaard ([GitHub](https://github.com/pmoelgaard), [Twitter](https://twitter.com/petermoelgaard))
|
176
|
+
|
177
|
+
---
|
178
|
+
|
179
|
+
## License
|
180
|
+
Licensed under the The MIT License (MIT)
|
181
|
+
|
182
|
+
Copyright (©) 2016 Peter Andreas Moelgaard & apilayer
|
183
|
+
|
184
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
185
|
+
|
186
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
187
|
+
|
188
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
189
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "phone_number_validation"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'dotenv'
|
2
|
+
require 'phone_number_validation'
|
3
|
+
require 'phone_number_validation/validate_options'
|
4
|
+
|
5
|
+
# Load Environment Variables
|
6
|
+
Dotenv.load
|
7
|
+
|
8
|
+
begin
|
9
|
+
|
10
|
+
# Declare the Client instance passing in the authentication parameters
|
11
|
+
@client = NumverifyLayer::Client.new(ENV['ACCESS_KEY'])
|
12
|
+
|
13
|
+
# Set the number to check
|
14
|
+
number = '+14158586273'
|
15
|
+
|
16
|
+
# We declare the options
|
17
|
+
options = NumverifyLayer::ValidateOptions.new()
|
18
|
+
|
19
|
+
# We make the call to validate
|
20
|
+
response = @client.validate(number, options)
|
21
|
+
|
22
|
+
# If its a success, we print a message to the user
|
23
|
+
if !response.nil?
|
24
|
+
puts 'SUCCESS : Number validated...' << response.to_s
|
25
|
+
end
|
26
|
+
|
27
|
+
rescue => e
|
28
|
+
puts e.inspect
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require "httparty"
|
2
|
+
require "hashable"
|
3
|
+
require "phone_number_validation/version"
|
4
|
+
require "phone_number_validation/validate/validate_options"
|
5
|
+
require "phone_number_validation/validate/validate_request"
|
6
|
+
require "phone_number_validation/validate/validate_response"
|
7
|
+
require "phone_number_validation/validate/validate_exception"
|
8
|
+
|
9
|
+
|
10
|
+
module NumverifyLayer
|
11
|
+
|
12
|
+
class Client
|
13
|
+
|
14
|
+
include HTTParty
|
15
|
+
|
16
|
+
base_uri 'apilayer.net/api'
|
17
|
+
|
18
|
+
def initialize(access_key)
|
19
|
+
|
20
|
+
if access_key.nil?
|
21
|
+
raise NumverifyLayer::MissingArgumentException.new 'access_key'
|
22
|
+
end
|
23
|
+
|
24
|
+
@access_key = access_key
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
def validate(number, options = {})
|
30
|
+
|
31
|
+
if number.nil?
|
32
|
+
raise NumverifyLayer::MissingArgumentException.new 'number'
|
33
|
+
return
|
34
|
+
end
|
35
|
+
|
36
|
+
# Create a shallow copy so we don't manipulate the original reference
|
37
|
+
q = options.dup
|
38
|
+
|
39
|
+
# Populate the Query
|
40
|
+
q.access_key = @access_key
|
41
|
+
q.number = number
|
42
|
+
|
43
|
+
# We then create the Request
|
44
|
+
req = NumverifyLayer::ValidateRequest.new(q)
|
45
|
+
|
46
|
+
# We create a Hash of the request so we can send it via HTTP
|
47
|
+
req_dto = req.to_dh
|
48
|
+
|
49
|
+
begin
|
50
|
+
|
51
|
+
# We make the actual request
|
52
|
+
res = self.class.get('/validate', req_dto)
|
53
|
+
|
54
|
+
# We ensure that we tap the response so we can use the results
|
55
|
+
res.inspect
|
56
|
+
|
57
|
+
if (res[NumverifyLayer::ValidateResponse::ERROR_EXPR])
|
58
|
+
raise NumverifyLayer::ValidateException.new res[NumverifyLayer::ValidateResponse::ERROR_EXPR]
|
59
|
+
end
|
60
|
+
|
61
|
+
# We just return the parsed binary response
|
62
|
+
return res.parsed_response
|
63
|
+
|
64
|
+
rescue => e
|
65
|
+
puts e.inspect
|
66
|
+
return
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'phone_number_validation/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
|
9
|
+
spec.name = "phone_number_validation"
|
10
|
+
spec.version = NumverifyLayer::VERSION
|
11
|
+
spec.authors = ["Peter Andreas Moelgaard"]
|
12
|
+
spec.email = ["github@petermolgaard.com"]
|
13
|
+
|
14
|
+
spec.description = "Ruby Library for the numverify API, Global Phone Number Validation & Lookup, https://numverify.com/"
|
15
|
+
spec.summary = "Ruby Library for the numverify API, Global Phone Number Validation & Lookup, https://numverify.com/"
|
16
|
+
spec.homepage = "https://github.com/pmoelgaard/phone_number_validation"
|
17
|
+
|
18
|
+
spec.license = "MIT"
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.required_ruby_version = '>= 1.9.3'
|
26
|
+
|
27
|
+
spec.add_runtime_dependency "httparty"
|
28
|
+
spec.add_runtime_dependency "hashable"
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
+
spec.add_development_dependency "dotenv"
|
34
|
+
spec.add_development_dependency "bump"
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phone_number_validation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Andreas Moelgaard
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hashable
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.11'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.11'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: dotenv
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bump
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Ruby Library for the numverify API, Global Phone Number Validation &
|
112
|
+
Lookup, https://numverify.com/
|
113
|
+
email:
|
114
|
+
- github@petermolgaard.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- .rspec
|
120
|
+
- .travis.yml
|
121
|
+
- CODE_OF_CONDUCT.md
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- bin/console
|
127
|
+
- bin/setup
|
128
|
+
- example/example_validate.rb
|
129
|
+
- lib/phone_number_validation.rb
|
130
|
+
- lib/phone_number_validation/validate/validate_exception.rb
|
131
|
+
- lib/phone_number_validation/validate/validate_options.rb
|
132
|
+
- lib/phone_number_validation/validate/validate_request.rb
|
133
|
+
- lib/phone_number_validation/validate/validate_response.rb
|
134
|
+
- lib/phone_number_validation/version.rb
|
135
|
+
- phone_number_validation.gemspec
|
136
|
+
homepage: https://github.com/pmoelgaard/phone_number_validation
|
137
|
+
licenses:
|
138
|
+
- MIT
|
139
|
+
metadata: {}
|
140
|
+
post_install_message:
|
141
|
+
rdoc_options: []
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - '>='
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 1.9.3
|
149
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
requirements: []
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 2.0.14
|
157
|
+
signing_key:
|
158
|
+
specification_version: 4
|
159
|
+
summary: Ruby Library for the numverify API, Global Phone Number Validation & Lookup,
|
160
|
+
https://numverify.com/
|
161
|
+
test_files: []
|