daemons-rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Daemons
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -2,4 +2,4 @@
2
2
  results = []
3
3
  Dir[File.dirname(__FILE__) + "/../lib/daemons/*_ctl"].each {|f| results << `#{f} #{ARGV.first}`}
4
4
  results.delete_if { |result| result.nil? || result.empty? }
5
- puts results.join("\n") unless results.empty?
5
+ puts results.join unless results.empty?
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  # You might want to change this
4
- ENV["RAILS_ENV"] ||= "development"
4
+ ENV["RAILS_ENV"] ||= "production"
5
5
 
6
- require File.dirname(__FILE__) + "/../../config/application"
7
- Rails.application.require_environment!
6
+ require File.dirname(__FILE__) + "/../../config/environment"
8
7
 
9
8
  $running = true
10
9
  Signal.trap("TERM") do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemons-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &23654780 !ruby/object:Gem::Requirement
16
+ requirement: &14576940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *23654780
24
+ version_requirements: *14576940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: daemons
27
- requirement: &23654160 !ruby/object:Gem::Requirement
27
+ requirement: &14576300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *23654160
35
+ version_requirements: *14576300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_json
38
- requirement: &23653460 !ruby/object:Gem::Requirement
38
+ requirement: &14575580 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *23653460
46
+ version_requirements: *14575580
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &23653000 !ruby/object:Gem::Requirement
49
+ requirement: &14575120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *23653000
57
+ version_requirements: *14575120
58
58
  description: daemons gem support for Rails 3
59
59
  email: []
60
60
  executables: []