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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8900d611b83849016eec646fc4b12321159a69dd
4
- data.tar.gz: 4ded8b0321bea3d11c4abd2fa9fa754825520c85
3
+ metadata.gz: 59035468b96dcaef56f1346de9618513b8f6fd60
4
+ data.tar.gz: b69d41d85e022bb88ca81b443345a7c116badedc
5
5
  SHA512:
6
- metadata.gz: bde45c5d68af3d4f4fd9746b7c9c756615fb875b93bdd800a9deab1845a31a56b302b29e1ef01f8b401620bec4164b0f35d0353c5612f718de4c04f74cb76605
7
- data.tar.gz: 0f39f6461e2a12debfa41e7d9408137247a66399009c9c2dab438557aa02d976ca909de23cecfd3c50ba97dfbe336b78ef01094eb4258a39e0a619af639aef55
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)
@@ -1,5 +1,5 @@
1
1
  module Voltron
2
2
  module Notify
3
- VERSION = "0.1.3".freeze
3
+ VERSION = "0.1.4".freeze
4
4
  end
5
5
  end
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.3
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: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails