resque_mailer 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53a54447608a2968256ef39072f6308d1dbc2169
4
- data.tar.gz: e9ff62895bacee201cca55e7f3cb5ed805302cb4
3
+ metadata.gz: bc00ecc2825ecbdfb1569db2d721e2ba1b1e7881
4
+ data.tar.gz: 4c33b71e7f01d7c077ca5c90df02906dc02ff0f4
5
5
  SHA512:
6
- metadata.gz: c49ea092064b92528689c38ac49eac32d1c0f451c4e56701a27ac0b3c713609d9bd6daaf1b0e1d6e2245c05168f2ae2dd84fa979d4ba6dfe7f06dca4fdf14de4
7
- data.tar.gz: 6be3cbf5e72deba7c4950f22f01effb46e0c6f2a7a20a02b83eaca5be5218166f7bfead4ae8ed75b4050a7359b502091c2b4b192f2be0cb363fb54470da42c94
6
+ metadata.gz: 0b79aae5b1b79c4e6cac2f12f9084ac8df048fded91ff9ef62b58450ff95cf30cbc455a13d77f35c60d49c944d2ce08548f3fdca7d3011b0245c9230f040e88c
7
+ data.tar.gz: 67c0d0c9dc358b4830dbc90aa525366df64a36d1326fd11551355f78b458d282eba89b7db42ebb72bd7ca474f0ae14f73e51c2efcddb9501869cb60de5e40811
@@ -1,4 +1,8 @@
1
- ### EDGE / 2013-11-12
1
+ ### 2.2.7 / 2014-10-08
2
+ * Pass respond_to? inquiries through to decoy (to allow preview, etc)
3
+ (Ian Lesperance)
4
+
5
+ ### 2.2.6 / 2013-11-13
2
6
  * Add action and args as arguments to the error handler lambda for
3
7
  requeuing (Ellis Berner, Austen Ito)
4
8
  * Redis client v3 support; fix unhandled exception when offline
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Nick Plante
1
+ Copyright (c) 2014 Nick Plante
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -30,7 +30,7 @@ Include Resque::Mailer in your ActionMailer subclass(es) like this:
30
30
 
31
31
  Now, when `MyMailer.subject_email(params).deliver` is called, an entry
32
32
  will be created in the job queue. Your Resque workers will be able to deliver
33
- this message for you. The queue we're using is imaginatively named +mailer+,
33
+ this message for you. The queue we're using is imaginatively named `mailer`,
34
34
  so just make sure your workers know about it and are loading your environment:
35
35
 
36
36
  QUEUE=mailer rake environment resque:work
@@ -59,9 +59,8 @@ name when starting your workers.
59
59
  QUEUE=application_specific_mailer rake environment resque:work
60
60
 
61
61
  Custom handling of errors that arise when sending a message is possible by
62
- assigning a lambda to the `error_hander` attribute.
63
-
64
- There are two supported lambdas for backwards compatiability:
62
+ assigning a lambda to the `error_hander` attribute. There are two supported
63
+ lambdas for backwards compatiability.
65
64
 
66
65
  The first lamba will be deprecated in a future release:
67
66
 
@@ -77,10 +76,10 @@ mailers to be requeued on failure:
77
76
  ```ruby
78
77
  Resque::Mailer.error_handler = lambda { |mailer, message, error, action, args|
79
78
  # Necessary to re-enqueue jobs that receieve the SIGTERM signal
80
- if exception.is_a?(Resque::TermException)
79
+ if error.is_a?(Resque::TermException)
81
80
  Resque.enqueue(mailer, action, *args)
82
81
  else
83
- raise exception
82
+ raise error
84
83
  end
85
84
  }
86
85
  ```
@@ -98,7 +97,7 @@ other mailers inherit from an AsyncMailer:
98
97
 
99
98
  # app/mailers/example_mailer.rb
100
99
  class ExampleMailer < AsyncMailer
101
- def say_hello(user)
100
+ def say_hello(user_id)
102
101
  # ...
103
102
  end
104
103
  end
@@ -109,8 +108,8 @@ If [resque-scheduler](https://github.com/bvandenbos/resque-scheduler) is
109
108
  installed, two extra methods will be available: `deliver_at` and `deliver_in`.
110
109
  These will enqueue mail for delivery at a specified time in the future.
111
110
 
112
- # Delivers on the 25th of December, 2013
113
- MyMailer.reminder_email(params).deliver_at(Time.parse('2013-12-25'))
111
+ # Delivers on the 25th of December, 2014
112
+ MyMailer.reminder_email(params).deliver_at(Time.parse('2014-12-25'))
114
113
 
115
114
  # Delivers in 7 days
116
115
  MyMailer.reminder_email(params).deliver_in(7.days)
@@ -174,6 +174,10 @@ module Resque
174
174
  actual_message.send(method_name, *args)
175
175
  end
176
176
 
177
+ def respond_to?(method_name, *args)
178
+ super || actual_message.respond_to?(method_name, *args)
179
+ end
180
+
177
181
  def logger
178
182
  @mailer_class.logger
179
183
  end
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Mailer
3
- VERSION = "2.2.6"
3
+ VERSION = "2.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Plante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -62,13 +62,14 @@ extra_rdoc_files:
62
62
  - CHANGELOG.md
63
63
  - README.md
64
64
  files:
65
- - lib/resque_mailer/version.rb
66
- - lib/resque_mailer.rb
67
- - README.md
68
- - LICENSE
69
65
  - CHANGELOG.md
66
+ - LICENSE
67
+ - README.md
68
+ - lib/resque_mailer.rb
69
+ - lib/resque_mailer/version.rb
70
70
  homepage: http://github.com/zapnap/resque_mailer
71
- licenses: []
71
+ licenses:
72
+ - MIT
72
73
  metadata: {}
73
74
  post_install_message:
74
75
  rdoc_options: []
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  version: '0'
87
88
  requirements: []
88
89
  rubyforge_project:
89
- rubygems_version: 2.0.3
90
+ rubygems_version: 2.2.2
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Rails plugin for sending asynchronous email with ActionMailer and Resque.