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,174 +1,179 @@
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::Static
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::Static";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span>
41
- &raquo;
42
- <span class="title">Static</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::Static
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::Static</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/static.rb<span class="defines">,<br />
98
- lib/utopia/static/local_file.rb,<br /> lib/utopia/static/mime_types.rb</span>
99
- </dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
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::Static
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::Static";
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 (S)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span>
41
+ &raquo;
42
+ <span class="title">Static</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::Static
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::Static</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/static.rb<span class="defines">,<br />
98
+ lib/utopia/static/local_file.rb,<br /> lib/utopia/static/mime_types.rb</span>
99
+ </dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
106
  <p>A middleware which serves static files from the specified root directory.</p>
107
-
108
-
109
- </div>
110
- </div>
111
- <div class="tags">
112
-
113
-
114
- </div><h2>Defined Under Namespace</h2>
115
- <p class="children">
116
-
117
-
118
-
119
-
120
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Static/LocalFile.html" title="Utopia::Static::LocalFile (class)">LocalFile</a></span>, <span class='object_link'><a href="Static/MimeTypeLoader.html" title="Utopia::Static::MimeTypeLoader (class)">MimeTypeLoader</a></span>
121
-
122
-
123
- </p>
124
-
125
- <h2>Constant Summary</h2>
126
- <dl class="constants">
127
-
128
- <dt id="DEFAULT_CACHE_CONTROL-constant" class="">DEFAULT_CACHE_CONTROL =
129
-
130
- </dt>
131
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>public, max-age=3600</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
132
-
133
- <dt id="LAST_MODIFIED-constant" class="">LAST_MODIFIED =
134
-
135
- </dt>
136
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Last-Modified</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
137
-
138
- <dt id="CONTENT_TYPE-constant" class="">CONTENT_TYPE =
139
-
140
- </dt>
141
- <dd><pre class="code"><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#CONTENT_TYPE-constant" title="Utopia::HTTP::CONTENT_TYPE (constant)">CONTENT_TYPE</a></span></span></pre></dd>
142
-
143
- <dt id="CACHE_CONTROL-constant" class="">CACHE_CONTROL =
144
-
145
- </dt>
146
- <dd><pre class="code"><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#CACHE_CONTROL-constant" title="Utopia::HTTP::CACHE_CONTROL (constant)">CACHE_CONTROL</a></span></span></pre></dd>
147
-
148
- <dt id="ETAG-constant" class="">ETAG =
149
-
150
- </dt>
151
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ETag</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
152
-
153
- <dt id="ACCEPT_RANGES-constant" class="">ACCEPT_RANGES =
154
-
155
- </dt>
156
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Accept-Ranges</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
157
-
158
- <dt id="MIME_TYPES-constant" class="">MIME_TYPES =
159
- <div class="docstring">
160
- <div class="discussion">
107
+
108
+
109
+ </div>
110
+ </div>
111
+ <div class="tags">
112
+
113
+
114
+ </div><h2>Defined Under Namespace</h2>
115
+ <p class="children">
116
+
117
+
118
+
119
+
120
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Static/LocalFile.html" title="Utopia::Static::LocalFile (class)">LocalFile</a></span>, <span class='object_link'><a href="Static/MimeTypeLoader.html" title="Utopia::Static::MimeTypeLoader (class)">MimeTypeLoader</a></span>
121
+
122
+
123
+ </p>
124
+
125
+
126
+ <h2>
127
+ Constant Summary
128
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
129
+ </h2>
130
+
131
+ <dl class="constants">
132
+
133
+ <dt id="DEFAULT_CACHE_CONTROL-constant" class="">DEFAULT_CACHE_CONTROL =
134
+
135
+ </dt>
136
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>public, max-age=3600</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
137
+
138
+ <dt id="LAST_MODIFIED-constant" class="">LAST_MODIFIED =
139
+
140
+ </dt>
141
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Last-Modified</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
142
+
143
+ <dt id="CONTENT_TYPE-constant" class="">CONTENT_TYPE =
144
+
145
+ </dt>
146
+ <dd><pre class="code"><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#CONTENT_TYPE-constant" title="Utopia::HTTP::CONTENT_TYPE (constant)">CONTENT_TYPE</a></span></span></pre></dd>
147
+
148
+ <dt id="CACHE_CONTROL-constant" class="">CACHE_CONTROL =
149
+
150
+ </dt>
151
+ <dd><pre class="code"><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#CACHE_CONTROL-constant" title="Utopia::HTTP::CACHE_CONTROL (constant)">CACHE_CONTROL</a></span></span></pre></dd>
152
+
153
+ <dt id="ETAG-constant" class="">ETAG =
154
+
155
+ </dt>
156
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ETag</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
157
+
158
+ <dt id="ACCEPT_RANGES-constant" class="">ACCEPT_RANGES =
159
+
160
+ </dt>
161
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Accept-Ranges</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
162
+
163
+ <dt id="MIME_TYPES-constant" class="">MIME_TYPES =
164
+ <div class="docstring">
165
+ <div class="discussion">
161
166
  <p>Default mime-types which are common for files served over HTTP:</p>
