apnotic 0.10.0 → 0.10.1
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/README.md +1 -0
- data/lib/apnotic/notification.rb +1 -1
- data/lib/apnotic/request.rb +1 -0
- data/lib/apnotic/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: eb83d782411efc7e4ed1b545bb39288f4a82b91e
|
|
4
|
+
data.tar.gz: 3c2fbb9ae5e22c7264b1e305e11e57544454a788
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67aad37204fd04412c7d8bcbc4e75921b65482aa37ba98ae71ef151287702fee496772f249b956e35f9ef45d32caf34f7cce3b3d2b5875413f6ec89ce86fe251
|
|
7
|
+
data.tar.gz: 8df3724348108efdb95aad66de59214b5a18e552746dcabdbe242348c4d8cd7dd941d2c2d708f8fb975a7d997cf94b7d73ed753bb42013b4ddbacc9263303616
|
data/README.md
CHANGED
|
@@ -230,6 +230,7 @@ These are all Accessor attributes.
|
|
|
230
230
|
| `topic` | "
|
|
231
231
|
| `url_args` | Values for [Safari push notifications](https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW12).
|
|
232
232
|
| `mutable_content` | Key for [UNNotificationServiceExtension](https://developer.apple.com/reference/usernotifications/unnotificationserviceextension).
|
|
233
|
+
| `apns_collapse_id` | Key for setting the identification of a notification and allowing for the updating of the content of that notification in a subsequent push. More information avaible in [WWDC 2016 - Session 707 Introduction to Notifications](https://developer.apple.com/videos/play/wwdc2016/707/?time=1134). iOS 10+
|
|
233
234
|
|
|
234
235
|
For example:
|
|
235
236
|
|
data/lib/apnotic/notification.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Apnotic
|
|
|
6
6
|
class Notification
|
|
7
7
|
attr_reader :token
|
|
8
8
|
attr_accessor :alert, :badge, :sound, :content_available, :category, :custom_payload, :url_args, :mutable_content
|
|
9
|
-
attr_accessor :apns_id, :expiration, :priority, :topic
|
|
9
|
+
attr_accessor :apns_id, :expiration, :priority, :topic, :apns_collapse_id
|
|
10
10
|
|
|
11
11
|
def initialize(token)
|
|
12
12
|
@token = token
|
data/lib/apnotic/request.rb
CHANGED
|
@@ -17,6 +17,7 @@ module Apnotic
|
|
|
17
17
|
h.merge!('apns-expiration' => notification.expiration) if notification.expiration
|
|
18
18
|
h.merge!('apns-priority' => notification.priority) if notification.priority
|
|
19
19
|
h.merge!('apns-topic' => notification.topic) if notification.topic
|
|
20
|
+
h.merge!('apns-collapse-id' => notification.apns_collapse_id) if notification.apns_collapse_id
|
|
20
21
|
h
|
|
21
22
|
end
|
|
22
23
|
end
|
data/lib/apnotic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apnotic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roberto Ostinelli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http2
|