apnotic 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/README.md +2 -1
- data/apnotic.gemspec +1 -1
- data/lib/apnotic/connection.rb +1 -1
- data/lib/apnotic/notification.rb +2 -1
- data/lib/apnotic/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18668add69f52308e07541356eddc8d80d5993a
|
4
|
+
data.tar.gz: e8eac41fd48b7eb3a30d59d8fdabe35926c8b5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b9af64072437d4f35922b8ebdce9dd9dd21ba1f72f1e4f74dc5cb5674f0ec9fb63acc7c84f59f59a0845470465dcc8de92bd01357af3c79b00099aa1c6ea29e
|
7
|
+
data.tar.gz: 9803cafad31803a8983d6a88875c4d452d3cb8cb97345fb8ee5afd912b217cb203062db9d8f79ec3375452f10122c86572f98d4975c0f5518e015f6fab2e2943
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -143,7 +143,7 @@ connection = Apnotic::Connection.new(
|
|
143
143
|
)
|
144
144
|
```
|
145
145
|
|
146
|
-
### With Sidekiq /
|
146
|
+
### With Sidekiq / Resque / ...
|
147
147
|
> In case that errors are encountered, Apnotic will raise the error and repair the underlying connection, but it will not retry the requests that have failed. This is by design, so that the job manager (Sidekiq, Resque,...) can retry the job that failed. For this reason, it is recommended to use a queue engine that will retry unsuccessful pushes.
|
148
148
|
|
149
149
|
A practical usage of a Sidekiq / Rescue worker probably has to:
|
@@ -301,6 +301,7 @@ These are all Accessor attributes.
|
|
301
301
|
| `content_available` | "
|
302
302
|
| `category` | "
|
303
303
|
| `custom_payload` | "
|
304
|
+
| `thread_id` | "
|
304
305
|
| `apns_id` | Refer to [Communicating with APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for details.
|
305
306
|
| `expiration` | "
|
306
307
|
| `priority` | "
|
data/apnotic.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "net-http2", ">= 0.
|
21
|
+
spec.add_dependency "net-http2", ">= 0.17", "< 2"
|
22
22
|
spec.add_dependency "connection_pool", "~> 2.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/lib/apnotic/connection.rb
CHANGED
data/lib/apnotic/notification.rb
CHANGED
@@ -3,7 +3,7 @@ require 'apnotic/abstract_notification'
|
|
3
3
|
module Apnotic
|
4
4
|
|
5
5
|
class Notification < AbstractNotification
|
6
|
-
attr_accessor :alert, :badge, :sound, :content_available, :category, :custom_payload, :url_args, :mutable_content
|
6
|
+
attr_accessor :alert, :badge, :sound, :content_available, :category, :custom_payload, :url_args, :mutable_content, :thread_id
|
7
7
|
|
8
8
|
private
|
9
9
|
|
@@ -16,6 +16,7 @@ module Apnotic
|
|
16
16
|
result.merge!('content-available' => content_available) if content_available
|
17
17
|
result.merge!('url-args' => url_args) if url_args
|
18
18
|
result.merge!('mutable-content' => mutable_content) if mutable_content
|
19
|
+
result.merge!('thread-id' => thread_id) if thread_id
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
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: 1.3.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http2
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.17'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.17'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|