apnd 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +1 -0
  2. data/bin/apnd +5 -0
  3. data/lib/apnd/version.rb +1 -1
  4. metadata +2 -2
@@ -37,6 +37,7 @@ utility is used to start APND.
37
37
  --daemon-port [PORT] Run APND on PORT (default is 22195)
38
38
  --daemon-bind [ADDRESS] Bind APND to ADDRESS (default is 0.0.0.0)
39
39
  --daemon-log-file [PATH] PATH to APND log file (default is /var/log/apnd.log)
40
+ --daemon-timer [SECONDS] Set APND queue refresh time to SECONDS (default is 30)
40
41
  --foreground Run APND in foreground without daemonizing
41
42
 
42
43
  Help:
data/bin/apnd CHANGED
@@ -50,6 +50,10 @@ opts = OptionParser.new do |opt|
50
50
  options[:daemon_log_file] = log
51
51
  end
52
52
 
53
+ opt.on('--daemon-timer [SECONDS]', 'Set APND queue refresh time to SECONDS (default is 30)') do |seconds|
54
+ options[:daemon_timer] = seconds.to_i
55
+ end
56
+
53
57
  opt.on('--foreground', 'Run APND in foreground without daemonizing') do
54
58
  options[:foreground] = true
55
59
  end
@@ -94,6 +98,7 @@ APND.configure do |config|
94
98
  config.daemon.bind = options[:daemon_bind] if options[:daemon_bind]
95
99
  config.daemon.port = options[:daemon_port] if options[:daemon_port]
96
100
  config.daemon.log_file = options[:daemon_log_file] if options[:daemon_log_file]
101
+ config.daemon.timer = options[:daemon_timer] if options[:daemon_timer]
97
102
  end
98
103
 
99
104
  if APND.settings.apple.cert.nil?
@@ -2,7 +2,7 @@ module APND
2
2
  class Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
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
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Priddle