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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c33bf7654cdd263ceabd3df64f6e30547a9777f
4
- data.tar.gz: 3be2ad74bce595b12379df6990ae42e61702418a
3
+ metadata.gz: 886a530183d42b5add705b9d01fbc91d78e2f37a
4
+ data.tar.gz: 90b90d99030aa974a412c40085350090e7c2ba54
5
5
  SHA512:
6
- metadata.gz: 0d579041eb87e8bb6ee920b2958bd3852e30ca94481525708d4862b5fa396533176b47bd00f6e006e15e8871f71ea4cec6929b303ca50f25fb39cbbce5c2f9c9
7
- data.tar.gz: 04d86d76d42a50798edc7f74efa4111fe89c296ab6df6f1eff08aa25e2cc273d9a3998c55747857bb3393f6c6267e2c908bd49c83f45f39a8d85c74d63907704
6
+ metadata.gz: 2891074c8ed2cc600a34e1038a2bd9721c439df989150cc65fa55e503104418808d294a21c3be34c1ec9e6eeca101e21fb1b9b7368fc7398d1f46d2e0f419d51
7
+ data.tar.gz: 213d1fdcb7d239c62eef293b44054e77bfa450aced6da105295bcbeb8ddd156bb0d81d2ecaec48ba93aebb5642c1680e255f12da4b02bdec4c199e9265994245
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ pkg/*
15
15
  .tags
16
16
  unicorn.stat
17
17
  start_server.pid
18
+ start_server.log
@@ -1,3 +1,10 @@
1
+ ## 0.1.3 (2015/03/17)
2
+
3
+ Fixes:
4
+
5
+ * Fix SERVER_STARTER_PORT for unix domain socket (fix typo)
6
+ * Add --log-file option
7
+
1
8
  ## 0.1.2 (2015/03/16)
2
9
 
3
10
  Fixes:
@@ -14,4 +21,3 @@ Enhancements:
14
21
 
15
22
  First version
16
23
 
17
-
@@ -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',
@@ -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(";")
@@ -1,5 +1,5 @@
1
1
  class Server
2
2
  class Starter
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake