kw_apn 0.4.beta.7 → 0.4.beta.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.beta.7
1
+ 0.4.beta.8
data/lib/connection.rb CHANGED
@@ -9,7 +9,7 @@ module KwAPN
9
9
  ctx = OpenSSL::SSL::SSLContext.new()
10
10
  ctx.cert = OpenSSL::X509::Certificate.new(File.read(KwAPN::Config.option(:cert_file, app_id)))
11
11
  ctx.key = OpenSSL::PKey::RSA.new(File.read(KwAPN::Config.option(:cert_file, app_id)))
12
- puts '-------------------------------------------- ' + host.inspect+ ' -- ' + port.inspect
12
+
13
13
  s = TCPSocket.new(host, port)
14
14
  ssl = OpenSSL::SSL::SSLSocket.new(s, ctx)
15
15
  ssl.connect # start SSL session
@@ -4,7 +4,7 @@ module KwAPN
4
4
  attr_accessor :host, :port
5
5
  def initialize(app_id = nil)
6
6
  @host = KwAPN::Config.option(:feedback_host, app_id)
7
- @port = KwAPN::Config.option(:feedback_port, app_id)
7
+ @port = KwAPN::Config.option(:feedback_port, app_id) || 2196
8
8
  @app_id = app_id
9
9
  end
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kw_apn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196349
4
+ hash: 62196323
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - beta
10
- - 7
11
- version: 0.4.beta.7
10
+ - 8
11
+ version: 0.4.beta.8
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jonathan Cichon