apiverve_emaildisposablechecker 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92724bc1fd436bb787343172b73836157454ae39f7dcc44d2b88502500f0dfbc
4
- data.tar.gz: ee3c80b35c0f356fe0db7205779214fb54d3dbaa315236a1f4073371c426af28
3
+ metadata.gz: f5e1fa6fa12f623e412adff7688deebe55265311a97fcb862acf866b2b06f862
4
+ data.tar.gz: 927a9ba78305b2018d9a8a412a5e46a396a22818e1dab7cbd4772c95e4cc4955
5
5
  SHA512:
6
- metadata.gz: 1b152597b2c993ad1c63c19a9c3e6060fb3dca0bdcc54900c7a91ad965894f8a2017c9e0ecb6b7d5300d70414bb15fce6bdf65bacb781436ea9e5055b60c95b8
7
- data.tar.gz: 6de858b63cb2ed38cdd3ab305299cbffefbcfc8c9a398570fc41afac33b0f6e5f3190813674bb16d8d5c47615508e4f91422e7f6627f968cc2eea7677da2a5fd
6
+ metadata.gz: 6373bf5b809143b3db6cbe790ea2a6b04af17b39ce2bf9bfb405b3716c42d9b62eb9e7ec222e0eaa9b3198c54c1ac3e0d5ff43578ed693033434240c5759873f
7
+ data.tar.gz: b5fd1e2d0445d8660f18e6f375e4a7e9201f48805f82446975b88e59160067989f98f072e068ea26a6863b4e530e8296b847a33884ce2e1b8f0b312f249ef3f7
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Disposable Email Checker API - Ruby Gem
2
2
 
3
- Disposable Email Checker is a disposable email detection API that tests whether an email address belongs to a disposable or temp mail provider. Pass any email to receive its domain and a true or false flag showing if it is temporary.
3
+ Disposable Email Checker is a disposable email detection API that tests whether an email address belongs to a disposable or temp mail provider. Pass any email to get back the domain parsed from it and a true or false flag showing whether it is temporary. That also makes it a quick way to drop throwaway domains when you derive a company domain from a list of emails.
4
4
 
5
5
  ## Installation
6
6
 
@@ -35,7 +35,10 @@ require 'apiverve_emaildisposablechecker'
35
35
  client = APIVerve::Emaildisposablechecker::Client.new(api_key: "YOUR_API_KEY")
36
36
 
37
37
  # Make a request
38
- response = client.execute({ email: "support@myspace.com" })
38
+ response = client.execute({
39
+ email: "support@myspace.com",
40
+ domain: "mailinator.com"
41
+ })
39
42
 
40
43
  # Print the response
41
44
  puts response
@@ -46,7 +49,7 @@ puts response
46
49
 
47
50
  ```ruby
48
51
  begin
49
- response = client.execute({ email: "support@myspace.com" })
52
+ response = client.execute({ email: "support@myspace.com", domain: "mailinator.com" })
50
53
  puts response["data"]
51
54
  rescue APIVerve::Emaildisposablechecker::ValidationError => e
52
55
  puts "Validation error: #{e.errors.join(', ')}"
@@ -75,7 +78,10 @@ client = APIVerve::Emaildisposablechecker::Client.new(
75
78
  "data": {
76
79
  "isDisposable": false,
77
80
  "email": "support@myspace.com",
78
- "domain": "myspace.com"
81
+ "domain": "myspace.com",
82
+ "isRelay": false,
83
+ "relayService": null,
84
+ "isDisposableMx": false
79
85
  }
80
86
  }
81
87
  ```
@@ -10,7 +10,7 @@ module APIVerve
10
10
  #
11
11
  # @example Basic usage
12
12
  # client = APIVerve::Emaildisposablechecker::Client.new(api_key: "your_api_key")
13
- # response = client.execute({ email: "support@myspace.com" })
13
+ # response = client.execute({ email: "support@myspace.com", domain: "mailinator.com" })
14
14
  # puts response
15
15
  #
16
16
  # @see https://apiverve.com/marketplace/emaildisposablechecker?utm_source=ruby&utm_medium=referral&utm_content=readme
@@ -19,7 +19,7 @@ module APIVerve
19
19
  DEFAULT_TIMEOUT = 30
20
20
 
21
21
  # Validation rules for parameters
22
- VALIDATION_RULES = { 'email' => { type: 'string', required: true, format: 'email' } }
22
+ VALIDATION_RULES = { 'email' => { type: 'string', required: false, format: 'email' }, 'domain' => { type: 'string', required: false, format: 'email' } }
23
23
 
24
24
  # Format validation patterns
25
25
  FORMAT_PATTERNS = {
@@ -4,6 +4,6 @@ require_relative "apiverve_emaildisposablechecker/client"
4
4
 
5
5
  module APIVerve
6
6
  module Emaildisposablechecker
7
- VERSION = "1.2.2"
7
+ VERSION = "1.2.4"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiverve_emaildisposablechecker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -60,7 +59,9 @@ dependencies:
60
59
  version: '2.0'
61
60
  description: Disposable Email Checker is a disposable email detection API that tests
62
61
  whether an email address belongs to a disposable or temp mail provider. Pass any
63
- email to receive its domain and a true or false flag showing if it is temporary.
62
+ email to get back the domain parsed from it and a true or false flag showing whether
63
+ it is temporary. That also makes it a quick way to drop throwaway domains when you
64
+ derive a company domain from a list of emails.
64
65
  email:
65
66
  - hello@apiverve.com
66
67
  executables: []
@@ -79,7 +80,6 @@ metadata:
79
80
  source_code_uri: https://github.com/apiverve/emaildisposablechecker-API/tree/main/ruby
80
81
  changelog_uri: https://apiverve.com/changelog
81
82
  documentation_uri: https://docs.apiverve.com/ref/emaildisposablechecker
82
- post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths:
85
85
  - lib
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.0.3.1
98
- signing_key:
97
+ rubygems_version: 4.0.23
99
98
  specification_version: 4
100
99
  summary: Disposable Email Checker API - Ruby Client
101
100
  test_files: []