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 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.2
1
+ 0.1.3
data/apnserver.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{apnserver}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Poweski"]
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpoweski-apnserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Poweski