apnotic 1.7.1 → 1.7.2

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
  SHA256:
3
- metadata.gz: b8b5ad73f27fa8e662219ed4cbfb6f005421b5eea231db56a7c70df4f36133e2
4
- data.tar.gz: 3fbea27f1a1e4286588cf64ec168dc3391df328eb01081a4b18e50cf893986d0
3
+ metadata.gz: 7afbcc0c9a9fa876ff60430ae040d24b91d8d5e55808dd274f81bab1e2d1e918
4
+ data.tar.gz: 85e7c9d84e759f6c020306103036e3afa8fe94d0acf4e1321c132bef00066ae9
5
5
  SHA512:
6
- metadata.gz: aaf851556ae88f4d70fc8142c49553379ba769d8566d172fb9b3ec2fc083ab25ade7d1835d8e821ca46f747dbe4b53514f9f0941621442d962c1c82eab2fbdf8
7
- data.tar.gz: fa75cf207e666aa958007f08ef4f655166458acdfd3eb734bc1866b80a3ba0332dd8bb5367a924550ad885139f3e7cb9a160c11c696e2b2f463cfee27e6e43e5
6
+ metadata.gz: 569b7b8d3dba2e149ad4f6dd6056123d288a5cdd93acb0739ba39b18345f6b0d1e68335c33f6f8e43a772a67dccefaf084bf2e854b23ebf20582950301294733
7
+ data.tar.gz: be11e416771518cd8d56ff25ec3bb3679a27f1f1fbdbec7105d3d9e90ca600bbe50118b6d097d5b5145dcbbae95c3bbe74c5d39d276af5952e7c59cb4f8dcfc6
data/README.md CHANGED
@@ -325,6 +325,7 @@ These are all Accessor attributes.
325
325
  | `content_state` | Refer to [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363) for details. iOS 16+
326
326
  | `timestamp` | Refer to [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363) for details. iOS 16+
327
327
  | `event` | Refer to [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363) for details. iOS 16+
328
+ | `dismissal_date` | Refer to [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363) for details. iOS 16+
328
329
  | `apns_id` | Refer to [Communicating with APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for details.
329
330
  | `expiration` | "
330
331
  | `priority` | "
@@ -5,7 +5,7 @@ module Apnotic
5
5
  class Notification < AbstractNotification
6
6
  attr_accessor :alert, :badge, :sound, :content_available, :category, :custom_payload, :url_args, :mutable_content, :thread_id
7
7
  attr_accessor :target_content_id, :interruption_level, :relevance_score
8
- attr_accessor :stale_date, :content_state, :timestamp, :event
8
+ attr_accessor :stale_date, :content_state, :timestamp, :event, :dismissal_date
9
9
 
10
10
  def background_notification?
11
11
  aps.count == 1 && aps.key?('content-available') && aps['content-available'] == 1
@@ -30,6 +30,7 @@ module Apnotic
30
30
  result.merge!('content-state' => content_state) if content_state
31
31
  result.merge!('timestamp' => timestamp) if timestamp
32
32
  result.merge!('event' => event) if event
33
+ result.merge!('dismissal-date' => dismissal_date) if dismissal_date
33
34
  end
34
35
  end
35
36
 
@@ -1,3 +1,3 @@
1
1
  module Apnotic
2
- VERSION = '1.7.1'.freeze
2
+ VERSION = '1.7.2'.freeze
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: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Ostinelli
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-06 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http2
@@ -86,7 +86,7 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '3.0'
89
- description:
89
+ description:
90
90
  email:
91
91
  - roberto@ostinelli.net
92
92
  executables: []
@@ -120,7 +120,7 @@ homepage: http://github.com/ostinelli/apnotic
120
120
  licenses:
121
121
  - MIT
122
122
  metadata: {}
123
- post_install_message:
123
+ post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
126
126
  - lib
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.4.6
139
- signing_key:
138
+ rubygems_version: 3.0.3.1
139
+ signing_key:
140
140
  specification_version: 4
141
141
  summary: Apnotic is an Apple Push Notification gem able to provide instant feedback.
142
142
  test_files: []