tuktuk 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/tuktuk/bounce.rb +4 -0
- data/lib/tuktuk/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: 661740803e484f1a5e14110e418873905dccc026
|
4
|
+
data.tar.gz: 6e6182e60e5e90f4a02671ef9e992d3557115a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ac622ec549fe687a5ebfe47b7834f5eda79cb6a8948c0aba8945bd0fd07ea98df511488a28dc752cbc36a5ff4b51d7104f3153c637b4d909102d5410b8a6c6
|
7
|
+
data.tar.gz: ec4cd6bb21d92d189ea0508ba9943b8fb8b428ea2bb29e8ae927a87093d9fc3f3ef25fb61fc862a6e044d8c6eb8ce6272bc0ef9959a9233b7520670571b03ae0
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ message = {
|
|
40
40
|
response, email = Tuktuk.deliver(message)
|
41
41
|
```
|
42
42
|
|
43
|
-
The `response` is either a Net::SMTP::Response object, or a Bounce exception (HardBounce or SoftBounce, depending on the cause). `email` is a [mail](https://github.com/mikel/mail) object. So, to handle bounces you'd do:
|
43
|
+
The `response` is either a [Net::SMTP::Response](http://ruby-doc.org/stdlib-2.0.0/libdoc/net/smtp/rdoc/Net/SMTP/Response.html) object, or a Bounce exception (HardBounce or SoftBounce, depending on the cause). `email` is a [mail](https://github.com/mikel/mail) object. So, to handle bounces you'd do:
|
44
44
|
|
45
45
|
``` ruby
|
46
46
|
[...]
|
@@ -50,7 +50,7 @@ response, email = Tuktuk.deliver(message)
|
|
50
50
|
if response.is_a?(Tuktuk::Bounce)
|
51
51
|
puts 'Email bounced. Type: ' + response.class.name # => HardBounce or SoftBounce
|
52
52
|
else
|
53
|
-
puts 'Email delivered!'
|
53
|
+
puts 'Email delivered! Server responded: ' + response.message
|
54
54
|
end
|
55
55
|
```
|
56
56
|
|
data/lib/tuktuk/bounce.rb
CHANGED
data/lib/tuktuk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuktuk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|