rack 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rack might be problematic. Click here for more details.
- data/AUTHORS +3 -0
- data/COPYING +18 -0
- data/KNOWN-ISSUES +18 -0
- data/RDOX +144 -0
- data/README +154 -0
- data/Rakefile +174 -0
- data/SPEC +132 -0
- data/bin/rackup +148 -0
- data/contrib/rack_logo.svg +111 -0
- data/example/lobster.ru +4 -0
- data/lib/rack.rb +67 -0
- data/lib/rack/adapter/camping.rb +16 -0
- data/lib/rack/adapter/rails.rb +65 -0
- data/lib/rack/builder.rb +52 -0
- data/lib/rack/cascade.rb +26 -0
- data/lib/rack/commonlogger.rb +56 -0
- data/lib/rack/file.rb +108 -0
- data/lib/rack/handler/cgi.rb +57 -0
- data/lib/rack/handler/fastcgi.rb +81 -0
- data/lib/rack/handler/mongrel.rb +57 -0
- data/lib/rack/handler/webrick.rb +56 -0
- data/lib/rack/lint.rb +394 -0
- data/lib/rack/lobster.rb +65 -0
- data/lib/rack/mock.rb +183 -0
- data/lib/rack/recursive.rb +57 -0
- data/lib/rack/reloader.rb +64 -0
- data/lib/rack/request.rb +112 -0
- data/lib/rack/response.rb +114 -0
- data/lib/rack/showexceptions.rb +344 -0
- data/lib/rack/urlmap.rb +50 -0
- data/lib/rack/utils.rb +176 -0
- data/test/cgi/lighttpd.conf +20 -0
- data/test/cgi/test +9 -0
- data/test/cgi/test.fcgi +9 -0
- data/test/cgi/test.ru +7 -0
- data/test/spec_rack_camping.rb +44 -0
- data/test/spec_rack_cascade.rb +35 -0
- data/test/spec_rack_cgi.rb +82 -0
- data/test/spec_rack_commonlogger.rb +32 -0
- data/test/spec_rack_fastcgi.rb +82 -0
- data/test/spec_rack_file.rb +32 -0
- data/test/spec_rack_lint.rb +317 -0
- data/test/spec_rack_lobster.rb +45 -0
- data/test/spec_rack_mock.rb +150 -0
- data/test/spec_rack_mongrel.rb +87 -0
- data/test/spec_rack_recursive.rb +77 -0
- data/test/spec_rack_request.rb +219 -0
- data/test/spec_rack_response.rb +110 -0
- data/test/spec_rack_showexceptions.rb +21 -0
- data/test/spec_rack_urlmap.rb +140 -0
- data/test/spec_rack_utils.rb +57 -0
- data/test/spec_rack_webrick.rb +89 -0
- data/test/testrequest.rb +43 -0
- metadata +117 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
require 'rack/request'
|
2
|
+
require 'rack/utils'
|
3
|
+
|
4
|
+
module Rack
|
5
|
+
# Rack::Request provides a convenient interface to create a Rack
|
6
|
+
# response.
|
7
|
+
#
|
8
|
+
# It allows setting of headers and cookies, and provides useful
|
9
|
+
# defaults (a OK response containing HTML).
|
10
|
+
#
|
11
|
+
# You can use Request#write to iteratively generate your response,
|
12
|
+
# but note that this is buffered by Rack::Request until you call
|
13
|
+
# +finish+. +finish+ however can take a block inside which calls to
|
14
|
+
# +write+ are syncronous with the Rack response.
|
15
|
+
#
|
16
|
+
# Your application's +call+ should end returning Request#finish.
|
17
|
+
|
18
|
+
class Response
|
19
|
+
def initialize(body=[], status=200, header={}, &block)
|
20
|
+
@status = status
|
21
|
+
@header = Utils::HeaderHash.new({"Content-Type" => "text/html"}.
|
22
|
+
merge(header))
|
23
|
+
|
24
|
+
@writer = lambda { |x| @body << x }
|
25
|
+
|
26
|
+
@body = []
|
27
|
+
|
28
|
+
if body.kind_of?(String)
|
29
|
+
write body
|
30
|
+
elsif body.respond_to?(:each)
|
31
|
+
body.each { |part|
|
32
|
+
write part.to_s
|
33
|
+
}
|
34
|
+
else
|
35
|
+
raise TypeError, "String or iterable required"
|
36
|
+
end
|
37
|
+
|
38
|
+
yield self if block_given?
|
39
|
+
end
|
40
|
+
|
41
|
+
attr_reader :header
|
42
|
+
attr_accessor :status, :body
|
43
|
+
|
44
|
+
def [](key)
|
45
|
+
header[key]
|
46
|
+
end
|
47
|
+
|
48
|
+
def []=(key, value)
|
49
|
+
header[key] = value
|
50
|
+
end
|
51
|
+
|
52
|
+
def set_cookie(key, value)
|
53
|
+
case value
|
54
|
+
when Hash
|
55
|
+
domain = "; domain=" + value[:domain] if value[:domain]
|
56
|
+
path = "; path=" + value[:path] if value[:path]
|
57
|
+
expires = "; expires=" + value[:expires].clone.gmtime.
|
58
|
+
strftime("%a, %d %b %Y %H:%M:%S GMT") if value[:expires]
|
59
|
+
value = value[:value]
|
60
|
+
end
|
61
|
+
value = [value] unless Array === value
|
62
|
+
cookie = Utils.escape(key) + "=" +
|
63
|
+
value.map { |v| Utils.escape v }.join("&") +
|
64
|
+
"#{domain}#{path}#{expires}"
|
65
|
+
|
66
|
+
case self["Set-Cookie"]
|
67
|
+
when Array
|
68
|
+
self["Set-Cookie"] << cookie
|
69
|
+
when String
|
70
|
+
self["Set-Cookie"] = [self["Set-Cookie"], cookie]
|
71
|
+
when nil
|
72
|
+
self["Set-Cookie"] = cookie
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def delete_cookie(key, value={})
|
77
|
+
unless Array === self["Set-Cookie"]
|
78
|
+
self["Set-Cookie"] = [self["Set-Cookie"]]
|
79
|
+
end
|
80
|
+
|
81
|
+
self["Set-Cookie"].reject! { |cookie|
|
82
|
+
cookie =~ /\A#{Utils.escape(key)}=/
|
83
|
+
}
|
84
|
+
|
85
|
+
set_cookie(key,
|
86
|
+
{:value => '', :path => nil, :domain => nil,
|
87
|
+
:expires => Time.at(0) }.merge(value))
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
def finish(&block)
|
92
|
+
@block = block
|
93
|
+
|
94
|
+
if [201, 204, 304].include?(status.to_i)
|
95
|
+
header.delete "Content-Type"
|
96
|
+
[status.to_i, header.to_hash, []]
|
97
|
+
else
|
98
|
+
[status.to_i, header.to_hash, self]
|
99
|
+
end
|
100
|
+
end
|
101
|
+
alias to_a finish # For *response
|
102
|
+
|
103
|
+
def each(&callback)
|
104
|
+
@body.each(&callback)
|
105
|
+
@writer = callback
|
106
|
+
@block.call(self) if @block
|
107
|
+
end
|
108
|
+
|
109
|
+
def write(str)
|
110
|
+
@writer.call str
|
111
|
+
str
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,344 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
require 'erb'
|
3
|
+
require 'rack/request'
|
4
|
+
|
5
|
+
module Rack
|
6
|
+
# Rack::ShowExceptions catches all exceptions raised from the app it
|
7
|
+
# wraps. It shows a useful backtrace with the sourcefile and
|
8
|
+
# clickable context, the whole Rack environment and the request
|
9
|
+
# data.
|
10
|
+
#
|
11
|
+
# Be careful when you use this on public-facing sites as it could
|
12
|
+
# reveal information helpful to attackers.
|
13
|
+
|
14
|
+
class ShowExceptions
|
15
|
+
CONTEXT = 7
|
16
|
+
|
17
|
+
def initialize(app)
|
18
|
+
@app = app
|
19
|
+
@template = ERB.new(TEMPLATE)
|
20
|
+
end
|
21
|
+
|
22
|
+
def call(env)
|
23
|
+
@app.call(env)
|
24
|
+
rescue StandardError, LoadError, SyntaxError => e
|
25
|
+
[500, {"Content-Type" => "text/html"}, pretty(env, e)]
|
26
|
+
end
|
27
|
+
|
28
|
+
def pretty(env, exception)
|
29
|
+
req = Rack::Request.new(env)
|
30
|
+
path = (req.script_name + req.path_info).squeeze("/")
|
31
|
+
|
32
|
+
frames = exception.backtrace.map { |line|
|
33
|
+
frame = OpenStruct.new
|
34
|
+
if line =~ /(.*?):(\d+)(:in `(.*)')?/
|
35
|
+
frame.filename = $1
|
36
|
+
frame.lineno = $2.to_i
|
37
|
+
frame.function = $4
|
38
|
+
|
39
|
+
begin
|
40
|
+
lineno = frame.lineno-1
|
41
|
+
lines = ::File.readlines(frame.filename)
|
42
|
+
frame.pre_context_lineno = [lineno-CONTEXT, 0].max
|
43
|
+
frame.pre_context = lines[frame.pre_context_lineno...lineno]
|
44
|
+
frame.context_line = lines[lineno].chomp
|
45
|
+
frame.post_context_lineno = [lineno+CONTEXT, lines.size].min
|
46
|
+
frame.post_context = lines[lineno+1..frame.post_context_lineno]
|
47
|
+
rescue
|
48
|
+
end
|
49
|
+
|
50
|
+
frame
|
51
|
+
else
|
52
|
+
nil
|
53
|
+
end
|
54
|
+
}.compact
|
55
|
+
|
56
|
+
env["rack.errors"].puts "#{exception.class}: #{exception.message}"
|
57
|
+
env["rack.errors"].puts exception.backtrace.map { |l| "\t" + l }
|
58
|
+
env["rack.errors"].flush
|
59
|
+
|
60
|
+
[@template.result(binding)]
|
61
|
+
end
|
62
|
+
|
63
|
+
def h(obj)
|
64
|
+
case obj
|
65
|
+
when String
|
66
|
+
Utils.escape_html(obj)
|
67
|
+
else
|
68
|
+
Utils.escape_html(obj.inspect)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# :stopdoc:
|
73
|
+
|
74
|
+
# adapted from Django <djangoproject.com>
|
75
|
+
# Copyright (c) 2005, the Lawrence Journal-World
|
76
|
+
# Used under the modified BSD license:
|
77
|
+
# http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5
|
78
|
+
TEMPLATE = <<'HTML'
|
79
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
80
|
+
<html lang="en">
|
81
|
+
<head>
|
82
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
83
|
+
<meta name="robots" content="NONE,NOARCHIVE" />
|
84
|
+
<title><%=h exception.class %> at <%=h path %></title>
|
85
|
+
<style type="text/css">
|
86
|
+
html * { padding:0; margin:0; }
|
87
|
+
body * { padding:10px 20px; }
|
88
|
+
body * * { padding:0; }
|
89
|
+
body { font:small sans-serif; }
|
90
|
+
body>div { border-bottom:1px solid #ddd; }
|
91
|
+
h1 { font-weight:normal; }
|
92
|
+
h2 { margin-bottom:.8em; }
|
93
|
+
h2 span { font-size:80%; color:#666; font-weight:normal; }
|
94
|
+
h3 { margin:1em 0 .5em 0; }
|
95
|
+
h4 { margin:0 0 .5em 0; font-weight: normal; }
|
96
|
+
table {
|
97
|
+
border:1px solid #ccc; border-collapse: collapse; background:white; }
|
98
|
+
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
99
|
+
thead th {
|
100
|
+
padding:1px 6px 1px 3px; background:#fefefe; text-align:left;
|
101
|
+
font-weight:normal; font-size:11px; border:1px solid #ddd; }
|
102
|
+
tbody th { text-align:right; color:#666; padding-right:.5em; }
|
103
|
+
table.vars { margin:5px 0 2px 40px; }
|
104
|
+
table.vars td, table.req td { font-family:monospace; }
|
105
|
+
table td.code { width:100%;}
|
106
|
+
table td.code div { overflow:hidden; }
|
107
|
+
table.source th { color:#666; }
|
108
|
+
table.source td {
|
109
|
+
font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
|
110
|
+
ul.traceback { list-style-type:none; }
|
111
|
+
ul.traceback li.frame { margin-bottom:1em; }
|
112
|
+
div.context { margin: 10px 0; }
|
113
|
+
div.context ol {
|
114
|
+
padding-left:30px; margin:0 10px; list-style-position: inside; }
|
115
|
+
div.context ol li {
|
116
|
+
font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
|
117
|
+
div.context ol.context-line li { color:black; background-color:#ccc; }
|
118
|
+
div.context ol.context-line li span { float: right; }
|
119
|
+
div.commands { margin-left: 40px; }
|
120
|
+
div.commands a { color:black; text-decoration:none; }
|
121
|
+
#summary { background: #ffc; }
|
122
|
+
#summary h2 { font-weight: normal; color: #666; }
|
123
|
+
#summary ul#quicklinks { list-style-type: none; margin-bottom: 2em; }
|
124
|
+
#summary ul#quicklinks li { float: left; padding: 0 1em; }
|
125
|
+
#summary ul#quicklinks>li+li { border-left: 1px #666 solid; }
|
126
|
+
#explanation { background:#eee; }
|
127
|
+
#template, #template-not-exist { background:#f6f6f6; }
|
128
|
+
#template-not-exist ul { margin: 0 0 0 20px; }
|
129
|
+
#traceback { background:#eee; }
|
130
|
+
#requestinfo { background:#f6f6f6; padding-left:120px; }
|
131
|
+
#summary table { border:none; background:transparent; }
|
132
|
+
#requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
|
133
|
+
#requestinfo h3 { margin-bottom:-1em; }
|
134
|
+
.error { background: #ffc; }
|
135
|
+
.specific { color:#cc3300; font-weight:bold; }
|
136
|
+
</style>
|
137
|
+
<script type="text/javascript">
|
138
|
+
//<!--
|
139
|
+
function getElementsByClassName(oElm, strTagName, strClassName){
|
140
|
+
// Written by Jonathan Snook, http://www.snook.ca/jon;
|
141
|
+
// Add-ons by Robert Nyman, http://www.robertnyman.com
|
142
|
+
var arrElements = (strTagName == "*" && document.all)? document.all :
|
143
|
+
oElm.getElementsByTagName(strTagName);
|
144
|
+
var arrReturnElements = new Array();
|
145
|
+
strClassName = strClassName.replace(/\-/g, "\\-");
|
146
|
+
var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$$)");
|
147
|
+
var oElement;
|
148
|
+
for(var i=0; i<arrElements.length; i++){
|
149
|
+
oElement = arrElements[i];
|
150
|
+
if(oRegExp.test(oElement.className)){
|
151
|
+
arrReturnElements.push(oElement);
|
152
|
+
}
|
153
|
+
}
|
154
|
+
return (arrReturnElements)
|
155
|
+
}
|
156
|
+
function hideAll(elems) {
|
157
|
+
for (var e = 0; e < elems.length; e++) {
|
158
|
+
elems[e].style.display = 'none';
|
159
|
+
}
|
160
|
+
}
|
161
|
+
window.onload = function() {
|
162
|
+
hideAll(getElementsByClassName(document, 'table', 'vars'));
|
163
|
+
hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
|
164
|
+
hideAll(getElementsByClassName(document, 'ol', 'post-context'));
|
165
|
+
}
|
166
|
+
function toggle() {
|
167
|
+
for (var i = 0; i < arguments.length; i++) {
|
168
|
+
var e = document.getElementById(arguments[i]);
|
169
|
+
if (e) {
|
170
|
+
e.style.display = e.style.display == 'none' ? 'block' : 'none';
|
171
|
+
}
|
172
|
+
}
|
173
|
+
return false;
|
174
|
+
}
|
175
|
+
function varToggle(link, id) {
|
176
|
+
toggle('v' + id);
|
177
|
+
var s = link.getElementsByTagName('span')[0];
|
178
|
+
var uarr = String.fromCharCode(0x25b6);
|
179
|
+
var darr = String.fromCharCode(0x25bc);
|
180
|
+
s.innerHTML = s.innerHTML == uarr ? darr : uarr;
|
181
|
+
return false;
|
182
|
+
}
|
183
|
+
//-->
|
184
|
+
</script>
|
185
|
+
</head>
|
186
|
+
<body>
|
187
|
+
|
188
|
+
<div id="summary">
|
189
|
+
<h1><%=h exception.class %> at <%=h path %></h1>
|
190
|
+
<h2><%=h exception.message %></h2>
|
191
|
+
<table><tr>
|
192
|
+
<th>Ruby</th>
|
193
|
+
<td><code><%=h frames.first.filename %></code>: in <code><%=h frames.first.function %></code>, line <%=h frames.first.lineno %></td>
|
194
|
+
</tr><tr>
|
195
|
+
<th>Web</th>
|
196
|
+
<td><code><%=h req.request_method %> <%=h(req.host + path)%></code></td>
|
197
|
+
</tr></table>
|
198
|
+
|
199
|
+
<h3>Jump to:</h3>
|
200
|
+
<ul id="quicklinks">
|
201
|
+
<li><a href="#get-info">GET</a></li>
|
202
|
+
<li><a href="#post-info">POST</a></li>
|
203
|
+
<li><a href="#cookie-info">Cookies</a></li>
|
204
|
+
<li><a href="#env-info">ENV</a></li>
|
205
|
+
</ul>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div id="traceback">
|
209
|
+
<h2>Traceback <span>(innermost first)</span></h2>
|
210
|
+
<ul class="traceback">
|
211
|
+
<% frames.each { |frame| %>
|
212
|
+
<li class="frame">
|
213
|
+
<code><%=h frame.filename %></code>: in <code><%=h frame.function %></code>
|
214
|
+
|
215
|
+
<% if frame.context_line %>
|
216
|
+
<div class="context" id="c<%=h frame.object_id %>">
|
217
|
+
<% if frame.pre_context %>
|
218
|
+
<ol start="<%=h frame.pre_context_lineno+1 %>" class="pre-context" id="pre<%=h frame.object_id %>">
|
219
|
+
<% frame.pre_context.each { |line| %>
|
220
|
+
<li onclick="toggle('pre<%=h frame.object_id %>', 'post<%=h frame.object_id %>"><%=h line %></li>
|
221
|
+
<% } %>
|
222
|
+
</ol>
|
223
|
+
<% end %>
|
224
|
+
|
225
|
+
<ol start="<%=h frame.lineno %>" class="context-line">
|
226
|
+
<li onclick="toggle('pre<%=h frame.object_id %>', 'post<%=h frame.object_id %>')"><%=h frame.context_line %><span>...</span></li></ol>
|
227
|
+
|
228
|
+
<% if frame.post_context %>
|
229
|
+
<ol start='<%=h frame.lineno+1 %>' class="post-context" id="post<%=h frame.object_id %>">
|
230
|
+
<% frame.post_context.each { |line| %>
|
231
|
+
<li onclick="toggle('pre<%=h frame.object_id %>', 'post<%=h frame.object_id %>')"><%=h line %></li>
|
232
|
+
<% } %>
|
233
|
+
</ol>
|
234
|
+
<% end %>
|
235
|
+
</div>
|
236
|
+
<% end %>
|
237
|
+
</li>
|
238
|
+
<% } %>
|
239
|
+
</ul>
|
240
|
+
</div>
|
241
|
+
|
242
|
+
<div id="requestinfo">
|
243
|
+
<h2>Request information</h2>
|
244
|
+
|
245
|
+
<h3 id="get-info">GET</h3>
|
246
|
+
<% unless req.GET.empty? %>
|
247
|
+
<table class="req">
|
248
|
+
<thead>
|
249
|
+
<tr>
|
250
|
+
<th>Variable</th>
|
251
|
+
<th>Value</th>
|
252
|
+
</tr>
|
253
|
+
</thead>
|
254
|
+
<tbody>
|
255
|
+
<% req.GET.sort_by { |k, v| k.to_s }.each { |key, val| %>
|
256
|
+
<tr>
|
257
|
+
<td><%=h key %></td>
|
258
|
+
<td class="code"><div><%=h val.inspect %></div></td>
|
259
|
+
</tr>
|
260
|
+
<% } %>
|
261
|
+
</tbody>
|
262
|
+
</table>
|
263
|
+
<% else %>
|
264
|
+
<p>No GET data.</p>
|
265
|
+
<% end %>
|
266
|
+
|
267
|
+
<h3 id="post-info">POST</h3>
|
268
|
+
<% unless req.POST.empty? %>
|
269
|
+
<table class="req">
|
270
|
+
<thead>
|
271
|
+
<tr>
|
272
|
+
<th>Variable</th>
|
273
|
+
<th>Value</th>
|
274
|
+
</tr>
|
275
|
+
</thead>
|
276
|
+
<tbody>
|
277
|
+
<% req.POST.sort_by { |k, v| k.to_s }.each { |key, val| %>
|
278
|
+
<tr>
|
279
|
+
<td><%=h key %></td>
|
280
|
+
<td class="code"><div><%=h val.inspect %></div></td>
|
281
|
+
</tr>
|
282
|
+
<% } %>
|
283
|
+
</tbody>
|
284
|
+
</table>
|
285
|
+
<% else %>
|
286
|
+
<p>No POST data.</p>
|
287
|
+
<% end %>
|
288
|
+
|
289
|
+
|
290
|
+
<h3 id="cookie-info">COOKIES</h3>
|
291
|
+
<% unless req.cookies.empty? %>
|
292
|
+
<table class="req">
|
293
|
+
<thead>
|
294
|
+
<tr>
|
295
|
+
<th>Variable</th>
|
296
|
+
<th>Value</th>
|
297
|
+
</tr>
|
298
|
+
</thead>
|
299
|
+
<tbody>
|
300
|
+
<% req.cookies.each { |key, val| %>
|
301
|
+
<tr>
|
302
|
+
<td><%=h key %></td>
|
303
|
+
<td class="code"><div><%=h val.inspect %></div></td>
|
304
|
+
</tr>
|
305
|
+
<% } %>
|
306
|
+
</tbody>
|
307
|
+
</table>
|
308
|
+
<% else %>
|
309
|
+
<p>No cookie data.</p>
|
310
|
+
<% end %>
|
311
|
+
|
312
|
+
<h3 id="env-info">Rack ENV</h3>
|
313
|
+
<table class="req">
|
314
|
+
<thead>
|
315
|
+
<tr>
|
316
|
+
<th>Variable</th>
|
317
|
+
<th>Value</th>
|
318
|
+
</tr>
|
319
|
+
</thead>
|
320
|
+
<tbody>
|
321
|
+
<% env.sort_by { |k, v| k.to_s }.each { |key, val| %>
|
322
|
+
<tr>
|
323
|
+
<td><%=h key %></td>
|
324
|
+
<td class="code"><div><%=h val %></div></td>
|
325
|
+
</tr>
|
326
|
+
<% } %>
|
327
|
+
</tbody>
|
328
|
+
</table>
|
329
|
+
|
330
|
+
</div>
|
331
|
+
|
332
|
+
<div id="explanation">
|
333
|
+
<p>
|
334
|
+
You're seeing this error because you use <code>Rack::ShowException</code>.
|
335
|
+
</p>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</body>
|
339
|
+
</html>
|
340
|
+
HTML
|
341
|
+
|
342
|
+
# :startdoc:
|
343
|
+
end
|
344
|
+
end
|