pushr-apns2 0.0.1 → 1.0.0

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
- SHA1:
3
- metadata.gz: 01d1a82c7722c4af7a5448abe08083eb88e8f0fc
4
- data.tar.gz: fbac8b94bd06ec2781ee99aa8e40fc96d4a2145e
2
+ SHA256:
3
+ metadata.gz: 59440f2452607e5dc4335ef5ba3ed0f22aeb75c87f3019a254f2a7aaeeaec1c6
4
+ data.tar.gz: e075c3a0fa379e015968a31d26690a16f557787c7675db6ecfe23b2e6c6b6f45
5
5
  SHA512:
6
- metadata.gz: 92ff3fa4285dfaafa7db145f215979230ed60366eb1b2e36b7544310a0b7b5ce5891fa9592d3a5f08f26305c8eea31ae1cc4e62e03bf2ac2efc299e9f960573f
7
- data.tar.gz: d763b198587277add9102970c81d1da984c021373a803af0ad11013d22cee6f213308d6fb94d2d9124c0b0dbce9d2c3c6ca921622ba0357ad0b62c074521371f
6
+ metadata.gz: 93b370224a1537376b3bf70c424164feca9ef8b48a29a3be915b83c4b0ec8f1d03d31d2a39150a51f9629561bedca7c990a8bcba4828b76f184ff432ccf1c78a
7
+ data.tar.gz: f54d459f9ff0315f614e31c25a45a17ba66c2601061c4f79fcc7b51a7ab4cd506b6c6525026bfb9e2123de662d73f1b2ff9cdf6e4eea85b87ff8b6f5822c3f02
@@ -1,3 +1,3 @@
1
1
  module PushrApns2
2
- VERSION = '0.0.1'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -15,6 +15,7 @@ module Pushr
15
15
 
16
16
  def connect
17
17
  @client = NetHttp2::Client.new(url, connect_timeout: TIMEOUT)
18
+ @client.on(:error) { |exception| puts Pushr::Daemon.logger.error(exception) }
18
19
  end
19
20
 
20
21
  def url
@@ -16,10 +16,10 @@ module Pushr
16
16
  h = {}
17
17
  h['authorization'] = "bearer #{token}"
18
18
  h['apns-id'] = notification.apns_id if notification.apns_id
19
+ h['apns-collapse-id'] = notification.apns_collapse_id if notification.apns_collapse_id
19
20
  h['apns-expiration'] = notification.apns_expiration if notification.apns_expiration
20
21
  h['apns-priority'] = notification.apns_priority if notification.apns_priority
21
22
  h['apns-topic'] = notification.apns_topic if notification.apns_topic
22
- h['apns-collapse-id'] = notification.apns_collapse_id if notification.apns_collapse_id
23
23
  h
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushr-apns2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Pesman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-12 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  requirements: []
240
240
  rubyforge_project:
241
- rubygems_version: 2.6.11
241
+ rubygems_version: 2.7.6
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: APNS (iOS/Apple) part of the modular push daemon.