utopia 2.5.5 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -2
  3. data/Gemfile +1 -0
  4. data/Rakefile +2 -0
  5. data/docs/code/Utopia.html +439 -433
  6. data/docs/code/Utopia/Command.html +201 -195
  7. data/docs/code/Utopia/Command/Environment.html +244 -244
  8. data/docs/code/Utopia/Command/Server.html +202 -202
  9. data/docs/code/Utopia/Command/Server/Create.html +192 -192
  10. data/docs/code/Utopia/Command/Server/Update.html +235 -235
  11. data/docs/code/Utopia/Command/Site.html +269 -263
  12. data/docs/code/Utopia/Command/Site/Create.html +192 -192
  13. data/docs/code/Utopia/Command/Site/Update.html +246 -246
  14. data/docs/code/Utopia/Command/Top.html +244 -244
  15. data/docs/code/Utopia/Content.html +636 -630
  16. data/docs/code/Utopia/Content/Document.html +1411 -1407
  17. data/docs/code/Utopia/Content/Document/State.html +1048 -1048
  18. data/docs/code/Utopia/Content/Link.html +1023 -1023
  19. data/docs/code/Utopia/Content/Links.html +629 -623
  20. data/docs/code/Utopia/Content/MarkupParser.html +702 -702
  21. data/docs/code/Utopia/Content/MarkupParser/ParsedTag.html +375 -375
  22. data/docs/code/Utopia/Content/MarkupParser/UnbalancedTagError.html +523 -523
  23. data/docs/code/Utopia/Content/Namespace.html +416 -416
  24. data/docs/code/Utopia/Content/Node.html +952 -952
  25. data/docs/code/Utopia/Content/Node/Context.html +790 -790
  26. data/docs/code/Utopia/Content/Response.html +686 -686
  27. data/docs/code/Utopia/Content/SymbolicHash.html +365 -365
  28. data/docs/code/Utopia/Content/Tags.html +134 -134
  29. data/docs/code/Utopia/Content/UnbalancedTagError.html +270 -270
  30. data/docs/code/Utopia/ContentLength.html +298 -294
  31. data/docs/code/Utopia/Controller.html +657 -651
  32. data/docs/code/Utopia/Controller/Actions.html +260 -260
  33. data/docs/code/Utopia/Controller/Actions/Action.html +785 -779
  34. data/docs/code/Utopia/Controller/Actions/ClassMethods.html +360 -360
  35. data/docs/code/Utopia/Controller/Base.html +989 -989
  36. data/docs/code/Utopia/Controller/Respond.html +264 -254
  37. data/docs/code/Utopia/Controller/Respond/ClassMethods.html +207 -207
  38. data/docs/code/Utopia/Controller/Respond/Converter.html +219 -219
  39. data/docs/code/Utopia/Controller/Respond/Converter/Callback.html +425 -425
  40. data/docs/code/Utopia/Controller/Respond/Converter/ToJSON.html +323 -317
  41. data/docs/code/Utopia/Controller/Respond/Passthrough.html +266 -260
  42. data/docs/code/Utopia/Controller/Respond/Responder.html +449 -443
  43. data/docs/code/Utopia/Controller/Rewrite.html +260 -260
  44. data/docs/code/Utopia/Controller/Rewrite/ClassMethods.html +216 -216
  45. data/docs/code/Utopia/Controller/Rewrite/ExtractPrefixRule.html +303 -303
  46. data/docs/code/Utopia/Controller/Rewrite/Rewriter.html +402 -402
  47. data/docs/code/Utopia/Controller/Rewrite/Rule.html +193 -193
  48. data/docs/code/Utopia/Controller/Variables.html +428 -428
  49. data/docs/code/Utopia/Controllers.html +216 -216
  50. data/docs/code/Utopia/Exceptions.html +125 -125
  51. data/docs/code/Utopia/Exceptions/Handler.html +405 -405
  52. data/docs/code/Utopia/Exceptions/Mailer.html +400 -394
  53. data/docs/code/Utopia/Extensions.html +116 -116
  54. data/docs/code/Utopia/Extensions/ArraySplit.html +164 -164
  55. data/docs/code/Utopia/Extensions/DateTimeComparison.html +173 -173
  56. data/docs/code/Utopia/Extensions/TimeDateComparison.html +173 -173
  57. data/docs/code/Utopia/HTTP.html +193 -187
  58. data/docs/code/Utopia/HTTP/Status.html +355 -355
  59. data/docs/code/Utopia/Locale.html +522 -522
  60. data/docs/code/Utopia/Localization.html +886 -880
  61. data/docs/code/Utopia/Localization/Wrapper.html +403 -403
  62. data/docs/code/Utopia/Logger.html +185 -185
  63. data/docs/code/Utopia/Logger/CompactFormatter.html +290 -290
  64. data/docs/code/Utopia/Path.html +2562 -2556
  65. data/docs/code/Utopia/Path/Matcher.html +395 -395
  66. data/docs/code/Utopia/Path/Matcher/MatchData.html +418 -418
  67. data/docs/code/Utopia/Redirection.html +148 -142
  68. data/docs/code/Utopia/Redirection/ClientRedirect.html +594 -594
  69. data/docs/code/Utopia/Redirection/DirectoryIndex.html +265 -265
  70. data/docs/code/Utopia/Redirection/Errors.html +391 -385
  71. data/docs/code/Utopia/Redirection/Moved.html +265 -265
  72. data/docs/code/Utopia/Redirection/RequestFailure.html +201 -201
  73. data/docs/code/Utopia/Redirection/Rewrite.html +265 -265
  74. data/docs/code/Utopia/Session.html +723 -717
  75. data/docs/code/Utopia/Session/LazyHash.html +709 -709
  76. data/docs/code/Utopia/Setup.html +783 -777
  77. data/docs/code/Utopia/Static.html +516 -510
  78. data/docs/code/Utopia/Static/LocalFile.html +875 -869
  79. data/docs/code/Utopia/Static/MimeTypeLoader.html +427 -427
  80. data/docs/code/Utopia/Static/MimeTypeLoader/ExpansionError.html +123 -123
  81. data/docs/code/_index.html +757 -757
  82. data/docs/code/class_list.html +51 -51
  83. data/docs/code/css/full_list.css +58 -58
  84. data/docs/code/css/style.css +496 -499
  85. data/docs/code/file.README.html +72 -70
  86. data/docs/code/file_list.html +56 -56
  87. data/docs/code/frames.html +17 -17
  88. data/docs/code/index.html +72 -70
  89. data/docs/code/js/app.js +292 -248
  90. data/docs/code/js/full_list.js +216 -216
  91. data/docs/code/js/jquery.js +3 -3
  92. data/docs/code/method_list.html +3443 -3443
  93. data/docs/code/top-level-namespace.html +109 -109
  94. data/docs/index.html +2 -2
  95. data/docs/wiki.html +2 -2
  96. data/docs/wiki/edit.html +1 -1
  97. data/docs/wiki/javascript.html +153 -0
  98. data/docs/wiki/javascript/index.html +153 -0
  99. data/documentation/.yarnrc +1 -0
  100. data/documentation/Gemfile +1 -0
  101. data/documentation/config/environment.rb +1 -0
  102. data/documentation/pages/wiki/content.md +1 -1
  103. data/documentation/pages/wiki/javascript/content.md +75 -0
  104. data/documentation/pages/wiki/links.yaml +3 -1
  105. data/lib/utopia/command/site.rb +4 -4
  106. data/lib/utopia/version.rb +1 -1
  107. data/setup/site/.yarnrc +1 -0
  108. data/setup/site/tasks/yarn.rake +32 -0
  109. data/spec/utopia/command_spec.rb +2 -2
  110. metadata +8 -9
  111. data/docs/wiki/bower-integration.html +0 -74
  112. data/docs/wiki/bower-integration/index.html +0 -74
  113. data/documentation/.bowerrc +0 -4
  114. data/documentation/pages/wiki/bower-integration/content.md +0 -25
  115. data/setup/.bowerrc +0 -3
  116. data/setup/site/.bowerrc +0 -4
  117. data/setup/site/tasks/bower.rake +0 -45
