notification-pusher-actionmailer 1.0.0.beta11 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/app/mailers/notification_pusher/action_mailer/notification_mailer.rb +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8104492ec9d28b0e51a1ac234401c9bca11af5d62926d462136a6c53eabdea85
|
4
|
+
data.tar.gz: d8fad6317e3cfc97832b9cd9cc101090f609794717c864a5e4e64c8cab5f4050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb25e429224aa3a24b461f0fe68ec891fe16081a37b669826546704dc9640aeaae9b9e41de9e87c3034d4e47e7f1acf8743b6b0b4bf3d2c99869a57d9e686d2
|
7
|
+
data.tar.gz: a64ed0502eb5d5f6ce0fa827750dfa8a553e5410ff9bacb3f1af934c551cedd1e9f354556ebfd2efad18a0ca4ccaf22d35f89a01ed575b1f2316d7beb493f6cc
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -82,6 +82,8 @@ It is also possible to override the email address sending this notification, by
|
|
82
82
|
|
83
83
|
**`renderer`** Specify a renderer. Takes a string. Defaults to `'actionmailer'`.
|
84
84
|
|
85
|
+
**`layout`** Layout used for template rendering. Takes a string. Defaults to layout specified in `ApplicationMailer`.
|
86
|
+
|
85
87
|
---
|
86
88
|
|
87
89
|
## To Do
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class NotificationPusher::ActionMailer::NotificationMailer < ApplicationMailer
|
2
2
|
|
3
3
|
def push notification, options = {}
|
4
|
+
render(layout: options[:layout]) if options.has_key?(:layout)
|
4
5
|
@notification = notification
|
5
6
|
@renderer = options[:renderer] || 'actionmailer'
|
6
7
|
mail to: options[:to] || notification.target.email, from: options[:from]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notification-pusher-actionmailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0
|
47
|
+
version: 1.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.0
|
54
|
+
version: 1.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: notification-renderer
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.0
|
61
|
+
version: 1.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.0
|
68
|
+
version: 1.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '2.3'
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
|
-
- - "
|
126
|
+
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
128
|
+
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
131
|
rubygems_version: 2.7.3
|