apnserver 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +8 -1
  2. data/VERSION +1 -1
  3. data/lib/apnserver/server.rb +2 -5
  4. metadata +6 -4
data/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  require 'rubygems'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
2
4
 
3
5
  begin
4
6
  require 'jeweler'
@@ -19,7 +21,6 @@ rescue LoadError
19
21
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
20
22
  end
21
23
 
22
- require 'rake/testtask'
23
24
  Rake::TestTask.new(:test) do |test|
24
25
  test.test_files = FileList.new('test/**/test_*.rb') do |list|
25
26
  list.exclude 'test/test_helper.rb'
@@ -31,4 +32,10 @@ end
31
32
  Jeweler::RubyforgeTasks.new do |rubyforge|
32
33
  end
33
34
 
35
+ Rake::RDocTask.new do |rd|
36
+ rd.main = "README.textile"
37
+ rd.rdoc_dir = 'rdoc'
38
+ rd.rdoc_files.include("README.textile", "lib/**/*.rb")
39
+ end
40
+
34
41
  task :default => [:test]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -25,11 +25,8 @@ module ApnServer
25
25
  begin
26
26
  @client.connect! unless @client.connected?
27
27
  @client.write(notification)
28
- rescue Errno::EPIPE
29
- puts "Caught Errno::EPIPE adding notification back to queue"
30
- @queue.push(notification)
31
- rescue OpenSSL::SSL::SSLError
32
- puts "Caught OpenSSL Error, closing connecting and adding notification back to queue"
28
+ rescue Errno::EPIPE, OpenSSL::SSL::SSLError
29
+ puts "Caught Error, closing connecting and adding notification back to queue"
33
30
  @client.disconnect!
34
31
  @queue.push(notification)
35
32
  rescue RuntimeError => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apnserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
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-10-25 00:00:00 -05:00
12
+ date: 2009-11-21 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -73,6 +73,8 @@ files:
73
73
  - test/test_protocol.rb
74
74
  has_rdoc: true
75
75
  homepage: http://github.com/bpoweski/apnserver
76
+ licenses: []
77
+
76
78
  post_install_message:
77
79
  rdoc_options:
78
80
  - --charset=UTF-8
@@ -93,9 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  requirements: []
94
96
 
95
97
  rubyforge_project: apnserver
96
- rubygems_version: 1.3.1
98
+ rubygems_version: 1.3.5
97
99
  signing_key:
98
- specification_version: 2
100
+ specification_version: 3
99
101
  summary: Apple Push Notification Server
100
102
  test_files:
101
103
  - test/test_client.rb