zerobounce 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zerobounce/error.rb +1 -1
- data/lib/zerobounce/request.rb +2 -2
- data/lib/zerobounce/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c26d8ef84543260f1c12b728f44ab9c25f9ddd12
|
4
|
+
data.tar.gz: 23e8dd446e127532d5da39d7394b48cfb342d663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6141f44171fbe3a7589a1a02ef6c60df3b0d4dd9fe20e9b574d702670c7a445079081691c66b03938f40a3a4915e7af610b2745e9460804e19e6cfa8b88143d7
|
7
|
+
data.tar.gz: a473b7a08f5eb680f07d71e33f5f3d5898593a8f001df15166c7dcdcadb02c1c133d40242a9ce5092ad5557e3e5de7a9f5033a0f69107859cf1e2ec5d410d73b
|
data/lib/zerobounce/error.rb
CHANGED
data/lib/zerobounce/request.rb
CHANGED
@@ -58,9 +58,9 @@ module Zerobounce
|
|
58
58
|
# @param [Hash] params
|
59
59
|
# @return [Hash]
|
60
60
|
def get_params(params)
|
61
|
-
valid_params = %i[
|
61
|
+
valid_params = %i[apikey ipaddress email]
|
62
62
|
params[:ipaddress] = params.delete(:ip_address) if params.key?(:ip_address) # normalize ipaddress key
|
63
|
-
{
|
63
|
+
{ apikey: Zerobounce.config.api_key }.merge(params.select { |k, _| valid_params.include?(k) })
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
data/lib/zerobounce/version.rb
CHANGED