blazeverify 1.2.0 → 1.3.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 +4 -4
- data/lib/blazeverify/version.rb +1 -1
- data/test/blazeverify_test.rb +2 -2
- data/test/test_helper.rb +1 -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: bc61f7431adafe466f0c2f89635a0009c01d627e6e263dd4240f146da78c55e0
|
4
|
+
data.tar.gz: cd5d83725ae0b2afb4a92afc1ac8e9161a4b1ae16f80feaaf1eb464e4d9c416e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f74a6ef2f8c6bfe040979dd48a55a57813b248683942b7ac4dd0579d4a7ac9c07108e784733d021d6e737206b638ed592fa72f83d180e35bfbb8dfc08a97d56f
|
7
|
+
data.tar.gz: 685ba922df0667003767f20faecf8752c4d6794ffba915a3c75e04174476f75bf4a104c847448dc277e7be57a39ccbcfed9b1b934c3b139d6c164809de6284a9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blazeverify (1.
|
4
|
+
blazeverify (1.3.0)
|
5
5
|
faraday (~> 0.13)
|
6
6
|
faraday_middleware
|
7
7
|
net-http-persistent
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
builder (3.2.3)
|
15
15
|
coderay (1.1.2)
|
16
16
|
connection_pool (2.2.2)
|
17
|
-
faraday (0.
|
17
|
+
faraday (0.17.0)
|
18
18
|
multipart-post (>= 1.2, < 3)
|
19
19
|
faraday_middleware (0.13.1)
|
20
20
|
faraday (>= 0.7.4, < 1.0)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module BlazeVerify
|
2
2
|
class Verification < APIResource
|
3
|
-
attr_accessor :accept_all, :did_you_mean, :disposable, :domain, :
|
4
|
-
:free, :mx_record, :reason, :role, :score,
|
5
|
-
:state, :tag, :user, :first_name, :last_name,
|
6
|
-
:gender
|
3
|
+
attr_accessor :accept_all, :did_you_mean, :disposable, :domain, :duration,
|
4
|
+
:email, :free, :mx_record, :reason, :role, :score,
|
5
|
+
:smtp_provider, :state, :tag, :user, :first_name, :last_name,
|
6
|
+
:full_name, :gender
|
7
7
|
|
8
8
|
%w(accept_all disposable free role).each do |method|
|
9
9
|
define_method("#{method}?") do
|
data/lib/blazeverify/version.rb
CHANGED
data/test/blazeverify_test.rb
CHANGED
@@ -15,6 +15,7 @@ class BlazeVerifyTest < Minitest::Test
|
|
15
15
|
refute_nil @result.score
|
16
16
|
refute_nil @result.state
|
17
17
|
refute_nil @result.user
|
18
|
+
refute_nil @result.duration
|
18
19
|
end
|
19
20
|
|
20
21
|
def test_verification_state
|
@@ -39,7 +40,6 @@ class BlazeVerifyTest < Minitest::Test
|
|
39
40
|
end
|
40
41
|
|
41
42
|
def test_account
|
42
|
-
BlazeVerify.api_key = 'test_7aff7fc0142c65f86a00'
|
43
43
|
account = BlazeVerify.account
|
44
44
|
|
45
45
|
refute_nil account.owner_email
|
@@ -48,7 +48,7 @@ class BlazeVerifyTest < Minitest::Test
|
|
48
48
|
|
49
49
|
def test_name_and_gender
|
50
50
|
result = BlazeVerify.verify('johndoe@blazeverify.com')
|
51
|
-
if %w(deliverable risky unknown).include?(
|
51
|
+
if %w(deliverable risky unknown).include?(result.state)
|
52
52
|
assert result.first_name, 'John'
|
53
53
|
assert result.last_name, 'Doe'
|
54
54
|
assert result.first_name, 'John Doe'
|
data/test/test_helper.rb
CHANGED
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.3.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-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|