apnserver 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/apnserver/server.rb +3 -1
- metadata +16 -16
data/lib/apnserver/server.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'eventmachine'
|
2
|
+
|
1
3
|
module ApnServer
|
2
4
|
class Server
|
3
5
|
attr_accessor :client, :bind_address, :port
|
@@ -24,7 +26,7 @@ module ApnServer
|
|
24
26
|
begin
|
25
27
|
@client.connect! unless @client.connected?
|
26
28
|
@client.write(notification)
|
27
|
-
rescue Errno::EPIPE, OpenSSL::SSL::SSLError
|
29
|
+
rescue Errno::EPIPE, OpenSSL::SSL::SSLError, Errno::ECONNRESET
|
28
30
|
Config.logger.error "Caught Error, closing connecting and adding notification back to queue"
|
29
31
|
@client.disconnect!
|
30
32
|
@queue.push(notification)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apnserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben Poweski
|
@@ -35,35 +35,35 @@ dependencies:
|
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
38
|
+
name: eventmachine
|
39
39
|
prerelease: false
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 63
|
46
46
|
segments:
|
47
|
-
- 1
|
48
|
-
- 0
|
49
47
|
- 0
|
50
|
-
|
51
|
-
|
48
|
+
- 12
|
49
|
+
- 8
|
50
|
+
version: 0.12.8
|
51
|
+
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
54
|
+
name: bundler
|
55
55
|
prerelease: false
|
56
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
61
|
+
hash: 23
|
62
62
|
segments:
|
63
|
+
- 1
|
63
64
|
- 0
|
64
|
-
-
|
65
|
-
|
66
|
-
version: 0.12.8
|
65
|
+
- 0
|
66
|
+
version: 1.0.0
|
67
67
|
type: :development
|
68
68
|
version_requirements: *id003
|
69
69
|
description: A toolkit for proxying and sending Apple Push Notifications
|