notifiable-sender 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/sender.rb +2 -1
- 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: edb0c047b4d2463c43cd01dedaa844494b1fefd8
|
4
|
+
data.tar.gz: 871bdc9b896dc714c6099481b7e7345db76292f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cc00109fdd1b7c6d108c9cc0e21f1334eb02feb2ea04db5a6f50490ab5e4d8a0f2503e97fbb3576003e0e02af8a309b20799763fe6c5e109f8935190a022fe
|
7
|
+
data.tar.gz: 93b66aeea473eb5c0b256c4a9a648e28427fc6f09c2386ba3483bc1ee5264e978c0e8d2b985c9c0c3df93eeb03e354f43fe490f569e87d925eb6e5d069c146c6
|
data/lib/notifiable/sender.rb
CHANGED
@@ -17,8 +17,9 @@ module Notifiable
|
|
17
17
|
send_notification(message: message, parameters: parameters, content_available: content_available, filters: filters)
|
18
18
|
end
|
19
19
|
|
20
|
-
def send_notification(message: nil, parameters: nil, filters: nil, content_available: nil)
|
20
|
+
def send_notification(title: nil, message: nil, parameters: nil, filters: nil, content_available: nil)
|
21
21
|
body = {}
|
22
|
+
body[:title] = title unless title.nil?
|
22
23
|
body[:message] = message unless message.nil?
|
23
24
|
body[:parameters] = parameters.to_json unless parameters.nil?
|
24
25
|
body[:filters] = filters.to_json unless filters.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.3.
|
4
|
+
version: 0.3.2
|
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-03-
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|