rainbows 4.6.0 → 4.6.0.4.g4108

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0a04a0be7fa2546575ba16568b1113805e1dd61a
4
+ data.tar.gz: 39a5cc84491da5afedf122f17e16d86701e06130
5
+ SHA512:
6
+ metadata.gz: a97f62163a9df0e5ce2ffef168a4f0c7aa5d0a2d116cdf3dccac214d26e575b2d8eafd1b39cea112f34c13a1efb4e795ed83aeab969ce28cb22b319a40b79840
7
+ data.tar.gz: f9a177b903cb1246c8f17f23e2dbb964672fbb3021be507c2044cd5240c08c0a284999280fbdda2a51e31bd3c541e8f5aecff78ac40c00d40343467ae99bfdcd
data/GIT-VERSION-FILE CHANGED
@@ -1 +1 @@
1
- GIT_VERSION = 4.6.0
1
+ GIT_VERSION = 4.6.0.4.g4108
data/bin/rainbows CHANGED
File without changes
@@ -88,7 +88,17 @@ module Rainbows::EventMachine
88
88
  raise RuntimeError, "EM @conns instance variable not accessible!"
89
89
  Rainbows::EventMachine::Server.const_set(:CUR, conns)
90
90
  Rainbows.at_quit do
91
- EM.next_tick { conns.each_value { |c| client_class === c and c.quit } }
91
+ EM.next_tick do
92
+ LISTENERS.clear
93
+ conns.each_value do |c|
94
+ case c
95
+ when client_class
96
+ c.quit
97
+ when Rainbows::EventMachine::Server
98
+ c.detach
99
+ end
100
+ end
101
+ end
92
102
  end
93
103
  EM.add_periodic_timer(1) do
94
104
  EM.stop if ! Rainbows.tick && conns.empty? && EM.reactor_running?
@@ -1 +1 @@
1
- Rainbows::Const::RAINBOWS_VERSION = '4.6.0'
1
+ Rainbows::Const::RAINBOWS_VERSION = '4.6.0.4.g4108'
data/man/man1/rainbows.1 CHANGED
@@ -7,44 +7,40 @@ rainbows - rackup-like command to launch Rainbows!
7
7
  rainbows [-c CONFIG_FILE] [-E RACK_ENV] [-D] [RACKUP_FILE]
8
8
  .SH DESCRIPTION
9
9
  .PP
10
- A rackup(1)-like command to launch Rack applications using
11
- Rainbows!.
12
- It is expected to be started in your application root (APP_ROOT),
13
- but the \[lq]working_directory\[rq] directive may be used in the
14
- CONFIG_FILE.
10
+ A rackup(1)-like command to launch Rack applications using Rainbows!.
11
+ It is expected to be started in your application root (APP_ROOT), but
12
+ the "working_directory" directive may be used in the CONFIG_FILE.
15
13
  .PP
16
- While Rainbows! takes a myriad of command-line options for
17
- compatibility with ruby(1) and rackup(1), it is recommended to
18
- stick to the few command-line options specified in the SYNOPSIS and
19
- use the CONFIG_FILE as much as possible.
14
+ While Rainbows! takes a myriad of command-line options for compatibility
15
+ with ruby(1) and rackup(1), it is recommended to stick to the few
16
+ command-line options specified in the SYNOPSIS and use the CONFIG_FILE
17
+ as much as possible.
20
18
  .SH RACKUP FILE
21
19
  .PP
22
20
  This defaults to "config.ru" in APP_ROOT.
23
- It should be the same file used by rackup(1) and other Rack
24
- launchers, it uses the \f[I]Rack::Builder\f[] DSL.
21
+ It should be the same file used by rackup(1) and other Rack launchers,
22
+ it uses the \f[I]Rack::Builder\f[] DSL.
25
23
  .PP
26
- Embedded command-line options are mostly parsed for compatibility
27
- with rackup(1) but strongly discouraged.
24
+ Embedded command-line options are mostly parsed for compatibility with
25
+ rackup(1) but strongly discouraged.
28
26
  .SH UNICORN OPTIONS
29
27
  .TP
30
28
  .B -c, --config-file CONFIG_FILE
31
29
  Path to the Unicorn-specific config file.
32
- The config file is implemented as a Ruby DSL, so Ruby code may
33
- executed.
34
- See the RDoc/ri for the \f[I]Unicorn::Configurator\f[] class for
35
- the full list of directives available from the DSL.
30
+ The config file is implemented as a Ruby DSL, so Ruby code may executed.
31
+ See the RDoc/ri for the \f[I]Unicorn::Configurator\f[] class for the
32
+ full list of directives available from the DSL.
36
33
  .RS
