server-starter 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -1
- data/bin/start_server.rb +4 -0
- data/lib/server/starter.rb +1 -1
- data/lib/server/starter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 886a530183d42b5add705b9d01fbc91d78e2f37a
|
|
4
|
+
data.tar.gz: 90b90d99030aa974a412c40085350090e7c2ba54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2891074c8ed2cc600a34e1038a2bd9721c439df989150cc65fa55e503104418808d294a21c3be34c1ec9e6eeca101e21fb1b9b7368fc7398d1f46d2e0f419d51
|
|
7
|
+
data.tar.gz: 213d1fdcb7d239c62eef293b44054e77bfa450aced6da105295bcbeb8ddd156bb0d81d2ecaec48ba93aebb5642c1680e255f12da4b02bdec4c199e9265994245
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/bin/start_server.rb
CHANGED
|
@@ -35,6 +35,10 @@ OptionParser.new do |opt|
|
|
|
35
35
|
'--signal-on-term=SIGNAL',
|
|
36
36
|
'name of the signal to be sent to the server process when start_server receives a SIGTERM (default: SIGTERM)',
|
|
37
37
|
) {|v| opts[:signal_on_term] = v }
|
|
38
|
+
opt.on(
|
|
39
|
+
'--log-file=filename',
|
|
40
|
+
'if set, writes the log of the start_server process to the file',
|
|
41
|
+
) {|v| opts[:log_file] = v }
|
|
38
42
|
opt.on(
|
|
39
43
|
'--pid-file=filename',
|
|
40
44
|
'if set, writes the process id of the start_server process to the file',
|
data/lib/server/starter.rb
CHANGED
|
@@ -118,7 +118,7 @@ class Server::Starter
|
|
|
118
118
|
die "failed to listen to file #{path}"
|
|
119
119
|
end
|
|
120
120
|
sock.fcntl(Fcntl::F_SETFD, 0) rescue die "fcntl(F_SETFD, 0) failed"
|
|
121
|
-
sockenvs.push "path=#{sock.fileno}"
|
|
121
|
+
sockenvs.push "#{path}=#{sock.fileno}"
|
|
122
122
|
socks.push sock
|
|
123
123
|
end
|
|
124
124
|
ENV['SERVER_STARTER_PORT'] = sockenvs.join(";")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: server-starter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Naotoshi Seo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|