trumail 0.2.0 → 1.0.0

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: 0cb74da0efbcc6a10df33980752904d1da604d70033fc2d64e4f5377ec2c2194
4
- data.tar.gz: 4207c818255761f16414cf51262a0fefb3f55530aaa9bd9a59c21a513d51dbba
3
+ metadata.gz: 5ea910267c19a5d195fa269fdf4df36df2ede91e893d96084f66b02c237f54f8
4
+ data.tar.gz: d1daf5f157d96a9639ef5fddf52f61c356c536c445dd2dc48cebdc557fc4cda4
5
5
  SHA512:
6
- metadata.gz: 99f2abf1eed00880a7802da867a03fe4c55a662dd3dbddab58de29e8a2ee4ef4fc491049541819d4798e484e0c5ef2200de5391f4b5aa7cacedfcb79d88f4fd1
7
- data.tar.gz: 8c42fb15522c8fefb49d85078203ba09ce5b18918c579e988c68a27fc0a8a086db24a22295bf5fcad2b81f002b2c302a44413934c629a1c2aac68bc9e52c6db4
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.new('test@email.com', host: 'https://verifier.com').verify
33
- lookup = Trumail::Lookup.verify('test@email.com', host: 'https://verifier.com')
34
+ lookup = Trumail::Lookup.verify('test@email.com', host: 'https://verifier.com',
35
+ format: :xml)
36
+ ```
34
37
 
35
- # Custom Format
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
- # Public Methods
40
+ ```ruby
40
41
  lookup.url => 'https://trumail.io/json/test@email.com'
41
- lookup.to_h => { 'address' => 'test@email.com', 'catchAll' => true, ... }
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'
@@ -38,10 +38,6 @@ module Trumail
38
38
  "#{@host}/#{@format}/#{@email}"
39
39
  end
40
40
 
41
- def to_h
42
- @hash
43
- end
44
-
45
41
  def address
46
42
  @hash['address']
47
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Trumail
4
- VERSION ||= '0.2.0'
4
+ VERSION ||= '1.0.0'
5
5
  end
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.2.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-28 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox