daemon-ogre 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/daemon-ogre.gemspec +1 -1
  3. data/lib/daemon-ogre.rb +13 -9
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
data/daemon-ogre.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "daemon-ogre"
8
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adam.Luzsi"]
data/lib/daemon-ogre.rb CHANGED
@@ -298,11 +298,15 @@ begin
298
298
  end
299
299
  end
300
300
 
301
- if !terminate_on_command.include?(true)
302
- @@startup = true
301
+ if !terminate_on_command.nil?
302
+ if !terminate_on_command.include?(true)
303
+ @@startup = true
304
+ else
305
+ puts "sorry but process is already running in this specification"
306
+ Process.exit
307
+ end
303
308
  else
304
- puts "sorry but process is already running in this specification"
305
- Process.exit
309
+ @@startup = true
306
310
  end
307
311
  end
308
312
 
@@ -429,11 +433,6 @@ begin
429
433
  def process_running?(input)
430
434
  DaemonOgre.process_running?(input)
431
435
  end
432
- class File
433
- def self.create!(input,optionable_data=nil,optionable_file_mod="w")
434
- DaemonOgre.create_on_filesystem(input,optionable_data,optionable_file_mod)
435
- end
436
- end
437
436
  def require_directory(directory,*args)
438
437
  DaemonOgre.load_directory(directory,*args)
439
438
  end
@@ -446,6 +445,11 @@ begin
446
445
  def logger(error_msg,prefix="",log_file=DaemonOgre::App.log_path)
447
446
  DaemonOgre.error_logger(error_msg,prefix,log_file)
448
447
  end
448
+ class File
449
+ def self.create!(input,optionable_data=nil,optionable_file_mod="w")
450
+ DaemonOgre.create_on_filesystem(input,optionable_data,optionable_file_mod)
451
+ end
452
+ end
449
453
  class Class
450
454
  def class_methods
451
455
  self.methods - Object.methods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemon-ogre
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: