apnotic 0.10.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apnotic.gemspec +1 -1
- data/lib/apnotic/request.rb +2 -2
- data/lib/apnotic/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20a8727763ec52680b30ae403937985782a3236b
|
4
|
+
data.tar.gz: 00a14e20fdf015c1910813437dfc645a54ee00d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a24710ad55e02622be61b3e4d83f21f434c49b2b26bcfb801d4e901c2b5e242a3aa1dd15d7cea2dfda72c91cabe9aa36e8ddb58f42f4b1c1c9023ce0077e34
|
7
|
+
data.tar.gz: 8d35924ba86ca7dedba2717eef099fd486c7e0ced1ea4b2d8f316c82535b1a5facb43632be6fdb6638f86192a6bbdad292555756f28c4535f9661f7eb79c0d8c
|
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", "
|
21
|
+
spec.add_dependency "net-http2", ">= 0.13.3", "< 2"
|
22
22
|
spec.add_dependency "connection_pool", "~> 2.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/lib/apnotic/request.rb
CHANGED
@@ -14,8 +14,8 @@ module Apnotic
|
|
14
14
|
def build_headers_for(notification)
|
15
15
|
h = {}
|
16
16
|
h.merge!('apns-id' => notification.apns_id) if notification.apns_id
|
17
|
-
h.merge!('apns-expiration' => notification.expiration) if notification.expiration
|
18
|
-
h.merge!('apns-priority' => notification.priority) if notification.priority
|
17
|
+
h.merge!('apns-expiration' => notification.expiration.to_s) if notification.expiration
|
18
|
+
h.merge!('apns-priority' => notification.priority.to_s) if notification.priority
|
19
19
|
h.merge!('apns-topic' => notification.topic) if notification.topic
|
20
20
|
h.merge!('apns-collapse-id' => notification.apns_collapse_id) if notification.apns_collapse_id
|
21
21
|
h
|
data/lib/apnotic/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apnotic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
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-
|
11
|
+
date: 2016-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http2
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.13.3
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: '2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.13.3
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: '2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: connection_pool
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|