mercurius 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mercurius/apns/connection.rb +3 -3
- data/lib/mercurius/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ccb885f46ade09933f1d11b586e9dde8a787a98
|
4
|
+
data.tar.gz: ee229449b16cef9938a8fbe519ed4d6dbb5a0f16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69b2ec2ff3797d0c122d0a4daff22d07044ebf61fbc63f13d4fd182cf1842a4e03d76b4b85bc6ac6b2e6c3cdd96bb6a6660f74672e9e205935050bcc6497512a
|
7
|
+
data.tar.gz: d6e7d78b30512d57605fbd1dd9711c020555adcee0ddb070b09898d5affb4b912d9ca6c3501bd603a5754f07e9407cd78a199860da330504c24f3d2a3de2c88b
|
@@ -11,8 +11,8 @@ module APNS
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def open
|
14
|
-
@socket
|
15
|
-
@ssl
|
14
|
+
@socket = TCPSocket.new host, port
|
15
|
+
@ssl = OpenSSL::SSL::SSLSocket.new @socket, ssl_context_for_pem(pem)
|
16
16
|
@ssl.connect
|
17
17
|
end
|
18
18
|
|
@@ -22,7 +22,7 @@ module APNS
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def closed?
|
25
|
-
(@ssl.nil? || @ssl.closed?)
|
25
|
+
(@ssl.nil? || @ssl.closed?) && (@socket.nil? || @socket.closed?)
|
26
26
|
end
|
27
27
|
|
28
28
|
def write(data)
|
data/lib/mercurius/version.rb
CHANGED