kw_apn 0.4.beta.8 → 0.4
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.
- data/README.rdoc +33 -0
- data/VERSION +1 -1
- metadata +8 -12
data/README.rdoc
CHANGED
|
@@ -21,6 +21,15 @@ structure of the config file should look like this:
|
|
|
21
21
|
feedback_port: 2196
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
====================================
|
|
25
|
+
Creating cert file
|
|
26
|
+
====================================
|
|
27
|
+
|
|
28
|
+
Export the key and the certificate as P12 files and run:
|
|
29
|
+
|
|
30
|
+
openssl pkcs12 -in apn-cert.p12 -out apn-cert.pem -nodes -clcerts
|
|
31
|
+
openssl pkcs12 -in apn-key.p12 -out apn-key.pem -nodes -clcerts
|
|
32
|
+
|
|
24
33
|
====================================
|
|
25
34
|
Example
|
|
26
35
|
====================================
|
|
@@ -42,6 +51,30 @@ Example
|
|
|
42
51
|
end
|
|
43
52
|
|
|
44
53
|
|
|
54
|
+
====================================
|
|
55
|
+
Configuring for multiple App IDs
|
|
56
|
+
====================================
|
|
57
|
+
|
|
58
|
+
Since version 0.4 it is possible to use kw_apn with multiple App IDs.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
Configuration Example:
|
|
62
|
+
|
|
63
|
+
production:
|
|
64
|
+
'com.mycompany.app1':
|
|
65
|
+
cert_file: config/apn_certs/app1.pem
|
|
66
|
+
cert_key: config/apn_certs/app1.pem
|
|
67
|
+
'com.mycompany.app2':
|
|
68
|
+
cert_file: config/apn_certs/app2.pem
|
|
69
|
+
cert_key: config/apn_certs/app2.pem
|
|
70
|
+
|
|
71
|
+
Usage Example
|
|
72
|
+
|
|
73
|
+
... same as above...
|
|
74
|
+
|
|
75
|
+
status, ret = KwAPN::Sender.push(n, 'TestSession', 'com.mycompany.app1')
|
|
76
|
+
|
|
77
|
+
|
|
45
78
|
====================================
|
|
46
79
|
Copyright
|
|
47
80
|
====================================
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4
|
|
1
|
+
0.4
|
metadata
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kw_apn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 3
|
|
5
|
+
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
|
|
10
|
-
- 8
|
|
11
|
-
version: 0.4.beta.8
|
|
9
|
+
version: "0.4"
|
|
12
10
|
platform: ruby
|
|
13
11
|
authors:
|
|
14
12
|
- Jonathan Cichon
|
|
@@ -17,7 +15,7 @@ autorequire:
|
|
|
17
15
|
bindir: bin
|
|
18
16
|
cert_chain: []
|
|
19
17
|
|
|
20
|
-
date: 2010-
|
|
18
|
+
date: 2010-09-07 00:00:00 +02:00
|
|
21
19
|
default_executable:
|
|
22
20
|
dependencies: []
|
|
23
21
|
|
|
@@ -66,14 +64,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
65
|
none: false
|
|
68
66
|
requirements:
|
|
69
|
-
- - "
|
|
67
|
+
- - ">="
|
|
70
68
|
- !ruby/object:Gem::Version
|
|
71
|
-
hash:
|
|
69
|
+
hash: 3
|
|
72
70
|
segments:
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
- 1
|
|
76
|
-
version: 1.3.1
|
|
71
|
+
- 0
|
|
72
|
+
version: "0"
|
|
77
73
|
requirements: []
|
|
78
74
|
|
|
79
75
|
rubyforge_project:
|