@@ -1,339 +1,345 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Utopia::Controller::Respond::Responder
8
-
9
- &mdash; Documentation by YARD 0.9.12
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "Utopia::Controller::Respond::Responder";
19
- relpath = '../../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../../_index.html">Index (R)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../../Utopia.html" title="Utopia (module)">Utopia</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Controller.html" title="Utopia::Controller (class)">Controller</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Respond.html" title="Utopia::Controller::Respond (module)">Respond</a></span></span>
41
- &raquo;
42
- <span class="title">Responder</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: Utopia::Controller::Respond::Responder
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Utopia::Controller::Respond::Responder</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/utopia/controller/respond.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
-
103
- <h2>Constant Summary</h2>
104
- <dl class="constants">
105
-
106
- <dt id="HTTP_ACCEPT-constant" class="">HTTP_ACCEPT =
107
-
108
- </dt>
109
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HTTP_ACCEPT</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
110
-
111
- <dt id="NOT_ACCEPTABLE_RESPONSE-constant" class="">NOT_ACCEPTABLE_RESPONSE =
112
-
113
- </dt>
114
- <dd><pre class="code"><span class='lbracket'>[</span><span class='int'>406</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
115
-
116
- </dl>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
- <h2>
126
- Instance Method Summary
127
- <small><a href="#" class="summary_toggle">collapse</a></small>
128
- </h2>
129
-
130
- <ul class="summary">
131
-
132
- <li class="public ">
133
- <span class="summary_signature">
134
-
135
- <a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(context, request, path, response) &#x21d2; Object </a>
136
-
137
-
138
-
139
- </span>
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Utopia::Controller::Respond::Responder
8
+
9
+ &mdash; Documentation by YARD 0.9.18
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Utopia::Controller::Respond::Responder";
19
+ relpath = '../../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../../_index.html">Index (R)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../../Utopia.html" title="Utopia (module)">Utopia</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Controller.html" title="Utopia::Controller (class)">Controller</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Respond.html" title="Utopia::Controller::Respond (module)">Respond</a></span></span>
41
+ &raquo;
42
+ <span class="title">Responder</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Utopia::Controller::Respond::Responder
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Utopia::Controller::Respond::Responder</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/utopia/controller/respond.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+ <h2>
105
+ Constant Summary
106
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
107
+ </h2>
108
+
109
+ <dl class="constants">
110
+
111
+ <dt id="HTTP_ACCEPT-constant" class="">HTTP_ACCEPT =
112
+
113
+ </dt>
114
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HTTP_ACCEPT</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
115
+
116
+ <dt id="NOT_ACCEPTABLE_RESPONSE-constant" class="">NOT_ACCEPTABLE_RESPONSE =
117
+
118
+ </dt>
119
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='int'>406</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
120
+
121
+ </dl>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <h2>
132
+ Instance Method Summary
133
+ <small><a href="#" class="summary_toggle">collapse</a></small>
134
+ </h2>
135
+
136
+ <ul class="summary">
137
+
138
+ <li class="public ">
139
+ <span class="summary_signature">
140
+
141
+ <a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(context, request, path, response) &#x21d2; Object </a>
142
+
143
+
144
+
145
+ </span>
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
149
155
  <span class="summary_desc"><div class='inline'>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- <li class="public ">
156
- <span class="summary_signature">
157
-
158
- <a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> &#x21d2; Object </a>
159
-
160
-
161
-
162
- </span>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
156
+ </div></span>
157
+
158
+ </li>
159
+
160
+
161
+ <li class="public ">
162
+ <span class="summary_signature">
163
+
164
+ <a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> &#x21d2; Object </a>
165
+
166
+
167
+
168
+ </span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
172
178
  <span class="summary_desc"><div class='inline'>
173
- </div></span>
174
-
175
- </li>
176
-
177
-
178
- <li class="public ">
179
- <span class="summary_signature">
180
-
181
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; Responder </a>
182
-
183
-
184
-
185
- </span>
186
-
187
-
188
- <span class="note title constructor">constructor</span>
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
179
+ </div></span>
180
+
181
+ </li>
182
+
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; Responder </a>
188
+
189
+
190
+
191
+ </span>
192
+
193
+
194
+ <span class="note title constructor">constructor</span>
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
197
203
  <span class="summary_desc"><div class='inline'><p>A new instance of Responder.</p>
198
- </div></span>
199
-
200
- </li>
201
-
202
-
203
- <li class="public ">
204
- <span class="summary_signature">
205
-
206
- <a href="#with-instance_method" title="#with (instance method)">#<strong>with</strong>(content_type, &amp;block) &#x21d2; Object </a>
207
-
208
-
209
-
210
- </span>
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
204
+ </div></span>
205
+
206
+ </li>
207
+
208
+
209
+ <li class="public ">
210
+ <span class="summary_signature">
211
+
212
+ <a href="#with-instance_method" title="#with (instance method)">#<strong>with</strong>(content_type, &amp;block) &#x21d2; Object </a>
213
+
214
+
215
+
216
+ </span>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
220
226
  <span class="summary_desc"><div class='inline'><p>Add a converter for the specified content type.</p>
221
- </div></span>
222
-
223
- </li>
224
-
225
-
226
- <li class="public ">
227
- <span class="summary_signature">
228
-
229
- <a href="#with_json-instance_method" title="#with_json (instance method)">#<strong>with_json</strong> &#x21d2; Object </a>
230
-
231
-
232
-
233
- </span>
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
227
+ </div></span>
228
+
229
+ </li>
230
+
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#with_json-instance_method" title="#with_json (instance method)">#<strong>with_json</strong> &#x21d2; Object </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
243
249
  <span class="summary_desc"><div class='inline'><p>Add a converter for JSON when requests accept ‘application/json’.</p>
244
- </div></span>
245
-
246
- </li>
247
-
248
-
249
- <li class="public ">
250
- <span class="summary_signature">
251
-
252
- <a href="#with_passthrough-instance_method" title="#with_passthrough (instance method)">#<strong>with_passthrough</strong> &#x21d2; Object </a>
253
-
254
-
255
-
256
- </span>
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
250
+ </div></span>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="public ">
256
+ <span class="summary_signature">
257
+
258
+ <a href="#with_passthrough-instance_method" title="#with_passthrough (instance method)">#<strong>with_passthrough</strong> &#x21d2; Object </a>
259
+
260
+
261
+
262
+ </span>
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
266
272
  <span class="summary_desc"><div class='inline'>
267
- </div></span>
268
-
269
- </li>
270
-
271
-
272
- </ul>
273
-
274
-
275
- <div id="constructor_details" class="method_details_list">
276
- <h2>Constructor Details</h2>
277
-
278
- <div class="method_details first">
279
- <h3 class="signature first" id="initialize-instance_method">
280
-
281
- #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Controller::Respond::Responder (class)">Responder</a></span></tt>
282
-
283
-
284
-
285
-
286
-
287
- </h3><div class="docstring">
288
- <div class="discussion">
273
+ </div></span>
274
+
275
+ </li>
276
+
277
+
278
+ </ul>
279
+
280
+
281
+ <div id="constructor_details" class="method_details_list">
282
+ <h2>Constructor Details</h2>
283
+
284
+ <div class="method_details first">
285
+ <h3 class="signature first" id="initialize-instance_method">
286
+
287
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Controller::Respond::Responder (class)">Responder</a></span></tt>
288
+
289
+
290
+
291
+
292
+
293
+ </h3><div class="docstring">
294
+ <div class="discussion">
289
295
  <p>Returns a new instance of Responder</p>
290
-
291
-
292
- </div>
293
- </div>
294
- <div class="tags">
295
-
296
-
297
- </div><table class="source_code">
298
- <tr>
299
- <td>
296
+
297
+
298
+ </div>
299
+ </div>
300
+ <div class="tags">
301
+
302
+
303
+ </div><table class="source_code">
304
+ <tr>
305
+ <td>
300
306
  <pre class="lines">
301
307
 
302
308
 
303
309
  116
304
310
  117
305
- 118</pre>
306
- </td>
307
- <td>
311
+ 118</pre>
312
+ </td>
313
+ <td>
308
314
  <pre class="code"><span class="info file"># File 'lib/utopia/controller/respond.rb', line 116</span>
309
315
 
310
316
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
311
317
  <span class='ivar'>@converters</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../HTTP.html" title="Utopia::HTTP (module)">HTTP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../HTTP.html#Accept-constant" title="Utopia::HTTP::Accept (constant)">Accept</a></span></span><span class='op'>::</span><span class='const'>MediaTypes</span><span class='op'>::</span><span class='const'>Map</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
312
- <span class='kw'>end</span></pre>
313
- </td>
314
- </tr>
315
- </table>
316
- </div>
317
-
318
- </div>
319
-
320
-
321
- <div id="instance_method_details" class="method_details_list">
322
- <h2>Instance Method Details</h2>
323
-
324
-
325
- <div class="method_details first">
326
- <h3 class="signature first" id="call-instance_method">
327
-
328
- #<strong>call</strong>(context, request, path, response) &#x21d2; <tt>Object</tt>
329
-
330
-
331
-
332
-
333
-
334
- </h3><table class="source_code">
335
- <tr>
336
- <td>
318
+ <span class='kw'>end</span></pre>
319
+ </td>
320
+ </tr>
321
+ </table>
322
+ </div>
323
+
324
+ </div>
325
+
326
+
327
+ <div id="instance_method_details" class="method_details_list">
328
+ <h2>Instance Method Details</h2>
329
+
330
+
331
+ <div class="method_details first">
332
+ <h3 class="signature first" id="call-instance_method">
333
+
334
+ #<strong>call</strong>(context, request, path, response) &#x21d2; <tt>Object</tt>
335
+
336
+
337
+
338
+
339
+
340
+ </h3><table class="source_code">
341
+ <tr>
342
+ <td>
337
343
  <pre class="lines">
338
344
 
339
345
 
@@ -348,9 +354,9 @@
348
354
  148
349
355
  149
350
356
  150
351
- 151</pre>
352
- </td>
353
- <td>
357
+ 151</pre>
358
+ </td>
359
+ <td>
354
360
  <pre class="code"><span class="info file"># File 'lib/utopia/controller/respond.rb', line 140</span>
355
361
 
356
362
  <span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
@@ -364,24 +370,24 @@
364
370
  <span class='kw'>else</span>
365
371
  <span class='const'><span class='object_link'><a href="#NOT_ACCEPTABLE_RESPONSE-constant" title="Utopia::Controller::Respond::Responder::NOT_ACCEPTABLE_RESPONSE (constant)">NOT_ACCEPTABLE_RESPONSE</a></span></span>
366
372
  <span class='kw'>end</span>
367
- <span class='kw'>end</span></pre>
368
- </td>
369
- </tr>
370
- </table>
371
- </div>
372
-
373
- <div class="method_details ">
374
- <h3 class="signature " id="freeze-instance_method">
375
-
376
- #<strong>freeze</strong> &#x21d2; <tt>Object</tt>
377
-
378
-
379
-
380
-
381
-
382
- </h3><table class="source_code">
383
- <tr>
384
- <td>
373
+ <span class='kw'>end</span></pre>
374
+ </td>
375
+ </tr>
376
+ </table>
377
+ </div>
378
+
379
+ <div class="method_details ">
380
+ <h3 class="signature " id="freeze-instance_method">
381
+
382
+ #<strong>freeze</strong> &#x21d2; <tt>Object</tt>
383
+
384
+
385
+
386
+
387
+
388
+ </h3><table class="source_code">
389
+ <tr>
390
+ <td>
385
391
  <pre class="lines">
386
392
 
387
393
 
@@ -389,141 +395,141 @@
389
395
  121
390
396
  122
391
397
  123
392
- 124</pre>
393
- </td>
394
- <td>
398
+ 124</pre>
399
+ </td>
400
+ <td>
395
401
  <pre class="code"><span class="info file"># File 'lib/utopia/controller/respond.rb', line 120</span>
396
402
 
397
403
  <span class='kw'>def</span> <span class='id identifier rubyid_freeze'>freeze</span>
398
404
  <span class='ivar'>@converters</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
399
405
 
400
406
  <span class='kw'>super</span>
401
- <span class='kw'>end</span></pre>
402
- </td>
403
- </tr>
404
- </table>
405
- </div>
406
-
407
- <div class="method_details ">
408
- <h3 class="signature " id="with-instance_method">
409
-
410
- #<strong>with</strong>(content_type, &amp;block) &#x21d2; <tt>Object</tt>
411
-
412
-
413
-
414
-
415
-
416
- </h3><div class="docstring">
417
- <div class="discussion">
407
+ <span class='kw'>end</span></pre>
408
+ </td>
409
+ </tr>
410
+ </table>
411
+ </div>
412
+
413
+ <div class="method_details ">
414
+ <h3 class="signature " id="with-instance_method">
415
+
416
+ #<strong>with</strong>(content_type, &amp;block) &#x21d2; <tt>Object</tt>
417
+
418
+
419
+
420
+
421
+
422
+ </h3><div class="docstring">
423
+ <div class="discussion">
418
424
  <p>Add a converter for the specified content type. Call the block with the response content if the request accepts the specified content_type.</p>
419
-
420
-
421
- </div>
422
- </div>
423
- <div class="tags">
424
-
425
-
426
- </div><table class="source_code">
427
- <tr>
428
- <td>
425
+
426
+
427
+ </div>
428
+ </div>
429
+ <div class="tags">
430
+
431
+
432
+ </div><table class="source_code">
433
+ <tr>
434
+ <td>
429
435
  <pre class="lines">
430
436
 
431
437
 
432
438
  127
433
439
  128
434
- 129</pre>
435
- </td>
436
- <td>
440
+ 129</pre>
441
+ </td>
442
+ <td>
437
443
  <pre class="code"><span class="info file"># File 'lib/utopia/controller/respond.rb', line 127</span>
438
444
 
439
445
  <span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='id identifier rubyid_content_type'>content_type</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
440
446
  <span class='ivar'>@converters</span> <span class='op'>&lt;&lt;</span> <span class='const'><span class='object_link'><a href="Converter.html" title="Utopia::Controller::Respond::Converter (module)">Converter</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Converter/Callback.html" title="Utopia::Controller::Respond::Converter::Callback (class)">Callback</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Converter.html#new-class_method" title="Utopia::Controller::Respond::Converter.new (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_content_type'>content_type</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
441
- <span class='kw'>end</span></pre>
442
- </td>
443
- </tr>
444
- </table>
445
- </div>
446
-
447
- <div class="method_details ">
448
- <h3 class="signature " id="with_json-instance_method">
449
-
450
- #<strong>with_json</strong> &#x21d2; <tt>Object</tt>
451
-
452
-
453
-
454
-
455
-
456
- </h3><div class="docstring">
457
- <div class="discussion">
447
+ <span class='kw'>end</span></pre>
448
+ </td>
449
+ </tr>
450
+ </table>
451
+ </div>
452
+
453
+ <div class="method_details ">
454
+ <h3 class="signature " id="with_json-instance_method">
455
+
456
+ #<strong>with_json</strong> &#x21d2; <tt>Object</tt>
457
+
458
+
459
+
460
+
461
+
462
+ </h3><div class="docstring">
463
+ <div class="discussion">
458
464
  <p>Add a converter for JSON when requests accept ‘application/json’</p>
459
-
460
-
461
- </div>
462
- </div>
463
- <div class="tags">
464
-
465
-
466
- </div><table class="source_code">
467
- <tr>
468
- <td>
465
+
466
+
467
+ </div>
468
+ </div>
469
+ <div class="tags">
470
+
471
+
472
+ </div><table class="source_code">
473
+ <tr>
474
+ <td>
469
475
  <pre class="lines">
470
476
 
471
477
 
472
478
  136
473
479
  137
474
- 138</pre>
475
- </td>
476
- <td>
480
+ 138</pre>
481
+ </td>
482
+ <td>
477
483
  <pre class="code"><span class="info file"># File 'lib/utopia/controller/respond.rb', line 136</span>
478
484
 
479
485
  <span class='kw'>def</span> <span class='id identifier rubyid_with_json'>with_json</span>
480
486
  <span class='ivar'>@converters</span> <span class='op'>&lt;&lt;</span> <span class='const'><span class='object_link'><a href="Converter.html" title="Utopia::Controller::Respond::Converter (module)">Converter</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Converter/ToJSON.html" title="Utopia::Controller::Respond::Converter::ToJSON (module)">ToJSON</a></span></span>
481
- <span class='kw'>end</span></pre>
482
- </td>
483
- </tr>
484
- </table>
485
- </div>
486
-
487
- <div class="method_details ">
488
- <h3 class="signature " id="with_passthrough-instance_method">
489
-
490
- #<strong>with_passthrough</strong> &#x21d2; <tt>Object</tt>
491
-
492
-
493
-
494
-
495
-
496
- </h3><table class="source_code">
497
- <tr>
498
- <td>
487
+ <span class='kw'>end</span></pre>
488
+ </td>
489
+ </tr>
490
+ </table>
491
+ </div>
492
+
493
+ <div class="method_details ">
494
+ <h3 class="signature " id="with_passthrough-instance_method">
495
+
496
+ #<strong>with_passthrough</strong> &#x21d2; <tt>Object</tt>
497
+
498
+
499
+
500
+
501
+
502
+ </h3><table class="source_code">
503
+ <tr>
504
+ <td>
499
505
  <pre class="lines">
500
506
 
501
507
 
502
508
  131
503
509
  132
504
- 133</pre>
505
- </td>
506
- <td>
510
+ 133</pre>
511
+ </td>
512
+ <td>
507
513
  <pre class="code"><span class="info file"># File 'lib/utopia/controller/respond.rb', line 131</span>
508
514
 
509
515
  <span class='kw'>def</span> <span class='id identifier rubyid_with_passthrough'>with_passthrough</span>
510
516
  <span class='ivar'>@converters</span> <span class='op'>&lt;&lt;</span> <span class='const'><span class='object_link'><a href="Passthrough.html" title="Utopia::Controller::Respond::Passthrough (module)">Passthrough</a></span></span>
511
- <span class='kw'>end</span></pre>
512
- </td>
513
- </tr>
514
- </table>
515
- </div>
516
-
517
- </div>
518
-
519
- </div>
520
-
521
- <div id="footer">
522
- Generated on Sat Mar 24 21:17:22 2018 by
523
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
524
- 0.9.12 (ruby-2.5.0).
525
- </div>
526
-
527
- </div>
528
- </body>
517
+ <span class='kw'>end</span></pre>
518
+ </td>
519
+ </tr>
520
+ </table>
521
+ </div>
522
+
523
+ </div>
524
+
525
+ </div>
526
+
527
+ <div id="footer">
528
+ Generated on Sat Mar 9 12:01:54 2019 by
529
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
530
+ 0.9.18 (ruby-2.6.1).
531
+ </div>
532
+
533
+ </div>
534
+ </body>
529
535
  </html>