37
34
  .RE
38
35
  .TP
39
36
  .B -D, --daemonize
40
37
  Run daemonized in the background.
41
38
  The process is detached from the controlling terminal and stdin is
42
- redirected to \[lq]/dev/null\[rq].
39
+ redirected to "/dev/null".
43
40
  Unlike many common UNIX daemons, we do not chdir to "/" upon
44
- daemonization to allow more control over the startup/upgrade
45
- process.
41
+ daemonization to allow more control over the startup/upgrade process.
46
42
  Unless specified in the CONFIG_FILE, stderr and stdout will also be
47
- redirected to \[lq]/dev/null\[rq].
43
+ redirected to "/dev/null".
48
44
  .RS
49
45
  .RE
50
46
  .TP
@@ -56,35 +52,40 @@ See the RACK ENVIRONMENT section for more details.
56
52
  .TP
57
53
  .B -l, --listen ADDRESS
58
54
  Listens on a given ADDRESS.
59
- ADDRESS may be in the form of HOST:PORT or PATH, HOST:PORT is taken
60
- to mean a TCP socket and PATH is meant to be a path to a UNIX
61
- domain socket.
62
- Defaults to \[lq]0.0.0.0:8080\[rq] (all addresses on TCP port 8080)
63
- For production deployments, specifying the \[lq]listen\[rq]
64
- directive in CONFIG_FILE is recommended as it allows fine-tuning of
65
- socket options.
55
+ ADDRESS may be in the form of HOST:PORT or PATH, HOST:PORT is taken to
56
+ mean a TCP socket and PATH is meant to be a path to a UNIX domain
57
+ socket.
58
+ Defaults to "0.0.0.0:8080" (all addresses on TCP port 8080) For
59
+ production deployments, specifying the "listen" directive in CONFIG_FILE
60
+ is recommended as it allows fine-tuning of socket options.
61
+ .RS
62
+ .RE
63
+ .TP
64
+ .B -N, --no-default-middleware
65
+ Disables loading middleware implied by RACK_ENV.
66
+ This bypasses the configuration documented in the RACK ENVIRONMENT
67
+ section, but still allows RACK_ENV to be used for
68
+ application/framework-specific purposes.
66
69
  .RS
67
70
  .RE
68
71
  .SH RACKUP COMPATIBILITY OPTIONS
69
72
  .TP
70
73
  .B -o, --host HOST
71
- Listen on a TCP socket belonging to HOST, default is
72
- \[lq]0.0.0.0\[rq] (all addresses).
73
- If specified multiple times on the command-line, only the
74
- last-specified value takes effect.
75
- This option only exists for compatibility with the rackup(1)
76
- command, use of \[lq]-l\[rq]/\[lq]--listen\[rq] switch is
77
- recommended instead.
74
+ Listen on a TCP socket belonging to HOST, default is "0.0.0.0" (all
75
+ addresses).
76
+ If specified multiple times on the command-line, only the last-specified
77
+ value takes effect.
78
+ This option only exists for compatibility with the rackup(1) command,
79
+ use of "-l"/"--listen" switch is recommended instead.
78
80
  .RS
79
81
  .RE
80
82
  .TP
81
83
  .B -p, --port PORT
82
84
  Listen on the specified TCP PORT, default is 8080.
83
- If specified multiple times on the command-line, only the
84
- last-specified value takes effect.
85
- This option only exists for compatibility with the rackup(1)
86
- command, use of \[lq]-l\[rq]/\[lq]--listen\[rq] switch is
87
- recommended instead.
85
+ If specified multiple times on the command-line, only the last-specified
86
+ value takes effect.
87
+ This option only exists for compatibility with the rackup(1) command,
88
+ use of "-l"/"--listen" switch is recommended instead.
88
89
  .RS
89
90
  .RE
90
91
  .TP
@@ -96,8 +97,7 @@ No-op, this exists only for compatibility with rackup(1).
96
97
  .TP
97
98
  .B -e, --eval LINE
98
99
  Evaluate a LINE of Ruby code.
99
- This evaluation happens immediately as the command-line is being
100
- parsed.
100
+ This evaluation happens immediately as the command-line is being parsed.
101
101
  .RS
102
102
  .RE
103
103
  .TP
@@ -114,18 +114,17 @@ Turn on verbose warnings, the $VERBOSE variable is set to true.
114
114
  .B -I, --include PATH
115
115
  specify $LOAD_PATH.
116
116
  PATH will be prepended to $LOAD_PATH.
117
- The \[aq]:\[aq] character may be used to delimit multiple
118
- directories.
117
+ The \[aq]:\[aq] character may be used to delimit multiple directories.
119
118
  This directive may be used more than once.
120
- Modifications to $LOAD_PATH take place immediately and in the order
121
- they were specified on the command-line.
119
+ Modifications to $LOAD_PATH take place immediately and in the order they
120
+ were specified on the command-line.
122
121
  .RS
123
122
  .RE
124
123
  .TP
125
124
  .B -r, --require LIBRARY
126
125
  require a specified LIBRARY before executing the application.
127
- The "require" statement will be executed immediately and in the
128
- order they were specified on the command-line.
126
+ The "require" statement will be executed immediately and in the order
127
+ they were specified on the command-line.
129
128
  .RS
130
129
  .RE
131
130
  .SH SIGNALS
@@ -143,8 +142,8 @@ USR1 - reopen all logs owned by the master and all workers See
143
142
  Unicorn::Util.reopen_logs for what is considered a log.
144
143
  .IP \[bu] 2
145
144
  USR2 - reexecute the running binary.
146
- A separate QUIT should be sent to the original process once the
147
- child is verified to be up and running.
145
+ A separate QUIT should be sent to the original process once the child is
146
+ verified to be up and running.
148
147
  .IP \[bu] 2
149
148
  WINCH - gracefully stops workers but keep the master running.
150
149
  This will only work for daemonized processes.
@@ -153,12 +152,12 @@ TTIN - increment the number of worker processes by one
153
152
  .IP \[bu] 2
154
153
  TTOU - decrement the number of worker processes by one
155
154
  .PP
156
- See the SIGNALS (http://rainbows.rubyforge.org/SIGNALS.html)
157
- document for full description of all signals used by Rainbows!.
155
+ See the SIGNALS (http://rainbows.bogomips.org/SIGNALS.html) document for
156
+ full description of all signals used by Rainbows!.
158
157
  .SH RACK ENVIRONMENT
159
158
  .PP
160
- Accepted values of RACK_ENV and the middleware they automatically
161
- load (outside of RACKUP_FILE) are exactly as those in rackup(1):
159
+ Accepted values of RACK_ENV and the middleware they automatically load
160
+ (outside of RACKUP_FILE) are exactly as those in rackup(1):
162
161
  .IP \[bu] 2
163
162
  development - loads Rack::CommonLogger, Rack::ShowExceptions, and
164
163
  Rack::Lint middleware
@@ -167,15 +166,15 @@ deployment - loads Rack::CommonLogger middleware
167
166
  .IP \[bu] 2
168
167
  none - loads no middleware at all, relying entirely on RACKUP_FILE
169
168
  .PP
170
- All unrecognized values for RACK_ENV are assumed to be
171
- \[lq]none\[rq].
172
- Production deployments are strongly encouraged to use
173
- \[lq]deployment\[rq] or \[lq]none\[rq] for maximum performance.
169
+ All unrecognized values for RACK_ENV are assumed to be "none".
170
+ Production deployments are strongly encouraged to use "deployment" or
171
+ "none" for maximum performance.
174
172
  .PP
175
- Note that the Rack::ContentLength and Rack::Chunked middlewares are
176
- never loaded by default.
177
- If needed, they should be individually specified in the
178
- RACKUP_FILE, some frameworks do not require them.
173
+ Note the Rack::ContentLength and Rack::Chunked middlewares are also
174
+ loaded by "deployment" and "development", but no other values of
175
+ RACK_ENV.
176
+ If needed, they must be individually specified in the RACKUP_FILE, some
177
+ frameworks do not require them.
179
178
  .SH SEE ALSO
180
179
  .IP \[bu] 2
181
180
  unicorn(1)
@@ -184,10 +183,10 @@ unicorn(1)
184
183
  .IP \[bu] 2
185
184
  \f[I]Unicorn::Configurator\f[] ri/RDoc
186
185
  .IP \[bu] 2
187
- Rainbows! RDoc (http://rainbows.rubyforge.org/)
186
+ Rainbows! RDoc (http://rainbows.bogomips.org/)
188
187
  .IP \[bu] 2
189
188
  Rack RDoc (http://rack.rubyforge.org/doc/)
190
189
  .IP \[bu] 2
191
190
  Rackup HowTo (http://wiki.github.com/rack/rack/tutorial-rackup-howto)
192
- .SH AUTHOR
193
- Rainbows! Hackers <rainbows-talk@rubyforge.org>
191
+ .SH AUTHORS
192
+ Rainbows! Hackers <rainbows-talk@rubyforge.org>.
data/t/GNUmakefile CHANGED
@@ -35,7 +35,7 @@ models += StreamResponseEpoll
35
35
 
36
36
  ifeq ($(RUBY_ENGINE),ruby)
37
37
  rp := )
38
- ONENINE := $(shell case $(RUBY_VERSION) in 1.9.*|2.0.*$(rp) echo true;;esac)
38
+ ONENINE := $(shell case $(RUBY_VERSION) in 1.9.*|2.*$(rp) echo true;;esac)
39
39
  ifeq ($(ONENINE),true)
40
40
  ifeq ($(RUBY_VERSION),1.9.2)
41
41
  models += Revactor
@@ -46,13 +46,8 @@ ifeq ($(RUBY_ENGINE),ruby)
46
46
  models += CoolioThreadSpawn
47
47
  models += CoolioFiberSpawn
48
48
 
49
- # EventMachine 1.0.0 currently does not build on Ruby 2.0.0
50
- # NeverBlock depends on 2.0.0
51
- RBTWO := $(shell case $(RUBY_VERSION) in 2.0.*$(rp) echo true;;esac)
52
- ifeq ($(RBTWO),)
53
- models += EventMachine
54
- models += NeverBlock
55
- endif
49
+ models += EventMachine
50
+ models += NeverBlock
56
51
  endif
57
52
  endif
58
53
 
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  . ./test-lib.sh
3
3
  case $model in
4
- EventMachine) ;;
4
+ disabled) ;;
5
5
  *)
6
6
  t_info "skipping $T since it's not compatible with $model"
7
7
  exit 0
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  . ./test-lib.sh
3
3
  case $model in
4
- EventMachine) ;;
4
+ disabled) ;;
5
5
  *)
