zerobounce 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zerobounce.rb +8 -0
- data/lib/zerobounce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a4544646ae81c6432e05bc9a0b2da7fea119296
|
4
|
+
data.tar.gz: bda88f461a6c4f038b1da7d23394bcb6b45c7f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d65d882afffa2dfd06b8d9c4a726bfdf26d47f5a037e1ebacac47d40539c59f6f627035c32dfb2dfe2d7683e605ddc207b33dac8671ac0e8034d7b4f80fe29e2
|
7
|
+
data.tar.gz: 8c4e17d5902ee1c540ed6a89cb9534d77879702c8123e503fb79d28ad831c5b451c9b4423c83a7f76ee1470bad63982e4e66d6994463025900a00403d1bf85d8
|
data/lib/zerobounce.rb
CHANGED
@@ -39,5 +39,13 @@ module Zerobounce
|
|
39
39
|
def validate(params)
|
40
40
|
Request.new(params).get(params)
|
41
41
|
end
|
42
|
+
|
43
|
+
# Convenience method for checking if an email address is valid.
|
44
|
+
#
|
45
|
+
# @param [String] email
|
46
|
+
# @return [Boolean]
|
47
|
+
def valid?(email)
|
48
|
+
validate(email: email).valid?
|
49
|
+
end
|
42
50
|
end
|
43
51
|
end
|
data/lib/zerobounce/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zerobounce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Frase
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|