daemon-ogre 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -187,7 +187,7 @@ you want make some test script with rnd numbers, strings, dates, bools etc? use
187
187
 
188
188
  Rnd
189
189
  -string
190
- -number
190
+ -integer
191
191
  -boolean
192
192
  -date
193
193
 
data/README.rdoc CHANGED
@@ -187,7 +187,7 @@ you want make some test script with rnd numbers, strings, dates, bools etc? use
187
187
 
188
188
  Rnd
189
189
  -string
190
- -number
190
+ -integer
191
191
  -boolean
192
192
  -date
193
193
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
data/daemon-ogre.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "daemon-ogre"
8
- s.version = "1.2.5"
8
+ s.version = "1.3.1"
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"]
12
- s.date = "2013-05-30"
12
+ s.date = "2013-06-04"
13
13
  s.description = "This gem is made for one purpose. Ruby meant to be for easy use, not hardcore coding! And in terms for this, ogre will aid you in the brute way, so you can relax... Are you need load a whole bunch of folders to your rack application ? do it! You want one nice hash for config constant from ymls all over your dirs? sure you can! you want have start/stop/status/restart/daemon/etc argument commands from terminal to control your application without any fuss? There you go! Are you need an easy way to do the classic way of daemonise your awsome app? there will be no problem at all, let the Ogre do the job :) so all you need is enjoy your code! Follow me on Github and send request if you have idea what can be usefull in creating your app :) https://github.com/adamluzsi/daemon-ogre.git"
14
14
  s.email = "adamluzsi@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -37,10 +37,7 @@ Gem::Specification.new do |s|
37
37
  "daemon-ogre.gemspec",
38
38
  "lib/daemon-ogre.rb",
39
39
  "test/helper.rb",
40
- "test/test_daemon-ogre.rb",
41
- "test/var/daemon.stderr.log",
42
- "test/var/log/log_file_name",
43
- "test/var/pid/pid_file_name"
40
+ "test/test_daemon-ogre.rb"
44
41
  ]
45
42
  s.homepage = "http://github.com/adamluzsi/daemon-ogre"
46
43
  s.licenses = ["MIT"]
data/lib/daemon-ogre.rb CHANGED
@@ -297,6 +297,7 @@ begin
297
297
 
298
298
  def debug
299
299
  App.debug=true
300
+ $DEBUG = true
300
301
  end
301
302
 
302
303
  def help
@@ -517,23 +518,22 @@ begin
517
518
  class << self
518
519
  def string(length,amount=1)
519
520
  mrg = String.new
521
+ first_string = true
520
522
  amount.times do
521
523
  a_string = Random.rand(length)
522
524
  a_string == 0 ? a_string += 1 : a_string
523
525
  mrg_prt = (0...a_string).map{ ('a'..'z').to_a[rand(26)] }.join
524
- mrg+= " #{mrg_prt}"
526
+ first_string ? mrg += mrg_prt : mrg+= " #{mrg_prt}"
527
+ first_string = false
525
528
  end
526
529
  return mrg
527
530
  end
528
-
529
- def number(length)
531
+ def integer(length)
530
532
  Random.rand(length)
531
533
  end
532
-
533
534
  def boolean
534
535
  rand(2) == 1
535
536
  end
536
-
537
537
  def date from = Time.at(1114924812), to = Time.now
538
538
  rand(from..to)
539
539
  end
@@ -639,7 +639,6 @@ begin
639
639
 
640
640
  end
641
641
  end
642
- #===================-
643
642
  def self.help
644
643
  puts "\n##defaults:\narg[:log_path]\tlog path and"+\
645
644
  " file name\narg[:pid_path]\tpid path and file n"+\
@@ -647,4 +646,4 @@ begin
647
646
  " continue? 'ruby xy.rb start'\narg[:name]\tapplication names as daemon process"
648
647
  end
649
648
  end
650
- end
649
+ end
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.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-02 00:00:00.000000000 Z
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 849905104438420836
115
+ hash: -1913629350989088546
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements: