actionmailer-deliver_later 0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 69a1a816f1a91b2265d4157c67011082d8a067c9
4
+ data.tar.gz: 9ce4942d67983abb29a2f9ca8005004a03532325
5
+ SHA512:
6
+ metadata.gz: 125926451b207e726e119f268a15463dc417029a7121da4592dbea9b3fa375f9c08f68bab82a527a6ca80da7828673ffb6286119dc303b788d4142adb1c7f7da
7
+ data.tar.gz: 8bfdce03e96666192d7292a4cd17068d8b67780316dfeecf1fa662b799e1872259a008cf5ade0432191141c1d0e5fbdcf8d354535141474ae88a9cea0ebc19bf
@@ -0,0 +1,13 @@
1
+ require 'active_job'
2
+ require 'action_mailer'
3
+ require 'action_mailer/deliver_later/version'
4
+
5
+ module ActionMailer
6
+ module DeliverLater
7
+ extend ActiveSupport::Autoload
8
+ autoload :Job
9
+ autoload :Mixin
10
+ end
11
+ end
12
+
13
+ ActionMailer::Base.extend(ActionMailer::DeliverLater::Mixin)
@@ -0,0 +1,11 @@
1
+ module ActionMailer
2
+ module DeliverLater
3
+ class Job < ActiveJob::Base
4
+ queue_as :mailers
5
+
6
+ def perform(mailer, delivery, *parameters)
7
+ mailer.constantize.send(delivery, *parameters).deliver
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module ActionMailer
2
+ module DeliverLater
3
+ module Mixin
4
+ def deliver_later(delivery, *parameters)
5
+ ActionMailer::DeliverLater::Job.enqueue self.class, delivery, *parameters
6
+ end
7
+
8
+ alias_method :deliver_async, :deliver_later
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Actionmailer
2
+ module DeliverLater
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require '../action_mailer/deliver_later'
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: actionmailer-deliver_later
3
+ version: !ruby/object:Gem::Version
4
+ version: '0'
5
+ platform: ruby
6
+ authors:
7
+ - David Heinemeier Hansson
8
+ - Abdelkader Boudih
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-05-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: actionmailer
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: activejob
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ description: ''
43
+ email:
44
+ - david@loudthinking.com
45
+ - terminale@gmail.com
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - lib/action_mailer/deliver_later.rb
51
+ - lib/action_mailer/deliver_later/job.rb
52
+ - lib/action_mailer/deliver_later/mixin.rb
53
+ - lib/action_mailer/deliver_later/version.rb
54
+ - lib/actionmailer/deliver_later.rb
55
+ homepage: http://www.rubyonrails.org
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 1.9.3
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.2.2
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: ''
79
+ test_files: []
80
+ has_rdoc: