resque_mailer 2.2.4 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5f40dbac9ee7d5c35ab40500a905a8a0ef29c92c
4
+ data.tar.gz: 151b4ed348d9e7c276316381a2e3f9189732c6e5
5
+ SHA512:
6
+ metadata.gz: 7ab3baa2fdae11bc4c44fa9849c5e766d43d68f376abb76ce66e7cd41716858944534cbd7798509103c33b2ef12260e9ff0cd9b92fa39c7e02455ec17b9c658d
7
+ data.tar.gz: 17c8260b7eb423f7086af7a0e65f0a1a44c7872ba45907fe2cf92f523a279510b91d86581ba77b20ee82bc5bbb96c95ac0cf890cfbe6fa230903f4294ca3f5ce
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- ### EDGE / 2013-05-06
1
+ ### 2.2.5 / 2013-10-10
2
+ * Travis Integration (Peter Goldstein)
3
+ * ActionMailer 4.0 test compatibility (Peter Goldstein)
4
+ * Added `unschedule_delivery` method for resque-scheduler integration
5
+ (gsdean)
6
+
7
+ ### 2.2.4 / 2013-05-25
2
8
  * Compatibility for Rails 4 pre-release (Ben Woosley)
3
9
  * Fallback to synchronous is default when connection to Redis fails
4
10
  * Avoid lazy evaluation of mail when excluded, for use with mail_view
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Nick Plante
1
+ Copyright (c) 2013 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
@@ -1,10 +1,12 @@
1
1
  # ResqueMailer
2
+ [![Gem Version](https://badge.fury.io/rb/resque_mailer.png)](http://badge.fury.io/rb/resque_mailer)
3
+ [![Build Status](https://secure.travis-ci.org/zapnap/resque_mailer.png)](http://travis-ci.org/zapnap/resque_mailer)
2
4
 
3
5
  A gem plugin which allows messages prepared by ActionMailer to be delivered
4
6
  asynchronously. Assumes you're using Resque (http://github.com/defunkt/resque)
5
7
  for your background jobs.
6
8
 
7
- Note that recent (2.0+) versions of Resque::Mailer only work with Rails 3.x.
9
+ Note that recent (2.0+) versions of Resque::Mailer only work with Rails 3.x or 4.x.
8
10
  For a version compatible with Rails 2, specify v1.x in your Gemfile.
9
11
 
10
12
  ## Installation
@@ -95,6 +97,9 @@ These will enqueue mail for delivery at a specified time in the future.
95
97
  # Delivers in 7 days
96
98
  MyMailer.reminder_email(params).deliver_in(7.days)
97
99
 
100
+ # Unschedule delivery
101
+ MyMailer.reminder_email(params).unschedule_delivery
102
+
98
103
  ## Testing
99
104
 
100
105
  You don't want to be sending actual emails in the test environment, so you can
data/lib/resque_mailer.rb CHANGED
@@ -153,6 +153,14 @@ module Resque
153
153
  end
154
154
  end
155
155
 
156
+ def unschedule_delivery
157
+ unless resque.respond_to? :remove_delayed
158
+ raise "You need to install resque-scheduler to use unschedule_delivery"
159
+ end
160
+
161
+ resque.remove_delayed(@mailer_class, @method_name, *@args)
162
+ end
163
+
156
164
  def deliver!
157
165
  actual_message.deliver
158
166
  end
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Mailer
3
- VERSION = "2.2.4"
3
+ VERSION = "2.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
5
- prerelease:
4
+ version: 2.2.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nick Plante
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-25 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: actionmailer
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,17 +41,15 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: yard
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.6.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.6.0
62
55
  description: Rails plugin for sending asynchronous email with ActionMailer and Resque.
@@ -76,32 +69,26 @@ files:
76
69
  - CHANGELOG.md
77
70
  homepage: http://github.com/zapnap/resque_mailer
78
71
  licenses: []
72
+ metadata: {}
79
73
  post_install_message:
80
74
  rdoc_options: []
81
75
  require_paths:
82
76
  - lib
83
77
  required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
78
  requirements:
86
- - - ! '>='
79
+ - - '>='
87
80
  - !ruby/object:Gem::Version
88
81
  version: '0'
89
- segments:
90
- - 0
91
- hash: 937321504006937956
92
82
  required_rubygems_version: !ruby/object:Gem::Requirement
93
- none: false
94
83
  requirements:
95
- - - ! '>='
84
+ - - '>='
96
85
  - !ruby/object:Gem::Version
97
86
  version: '0'
98
- segments:
99
- - 0
100
- hash: 937321504006937956
101
87
  requirements: []
102
88
  rubyforge_project:
103
- rubygems_version: 1.8.24
89
+ rubygems_version: 2.0.3
104
90
  signing_key:
105
- specification_version: 3
91
+ specification_version: 4
106
92
  summary: Rails plugin for sending asynchronous email with ActionMailer and Resque.
107
93
  test_files: []
94
+ has_rdoc: