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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd58196fd6796f7c7cdd49cdc504fd7b6df8adc7
4
- data.tar.gz: 11a8004e4c3aee8054ad14b78510fb2ee03e21bc
3
+ metadata.gz: edb0c047b4d2463c43cd01dedaa844494b1fefd8
4
+ data.tar.gz: 871bdc9b896dc714c6099481b7e7345db76292f7
5
5
  SHA512:
6
- metadata.gz: b721862a60ddf7c986f263ca14d6760fa901f4f9ab1095e00ab3e55bfd26f85c32c7e5d80d2f947ba2e9b97ba3b5cc4a081e57f668275d6e8534191db449a18a
7
- data.tar.gz: 9c996befb2d1e364d45062c9879e087e54103b1b2fbbe08f96f1691268d01a2596ccca1b23e520b19fb1f6d7f8a8e9a75ea2b220d3966e237870529f85503632
6
+ metadata.gz: 05cc00109fdd1b7c6d108c9cc0e21f1334eb02feb2ea04db5a6f50490ab5e4d8a0f2503e97fbb3576003e0e02af8a309b20799763fe6c5e109f8935190a022fe
7
+ data.tar.gz: 93b66aeea473eb5c0b256c4a9a648e28427fc6f09c2386ba3483bc1ee5264e978c0e8d2b985c9c0c3df93eeb03e354f43fe490f569e87d925eb6e5d069c146c6
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
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.3.1
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-20 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client