bpoweski-apnserver 0.1.3 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -16,7 +16,8 @@ h2. Remaining Tasks
16
16
  * Implement robust notification sending in reactor periodic scheduler
17
17
 
18
18
  h2. Issues Fixed
19
-
19
+
20
+ * first attempt at retry logic for a notification
20
21
  * apnsend --badge option correctly sends integer number rather than string of number for aps json payload
21
22
  * connections are propery closed in Notification#push method now
22
23
 
@@ -161,3 +162,4 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
161
162
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
162
163
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
163
164
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
165
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.6
@@ -22,8 +22,13 @@ module ApnServer
22
22
  size = @queue.size
23
23
  size.times do
24
24
  @queue.pop do |notification|
25
- @client.connect! unless @client.connected?
26
- @client.write(notification)
25
+ begin
26
+ @client.connect! unless @client.connected?
27
+ @client.write(notification)
28
+ rescue Errno::EPIPE
29
+ puts "Caught Errno::EPIPE adding notification back to queue"
30
+ @queue.push(notification)
31
+ end
27
32
  end
28
33
  end
29
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpoweski-apnserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Poweski
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-18 00:00:00 -07:00
12
+ date: 2009-09-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -56,7 +56,6 @@ files:
56
56
  - README.textile
57
57
  - Rakefile
58
58
  - VERSION
59
- - apnserver.gemspec
60
59
  - bin/apnsend
61
60
  - bin/apnserverd
62
61
  - bin/apnserverd.fedora.init
data/apnserver.gemspec DELETED
@@ -1,71 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{apnserver}
8
- s.version = "0.1.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ben Poweski"]
12
- s.date = %q{2009-09-18}
13
- s.description = %q{A toolkit for proxying and sending Apple Push Notifications}
14
- s.email = %q{bpoweski@3factors.com}
15
- s.executables = ["apnsend", "apnserverd", "apnserverd.fedora.init"]
16
- s.extra_rdoc_files = [
17
- "README.textile"
18
- ]
19
- s.files = [
20
- "README.textile",
21
- "Rakefile",
22
- "VERSION",
23
- "apnserver.gemspec",
24
- "bin/apnsend",
25
- "bin/apnserverd",
26
- "bin/apnserverd.fedora.init",
27
- "lib/apnserver.rb",
28
- "lib/apnserver/client.rb",
29
- "lib/apnserver/notification.rb",
30
- "lib/apnserver/payload.rb",
31
- "lib/apnserver/protocol.rb",
32
- "lib/apnserver/server.rb",
33
- "lib/apnserver/server_connection.rb",
34
- "test/test_client.rb",
35
- "test/test_helper.rb",
36
- "test/test_notification.rb",
37
- "test/test_payload.rb",
38
- "test/test_protocol.rb"
39
- ]
40
- s.homepage = %q{http://github.com/bpoweski/apnserver}
41
- s.rdoc_options = ["--charset=UTF-8"]
42
- s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.3.5}
44
- s.summary = %q{Apple Push Notification Server}
45
- s.test_files = [
46
- "test/test_client.rb",
47
- "test/test_helper.rb",
48
- "test/test_notification.rb",
49
- "test/test_payload.rb",
50
- "test/test_protocol.rb"
51
- ]
52
-
53
- if s.respond_to? :specification_version then
54
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
55
- s.specification_version = 3
56
-
57
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
58
- s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
59
- s.add_runtime_dependency(%q<daemons>, [">= 0"])
60
- s.add_runtime_dependency(%q<json>, [">= 0"])
61
- else
62
- s.add_dependency(%q<eventmachine>, [">= 0"])
63
- s.add_dependency(%q<daemons>, [">= 0"])
64
- s.add_dependency(%q<json>, [">= 0"])
65
- end
66
- else
67
- s.add_dependency(%q<eventmachine>, [">= 0"])
68
- s.add_dependency(%q<daemons>, [">= 0"])
69
- s.add_dependency(%q<json>, [">= 0"])
70
- end
71
- end