daemon-ogre 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile.lock +3 -3
- data/VERSION +1 -1
- data/daemon-ogre.gemspec +2 -2
- data/example/daemonizable.rb +2 -0
- data/lib/daemon-ogre/daemon.rb +11 -6
- data/lib/daemon-ogre/opts.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d1282be3a00c0f093ff319e81fb3602b99fc0b5
|
4
|
+
data.tar.gz: 4c4989f2ea833ea59092e0fd63ebee22b7043db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 205c696cf78ea9dd179a8ce6dcbbb4de2ad1ae02eee282830f6ee2ba454f1c53bf3dd8a4f1171bb32bf1f4cd39ebe3089690c86cba4e2531bf08a01a98654747
|
7
|
+
data.tar.gz: 159ba9356e19ecd4c5937143562b6f66ed33144c73df47e9bb90a0b7789d881900d40527e412ea83544a17314395f604c6ade6d5ad5753f6c0820179fa3c7fc7
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
daemon-ogre (2.0.
|
4
|
+
daemon-ogre (2.0.3)
|
5
5
|
argv (>= 2.1.0)
|
6
|
-
tmp (>= 2.
|
6
|
+
tmp (>= 2.2.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
11
|
argv (2.1.0)
|
12
12
|
rake (10.0.4)
|
13
|
-
tmp (2.
|
13
|
+
tmp (2.2.2)
|
14
14
|
|
15
15
|
PLATFORMS
|
16
16
|
ruby
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.3
|
data/daemon-ogre.gemspec
CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_dependency "argv",">= 2.1.0"
|
20
|
-
spec.add_dependency "tmp",">= 2.
|
19
|
+
spec.add_dependency "argv", ">= 2.1.0"
|
20
|
+
spec.add_dependency "tmp", ">= 2.2.2"
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "rake"
|
data/example/daemonizable.rb
CHANGED
data/lib/daemon-ogre/daemon.rb
CHANGED
@@ -56,14 +56,19 @@ module DaemonOgre
|
|
56
56
|
# Send stdout and stderr to log files for the child process
|
57
57
|
def redirect
|
58
58
|
|
59
|
-
|
59
|
+
var= 3
|
60
|
+
begin
|
60
61
|
|
61
|
-
|
62
|
-
|
62
|
+
$stdin.reopen File.join('','dev','null')
|
63
|
+
$stdout.reopen OPTS.out__path__
|
64
|
+
$stderr.reopen OPTS.err__path__
|
65
|
+
$stdout.sync = $stderr.sync = true
|
63
66
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
+
rescue Errno::ENOENT => ex
|
68
|
+
var -= 1
|
69
|
+
retry if var > 0
|
70
|
+
raise ex.class,ex
|
71
|
+
end
|
67
72
|
|
68
73
|
end
|
69
74
|
|
data/lib/daemon-ogre/opts.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemon-ogre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: argv
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.2.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.2.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|