voltron-notify 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/voltron/notification.rb +2 -2
- data/lib/voltron/notify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59035468b96dcaef56f1346de9618513b8f6fd60
|
4
|
+
data.tar.gz: b69d41d85e022bb88ca81b443345a7c116badedc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b123499efa6cf3ee80dd1f2047b0c0a28694a24e0769aefa39c587bf23192294c5f644ae83d2a35c6b5f23ac0b5d914032dccd641bcb620f17cf51336dd288
|
7
|
+
data.tar.gz: 0c42eb0e9ccee7c0d84f9acf5330d594c3b298ddbfc95c700d8ce0d3670a0d8b53b32071004c48ebd116f5753d4ece653e6a1398a3ceda80c60d6dd4ae9d69c6
|
@@ -15,7 +15,7 @@ module Voltron
|
|
15
15
|
|
16
16
|
def email(subject, **args, &block)
|
17
17
|
# Get the remaining args as params, that will eventually become assigns in the mailer template
|
18
|
-
params = { subject: subject }.merge(**args)
|
18
|
+
params = { subject: subject, notifyable.class.name.downcase => notifyable }.merge(**args)
|
19
19
|
|
20
20
|
# Build the options hash from the provided arguments
|
21
21
|
options = { subject: subject }.merge(**args.select { |k,v| PERMITTED_ATTRIBUTES.include?(k.to_sym) })
|
@@ -32,7 +32,7 @@ module Voltron
|
|
32
32
|
|
33
33
|
def sms(message, **args, &block)
|
34
34
|
# Build the options hash from the provided arguments
|
35
|
-
options = { message: message, from: Voltron.config.notify.sms_from }.merge(**args)
|
35
|
+
options = { message: message, from: Voltron.config.notify.sms_from, notifyable.class.name.downcase => notifyable }.merge(**args)
|
36
36
|
|
37
37
|
# Build a new SMS notification object
|
38
38
|
notification_sms = sms_notifications.build(options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voltron-notify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hainer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|