resque-failed-job-mailer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -26,6 +26,7 @@ All you need to do is configure ActionMailer for smtp details. Add following con
26
26
  Resque::Failure::Notifier.configure do |config|
27
27
  config.from = 'dummy@dummy.com' # from address
28
28
  config.to = 'dummy@dummy.com' # to address
29
+ config.include_payload = true # enabled by default
29
30
  end
30
31
  ```
31
32
 
@@ -8,6 +8,7 @@ module Resque
8
8
 
9
9
  def configure
10
10
  yield self
11
+ self.include_payload = true if include_payload.nil?
11
12
  Resque::Failure.backend = self unless Resque::Failure.backend == Resque::Failure::Multiple
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module ResqueFailedJobMailer
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -30,6 +30,10 @@ describe Resque::Failure::Notifier do
30
30
  it "should return recipient address" do
31
31
  Resque::Failure::Notifier.to.should == "dummy@dummy.com"
32
32
  end
33
+
34
+ it "should return default include_payload method" do
35
+ Resque::Failure::Notifier.include_payload.should be_true
36
+ end
33
37
  end
34
38
 
35
39
  describe "save" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-failed-job-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-25 00:00:00.000000000 Z
13
+ date: 2013-02-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70198850339160 !ruby/object:Gem::Requirement
17
+ requirement: &70360061977860 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70198850339160
25
+ version_requirements: *70360061977860
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &70198850364800 !ruby/object:Gem::Requirement
28
+ requirement: &70360061976620 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70198850364800
36
+ version_requirements: *70360061976620
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: actionmailer
39
- requirement: &70198850362860 !ruby/object:Gem::Requirement
39
+ requirement: &70360061975740 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70198850362860
47
+ version_requirements: *70360061975740
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: resque
50
- requirement: &70198850361780 !ruby/object:Gem::Requirement
50
+ requirement: &70360061974500 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *70198850361780
58
+ version_requirements: *70360061974500
59
59
  description: Gem that sends mail in case of resque job failure
60
60
  email:
61
61
  - aagrawal@thoughtworks.com