162
-
163
-
164
- </div>
165
- </div>
166
- <div class="tags">
167
-
168
-
169
- </div>
170
- </dt>
171
- <dd><pre class="code"><span class='lbrace'>{</span>
167
+
168
+
169
+ </div>
170
+ </div>
171
+ <div class="tags">
172
+
173
+
174
+ </div>
175
+ </dt>
176
+ <dd><pre class="code"><span class='lbrace'>{</span>
172
177
  <span class='symbol'>:xiph</span> <span class='op'>=&gt;</span> <span class='lbrace'>{</span>
173
178
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ogx</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>application/ogg</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
174
179
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ogv</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>video/ogg</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
@@ -199,228 +204,229 @@
199
204
  <span class='symbol'>:default</span> <span class='op'>=&gt;</span> <span class='lbracket'>[</span>
200
205
  <span class='symbol'>:media</span><span class='comma'>,</span> <span class='symbol'>:text</span><span class='comma'>,</span> <span class='symbol'>:archive</span><span class='comma'>,</span> <span class='symbol'>:images</span><span class='comma'>,</span> <span class='symbol'>:fonts</span>
201
206
  <span class='rbracket'>]</span>
202
- <span class='rbrace'>}</span></pre></dd>
203
-
204
- </dl>
205
-
206
-
207
-
208
-
209
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
210
- <ul class="summary">
211
-
212
- <li class="public ">
213
- <span class="summary_signature">
214
-
215
- <a href="#extensions-instance_method" title="#extensions (instance method)">#<strong>extensions</strong> &#x21d2; Object </a>
216
-
217
-
218
-
219
- </span>
220
-
221
-
222
-
223
-
224
- <span class="note title readonly">readonly</span>
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
207
+ <span class='rbrace'>}</span></pre></dd>
208
+
209
+ </dl>
210
+
211
+
212
+
213
+
214
+
215
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
216
+ <ul class="summary">
217
+
218
+ <li class="public ">
219
+ <span class="summary_signature">
220
+
221
+ <a href="#extensions-instance_method" title="#extensions (instance method)">#<strong>extensions</strong> &#x21d2; Object </a>
222
+
223
+
224
+
225
+ </span>
226
+
227
+
228
+
229
+
230
+ <span class="note title readonly">readonly</span>
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
234
240
  <span class="summary_desc"><div class='inline'><p>Returns the value of attribute extensions.</p>
235
- </div></span>
236
-
237
- </li>
238
-
239
-
240
- </ul>
241
-
242
-
243
-
244
-
245
-
246
- <h2>
247
- Instance Method Summary
248
- <small><a href="#" class="summary_toggle">collapse</a></small>
249
- </h2>
250
-
251
- <ul class="summary">
252
-
253
- <li class="public ">
254
- <span class="summary_signature">
255
-
256
- <a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(env) &#x21d2; Object </a>
257
-
258
-
259
-
260
- </span>
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
241
+ </div></span>
242
+
243
+ </li>
244
+
245
+
246
+ </ul>
247
+
248
+
249
+
250
+
251
+
252
+ <h2>
253
+ Instance Method Summary
254
+ <small><a href="#" class="summary_toggle">collapse</a></small>
255
+ </h2>
256
+
257
+ <ul class="summary">
258
+
259
+ <li class="public ">
260
+ <span class="summary_signature">
261
+
262
+ <a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(env) &#x21d2; Object </a>
263
+
264
+
265
+
266
+ </span>
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
270
276
  <span class="summary_desc"><div class='inline'>
271
- </div></span>
272
-
273
- </li>
274
-
275
-
276
- <li class="public ">
277
- <span class="summary_signature">
278
-
279
- <a href="#fetch_file-instance_method" title="#fetch_file (instance method)">#<strong>fetch_file</strong>(path) &#x21d2; Object </a>
280
-
281
-
282
-
283
- </span>
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
277
+ </div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#fetch_file-instance_method" title="#fetch_file (instance method)">#<strong>fetch_file</strong>(path) &#x21d2; Object </a>
286
+
287
+
288
+
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
293
299
  <span class="summary_desc"><div class='inline'>
294
- </div></span>
295
-
296
- </li>
297
-
298
-
299
- <li class="public ">
300
- <span class="summary_signature">
301
-
302
- <a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> &#x21d2; Object </a>
303
-
304
-
305
-
306
- </span>
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
300
+ </div></span>
301
+
302
+ </li>
303
+
304
+
305
+ <li class="public ">
306
+ <span class="summary_signature">
307
+
308
+ <a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> &#x21d2; Object </a>
309
+
310
+
311
+
312
+ </span>
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
316
322
  <span class="summary_desc"><div class='inline'>
317
- </div></span>
318
-
319
- </li>
320
-
321
-
322
- <li class="public ">
323
- <span class="summary_signature">
324
-
325
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app, root: Utopia::default_root, types: MIME_TYPES[:default], cache_control: DEFAULT_CACHE_CONTROL) &#x21d2; Static </a>
326
-
327
-
328
-
329
- </span>
330
-
331
-
332
- <span class="note title constructor">constructor</span>
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
323
+ </div></span>
324
+
325
+ </li>
326
+
327
+
328
+ <li class="public ">
329
+ <span class="summary_signature">
330
+
331
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app, root: Utopia::default_root, types: MIME_TYPES[:default], cache_control: DEFAULT_CACHE_CONTROL) &#x21d2; Static </a>
332
+
333
+
334
+
335
+ </span>
336
+
337
+
338
+ <span class="note title constructor">constructor</span>
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
341
347
  <span class="summary_desc"><div class='inline'><p>A new instance of Static.</p>
342
- </div></span>
343
-
344
- </li>
345
-
346
-
347
- </ul>
348
-
349
-
350
- <div id="constructor_details" class="method_details_list">
351
- <h2>Constructor Details</h2>
352
-
353
- <div class="method_details first">
354
- <h3 class="signature first" id="initialize-instance_method">
355
-
356
- #<strong>initialize</strong>(app, root: Utopia::default_root, types: MIME_TYPES[:default], cache_control: DEFAULT_CACHE_CONTROL) &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Static (class)">Static</a></span></tt>
357
-
358
-
359
-
360
-
361
-
362
- </h3><div class="docstring">
363
- <div class="discussion">
348
+ </div></span>
349
+
350
+ </li>
351
+
352
+
353
+ </ul>
354
+
355
+
356
+ <div id="constructor_details" class="method_details_list">
357
+ <h2>Constructor Details</h2>
358
+
359
+ <div class="method_details first">
360
+ <h3 class="signature first" id="initialize-instance_method">
361
+
362
+ #<strong>initialize</strong>(app, root: Utopia::default_root, types: MIME_TYPES[:default], cache_control: DEFAULT_CACHE_CONTROL) &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Static (class)">Static</a></span></tt>
363
+
364
+
365
+
366
+
367
+
368
+ </h3><div class="docstring">
369
+ <div class="discussion">
364
370
  <p>Returns a new instance of Static</p>
365
-
366
-
367
- </div>
368
- </div>
369
- <div class="tags">
370
- <p class="tag_title">Parameters:</p>
371
- <ul class="param">
372
-
373
- <li>
374
-
375
- <span class='name'>root</span>
376
-
377
-
378
- <span class='type'>(<tt>String</tt>)</span>
379
-
380
-
381
-
382
- &mdash;
371
+
372
+
373
+ </div>
374
+ </div>
375
+ <div class="tags">
376
+ <p class="tag_title">Parameters:</p>
377
+ <ul class="param">
378
+
379
+ <li>
380
+
381
+ <span class='name'>root</span>
382
+
383
+
384
+ <span class='type'>(<tt>String</tt>)</span>
385
+
386
+
387
+
388
+ &mdash;
383
389
  <div class='inline'><p>The root directory to serve files from.</p>
384
- </div>
385
-
386
- </li>
387
-
388
- <li>
389
-
390
- <span class='name'>types</span>
391
-
392
-
393
- <span class='type'>(<tt>Array</tt>)</span>
394
-
395
-
396
-
397
- &mdash;
390
+ </div>
391
+
392
+ </li>
393
+
394
+ <li>
395
+
396
+ <span class='name'>types</span>
397
+
398
+
399
+ <span class='type'>(<tt>Array</tt>)</span>
400
+
401
+
402
+
403
+ &mdash;
398
404
  <div class='inline'><p>The mime-types (and file extensions) to recognize/serve.</p>
399
- </div>
400
-
401
- </li>
402
-
403
- <li>
404
-
405
- <span class='name'>cache_control</span>
406
-
407
-
408
- <span class='type'>(<tt>String</tt>)</span>
409
-
410
-
411
-
412
- &mdash;
405
+ </div>
406
+
407
+ </li>
408
+
409
+ <li>
410
+
411
+ <span class='name'>cache_control</span>
412
+
413
+
414
+ <span class='type'>(<tt>String</tt>)</span>
415
+
416
+
417
+
418
+ &mdash;
413
419
  <div class='inline'><p>The cache-control header to set for static content.</p>
414
- </div>
415
-
416
- </li>
417
-
418
- </ul>
419
-
420
-
421
- </div><table class="source_code">
422
- <tr>
423
- <td>
420
+ </div>
421
+
422
+ </li>
423
+
424
+ </ul>
425
+
426
+
427
+ </div><table class="source_code">
428
+ <tr>
429
+ <td>
424
430
  <pre class="lines">
425
431
 
426
432
 
@@ -431,9 +437,9 @@
431
437
  39
432
438
  40
433
439
  41
434
- 42</pre>
435
- </td>
436
- <td>
440
+ 42</pre>
441
+ </td>
442
+ <td>
437
443
  <pre class="code"><span class="info file"># File 'lib/utopia/static.rb', line 35</span>
438
444
 
439
445
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_app'>app</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='const'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span><span class='op'>::</span><span class='id identifier rubyid_default_root'><span class='object_link'><a href="../Utopia.html#default_root-class_method" title="Utopia.default_root (method)">default_root</a></span></span><span class='comma'>,</span> <span class='label'>types:</span> <span class='const'><span class='object_link'><a href="#MIME_TYPES-constant" title="Utopia::Static::MIME_TYPES (constant)">MIME_TYPES</a></span></span><span class='lbracket'>[</span><span class='symbol'>:default</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>cache_control:</span> <span class='const'><span class='object_link'><a href="#DEFAULT_CACHE_CONTROL-constant" title="Utopia::Static::DEFAULT_CACHE_CONTROL (constant)">DEFAULT_CACHE_CONTROL</a></span></span><span class='rparen'>)</span>
@@ -443,78 +449,78 @@
443
449
  <span class='ivar'>@extensions</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Static/MimeTypeLoader.html" title="Utopia::Static::MimeTypeLoader (class)">MimeTypeLoader</a></span></span><span class='period'>.</span><span class='id identifier rubyid_extensions_for'><span class='object_link'><a href="Static/MimeTypeLoader.html#extensions_for-class_method" title="Utopia::Static::MimeTypeLoader.extensions_for (method)">extensions_for</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_types'>types</span><span class='rparen'>)</span>
444
450
 
445
451
  <span class='ivar'>@cache_control</span> <span class='op'>=</span> <span class='id identifier rubyid_cache_control'>cache_control</span>
446
- <span class='kw'>end</span></pre>
447
- </td>
448
- </tr>
449
- </table>
450
- </div>
451
-
452
- </div>
453
-
454
- <div id="instance_attr_details" class="attr_details">
455
- <h2>Instance Attribute Details</h2>
456
-
457
-
458
- <span id=""></span>
459
- <div class="method_details first">
460
- <h3 class="signature first" id="extensions-instance_method">
461
-
462
- #<strong>extensions</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
463
-
464
-
465
-
466
-
467
-
468
- </h3><div class="docstring">
469
- <div class="discussion">
452
+ <span class='kw'>end</span></pre>
453
+ </td>
454
+ </tr>
455
+ </table>
456
+ </div>
457
+
458
+ </div>
459
+
460
+ <div id="instance_attr_details" class="attr_details">
461
+ <h2>Instance Attribute Details</h2>
462
+
463
+
464
+ <span id=""></span>
465
+ <div class="method_details first">
466
+ <h3 class="signature first" id="extensions-instance_method">
467
+
468
+ #<strong>extensions</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
469
+
470
+
471
+
472
+
473
+
474
+ </h3><div class="docstring">
475
+ <div class="discussion">
470
476
  <p>Returns the value of attribute extensions</p>
471
-
472
-
473
- </div>
474
- </div>
475
- <div class="tags">
476
-
477
-
478
- </div><table class="source_code">
479
- <tr>
480
- <td>
477
+
478
+
479
+ </div>
480
+ </div>
481
+ <div class="tags">
482
+
483
+
484
+ </div><table class="source_code">
485
+ <tr>
486
+ <td>
481
487
  <pre class="lines">
482
488
 
483
489
 
484
490
  65
485
491
  66
486
- 67</pre>
487
- </td>
488
- <td>
492
+ 67</pre>
493
+ </td>
494
+ <td>
489
495
  <pre class="code"><span class="info file"># File 'lib/utopia/static.rb', line 65</span>
490
496
 
491
497
  <span class='kw'>def</span> <span class='id identifier rubyid_extensions'>extensions</span>
492
498
  <span class='ivar'>@extensions</span>
493
- <span class='kw'>end</span></pre>
494
- </td>
495
- </tr>
496
- </table>
497
- </div>
498
-
499
- </div>
500
-
501
-
502
- <div id="instance_method_details" class="method_details_list">
503
- <h2>Instance Method Details</h2>
504
-
505
-
506
- <div class="method_details first">
507
- <h3 class="signature first" id="call-instance_method">
508
-
509
- #<strong>call</strong>(env) &#x21d2; <tt>Object</tt>
510
-
511
-
512
-
513
-
514
-
515
- </h3><table class="source_code">
516
- <tr>
517
- <td>
499
+ <span class='kw'>end</span></pre>
500
+ </td>
501
+ </tr>
502
+ </table>
503
+ </div>
504
+
505
+ </div>
506
+
507
+
508
+ <div id="instance_method_details" class="method_details_list">
509
+ <h2>Instance Method Details</h2>
510
+
511
+
512
+ <div class="method_details first">
513
+ <h3 class="signature first" id="call-instance_method">
514
+
515
+ #<strong>call</strong>(env) &#x21d2; <tt>Object</tt>
516
+
517
+
518
+
519
+
520
+
521
+ </h3><table class="source_code">
522
+ <tr>
523
+ <td>
518
524
  <pre class="lines">
519
525
 
520
526
 
@@ -548,9 +554,9 @@
548
554
  100
549
555
  101
550
556
  102
551
- 103</pre>
552
- </td>
553
- <td>
557
+ 103</pre>
558
+ </td>
559
+ <td>
554
560
  <pre class="code"><span class="info file"># File 'lib/utopia/static.rb', line 73</span>
555
561
 
556
562
  <span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
@@ -583,24 +589,24 @@
583
589
 
584
590
  <span class='comment'># else if no file was found:
585
591
  </span> <span class='kw'>return</span> <span class='ivar'>@app</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
586
- <span class='kw'>end</span></pre>
587
- </td>
588
- </tr>
589
- </table>
590
- </div>
591
-
592
- <div class="method_details ">
593
- <h3 class="signature " id="fetch_file-instance_method">
594
-
595
- #<strong>fetch_file</strong>(path) &#x21d2; <tt>Object</tt>
596
-
597
-
598
-
599
-
600
-
601
- </h3><table class="source_code">
602
- <tr>
603
- <td>
592
+ <span class='kw'>end</span></pre>
593
+ </td>
594
+ </tr>
595
+ </table>
596
+ </div>
597
+
598
+ <div class="method_details ">
599
+ <h3 class="signature " id="fetch_file-instance_method">
600
+
601
+ #<strong>fetch_file</strong>(path) &#x21d2; <tt>Object</tt>
602
+
603
+
604
+
605
+
606
+
607
+ </h3><table class="source_code">
608
+ <tr>
609
+ <td>
604
610
  <pre class="lines">
605
611
 
606
612
 
@@ -613,9 +619,9 @@
613
619
  60
614
620
  61
615
621
  62
616
- 63</pre>
617
- </td>
618
- <td>
622
+ 63</pre>
623
+ </td>
624
+ <td>
619
625
  <pre class="code"><span class="info file"># File 'lib/utopia/static.rb', line 54</span>
620
626
 
621
627
  <span class='kw'>def</span> <span class='id identifier rubyid_fetch_file'>fetch_file</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
@@ -627,24 +633,24 @@
627
633
  <span class='kw'>else</span>
628
634
  <span class='kw'>return</span> <span class='kw'>nil</span>
629
635
  <span class='kw'>end</span>
630
- <span class='kw'>end</span></pre>
631
- </td>
632
- </tr>
633
- </table>
634
- </div>
635
-
636
- <div class="method_details ">
637
- <h3 class="signature " id="freeze-instance_method">
638
-
639
- #<strong>freeze</strong> &#x21d2; <tt>Object</tt>
640
-
641
-
642
-
643
-
644
-
645
- </h3><table class="source_code">
646
- <tr>
647
- <td>
636
+ <span class='kw'>end</span></pre>
637
+ </td>
638
+ </tr>
639
+ </table>
640
+ </div>
641
+
642
+ <div class="method_details ">
643
+ <h3 class="signature " id="freeze-instance_method">
644
+
645
+ #<strong>freeze</strong> &#x21d2; <tt>Object</tt>
646
+
647
+
648
+
649
+
650
+
651
+ </h3><table class="source_code">
652
+ <tr>
653
+ <td>
648
654
  <pre class="lines">
649
655
 
650
656
 
@@ -656,9 +662,9 @@
656
662
  49
657
663
  50
658
664
  51
659
- 52</pre>
660
- </td>
661
- <td>
665
+ 52</pre>
666
+ </td>
667
+ <td>
662
668
  <pre class="code"><span class="info file"># File 'lib/utopia/static.rb', line 44</span>
663
669
 
664
670
  <span class='kw'>def</span> <span class='id identifier rubyid_freeze'>freeze</span>
@@ -669,22 +675,22 @@
669
675
  <span class='ivar'>@cache_control</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
670
676
 
671
677
  <span class='kw'>super</span>
672
- <span class='kw'>end</span></pre>
673
- </td>
674
- </tr>
675
- </table>
676
- </div>
677
-
678
- </div>
679
-
680
- </div>
681
-
682
- <div id="footer">
683
- Generated on Sat Mar 24 21:17:19 2018 by
684
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
685
- 0.9.12 (ruby-2.5.0).
686
- </div>
687
-
688
- </div>
689
- </body>
678
+ <span class='kw'>end</span></pre>
679
+ </td>
680
+ </tr>
681
+ </table>
682
+ </div>
683
+
684
+ </div>
685
+
686
+ </div>
687
+
688
+ <div id="footer">
689
+ Generated on Sat Mar 9 12:01:53 2019 by
690
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
691
+ 0.9.18 (ruby-2.6.1).
692
+ </div>
693
+
694
+ </div>
695
+ </body>
690
696
  </html>