forever 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Forever
2
2
 
3
- Small daemon framework for ruby, with logging, error handler watcher and much more.
3
+ Small daemon framework **for ruby**, with logging, error handler watcher and much more.
4
+
5
+ The idea of the name and some concepts was taken by [forever for node.js](https://raw.github.com/indexzero/forever) written by Charlie Robbins.
4
6
 
5
7
  ## Why?
6
8
 
data/lib/forever/base.rb CHANGED
@@ -6,8 +6,8 @@ module Forever
6
6
  options.each { |k,v| send(k, v) }
7
7
 
8
8
  Dir.chdir(dir) if exists?(dir)
9
- FileUtils.mkdir(File.dirname(log), :noop => true) if exists?(log)
10
- FileUtils.mkdir(File.dirname(pid), :noop => true) if exists?(pid)
9
+ Dir.mkdir(File.dirname(log)) if log && !File.exist?(File.dirname(log))
10
+ Dir.mkdir(File.dirname(pid)) if pid && !File.exist?(File.dirname(pid))
11
11
 
12
12
  instance_eval(&block)
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Forever
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 9
9
- version: 0.0.9
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - DAddYE