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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9493fd00daf33a8bd13d087bcd119929b236372e
4
- data.tar.gz: 68215cff5cfc93dd0aafdccf2188da4f6fe9b085
3
+ metadata.gz: eb83d782411efc7e4ed1b545bb39288f4a82b91e
4
+ data.tar.gz: 3c2fbb9ae5e22c7264b1e305e11e57544454a788
5
5
  SHA512:
6
- metadata.gz: 5bad7e789438d5e5710a433501dff4e41fa50633f22fe0eb9814653919b41a8ea34a84747854c17a0ccdb850e84f720cf9d31f293a79e6a5b5c82ba2b80d7b77
7
- data.tar.gz: 54014458ff59af3703d94b00ffe61a3074c05ba962b60c8183f084a89a113d5051f50235c0d43b0e8c8c4a8db850ab504382b7dab8432940b8a8a4ea1762b0dd
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
 
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Apnotic
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
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.0
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-06-28 00:00:00.000000000 Z
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http2