notifiable-sender 0.4.0 → 0.5.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
  SHA1:
3
- metadata.gz: c1ae206ec86fe659ee390eaa8ae8ee97248d0d66
4
- data.tar.gz: 0903c9126a89e843019ea8db0784e40ffeabdc16
3
+ metadata.gz: dbdf093fac13072d95a1ffb4747f1f7c9f969892
4
+ data.tar.gz: d0bf436f49feaeefdf91da989b9ea1e4f3337637
5
5
  SHA512:
6
- metadata.gz: 2abfd9b8619fc2b421edceb477680c8cab9a439cdcd76a73f6071c838bcf9aeaad53a494db1c18bfd6a149f0a4bd9b4c229e5db893197832dbb976740248e1f9
7
- data.tar.gz: d9b825d22c6b6b0a702ef709c0c83c4806c06849ddb8d4158847d07e13c405adf501af6486df5f0780373d96dcd100dd1e820a2b4c2c6168313cfe586f6b30a9
6
+ metadata.gz: d847129b5cfbc2bc15fc278971951a42c17ddbcf667127b8f9ebb4e5dc0e6f87a63b105e77fd3e25732f4c552f9d4e91fa80ef9a2ef17b7da1013a6b9415bdae
7
+ data.tar.gz: 22c3cb54d67627a37b1acf7c6b9910d9528ed7efb84dc612fe66a501a493c69a22b0b579d7922d4282eb83e30b71b400e05f8c1bebc5201f68567cd061290e91
@@ -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 Enumerable' unless user_aliases.is_a? Enumerable
16
+ raise 'user_aliases should be an array' unless user_aliases.is_a? Array
17
17
 
18
- user_aliases.each {|user_alias| send_notification_to_user(user_alias, title, message, parameters, content_avaiable)}
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)
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
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.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-05-09 00:00:00.000000000 Z
11
+ date: 2018-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client