daemon-ogre 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -4
- data/VERSION +1 -1
- data/daemon-ogre.gemspec +0 -1
- data/example/daemonizable.rb +1 -3
- data/lib/daemon-ogre.rb +0 -1
- data/lib/daemon-ogre/argv.rb +1 -18
- metadata +3 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2547f9b4f999a498dbc84f12dc8512159d60007d
|
4
|
+
data.tar.gz: c0f581a9cf8133de247f56c4cadf9e80a1797bbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cad88a2755440b96bf43f49471eadb39739f3ce60fec4821d4eff9b6f9940256ba216382e0677d5f4cf54e454f4e8bfd3fe6590ab762e6be5a020346f9570233
|
7
|
+
data.tar.gz: c65252bade38211b418996ffc128f7a392e5bfb8856fe6ad3d3687292d2c4510cdacc7eb378c1113efebb7e0a594d5829023e0f8e7576ba19508780f9de09bb9
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
daemon-ogre (2.
|
5
|
-
argv (>= 2.1.0)
|
4
|
+
daemon-ogre (2.1.2)
|
6
5
|
tmp (>= 2.2.2)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: http://rubygems.org/
|
10
9
|
specs:
|
11
|
-
argv (2.1.0)
|
12
10
|
rake (10.0.4)
|
13
|
-
tmp (
|
11
|
+
tmp (3.1.0)
|
14
12
|
|
15
13
|
PLATFORMS
|
16
14
|
ruby
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.2
|
data/daemon-ogre.gemspec
CHANGED
@@ -16,7 +16,6 @@ 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', '>= 3.0.0'
|
20
19
|
spec.add_dependency 'tmp', '>= 2.2.2'
|
21
20
|
|
22
21
|
spec.add_development_dependency 'bundler'
|
data/example/daemonizable.rb
CHANGED
data/lib/daemon-ogre.rb
CHANGED
data/lib/daemon-ogre/argv.rb
CHANGED
@@ -5,7 +5,7 @@ module DaemonOgre
|
|
5
5
|
|
6
6
|
def check_args_for( *args )
|
7
7
|
args = args.map(&:to_s)
|
8
|
-
return ARGV.
|
8
|
+
return ::ARGV.any?{|argument| args.any?{|string_to_find| argument =~ Regexp.new(string_to_find.to_s) }}
|
9
9
|
end
|
10
10
|
|
11
11
|
@@daemon_keys= [:daemonize,:daemon,:d]
|
@@ -19,23 +19,6 @@ module DaemonOgre
|
|
19
19
|
check_args_for( *@@terminate_keys )
|
20
20
|
end
|
21
21
|
|
22
|
-
ARGV.add_help(
|
23
|
-
[
|
24
|
-
'Start with one of the following tags the app,',
|
25
|
-
'and it will be daemonized'
|
26
|
-
].join(' '),
|
27
|
-
*@@daemon_keys.map(&:to_s)
|
28
|
-
|
29
|
-
)
|
30
|
-
|
31
|
-
ARGV.add_help(
|
32
|
-
[
|
33
|
-
'Start with one of the following tags the app,',
|
34
|
-
'and it will be terminate the running app instance'
|
35
|
-
].join(' '),
|
36
|
-
*@@terminate_keys.map(&:to_s)
|
37
|
-
)
|
38
|
-
|
39
22
|
end
|
40
23
|
end
|
41
24
|
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemon-ogre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
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-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: argv
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: tmp
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,10 +92,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
92
|
version: '0'
|
107
93
|
requirements: []
|
108
94
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.4.3
|
110
96
|
signing_key:
|
111
97
|
specification_version: 4
|
112
98
|
summary: Simple to use app ARGV based daemonizer
|
113
99
|
test_files:
|
114
100
|
- test/example.rb
|
115
|
-
has_rdoc:
|