apnd 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. data/lib/apnd/daemon.rb +2 -0
  2. data/lib/apnd/version.rb +1 -1
  3. metadata +3 -3
@@ -54,6 +54,7 @@ module APND
54
54
  count = @queue.size
55
55
  if count > 0
56
56
  ohai "Queue has #{count} item#{count == 1 ? '' : 's'}"
57
+ @apple.connect!
57
58
  count.times do
58
59
  @queue.pop do |notification|
59
60
  begin
@@ -68,6 +69,7 @@ module APND
68
69
  end
69
70
  end
70
71
  end
72
+ @apple.disconnect!
71
73
  end
72
74
  end
73
75
 
@@ -2,7 +2,7 @@ module APND
2
2
  class Version #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Priddle
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-05 00:00:00 -04:00
17
+ date: 2010-12-08 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency