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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57b91609f0925598b1c7902a8aef75b9a7ab9203
4
- data.tar.gz: 31b6ee6323b746fb355fac7d2decd2f70b2b6980
3
+ metadata.gz: e61a72900856fb1673b6f9c638e698cc46da893d
4
+ data.tar.gz: 827e67f09bd849839da89e74346ada5fe11e8190
5
5
  SHA512:
6
- metadata.gz: e932b577214cce24d3b5e761eff6d86db8b4b9433e1d0c09e23964aeef423a07fcb9dd5a97e68567d9c3af55a9457c04b8b5c43e3a1ee81eb338de5561c4d122
7
- data.tar.gz: 47a393998a424b19b3c9de454ceb263f885433cb6cd068e20c9c1ffff9253b8943ec23e804452b9ce8f0e6359e1930940b81fb699a12c715d0b7ee9304422859
6
+ metadata.gz: 4116e6ff396c087629474b15a460c8a486712904f3e39c584564651bb9091fd59fe20ac5239f76dabaeba8880e12e6757c180f1751360c00888681bc08c78c0d
7
+ data.tar.gz: af88f3486570bf89003bf19aca7920ed45f537ef4032dfa8e7129c01f7d24430c52855c64847b5ee53c6cdaba00a5c9295ee34ab7e1a10e613690a883a942d71
@@ -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.get(URI.parse(URI.encode(url)))
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
@@ -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.get(URI.parse(URI.encode(url)))
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
@@ -1,3 +1,3 @@
1
1
  module EmailHunter
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-05-12 00:00:00.000000000 Z
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.6
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