unicorn 5.1.0.4.gd5fbb → 5.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: a5d6bc3b0645f30f462be377d92ec24bcf5fcacb
4
- data.tar.gz: fa51154d9b926ad0a8301f77ff0d4babf07a7d48
3
+ metadata.gz: 75575863e5a09d4ac351269084628052c8ec554c
4
+ data.tar.gz: 5f7fc37e895b8982c3076fc56642ec90d8632d46
5
5
  SHA512:
6
- metadata.gz: 17f429009a38073ea5dd3a7772300601129fc8f422c75dbd5429ed533dbeb943d8b25de7e96e9f42ad61d982505051e9cc752fc7dc1aee0262ccef8e761911df
7
- data.tar.gz: fee36ed0bff5249d491f0e07c0df51ff3982f4f4b2747bc2c73b20b3b57cadc1c0082ddff0c14d1ad529c516082e63b0c438c9cc725fb2845cd775fc9fa378dd
6
+ metadata.gz: 85c7d9f5d6c3056508758a7375809d477ee7e640167470711e4fda53e7f6c52ea6688e708fde80af5e54262dcdd218c0ef9fc966221c1e30762b0bdabf5c41fb
7
+ data.tar.gz: 1829ab9e474b1932617c97e37d6efa1075c1c147f8aa726777478741b5ae9106a163194647e03ff8d73786017dd2142afad8804d16625fde48876e10dc0e3a30
@@ -1,8 +1,8 @@
1
1
  ---
2
- cgit_url: http://bogomips.org/unicorn.git
2
+ cgit_url: https://bogomips.org/unicorn.git
3
3
  git_url: git://bogomips.org/unicorn.git
4
- rdoc_url: http://unicorn.bogomips.org/
5
- ml_url: http://bogomips.org/unicorn-public/
4
+ rdoc_url: https://bogomips.org/unicorn/
5
+ ml_url: https://bogomips.org/unicorn-public/
6
6
  merge_html:
7
7
  unicorn_1: Documentation/unicorn.1.html
8
8
  unicorn_rails_1: Documentation/unicorn_rails.1.html
@@ -181,7 +181,7 @@ the unicorn config file.
181
181
  * [Rack RDoc][2]
182
182
  * [Rackup HowTo][3]
183
183
 
184
- [1]: http://unicorn.bogomips.org/
184
+ [1]: https://bogomips.org/unicorn/
185
185
  [2]: http://www.rubydoc.info/github/rack/rack/
186
186
  [3]: https://github.com/rack/rack/wiki/tutorial-rackup-howto
187
- [4]: http://unicorn.bogomips.org/SIGNALS.html
187
+ [4]: https://bogomips.org/unicorn/SIGNALS.html
@@ -169,7 +169,7 @@ used by Unicorn.
169
169
  * [Rack RDoc][2]
170
170
  * [Rackup HowTo][3]
171
171
 
172
- [1]: http://unicorn.bogomips.org/
172
+ [1]: https://bogomips.org/unicorn/
173
173
  [2]: http://www.rubydoc.info/github/rack/rack/
174
174
  [3]: https://github.com/rack/rack/wiki/tutorial-rackup-howto
175
- [4]: http://unicorn.bogomips.org/SIGNALS.html
175
+ [4]: https://bogomips.org/unicorn/SIGNALS.html
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- DEF_VER = "v5.1.0"
2
+ DEF_VER = "v5.2.0"
3
3
  CONSTANT = "Unicorn::Const::UNICORN_VERSION"
4
4
  RVF = "lib/unicorn/version.rb"
5
5
  GVF = "GIT-VERSION-FILE"
@@ -183,13 +183,13 @@ doc: .document $(ext)/unicorn_http.c man html .olddoc.yml $(PLACEHOLDERS)
183
183
  install -m644 $(man1_paths) doc/
184
184
  tar cf - $$(git ls-files examples/) | (cd doc && tar xf -)
185
185
 
186
- # publishes docs to http://unicorn.bogomips.org
186
+ # publishes docs to https://bogomips.org/unicorn/
187
187
  publish_doc:
188
188
  -git set-file-times
189
189
  $(MAKE) doc
190
190
  $(MAKE) doc_gz
191
191
  chmod 644 $$(find doc -type f)
192
- $(RSYNC) -av doc/ unicorn.bogomips.org:/srv/unicorn/
192
+ $(RSYNC) -av doc/ bogomips.org:/srv/bogomips/unicorn/
193
193
  git ls-files | xargs touch
194
194
 
195
195
  # Create gzip variants of the same timestamp as the original so nginx
@@ -219,7 +219,7 @@ fix-perms:
219
219
  gem: $(pkggem)
