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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51f1cb2b42f129519f69fed97f2d3335cc0ffea333ae5e9a588f9bb48d46ddfd
4
- data.tar.gz: d50521a77bb8f1ff8059ef86572922968b4602c7c2c89f498ff6d8b0abdd2a70
3
+ metadata.gz: bc61f7431adafe466f0c2f89635a0009c01d627e6e263dd4240f146da78c55e0
4
+ data.tar.gz: cd5d83725ae0b2afb4a92afc1ac8e9161a4b1ae16f80feaaf1eb464e4d9c416e
5
5
  SHA512:
6
- metadata.gz: ce5e5651bf5c68209cdacd4c23fed4e2aacef3fdc6623655f211f5ab4e0b1e650b9c1e7b4f2816c38061dbd4f61b6ae3a8a82e02618bcaf4a447356d541652c2
7
- data.tar.gz: 3f1874228af0f25fa8261294a9b1bc1cbe4934a49d4662eb12ac605601d7c92c2829fe859c55610fa96ffddc5095e8df49afd892b0a256b3eec9b0015a71d9f6
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.2.0)
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.15.4)
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, :email,
4
- :free, :mx_record, :reason, :role, :score, :smtp_provider,
5
- :state, :tag, :user, :first_name, :last_name, :full_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
@@ -1,3 +1,3 @@
1
1
  module BlazeVerify
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  end
@@ -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?(@result.state)
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
@@ -1,6 +1,7 @@
1
1
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
2
  require 'blazeverify'
3
3
 
4
+ require 'pry'
4
5
  require 'minitest/autorun'
5
6
  require 'minitest/reporters'
6
7
  Minitest::Reporters.use! [
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.2.0
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-07-29 00:00:00.000000000 Z
11
+ date: 2019-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday