notifiable-sender 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/notifiable/sender.rb +3 -2
- data/lib/notifiable/sender/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: dbdf093fac13072d95a1ffb4747f1f7c9f969892
|
|
4
|
+
data.tar.gz: d0bf436f49feaeefdf91da989b9ea1e4f3337637
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d847129b5cfbc2bc15fc278971951a42c17ddbcf667127b8f9ebb4e5dc0e6f87a63b105e77fd3e25732f4c552f9d4e91fa80ef9a2ef17b7da1013a6b9415bdae
|
|
7
|
+
data.tar.gz: 22c3cb54d67627a37b1acf7c6b9910d9528ed7efb84dc612fe66a501a493c69a22b0b579d7922d4282eb83e30b71b400e05f8c1bebc5201f68567cd061290e91
|
data/lib/notifiable/sender.rb
CHANGED
|
@@ -13,9 +13,10 @@ module Notifiable
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def send_notification_to_users(user_aliases, title: nil, message: nil, parameters: nil, content_available: nil)
|
|
16
|
-
raise 'user_aliases should be
|
|
16
|
+
raise 'user_aliases should be an array' unless user_aliases.is_a? Array
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
filters = [{property: "user_alias", predicate: "in", value: user_aliases}]
|
|
19
|
+
send_notification(title: title, message: message, parameters: parameters, content_available: content_available, filters: filters)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
def send_notification_to_user(user_alias, title: nil, message: nil, parameters: nil, content_available: nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: notifiable-sender
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brooke-Smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|