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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f37b786ef147c1553a73571851e796091f9ed2c8
4
- data.tar.gz: 80eea7c2ccbe00fb57b8327ef911d6f0c0eeab11
3
+ metadata.gz: c18668add69f52308e07541356eddc8d80d5993a
4
+ data.tar.gz: e8eac41fd48b7eb3a30d59d8fdabe35926c8b5d9
5
5
  SHA512:
6
- metadata.gz: 687b7ab85bbfbbcd125fc6bcfc435cdcf11df33e74635d631d698d5b94682f2dc0e9481bd6887c480b4e587a395a33b3c2b91a21f93606457b822d303fb9282f
7
- data.tar.gz: 8e8a154fb3cd33ab1113cfcb30477447d2d1c7fb689ff67a2a13078a6b7211e292099c3824cefc3c3a3ea3dcfe26f00fc4c5920d442a8aad6d0b06248a02a13e
6
+ metadata.gz: 7b9af64072437d4f35922b8ebdce9dd9dd21ba1f72f1e4f74dc5cb5674f0ec9fb63acc7c84f59f59a0845470465dcc8de92bd01357af3c79b00099aa1c6ea29e
7
+ data.tar.gz: 9803cafad31803a8983d6a88875c4d452d3cb8cb97345fb8ee5afd912b217cb203062db9d8f79ec3375452f10122c86572f98d4975c0f5518e015f6fab2e2943
@@ -2,10 +2,9 @@ language: ruby
2
2
  rvm:
3
3
  - 2.1
4
4
  - 2.2
5
- - 2.3.0
6
- - 2.3.1
7
- - 2.3.2
8
- - 2.3.3
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
9
8
 
10
9
  branches:
11
10
  only:
data/README.md CHANGED
@@ -143,7 +143,7 @@ connection = Apnotic::Connection.new(
143
143
  )
144
144
  ```
145
145
 
146
- ### With Sidekiq / Rescue / ...
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` | "
@@ -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.16", "< 2"
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"
@@ -43,8 +43,8 @@ module Apnotic
43
43
 
44
44
  def push_async(push)
45
45
  if @first_push
46
- @first_push = false
47
46
  @client.call_async(push.http2_request)
47
+ @first_push = false
48
48
  else
49
49
  delayed_push_async(push)
50
50
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Apnotic
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.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.3.0
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: 2017-10-18 00:00:00.000000000 Z
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.16'
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.16'
29
+ version: '0.17'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'