6
6
  t_info "skipping $T since it's not compatible with $model"
7
7
  exit 0
data/t/test_isolate.rb CHANGED
@@ -26,7 +26,7 @@ Isolate.now!(opts) do
26
26
  gem 'sendfile', '1.2.1'
27
27
  gem 'cool.io', '1.1.0'
28
28
 
29
- gem 'eventmachine', '1.0.0'
29
+ gem 'eventmachine', '1.0.3'
30
30
  gem 'sinatra', '1.3.3'
31
31
  gem 'async_sinatra', '1.0.0'
32
32
 
metadata CHANGED
@@ -1,133 +1,92 @@
1
1
  --- !ruby/object:Gem::Specification
2
- name: !binary |-
3
- cmFpbmJvd3M=
2
+ name: rainbows
4
3
  version: !ruby/object:Gem::Version
5
- version: 4.6.0
6
- prerelease:
4
+ version: 4.6.0.4.g4108
7
5
  platform: ruby
8
6
  authors:
9
7
  - Rainbows! hackers
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2014-01-17 00:00:00.000000000 Z
11
+ date: 2014-01-29 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
- name: !binary |-
17
- cmFjaw==
14
+ name: rack
18
15
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
16
  requirements:
21
- - - !binary |-
22
- fj4=
17
+ - - "~>"
23
18
  - !ruby/object:Gem::Version
24
- version: !binary |-
25
- MS4x
19
+ version: '1.1'
26
20
  type: :runtime
27
21
  prerelease: false
28
22
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
23
  requirements:
31
- - - !binary |-
32
- fj4=
24
+ - - "~>"
33
25
  - !ruby/object:Gem::Version
34
- version: !binary |-
35
- MS4x
26
+ version: '1.1'
36
27
  - !ruby/object:Gem::Dependency
37
- name: !binary |-
38
- a2dpbw==
28
+ name: kgio
39
29
  requirement: !ruby/object:Gem::Requirement
40
- none: false
41
30
  requirements:
42
- - - !binary |-
43
- fj4=
31
+ - - "~>"
44
32
  - !ruby/object:Gem::Version
45
- version: !binary |-
46
- Mi41
33
+ version: '2.5'
47
34
  type: :runtime
48
35
  prerelease: false
49
36
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
37
  requirements:
52
- - - !binary |-
53
- fj4=
38
+ - - "~>"
54
39
  - !ruby/object:Gem::Version
55
- version: !binary |-
56
- Mi41
40
+ version: '2.5'
57
41
  - !ruby/object:Gem::Dependency
58
- name: !binary |-
59
- dW5pY29ybg==
42
+ name: unicorn
60
43
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
44
  requirements:
63
- - - !binary |-
64
- fj4=
45
+ - - "~>"
65
46
  - !ruby/object:Gem::Version
66
- version: !binary |-
67
- NC44
47
+ version: '4.8'
68
48
  type: :runtime
69
49
  prerelease: false
70
50
  version_requirements: !ruby/object:Gem::Requirement
71
- none: false
72
51
  requirements:
73
- - - !binary |-
74
- fj4=
52
+ - - "~>"
75
53
  - !ruby/object:Gem::Version
76
- version: !binary |-
77
- NC44
54
+ version: '4.8'
78
55
  - !ruby/object:Gem::Dependency
79
- name: !binary |-
80
- aXNvbGF0ZQ==
56
+ name: isolate
81
57
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
58
  requirements:
84
- - - !binary |-
85
- fj4=
59
+ - - "~>"
86
60
  - !ruby/object:Gem::Version
87
- version: !binary |-
88
- My4x
61
+ version: '3.1'
89
62
  type: :development
90
63
  prerelease: false
91
64
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
65
  requirements:
94
- - - !binary |-
95
- fj4=
66
+ - - "~>"
96
67
  - !ruby/object:Gem::Version
97
- version: !binary |-
98
- My4x
68
+ version: '3.1'
99
69
  - !ruby/object:Gem::Dependency
100
- name: !binary |-
101
- d3Jvbmdkb2M=
70
+ name: wrongdoc
102
71
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
72
  requirements:
105
- - - !binary |-
106
- fj4=
73
+ - - "~>"
107
74
  - !ruby/object:Gem::Version
108
- version: !binary |-
109
- MS42
75
+ version: '1.6'
110
76
  type: :development
111
77
  prerelease: false
112
78
  version_requirements: !ruby/object:Gem::Requirement
113
- none: false
114
79
  requirements:
115
- - - !binary |-
116
- fj4=
80
+ - - "~>"
117
81
  - !ruby/object:Gem::Version
118
- version: !binary |-
119
- MS42
120
- description: ! '\Rainbows! is an HTTP server for sleepy Rack applications. It is
121
- based on
122
-
82
+ version: '1.6'
83
+ description: |-
84
+ \Rainbows! is an HTTP server for sleepy Rack applications. It is based on
123
85
  Unicorn, but designed to handle applications that expect long
124
-
125
- request/response times and/or slow clients.'
126
- email: !binary |-
127
- cmFpbmJvd3MtdGFsa0BydWJ5Zm9yZ2Uub3Jn
86
+ request/response times and/or slow clients.
87
+ email: rainbows-talk@rubyforge.org
128
88
  executables:
129
- - !binary |-
130
- cmFpbmJvd3M=
89
+ - rainbows
131
90
  extensions: []
132
91
  extra_rdoc_files:
133
92
  - ChangeLog
@@ -179,10 +138,10 @@ extra_rdoc_files:
179
138
  - Sandbox
180
139
  - HACKING
181
140
  files:
182
- - .document
183
- - .gitignore
184
- - .manifest
185
- - .wrongdoc.yml
141
+ - ".document"
142
+ - ".gitignore"
143
+ - ".manifest"
144
+ - ".wrongdoc.yml"
186
145
  - COPYING
187
146
  - ChangeLog
188
147
  - DEPLOY
@@ -467,35 +426,31 @@ files:
467
426
  - vs_Unicorn
468
427
  homepage: http://rainbows.bogomips.org/
469
428
  licenses:
470
- - !binary |-
471
- R1BMdjIr
472
- - !binary |-
473
- UnVieSAxLjg=
429
+ - GPLv2+
430
+ - Ruby 1.8
431
+ metadata: {}
474
432
  post_install_message:
475
433
  rdoc_options:
476
- - -t
434
+ - "-t"
477
435
  - Rainbows! - Unicorn for sleepy apps and slow clients
478
- - -W
436
+ - "-W"
479
437
  - http://bogomips.org/rainbows.git/tree/%s
480
438
  require_paths:
481
439
  - lib
482
440
  required_ruby_version: !ruby/object:Gem::Requirement
483
- none: false
484
441
  requirements:
485
- - - ! '>='
442
+ - - ">="
486
443
  - !ruby/object:Gem::Version
487
444
  version: '0'
488
445
  required_rubygems_version: !ruby/object:Gem::Requirement
489
- none: false
490
446
  requirements:
491
- - - ! '>='
447
+ - - ">"
492
448
  - !ruby/object:Gem::Version
493
- version: '0'
449
+ version: 1.3.1
494
450
  requirements: []
495
- rubyforge_project: !binary |-
496
- cmFpbmJvd3M=
497
- rubygems_version: 1.8.23
451
+ rubyforge_project: rainbows
452
+ rubygems_version: 2.2.0
498
453
  signing_key:
499
- specification_version: 3
500
- summary: ! '- Unicorn for sleepy apps and slow clients'
454
+ specification_version: 4
455
+ summary: "- Unicorn for sleepy apps and slow clients"
501
456
  test_files: []