kw_apn 0.4.beta.6 → 0.4.beta.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/connection.rb +1 -1
  3. data/lib/sender.rb +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.beta.6
1
+ 0.4.beta.7
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
12
+ puts '-------------------------------------------- ' + host.inspect+ ' -- ' + port.inspect
13
13
  s = TCPSocket.new(host, port)
14
14
  ssl = OpenSSL::SSL::SSLSocket.new(s, ctx)
15
15
  ssl.connect # start SSL session
data/lib/sender.rb CHANGED
@@ -13,7 +13,7 @@ module KwAPN
13
13
  @session_id = session_id
14
14
  @app_id = app_id
15
15
  @host = KwAPN::Config.option(:push_host, app_id) || 'gateway.sandbox.push.apple.com'
16
- @port = KwAPN::Config.option(:push_host, app_id) || 2195
16
+ @port = KwAPN::Config.option(:push_port, app_id) || 2195
17
17
  @count = 0
18
18
  @fail_count = 0
19
19
  @failed_index_array = []
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: 62196351
4
+ hash: 62196349
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - beta
10
- - 6
11
- version: 0.4.beta.6
10
+ - 7
11
+ version: 0.4.beta.7
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jonathan Cichon