emailhunter 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: da0351f07c47ddebc583de5f89870a109ca3d4c4
4
- data.tar.gz: 40285db85906704a1c892a6d1dfa895780382352
3
+ metadata.gz: aa137bab379d7df31abcabb87843cd69d8f30d11
4
+ data.tar.gz: b9adf893ea0b3d2945f5e49f4ff8e0bb0a163dff
5
5
  SHA512:
6
- metadata.gz: d70a2428ffa0ebd03dd44fb9fbd8b92d0da957d804eb7d212142ed4e853cd8b94eec478e80c345cb9485c1427de4a564ddb6c473098a57814d5e640fbf998a2f
7
- data.tar.gz: f9ec3fc53a8411b2ea441bda110595e849a45aaf7d019ab19d9eb13eb9968cc26d684a241b61d78ca0095b2212f925e47130d18a13db5399ef4bf3e0f64ad164
6
+ metadata.gz: f51ebe40ecef58a40d65fc7a103e5bd13d48e15fe724b476ab930316031824cf7c3f39f8e2686935c8204adacd93de1a63879a8f6cafbe64b117c1b742d62c30
7
+ data.tar.gz: a670bde8c08957bed0863258b1d1fd5d729005e11f53cba94e70e50195b6b4f33c9d14351e424c7ae6a8c4c6d353d319ee7c68e4abe7b3b8e66760d6f6a4dbfa
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ```ruby
24
24
  require 'emailhunter'
25
- email = EmailHunter.new('Your secret API key')
25
+ email_hunter = EmailHunter.new('Your secret API key')
26
26
 
27
27
  ```
28
28
  Your secret API key. You can generate it in your dashboard from https://emailhunter.co
@@ -30,7 +30,7 @@ Your secret API key. You can generate it in your dashboard from https://emailhun
30
30
  ## Domain search API
31
31
  Get the list of all the emails from a given domain name. Each email is returned with our source(s), its type (generic or personnal) and the date it was extracted on
32
32
  ```ruby
33
- result = email.search('stripe.com')
33
+ result = email_hunter.search('stripe.com')
34
34
  ```
35
35
 
36
36
  ## Accessing domain search response
@@ -44,7 +44,7 @@ result.emails
44
44
  ## Email check API
45
45
  Find if a given email exist. If it does, we'll return where it was found.
46
46
  ```ruby
47
- email.exist('bonjour@firmapi.com')
47
+ email_hunter.exist('bonjour@firmapi.com')
48
48
  ```
49
49
 
50
50
  ## Accessing email check response
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
 
13
13
  spec.summary = %q{A tiny ruby wrapper around Email Hunter API }
14
- spec.description = %q{A tiny ruby wrapper around Email Hunter API }
14
+ spec.description = %q{A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales people reach their targets and increase their sales. }
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -5,16 +5,18 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'exist'))
5
5
 
6
6
  module EmailHunter
7
7
  class Api
8
+ attr_reader :key
9
+
8
10
  def initialize(key)
9
11
  @key = key
10
12
  end
11
13
 
12
14
  def search(domain)
13
- EmailHunter::Search.new(domain, @key).hunt
15
+ EmailHunter::Search.new(domain, self.key).hunt
14
16
  end
15
17
 
16
18
  def exist(email)
17
- EmailHunter::Exist.new(email, @key).hunt
19
+ EmailHunter::Exist.new(email, self.key).hunt
18
20
  end
19
21
  end
20
22
  end
@@ -1,5 +1,6 @@
1
1
  require 'faraday'
2
2
  require 'json'
3
+ require 'ostruct'
3
4
 
4
5
  API_EXISTS_URL = 'https://api.emailhunter.co/v1/exist?'
5
6
 
@@ -1,3 +1,3 @@
1
1
  module EmailHunter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailhunter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide Santangelo
@@ -108,7 +108,8 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: 'A tiny ruby wrapper around Email Hunter API '
111
+ description: 'A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales
112
+ people reach their targets and increase their sales. '
112
113
  email:
113
114
  - davide.santangelo@gmail.com
114
115
  executables: []