220
220
 
221
221
  install-gem: $(pkggem)
222
- gem install $(CURDIR)/$<
222
+ gem install --local $(CURDIR)/$<
223
223
 
224
224
  $(pkggem): .manifest fix-perms
225
225
  gem build $(rfpackage).gemspec
data/HACKING CHANGED
@@ -57,7 +57,7 @@ Please wrap documentation at 72 characters-per-line or less (long URLs
57
57
  are exempt) so it is comfortably readable from terminals.
58
58
 
59
59
  When referencing mailing list posts, use
60
- <tt>http://bogomips.org/unicorn-public/$MESSAGE_ID/</tt> if possible
60
+ <tt>https://bogomips.org/unicorn-public/$MESSAGE_ID/</tt> if possible
61
61
  since the Message-ID remains searchable even if a particular site
62
62
  becomes unavailable.
63
63
 
data/ISSUES CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  mailto:unicorn-public@bogomips.org is the best place to report bugs,
4
4
  submit patches and/or obtain support after you have searched the
5
- {email archives}[http://bogomips.org/unicorn-public/] and
6
- {documentation}[http://unicorn.bogomips.org/].
5
+ {email archives}[https://bogomips.org/unicorn-public/] and
6
+ {documentation}[https://bogomips.org/unicorn/].
7
7
 
8
8
  * No subscription will ever be required to email us
9
9
  * Cc: all participants in a thread or commit, as subscription is optional
@@ -12,7 +12,7 @@ submit patches and/or obtain support after you have searched the
12
12
  * Do not send HTML mail or images, it will be flagged as spam
13
13
  * Anonymous and pseudonymous messages will always be welcome.
14
14
  * The email submission port (587) is enabled on the bogomips.org MX:
15
- http://bogomips.org/unicorn-public/20141004232241.GA23908@dcvr.yhbt.net/t/
15
+ https://bogomips.org/unicorn-public/20141004232241.GA23908@dcvr.yhbt.net/t/
16
16
 
17
17
  If your issue is of a sensitive nature or you're just shy in public,
18
18
  then feel free to email us privately at mailto:unicorn@bogomips.org
@@ -67,7 +67,7 @@ document distributed with git) on guidelines for patch submission.
67
67
  * private: mailto:unicorn@bogomips.org
68
68
  * nntp://news.gmane.org/gmane.comp.lang.ruby.unicorn.general
69
69
  * nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
70
- * http://bogomips.org/unicorn-public/
70
+ * https://bogomips.org/unicorn-public/
71
71
 
72
72
  Mailing list subscription is optional, so Cc: all participants.
73
73
 
@@ -78,9 +78,9 @@ You can follow along via NNTP:
78
78
 
79
79
  Or Atom feeds:
80
80
 
81
- http://bogomips.org/unicorn-public/new.atom
81
+ https://bogomips.org/unicorn-public/new.atom
82
82
 
83
- The HTML archives at http://bogomips.org/unicorn-public/
83
+ The HTML archives at https://bogomips.org/unicorn-public/
84
84
  also has links to per-thread Atom feeds and downloadable
85
85
  mboxes.
86
86
 
data/Links CHANGED
@@ -26,7 +26,7 @@ or services behind them.
26
26
  * {raindrops}[http://raindrops.bogomips.org/] - real-time stats for
27
27
  preforking Rack servers
28
28
 
29
- * {UnXF}[http://bogomips.org/unxf/] Un-X-Forward* the Rack environment,
29
+ * {UnXF}[https://bogomips.org/unxf/] Un-X-Forward* the Rack environment,
30
30
  useful since unicorn is designed to be deployed behind a reverse proxy.
31
31
 
32
32
  === unicorn is written to work with
@@ -52,5 +52,5 @@ or services behind them.
52
52
  * {Mongrel}[http://rubygems.org/gems/mongrel] - the awesome webserver
53
53
  unicorn is based on
54
54
 
55
- * {david}[http://bogomips.org/david.git] - a tool to explain why you need
55
+ * {david}[https://bogomips.org/david.git] - a tool to explain why you need
56
56
  nginx in front of unicorn
data/README CHANGED
@@ -82,7 +82,7 @@ You can get the latest source via git from the following locations
82
82
 
83
83
  You may browse the code from the web:
84
84
 
85
- * http://bogomips.org/unicorn.git
85
+ * https://bogomips.org/unicorn.git
86
86
  * http://repo.or.cz/w/unicorn.git (gitweb)
87
87
 
88
88
  See the HACKING guide on how to contribute and build prerelease gems
@@ -128,7 +128,7 @@ All feedback (bug reports, user/development dicussion, patches, pull
128
128
  requests) go to the mailing list/newsgroup. See the ISSUES document for
129
129
  information on the {mailing list}[mailto:unicorn-public@bogomips.org].
130
130
 
131
- The mailing list is archived at http://bogomips.org/unicorn-public/
131
+ The mailing list is archived at https://bogomips.org/unicorn-public/
132
132
  Read-only NNTP access is available at:
133
133
  nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn and
134
134
  nntp://news.gmane.org/gmane.comp.lang.ruby.unicorn.general
data/SIGNALS CHANGED
@@ -8,7 +8,7 @@ should be possible to easily share process management scripts between
8
8
  Unicorn and nginx.
9
9
 
10
10
  One example init script is distributed with unicorn:
11
- http://unicorn.bogomips.org/examples/init.sh
11
+ https://bogomips.org/unicorn/examples/init.sh
12
12
 
13
13
  === Master Process
14
14
 
data/TODO CHANGED
@@ -1,5 +1,3 @@
1
1
  * Documentation improvements
2
2
 
3
3
  * improve test suite
4
-
5
- * Rack 2.x support (when Rack 2.x exists)
@@ -1,2 +1,2 @@
1
- # see {Unicorn::OobGC}[http://unicorn.bogomips.org/Unicorn/OobGC.html]
1
+ # see {Unicorn::OobGC}[https://bogomips.org/unicorn/Unicorn/OobGC.html]
2
2
  # Unicorn::OobGC was broken in Unicorn v3.3.1 - v3.6.1 and fixed in v3.6.2
@@ -1,7 +1,16 @@
1
1
  #!/bin/sh
2
2
  set -e
3
+ ### BEGIN INIT INFO
4
+ # Provides: unicorn
5
+ # Required-Start: $local_fs $network
6
+ # Required-Stop: $local_fs $network
7
+ # Default-Start: 2 3 4 5
8
+ # Default-Stop: 0 1 6
9
+ # Short-Description: Start/stop unicorn Rack app server
10
+ ### END INIT INFO
11
+
3
12
  # Example init script, this can be used with nginx, too,
4
- # since nginx and unicorn accept the same signals
13
+ # since nginx and unicorn accept the same signals.
5
14
 
6
15
  # Feel free to change any of the following variables for your app:
7
16
  TIMEOUT=${TIMEOUT-60}
@@ -9,21 +18,22 @@ APP_ROOT=/home/x/my_app/current
9
18
  PID=$APP_ROOT/tmp/pids/unicorn.pid
10
19
  CMD="/usr/bin/unicorn -D -c $APP_ROOT/config/unicorn.rb"
11
20
  INIT_CONF=$APP_ROOT/config/init.conf
21
+ UPGRADE_DELAY=${UPGRADE_DELAY-2}
12
22
  action="$1"
13
23
  set -u
14
24
 
15
25
  test -f "$INIT_CONF" && . $INIT_CONF
16
26
 
17
- old_pid="$PID.oldbin"
27
+ OLD="$PID.oldbin"
18
28
 
19
29
  cd $APP_ROOT || exit 1
20
30
 
21
31
  sig () {
22
- test -s "$PID" && kill -$1 `cat $PID`
32
+ test -s "$PID" && kill -$1 $(cat $PID)
23
33
  }
24
34
 
25
35
  oldsig () {
26
- test -s $old_pid && kill -$1 `cat $old_pid`
36
+ test -s "$OLD" && kill -$1 $(cat $OLD)
27
37
  }
28
38
 
29
39
  case $action in
@@ -45,18 +55,36 @@ restart|reload)
45
55
  $CMD
46
56
  ;;
47
57
  upgrade)
48
- if sig USR2 && sleep 2 && sig 0 && oldsig QUIT
58
+ if oldsig 0
59
+ then
60
+ echo >&2 "Old upgraded process still running with $OLD"
61
+ exit 1
62
+ fi
63
+
64
+ cur_pid=
65
+ if test -s "$PID"
66
+ then
67
+ cur_pid=$(cat $PID)
68
+ fi
69
+
70
+ if test -n "$cur_pid" &&
71
+ kill -USR2 "$cur_pid" &&
72
+ sleep $UPGRADE_DELAY &&
73
+ new_pid=$(cat $PID) &&
74
+ test x"$new_pid" != x"$cur_pid" &&
75
+ kill -0 "$new_pid" &&
76
+ kill -QUIT "$cur_pid"
49
77
  then
50
78
  n=$TIMEOUT
51
- while test -s $old_pid && test $n -ge 0
79
+ while kill -0 "$cur_pid" 2>/dev/null && test $n -ge 0
52
80
  do
53
81
  printf '.' && sleep 1 && n=$(( $n - 1 ))
54
82
  done
55
83
  echo
56
84
 
57
- if test $n -lt 0 && test -s $old_pid
85
+ if test $n -lt 0 && kill -0 "$cur_pid" 2>/dev/null
58
86
  then
59
- echo >&2 "$old_pid still exists after $TIMEOUT seconds"
87
+ echo >&2 "$cur_pid still running after $TIMEOUT seconds"
60
88
  exit 1
61
89
  fi
62
90
  exit 0
@@ -112,7 +112,7 @@ http {
112
112
  # try_files directive appeared in in nginx 0.7.27 and has stabilized
113
113
  # over time. Older versions of nginx (e.g. 0.6.x) requires
114
114
  # "if (!-f $request_filename)" which was less efficient:
115
- # http://bogomips.org/unicorn.git/tree/examples/nginx.conf?id=v3.3.1#n127
115
+ # https://bogomips.org/unicorn.git/tree/examples/nginx.conf?id=v3.3.1#n127
116
116
  try_files $uri/index.html $uri.html $uri @app;
117
117
 
118
118
  location @app {
@@ -1,9 +1,9 @@
1
1
  # Minimal sample configuration file for Unicorn (not Rack) when used
2
2
  # with daemonization (unicorn -D) started in your working directory.
3
3
  #
4
- # See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
4
+ # See https://bogomips.org/unicorn/Unicorn/Configurator.html for complete
5
5
  # documentation.
6
- # See also http://unicorn.bogomips.org/examples/unicorn.conf.rb for
6
+ # See also https://bogomips.org/unicorn/examples/unicorn.conf.rb for
7
7
  # a more verbose configuration using more features.
8
8
 
9
9
  listen 2007 # by default Unicorn listens on port 8080
@@ -2,10 +2,10 @@
2
2
  #
3
3
  # This configuration file documents many features of Unicorn
4
4
  # that may not be needed for some applications. See
5
- # http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
5
+ # https://bogomips.org/unicorn/examples/unicorn.conf.minimal.rb
6
6
  # for a much simpler configuration file.
7
7
  #
8
- # See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
8
+ # See https://bogomips.org/unicorn/Unicorn/Configurator.html for complete
9
9
  # documentation.
10
10
 
11
11
  # Use at least one worker per core if you're on a dedicated server,
@@ -3,11 +3,11 @@
3
3
 
4
4
  # Implements a simple DSL for configuring a unicorn server.
5
5
  #
6
- # See http://unicorn.bogomips.org/examples/unicorn.conf.rb and
7
- # http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
6
+ # See https://bogomips.org/unicorn/examples/unicorn.conf.rb and
7
+ # https://bogomips.org/unicorn/examples/unicorn.conf.minimal.rb
8
8
  # example configuration files. An example config file for use with
9
9
  # nginx is also available at
10
- # http://unicorn.bogomips.org/examples/nginx.conf
10
+ # https://bogomips.org/unicorn/examples/nginx.conf
11
11
  #
12
12
  # See the link:/TUNING.html document for more information on tuning unicorn.
13
13
  class Unicorn::Configurator
@@ -6,7 +6,7 @@
6
6
  # forked worker children.
7
7
  #
8
8
  # Users do not need to know the internals of this class, but reading the
9
- # {source}[http://bogomips.org/unicorn.git/tree/lib/unicorn/http_server.rb]
9
+ # {source}[https://bogomips.org/unicorn.git/tree/lib/unicorn/http_server.rb]
10
10
  # is education for programmers wishing to learn how unicorn works.
11
11
  # See Unicorn::Configurator for information on how to configure unicorn.
12
12
  class Unicorn::HttpServer
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0.4.gd5fbb
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - unicorn hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2016-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -280,7 +280,7 @@ files:
280
280
  - unicorn.gemspec
281
281
  - unicorn_1
282
282
  - unicorn_rails_1
283
- homepage: http://unicorn.bogomips.org/
283
+ homepage: https://bogomips.org/unicorn/
284
284
  licenses:
285
285
  - GPL-2.0+
286
286
  - Ruby-1.8
@@ -296,12 +296,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
296
  version: '3.0'
297
297
  required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  requirements:
299
- - - ">"
299
+ - - ">="
300
300
  - !ruby/object:Gem::Version
301
- version: 1.3.1
301
+ version: '0'
302
302
  requirements: []
303
303
  rubyforge_project:
304
- rubygems_version: 2.6.6
304
+ rubygems_version: 2.6.7
305
305
  signing_key:
306
306
  specification_version: 4
307
307
  summary: Rack HTTP server for fast clients and Unix