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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 269ad2312d53349d38ecf9fb3587bc9efc1c8184f461a1187ceec16e30b46929
4
- data.tar.gz: f936253ccda166864c1f0f27ba1f047090e0182a8d20b44ffe712dfc74a2a5b6
3
+ metadata.gz: 51f1cb2b42f129519f69fed97f2d3335cc0ffea333ae5e9a588f9bb48d46ddfd
4
+ data.tar.gz: d50521a77bb8f1ff8059ef86572922968b4602c7c2c89f498ff6d8b0abdd2a70
5
5
  SHA512:
6
- metadata.gz: 2eff36339601a1524ca968dff95d3f8bb1ab7072a267e5d7e79f9665ea9794cbec781e89fc809a642c69303ed222690e502703e999bf916c4aba02bd5cee1934
7
- data.tar.gz: ac6f0dab1378ebcb42b598fad5b34358943d0b65f4a49119c476f5f7b3da669304b8fcc7ca932b50f0cc01333d902227b64548c8dfa4dba43f0869fccc18ac4b
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.1)
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.1)
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
@@ -1,3 +1,3 @@
1
1
  module BlazeVerify
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -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.1.0
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-06-21 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday