lorkhan 3.1.0 → 3.2.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/lorkhan/notification.rb +3 -1
- data/lib/lorkhan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2320ebc2128f7dfa3eac18acb934c615e0910594bf3b527dd901ef39862e052
|
|
4
|
+
data.tar.gz: 41184343bac05ba454db151772cb6b97e5cb6f07b9e0d58275def41367740f46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9735617fb0099a61ec6f9a429ed6bc6743c50f4ad2edf64dabcd9fed30ccb0c26d497831ca6894c2a7d4bb8eb92dbe99761ffaa2bd8d00ba99e669f14b284a9
|
|
7
|
+
data.tar.gz: deb56863983aa8caa2c687c8d74db8f5226b18fab66a3fffa0da8cbe700a24afddefe0d3caaa54bf159f9d5d038a1e66aab0ab95a6de1aa4e33292d846806e72
|
data/lib/lorkhan/notification.rb
CHANGED
|
@@ -20,6 +20,7 @@ module Lorkhan
|
|
|
20
20
|
# Optional attributes
|
|
21
21
|
#
|
|
22
22
|
# - alert: The message displayed to the user.
|
|
23
|
+
# - title: Title of the notification displayed to the user.
|
|
23
24
|
# - badge: The badge number displayed on the app icon.
|
|
24
25
|
# - category: The category for the notification. Used to provide direct notification actions.
|
|
25
26
|
# - collapse_id: Used to group multiple notifications on the screen.
|
|
@@ -50,7 +51,7 @@ module Lorkhan
|
|
|
50
51
|
DEFAULT_SOUND_NAME = 'default'.freeze
|
|
51
52
|
|
|
52
53
|
attr_reader :token, :apns_id, :priority, :alert, :content_available, :topic
|
|
53
|
-
attr_accessor :custom_payload, :badge, :sound, :category, :url_args, :mutable_content
|
|
54
|
+
attr_accessor :custom_payload, :badge, :sound, :category, :url_args, :mutable_content, :title
|
|
54
55
|
attr_accessor :expiration, :collapse_id
|
|
55
56
|
|
|
56
57
|
##
|
|
@@ -92,6 +93,7 @@ module Lorkhan
|
|
|
92
93
|
{}.tap do |root|
|
|
93
94
|
root[:aps] = {}.tap do |aps|
|
|
94
95
|
aps[:alert] = alert if alert
|
|
96
|
+
aps[:title] = title if title
|
|
95
97
|
aps[:badge] = badge if badge
|
|
96
98
|
aps[:sound] = sound if sound
|
|
97
99
|
aps[:category] = category if category
|
data/lib/lorkhan/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lorkhan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maddie Schipper
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|