bpoweski-apnserver 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +5 -0
- data/VERSION +1 -1
- data/apnserver.gemspec +1 -1
- data/lib/apnserver/notification.rb +2 -0
- metadata +1 -1
data/README.textile
CHANGED
@@ -14,6 +14,11 @@ h2. Remaining Tasks
|
|
14
14
|
|
15
15
|
* Implement feedback service mechanism
|
16
16
|
* Implement robust notification sending in reactor periodic scheduler
|
17
|
+
|
18
|
+
h2. Issues Fixed
|
19
|
+
|
20
|
+
* apnsend --badge option correctly sends integer number rather than string of number for aps json payload
|
21
|
+
* connections are propery closed in Notification#push method now
|
17
22
|
|
18
23
|
h2. APN Server Daemon
|
19
24
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/apnserver.gemspec
CHANGED
@@ -34,10 +34,12 @@ module ApnServer
|
|
34
34
|
if Config.pem.nil?
|
35
35
|
socket = TCPSocket.new(Config.host || 'localhost', Config.port.to_i || 22195)
|
36
36
|
socket.write(to_bytes)
|
37
|
+
socket.close
|
37
38
|
else
|
38
39
|
client = ApnServer::Client.new(Config.pem, Config.host || 'gateway.push.apple.com', Config.port.to_i || 2195)
|
39
40
|
client.connect!
|
40
41
|
client.write(self)
|
42
|
+
client.disconnect!
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|