luban-nginx 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0802611b3ede4a1a03e9461e2aa82fe357cc459
|
4
|
+
data.tar.gz: 9f959e7c4fdaa57a217d4e39c7e8d1f941468c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1b7f3eb12a74209bf36fb815149d939b0d711bfae1268e37a3dfddabe3c60ca49d62019e4a4780b86f0ac207dfebf9080671d6bf577c086c409f7691fa202c4
|
7
|
+
data.tar.gz: 2668f570d0f6b6410b86aa764d198e213a3e4d98089928329cdf1d06e54898538fb041ba63ac4c670c8b754a859deecd303b5ad165e62e67dceeb2e3229cb1fc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.2.0 (Aug 18, 2016)
|
4
|
+
|
5
|
+
Minor enhancements:
|
6
|
+
* Used #compose_command from Luban to support shell setup commands
|
7
|
+
* As a result, updated gem dependency on Luban to version 0.7.0
|
8
|
+
|
3
9
|
## Version 0.1.9 (Aug 05, 2016)
|
4
10
|
|
5
11
|
Bug fixes:
|
@@ -55,19 +55,19 @@ module Luban
|
|
55
55
|
protected
|
56
56
|
|
57
57
|
def config_test!
|
58
|
-
capture("#{nginx_command} -t
|
58
|
+
capture(compose_command("#{nginx_command} -t"))
|
59
59
|
end
|
60
60
|
|
61
61
|
def quit_process!
|
62
|
-
capture("#{nginx_command} -s quit
|
62
|
+
capture(compose_command("#{nginx_command} -s quit"))
|
63
63
|
end
|
64
64
|
|
65
65
|
def reload_process!
|
66
|
-
capture("#{nginx_command} -s reload
|
66
|
+
capture(compose_command("#{nginx_command} -s reload"))
|
67
67
|
end
|
68
68
|
|
69
69
|
def reopen_logs!
|
70
|
-
capture("#{nginx_command} -s reopen
|
70
|
+
capture(compose_command("#{nginx_command} -s reopen"))
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
check process <%= service_entry %>
|
4
4
|
with pidfile <%= pid_file_path %>
|
5
5
|
onreboot laststate
|
6
|
-
start program = "/bin/bash -c 'sleep 1; <%= start_command %>'"
|
7
|
-
stop program = "/bin/bash -c '<%= stop_command %>'"
|
6
|
+
start program = "/bin/bash -c 'sleep 1; <%= compose_command(start_command) %>'"
|
7
|
+
stop program = "/bin/bash -c '<%= compose_command(stop_command) %>'"
|
8
8
|
if totalmem is greater than 10.0 MB for 40 cycles then restart
|
9
9
|
<%- if proxy? -%>
|
10
10
|
if failed port <%= proxy_app.port %> for 4 times within 8 cycles then restart
|
data/luban-nginx.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.required_ruby_version = ">= 2.1.0"
|
23
|
-
spec.add_dependency 'luban', ">= 0.
|
23
|
+
spec.add_dependency 'luban', ">= 0.7.0"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.11"
|
26
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban-nginx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Chi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|