daemons-rails 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -1
- data/lib/daemons/rails/version.rb +1 -1
- data/lib/generators/templates/script.rb +3 -1
- metadata +29 -35
data/README.markdown
CHANGED
@@ -78,7 +78,8 @@ and same set of methods. Effectively, *Daemons::Rails::Monitoring* just delegate
|
|
78
78
|
|
79
79
|
## CHANGES ##
|
80
80
|
|
81
|
+
* 1.1.2 - fix script template to load environment within Rails.root directory. It takes no effect on already generated scripts.
|
81
82
|
* 1.1.1 - fix dependencies, clean-up specs
|
82
83
|
* 1.1.0 - supported custom directory for daemons, support multiple daemons directories
|
83
84
|
* 1.0.0 - changed api for Daemons::Rails::Monitoring, fixed path in template for script, improved documentation, added RSpec
|
84
|
-
* 0.0.3 - added rake for running script without daemonization (rake daemon:\<name\>)
|
85
|
+
* 0.0.3 - added rake for running script without daemonization (rake daemon:\<name\>)
|
@@ -5,6 +5,8 @@ ENV["RAILS_ENV"] ||= "production"
|
|
5
5
|
|
6
6
|
root = File.expand_path(File.dirname(__FILE__))
|
7
7
|
root = File.dirname(root) until File.exists?(File.join(root, 'config'))
|
8
|
+
Dir.chdir(root)
|
9
|
+
|
8
10
|
require File.join(root, "config", "environment")
|
9
11
|
|
10
12
|
$running = true
|
@@ -19,4 +21,4 @@ while($running) do
|
|
19
21
|
Rails.logger.info "This daemon is still running at #{Time.now}.\n"
|
20
22
|
|
21
23
|
sleep 10
|
22
|
-
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,96 +1,96 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemons-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.1
|
5
4
|
prerelease:
|
5
|
+
version: 1.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- mirasrael
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
type: :runtime
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '3.0'
|
20
|
-
|
21
|
-
type: :runtime
|
22
|
-
name: rails
|
22
|
+
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ~>
|
26
27
|
- !ruby/object:Gem::Version
|
27
28
|
version: '3.0'
|
28
|
-
|
29
|
-
prerelease: false
|
29
|
+
name: rails
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
+
type: :runtime
|
31
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
32
34
|
requirements:
|
33
35
|
- - ! '>='
|
34
36
|
- !ruby/object:Gem::Version
|
35
37
|
version: '0'
|
36
|
-
|
37
|
-
type: :runtime
|
38
|
-
name: daemons
|
38
|
+
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
40
41
|
requirements:
|
41
42
|
- - ! '>='
|
42
43
|
- !ruby/object:Gem::Version
|
43
44
|
version: '0'
|
44
|
-
|
45
|
-
prerelease: false
|
45
|
+
name: daemons
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
+
type: :runtime
|
47
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
48
50
|
requirements:
|
49
51
|
- - ~>
|
50
52
|
- !ruby/object:Gem::Version
|
51
53
|
version: '1.0'
|
52
|
-
|
53
|
-
type: :runtime
|
54
|
-
name: multi_json
|
54
|
+
prerelease: false
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
56
57
|
requirements:
|
57
58
|
- - ~>
|
58
59
|
- !ruby/object:Gem::Version
|
59
60
|
version: '1.0'
|
60
|
-
|
61
|
-
prerelease: false
|
61
|
+
name: multi_json
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
+
type: :development
|
63
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
64
66
|
requirements:
|
65
67
|
- - ! '>='
|
66
68
|
- !ruby/object:Gem::Version
|
67
69
|
version: '0'
|
68
|
-
|
69
|
-
type: :development
|
70
|
-
name: rake
|
70
|
+
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
72
73
|
requirements:
|
73
74
|
- - ! '>='
|
74
75
|
- !ruby/object:Gem::Version
|
75
76
|
version: '0'
|
76
|
-
|
77
|
-
prerelease: false
|
77
|
+
name: rake
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
+
type: :development
|
79
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
80
82
|
requirements:
|
81
83
|
- - ! '>='
|
82
84
|
- !ruby/object:Gem::Version
|
83
85
|
version: '2.12'
|
84
|
-
|
85
|
-
type: :development
|
86
|
-
name: rspec
|
86
|
+
prerelease: false
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
88
89
|
requirements:
|
89
90
|
- - ! '>='
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '2.12'
|
92
|
-
|
93
|
-
prerelease: false
|
93
|
+
name: rspec
|
94
94
|
description: daemons gem support for Rails 3
|
95
95
|
email: []
|
96
96
|
executables: []
|
@@ -135,23 +135,17 @@ rdoc_options: []
|
|
135
135
|
require_paths:
|
136
136
|
- lib
|
137
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
138
139
|
requirements:
|
139
140
|
- - ! '>='
|
140
141
|
- !ruby/object:Gem::Version
|
141
|
-
hash: -1919585855362980352
|
142
142
|
version: '0'
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
none: false
|
146
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
147
145
|
requirements:
|
148
146
|
- - ! '>='
|
149
147
|
- !ruby/object:Gem::Version
|
150
|
-
hash: -1919585855362980352
|
151
148
|
version: '0'
|
152
|
-
segments:
|
153
|
-
- 0
|
154
|
-
none: false
|
155
149
|
requirements: []
|
156
150
|
rubyforge_project:
|
157
151
|
rubygems_version: 1.8.24
|