blazeverify 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/blazeverify/resources/verification.rb +2 -1
- data/lib/blazeverify/version.rb +1 -1
- data/test/blazeverify_test.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51f1cb2b42f129519f69fed97f2d3335cc0ffea333ae5e9a588f9bb48d46ddfd
|
4
|
+
data.tar.gz: d50521a77bb8f1ff8059ef86572922968b4602c7c2c89f498ff6d8b0abdd2a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5e5651bf5c68209cdacd4c23fed4e2aacef3fdc6623655f211f5ab4e0b1e650b9c1e7b4f2816c38061dbd4f61b6ae3a8a82e02618bcaf4a447356d541652c2
|
7
|
+
data.tar.gz: 3f1874228af0f25fa8261294a9b1bc1cbe4934a49d4662eb12ac605601d7c92c2829fe859c55610fa96ffddc5095e8df49afd892b0a256b3eec9b0015a71d9f6
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blazeverify (1.0
|
4
|
+
blazeverify (1.2.0)
|
5
5
|
faraday (~> 0.13)
|
6
6
|
faraday_middleware
|
7
7
|
net-http-persistent
|
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
minitest (>= 5.0)
|
27
27
|
ruby-progressbar
|
28
28
|
multipart-post (2.1.1)
|
29
|
-
net-http-persistent (3.0
|
29
|
+
net-http-persistent (3.1.0)
|
30
30
|
connection_pool (~> 2.2)
|
31
31
|
pry (0.12.2)
|
32
32
|
coderay (~> 1.1.0)
|
@@ -2,7 +2,8 @@ module BlazeVerify
|
|
2
2
|
class Verification < APIResource
|
3
3
|
attr_accessor :accept_all, :did_you_mean, :disposable, :domain, :email,
|
4
4
|
:free, :mx_record, :reason, :role, :score, :smtp_provider,
|
5
|
-
:state, :tag, :user
|
5
|
+
:state, :tag, :user, :first_name, :last_name, :full_name,
|
6
|
+
:gender
|
6
7
|
|
7
8
|
%w(accept_all disposable free role).each do |method|
|
8
9
|
define_method("#{method}?") do
|
data/lib/blazeverify/version.rb
CHANGED
data/test/blazeverify_test.rb
CHANGED
@@ -46,4 +46,19 @@ class BlazeVerifyTest < Minitest::Test
|
|
46
46
|
refute_nil account.available_credits
|
47
47
|
end
|
48
48
|
|
49
|
+
def test_name_and_gender
|
50
|
+
result = BlazeVerify.verify('johndoe@blazeverify.com')
|
51
|
+
if %w(deliverable risky unknown).include?(@result.state)
|
52
|
+
assert result.first_name, 'John'
|
53
|
+
assert result.last_name, 'Doe'
|
54
|
+
assert result.first_name, 'John Doe'
|
55
|
+
assert result.gender, 'male'
|
56
|
+
else
|
57
|
+
assert_nil result.first_name
|
58
|
+
assert_nil result.last_name
|
59
|
+
assert_nil result.full_name
|
60
|
+
assert_nil result.gender
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
49
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blazeverify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blaze Verify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|