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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22861bcf2f5d19a2bf68a6f6567a28d891629013
4
- data.tar.gz: c75b98daadb61ea3a6a7e5d297d9db138504b064
3
+ metadata.gz: 4d1282be3a00c0f093ff319e81fb3602b99fc0b5
4
+ data.tar.gz: 4c4989f2ea833ea59092e0fd63ebee22b7043db5
5
5
  SHA512:
6
- metadata.gz: 0d6f56a70b6f889f2fb10d0071823bae2de84cbdb708517e638218729f6c5b287a938bbd39c28ee292ba72545ce3093b1e961110d57bdeaf28fd8043a3083239
7
- data.tar.gz: 6a698024497d3a41a781dc879873b948e8974b8b698abc2b9895cd562302aa4fe6c8869f98b9f9ab6440b43d385efc077f4243290228cb469eac4948669cc5c5
6
+ metadata.gz: 205c696cf78ea9dd179a8ce6dcbbb4de2ad1ae02eee282830f6ee2ba454f1c53bf3dd8a4f1171bb32bf1f4cd39ebe3089690c86cba4e2531bf08a01a98654747
7
+ data.tar.gz: 159ba9356e19ecd4c5937143562b6f66ed33144c73df47e9bb90a0b7789d881900d40527e412ea83544a17314395f604c6ade6d5ad5753f6c0820179fa3c7fc7
data/.gitignore CHANGED
@@ -15,4 +15,4 @@ tmp
15
15
  # YARD artifacts
16
16
  .yardoc
17
17
  _yardoc
18
- doc/
18
+ doc/
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- daemon-ogre (2.0.2)
4
+ daemon-ogre (2.0.3)
5
5
  argv (>= 2.1.0)
6
- tmp (>= 2.0.1)
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.1.0)
13
+ tmp (2.2.2)
14
14
 
15
15
  PLATFORMS
16
16
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
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.0.1"
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"
@@ -6,6 +6,8 @@ require 'daemon-ogre.rb'
6
6
  # to check it's running
7
7
  # `ps aux | grep $0`
8
8
 
9
+ puts "app name: #{$0}"
10
+
9
11
  ARGVEXT.show_help
10
12
  DaemonOgre.init
11
13
 
@@ -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
- $stdin.reopen File.join('','dev','null')
59
+ var= 3
60
+ begin
60
61
 
61
- out = File.new File.join(OPTS.tmp_folder_path, "out"), "a"
62
- err = File.new File.join(OPTS.tmp_folder_path, "err"), "a"
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
- $stdout.reopen out
65
- $stderr.reopen err
66
- $stdout.sync = $stderr.sync = true
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
 
@@ -9,7 +9,7 @@ module DaemonOgre
9
9
  @@path || "#{::TMP.folder_path.to_s}_daemon"
10
10
  end
11
11
 
12
- def pid
12
+ def pid *args
13
13
  self.pidfile
14
14
  end
15
15
 
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.2
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-23 00:00:00.000000000 Z
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.0.1
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.0.1
40
+ version: 2.2.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement