trumail 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -7
- data/lib/trumail/lookup.rb +0 -4
- data/lib/trumail/version.rb +1 -1
- 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: 5ea910267c19a5d195fa269fdf4df36df2ede91e893d96084f66b02c237f54f8
|
4
|
+
data.tar.gz: d1daf5f157d96a9639ef5fddf52f61c356c536c445dd2dc48cebdc557fc4cda4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8015857d5bbe7bfd787625b045cc6db8e183f8fe32cc0cf41120cc8732ad10a0e36605913c868d4b24e0e061d1038de6f1904177845c52337c6821b3ee8b296
|
7
|
+
data.tar.gz: d9bba6b44ec6ffa79b38f5a388d9fbe10f2cd9ca364e3278eb47103d50b98a8708dbfb1895a38247cc1c02a7947a33f1af34133b5a6f93d9e4360dd4a09116d1
|
data/README.md
CHANGED
@@ -23,22 +23,25 @@ Or install it yourself as:
|
|
23
23
|
$ gem install trumail
|
24
24
|
|
25
25
|
## Usage
|
26
|
+
|
27
|
+
### Lookup Verification
|
26
28
|
```ruby
|
27
29
|
# Basic Lookup
|
28
30
|
lookup = Trumail::Lookup.new('test@email.com').verify
|
29
31
|
lookup = Trumail::Lookup.verify('test@email.com')
|
30
32
|
|
31
33
|
# Custom Host
|
32
|
-
lookup = Trumail::Lookup.
|
33
|
-
|
34
|
+
lookup = Trumail::Lookup.verify('test@email.com', host: 'https://verifier.com',
|
35
|
+
format: :xml)
|
36
|
+
```
|
34
37
|
|
35
|
-
|
36
|
-
lookup = Trumail::Lookup.new('test@email.com', format: :xml).verify
|
37
|
-
lookup = Trumail::Lookup.verify('test@email.com', format: :xml)
|
38
|
+
### Lookup Methods
|
38
39
|
|
39
|
-
|
40
|
+
```ruby
|
40
41
|
lookup.url => 'https://trumail.io/json/test@email.com'
|
41
|
-
lookup.
|
42
|
+
lookup.hash => { 'address' => 'test@email.com', 'catchAll' => true, ... }
|
43
|
+
|
44
|
+
# Data Methods
|
42
45
|
lookup.address => 'test@email.com'
|
43
46
|
lookup.username => 'test'
|
44
47
|
lookup.domain => 'email.com'
|
data/lib/trumail/lookup.rb
CHANGED
data/lib/trumail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trumail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ox
|