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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e400ceb398c0e8e7743eb1bb2212f52f4abd340
4
- data.tar.gz: eafdce6239cbf60aad84e99ae619b980b800d30c
3
+ metadata.gz: 2547f9b4f999a498dbc84f12dc8512159d60007d
4
+ data.tar.gz: c0f581a9cf8133de247f56c4cadf9e80a1797bbc
5
5
  SHA512:
6
- metadata.gz: 132b3c0161b81c45a74da51c079bc5a99f356bebf5eb3aa5bd2b92528c84a097c8f8956f0aceab2b91b6aa8c7f78eaee7e046f754bf2cc2833f1b23d7876035b
7
- data.tar.gz: ac2fa08e2c23a323e1a0a25d2a198bf4f3ce51af9e3d58bedd5aa27589a7c2f2835ba08c43af661f8320b109cc4edee1995c037f936f40e015479d166c12e4a6
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.0.3)
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 (2.2.2)
11
+ tmp (3.1.0)
14
12
 
15
13
  PLATFORMS
16
14
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.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'
@@ -2,10 +2,8 @@ require 'daemon-ogre'
2
2
 
3
3
  # start as
4
4
  # ruby sample_daemon_app.rb --daemon
5
+ # puts "app name: #{$0}"
5
6
 
6
- puts "app name: #{$0}"
7
-
8
- ARGV.show_help
9
7
  DaemonOgre.init
10
8
 
11
9
  60.times do
data/lib/daemon-ogre.rb CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
2
  require 'tmp'
3
- require 'argv'
4
3
 
5
4
  require 'daemon-ogre/opts'
6
5
  require 'daemon-ogre/argv'
@@ -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.options.any?{|opt| args.include?(opt) }
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.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-09-24 00:00:00.000000000 Z
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.2.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: