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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7372b2bc0d09b1c9b88fe82f013528dc9997811e
4
- data.tar.gz: 05db8f38889e63c22d6542bfcf04b966a71827ec
3
+ metadata.gz: 661740803e484f1a5e14110e418873905dccc026
4
+ data.tar.gz: 6e6182e60e5e90f4a02671ef9e992d3557115a4d
5
5
  SHA512:
6
- metadata.gz: 312b8cc15164b282191c4e519973a0c93afff143644a9b23aa1815d9a6d80a625b11a57a53350fbf7f38d0e8dba7e24522431d56d4b536742b10ebaa9863ed05
7
- data.tar.gz: 5dc1afa0829e7c96d344455f01def4d401de8d1e3ea00dd6171f149e335087d1ff435d987b17846ec93f7c6400851a217f2c6712ca10075dd8a8d8ca84b698c4
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
@@ -27,6 +27,10 @@ class Bounce < RuntimeError
27
27
  str.to_i
28
28
  end
29
29
  end
30
+
31
+ def status
32
+ code
33
+ end
30
34
 
31
35
  end
32
36
 
@@ -1,7 +1,7 @@
1
1
  module Tuktuk
2
2
  MAJOR = 0
3
3
  MINOR = 6
4
- PATCH = 1
4
+ PATCH = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
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.1
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-03-13 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler