unicorn_horn 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +4 -19
- data/README.rdoc +5 -1
- data/VERSION +1 -1
- data/lib/unicorn_horn/runner.rb +2 -2
- data/lib/unicorn_horn/worker.rb +1 -1
- metadata +3 -3
data/LICENSE
CHANGED
@@ -1,20 +1,5 @@
|
|
1
|
-
|
1
|
+
This software is made available under the GPL v2, like Unicorn.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
|
+
Copyright (c) Zed A. Shaw
|
4
|
+
Copyright (c) Eric Wong
|
5
|
+
Copyright (c) Joe Edelman
|
data/README.rdoc
CHANGED
@@ -4,4 +4,8 @@ An extraction of the process monitoring logic from Unicorn
|
|
4
4
|
|
5
5
|
== Copyright
|
6
6
|
|
7
|
-
|
7
|
+
This software is made available under the GPL v2, like Unicorn.
|
8
|
+
|
9
|
+
Copyright (c) Zed A. Shaw
|
10
|
+
Copyright (c) Eric Wong
|
11
|
+
Copyright (c) Joe Edelman
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/unicorn_horn/runner.rb
CHANGED
@@ -9,13 +9,13 @@ module UnicornHorn
|
|
9
9
|
def start
|
10
10
|
register :QUIT, :INT, :TERM, :CHLD, :HUP
|
11
11
|
AFTER_FORK << proc{ @workers.clear; forget }
|
12
|
-
@workers.each
|
12
|
+
@workers.each{ |w| w.launch! }
|
13
13
|
|
14
14
|
ploop do |signal|
|
15
15
|
reap
|
16
16
|
case signal
|
17
17
|
when nil
|
18
|
-
@workers.each
|
18
|
+
@workers.each{ |w| w.kill_if_idle }
|
19
19
|
@workers.each{ |w| w.wpid or w.launch! }
|
20
20
|
psleep 1
|
21
21
|
when :CHLD; next
|
data/lib/unicorn_horn/worker.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Joe Edelman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-07 00:00:00 -07:00
|
18
18
|
default_executable: hornrunner
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|