emailhunter 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/email_hunter/exist.rb +1 -1
- data/lib/email_hunter/search.rb +2 -2
- data/lib/email_hunter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e61a72900856fb1673b6f9c638e698cc46da893d
|
4
|
+
data.tar.gz: 827e67f09bd849839da89e74346ada5fe11e8190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4116e6ff396c087629474b15a460c8a486712904f3e39c584564651bb9091fd59fe20ac5239f76dabaeba8880e12e6757c180f1751360c00888681bc08c78c0d
|
7
|
+
data.tar.gz: af88f3486570bf89003bf19aca7920ed45f537ef4032dfa8e7129c01f7d24430c52855c64847b5ee53c6cdaba00a5c9295ee34ab7e1a10e613690a883a942d71
|
data/lib/email_hunter/exist.rb
CHANGED
@@ -21,7 +21,7 @@ module EmailHunter
|
|
21
21
|
|
22
22
|
def apiresponse
|
23
23
|
url = "#{API_EXISTS_URL}email=#{@email}&api_key=#{@key}"
|
24
|
-
response = Faraday.
|
24
|
+
response = (Faraday.new URI.parse(URI.encode(url)), :ssl => {:verify => false}).get
|
25
25
|
response.success? ? JSON.parse(response.body, {symbolize_names: true}) : []
|
26
26
|
end
|
27
27
|
end
|
data/lib/email_hunter/search.rb
CHANGED
@@ -5,7 +5,7 @@ API_SEARCH_URL = 'https://api.emailhunter.co/v1/search?'
|
|
5
5
|
|
6
6
|
module EmailHunter
|
7
7
|
class Search
|
8
|
-
attr_reader :status, :results, :emails, :offset
|
8
|
+
attr_reader :status, :results, :webmail, :emails, :offset
|
9
9
|
|
10
10
|
def initialize(domain, key)
|
11
11
|
@domain = domain
|
@@ -21,7 +21,7 @@ module EmailHunter
|
|
21
21
|
|
22
22
|
def apiresponse
|
23
23
|
url = "#{API_SEARCH_URL}domain=#{@domain}&api_key=#{@key}"
|
24
|
-
response = Faraday.
|
24
|
+
response = (Faraday.new URI.parse(URI.encode(url)), :ssl => {:verify => false}).get
|
25
25
|
response.success? ? JSON.parse(response.body, {symbolize_names: true}) : []
|
26
26
|
end
|
27
27
|
end
|
data/lib/email_hunter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emailhunter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davide Santangelo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.4.
|
155
|
+
rubygems_version: 2.4.8
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: A tiny ruby wrapper around Email Hunter API
|