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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e05dc95ea45bcdfca6f9eac891e4f4f608a34134fc213aac8785609934561ff
4
- data.tar.gz: 2eed7dc94d162628c51ef36b72e7f889411d2658dfeb7df42ff96acfab137d31
3
+ metadata.gz: 8104492ec9d28b0e51a1ac234401c9bca11af5d62926d462136a6c53eabdea85
4
+ data.tar.gz: d8fad6317e3cfc97832b9cd9cc101090f609794717c864a5e4e64c8cab5f4050
5
5
  SHA512:
6
- metadata.gz: 72c0d495c612778445708da5e8ddabfe3319e19ae3dd97ddb189ee4f70170bc6ffa393e29e607910adabdda2e86b61afd5533c411f5dfe281aedbabaad606816
7
- data.tar.gz: 71fc6a8e51f2bbb6cbab931ff0e4b2418cb2f099dc64eef9ccc0e3084a6b6d31594295b1b885943b438e8b1c7b494ac828a2dad9ff30ebd0816f22ce9cf6bc05
6
+ metadata.gz: acb25e429224aa3a24b461f0fe68ec891fe16081a37b669826546704dc9640aeaae9b9e41de9e87c3034d4e47e7f1acf8743b6b0b4bf3d2c99869a57d9e686d2
7
+ data.tar.gz: a64ed0502eb5d5f6ce0fa827750dfa8a553e5410ff9bacb3f1af934c551cedd1e9f354556ebfd2efad18a0ca4ccaf22d35f89a01ed575b1f2316d7beb493f6cc
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.0.0 - 2017-12-28
8
+
9
+ * bugfixes
10
+
7
11
  ### 1.0.0.beta6 - 2017-12-28
8
12
 
9
13
  * bugfixes
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.beta11
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.beta11
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.beta11
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.beta11
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.beta11
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: 1.3.1
128
+ version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 2.7.3