apns_polite 0.9.0 → 0.9.1

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.
@@ -51,9 +51,13 @@ module ApnsPolite
51
51
  def close
52
52
  @ssl.close if @ssl
53
53
  @sock.close if @sock
54
+
55
+ @ssl = nil
56
+ @sock = nil
54
57
  end
55
58
  # 通知
56
59
  def push(message)
60
+ raise "No connected." unless @ssl
57
61
  @ssl.write message.pack
58
62
  end
59
63
 
@@ -1,3 +1,3 @@
1
1
  module ApnsPolite
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apns_polite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2012-11-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: apns
15
15
  email: