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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4de527c701af4d667d9f2faefe38feb819745e59
4
- data.tar.gz: b6a80534b22197f71f66211884c6b33a90c23e35
3
+ metadata.gz: 6ccb885f46ade09933f1d11b586e9dde8a787a98
4
+ data.tar.gz: ee229449b16cef9938a8fbe519ed4d6dbb5a0f16
5
5
  SHA512:
6
- metadata.gz: 7340a047c92fd8aa5d0e7ccd006789ba989f6b9c740591e5ac19246a0ea5818fe1a7210ba2cf77f89272e4eb70b383bdb5668611a1cc295018efd739164a9c8b
7
- data.tar.gz: 321d03a0ede631f0a4a114c5456c9ee9c2a71ae08aebf4c050fe6f529b3b2b6a33e0f54a181c29a66e0c05d1e8c0ec1101b3ed0c68c171ba653715b8cbd0a570
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 ||= TCPSocket.new host, port
15
- @ssl ||= OpenSSL::SSL::SSLSocket.new @socket, ssl_context_for_pem(pem)
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?) || (@socket.nil? || @socket.closed?)
25
+ (@ssl.nil? || @ssl.closed?) && (@socket.nil? || @socket.closed?)
26
26
  end
27
27
 
28
28
  def write(data)
@@ -1,3 +1,3 @@
1
1
  module Mercurius
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercurius
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Beck