simple-daemon 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ == 0.1.2 2007-07-08
2
+
3
+ * 2 minor enhancements:
4
+ * Renamed WorkingDirectory constant to WORKING_DIRECTORY
5
+ * Renamed logfile and PIDfile to ignore namespacing
6
+ (e.g. log/Job.pid, not log/Foo::Job.pid)
7
+
1
8
  == 0.1.1 2007-07-08
2
9
 
3
10
  * 1 minor enhancements:
@@ -5,11 +5,11 @@ module SimpleDaemon
5
5
  class Base
6
6
 
7
7
  def self.classname
8
- name
8
+ name.split("::").last
9
9
  end
10
10
 
11
11
  def self.pid_fn
12
- File.join(SimpleDaemon::WorkingDirectory, "#{name}.pid")
12
+ File.join(SimpleDaemon::WORKING_DIRECTORY, "#{classname}.pid")
13
13
  end
14
14
 
15
15
  def self.daemonize
@@ -48,7 +48,7 @@ module SimpleDaemon
48
48
  Process.setsid
49
49
  exit if fork
50
50
  PidFile.store(daemon, Process.pid)
51
- Dir.chdir SimpleDaemon::WorkingDirectory
51
+ Dir.chdir SimpleDaemon::WORKING_DIRECTORY
52
52
  File.umask 0000
53
53
  log = File.new("#{daemon.classname}.log", "a")
54
54
  STDIN.reopen "/dev/null"
@@ -2,7 +2,7 @@ module SimpleDaemon #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -33,7 +33,7 @@
33
33
  <h1>simple-daemon</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/simple-daemon"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/simple-daemon" class="numbers">0.1.1</a>
36
+ <a href="http://rubyforge.org/projects/simple-daemon" class="numbers">0.1.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;simple-daemon&#8217;</h1>
39
39
 
@@ -96,6 +96,9 @@ Processor.daemonize
96
96
  <h2>Contact</h2>
97
97
 
98
98
 
99
+ <p>Thanks to Sharon Rosner for the original module. simple-daemon is substantially his code, with a few improvements (and the gem packaging) by Jon Dahl of <a href="http://slantwisedesign.com">Slantwise Design</a> and <a href="http://railspikes.com">Railspikes</a> (blog).</p>
100
+
101
+
99
102
  <p>Comments are welcome. Send an email to <a href="mailto:simple-daemon@googlegroups.com">simple-daemon@googlegroups.com</a>.</p>
100
103
  <p class="coda">
101
104
  <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 9th July 2007<br>
@@ -48,4 +48,6 @@ This code is free to use under the terms of the MIT license.
48
48
 
49
49
  h2. Contact
50
50
 
51
+ Thanks to Sharon Rosner for the original module. simple-daemon is substantially his code, with a few improvements (and the gem packaging) by Jon Dahl of "Slantwise Design":http://slantwisedesign.com and "Railspikes":http://railspikes.com (blog).
52
+
51
53
  Comments are welcome. Send an email to "simple-daemon@googlegroups.com":mailto:simple-daemon@googlegroups.com.
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: simple-daemon
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2007-07-09 00:00:00 -05:00
6
+ version: 0.1.2
7
+ date: 2007-09-19 00:00:00 -05:00
8
8
  summary: Simple module that adds daemon functionality to a Ruby script.
9
9
  require_paths:
10
10
  - lib