utopia 2.5.5 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/Rakefile +2 -0
- data/docs/code/Utopia.html +439 -433
- data/docs/code/Utopia/Command.html +201 -195
- data/docs/code/Utopia/Command/Environment.html +244 -244
- data/docs/code/Utopia/Command/Server.html +202 -202
- data/docs/code/Utopia/Command/Server/Create.html +192 -192
- data/docs/code/Utopia/Command/Server/Update.html +235 -235
- data/docs/code/Utopia/Command/Site.html +269 -263
- data/docs/code/Utopia/Command/Site/Create.html +192 -192
- data/docs/code/Utopia/Command/Site/Update.html +246 -246
- data/docs/code/Utopia/Command/Top.html +244 -244
- data/docs/code/Utopia/Content.html +636 -630
- data/docs/code/Utopia/Content/Document.html +1411 -1407
- data/docs/code/Utopia/Content/Document/State.html +1048 -1048
- data/docs/code/Utopia/Content/Link.html +1023 -1023
- data/docs/code/Utopia/Content/Links.html +629 -623
- data/docs/code/Utopia/Content/MarkupParser.html +702 -702
- data/docs/code/Utopia/Content/MarkupParser/ParsedTag.html +375 -375
- data/docs/code/Utopia/Content/MarkupParser/UnbalancedTagError.html +523 -523
- data/docs/code/Utopia/Content/Namespace.html +416 -416
- data/docs/code/Utopia/Content/Node.html +952 -952
- data/docs/code/Utopia/Content/Node/Context.html +790 -790
- data/docs/code/Utopia/Content/Response.html +686 -686
- data/docs/code/Utopia/Content/SymbolicHash.html +365 -365
- data/docs/code/Utopia/Content/Tags.html +134 -134
- data/docs/code/Utopia/Content/UnbalancedTagError.html +270 -270
- data/docs/code/Utopia/ContentLength.html +298 -294
- data/docs/code/Utopia/Controller.html +657 -651
- data/docs/code/Utopia/Controller/Actions.html +260 -260
- data/docs/code/Utopia/Controller/Actions/Action.html +785 -779
- data/docs/code/Utopia/Controller/Actions/ClassMethods.html +360 -360
- data/docs/code/Utopia/Controller/Base.html +989 -989
- data/docs/code/Utopia/Controller/Respond.html +264 -254
- data/docs/code/Utopia/Controller/Respond/ClassMethods.html +207 -207
- data/docs/code/Utopia/Controller/Respond/Converter.html +219 -219
- data/docs/code/Utopia/Controller/Respond/Converter/Callback.html +425 -425
- data/docs/code/Utopia/Controller/Respond/Converter/ToJSON.html +323 -317
- data/docs/code/Utopia/Controller/Respond/Passthrough.html +266 -260
- data/docs/code/Utopia/Controller/Respond/Responder.html +449 -443
- data/docs/code/Utopia/Controller/Rewrite.html +260 -260
- data/docs/code/Utopia/Controller/Rewrite/ClassMethods.html +216 -216
- data/docs/code/Utopia/Controller/Rewrite/ExtractPrefixRule.html +303 -303
- data/docs/code/Utopia/Controller/Rewrite/Rewriter.html +402 -402
- data/docs/code/Utopia/Controller/Rewrite/Rule.html +193 -193
- data/docs/code/Utopia/Controller/Variables.html +428 -428
- data/docs/code/Utopia/Controllers.html +216 -216
- data/docs/code/Utopia/Exceptions.html +125 -125
- data/docs/code/Utopia/Exceptions/Handler.html +405 -405
- data/docs/code/Utopia/Exceptions/Mailer.html +400 -394
- data/docs/code/Utopia/Extensions.html +116 -116
- data/docs/code/Utopia/Extensions/ArraySplit.html +164 -164
- data/docs/code/Utopia/Extensions/DateTimeComparison.html +173 -173
- data/docs/code/Utopia/Extensions/TimeDateComparison.html +173 -173
- data/docs/code/Utopia/HTTP.html +193 -187
- data/docs/code/Utopia/HTTP/Status.html +355 -355
- data/docs/code/Utopia/Locale.html +522 -522
- data/docs/code/Utopia/Localization.html +886 -880
- data/docs/code/Utopia/Localization/Wrapper.html +403 -403
- data/docs/code/Utopia/Logger.html +185 -185
- data/docs/code/Utopia/Logger/CompactFormatter.html +290 -290
- data/docs/code/Utopia/Path.html +2562 -2556
- data/docs/code/Utopia/Path/Matcher.html +395 -395
- data/docs/code/Utopia/Path/Matcher/MatchData.html +418 -418
- data/docs/code/Utopia/Redirection.html +148 -142
- data/docs/code/Utopia/Redirection/ClientRedirect.html +594 -594
- data/docs/code/Utopia/Redirection/DirectoryIndex.html +265 -265
- data/docs/code/Utopia/Redirection/Errors.html +391 -385
- data/docs/code/Utopia/Redirection/Moved.html +265 -265
- data/docs/code/Utopia/Redirection/RequestFailure.html +201 -201
- data/docs/code/Utopia/Redirection/Rewrite.html +265 -265
- data/docs/code/Utopia/Session.html +723 -717
- data/docs/code/Utopia/Session/LazyHash.html +709 -709
- data/docs/code/Utopia/Setup.html +783 -777
- data/docs/code/Utopia/Static.html +516 -510
- data/docs/code/Utopia/Static/LocalFile.html +875 -869
- data/docs/code/Utopia/Static/MimeTypeLoader.html +427 -427
- data/docs/code/Utopia/Static/MimeTypeLoader/ExpansionError.html +123 -123
- data/docs/code/_index.html +757 -757
- data/docs/code/class_list.html +51 -51
- data/docs/code/css/full_list.css +58 -58
- data/docs/code/css/style.css +496 -499
- data/docs/code/file.README.html +72 -70
- data/docs/code/file_list.html +56 -56
- data/docs/code/frames.html +17 -17
- data/docs/code/index.html +72 -70
- data/docs/code/js/app.js +292 -248
- data/docs/code/js/full_list.js +216 -216
- data/docs/code/js/jquery.js +3 -3
- data/docs/code/method_list.html +3443 -3443
- data/docs/code/top-level-namespace.html +109 -109
- data/docs/index.html +2 -2
- data/docs/wiki.html +2 -2
- data/docs/wiki/edit.html +1 -1
- data/docs/wiki/javascript.html +153 -0
- data/docs/wiki/javascript/index.html +153 -0
- data/documentation/.yarnrc +1 -0
- data/documentation/Gemfile +1 -0
- data/documentation/config/environment.rb +1 -0
- data/documentation/pages/wiki/content.md +1 -1
- data/documentation/pages/wiki/javascript/content.md +75 -0
- data/documentation/pages/wiki/links.yaml +3 -1
- data/lib/utopia/command/site.rb +4 -4
- data/lib/utopia/version.rb +1 -1
- data/setup/site/.yarnrc +1 -0
- data/setup/site/tasks/yarn.rake +32 -0
- data/spec/utopia/command_spec.rb +2 -2
- metadata +8 -9
- data/docs/wiki/bower-integration.html +0 -74
- data/docs/wiki/bower-integration/index.html +0 -74
- data/documentation/.bowerrc +0 -4
- data/documentation/pages/wiki/bower-integration/content.md +0 -25
- data/setup/.bowerrc +0 -3
- data/setup/site/.bowerrc +0 -4
- data/setup/site/tasks/bower.rake +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faa4b3c96229515a502fd53580408bc45b08c35a55cbda43e0d63644716e97c2
|
4
|
+
data.tar.gz: d00a2bf55b7b23be8c6365500986cedf672b3ffa4e0b227c18f42a57ad4f93f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d9fb9ce78992d3cb1c127ba05fe4f112832721a1524bcaff08e51e415617c8be06c6b60cdd48170b18b27963bd0341f2cb8beb0626df5818f1484dd90ea6a8
|
7
|
+
data.tar.gz: 428dbb602a5e4dd86f282533287dc4af9dc384019e562d33cede4b998ab04d2c1bf7fa7d27c4376796c2dc27b9e74d6dd7c922960cca67ebf3e9822f3abb4671
|
data/.travis.yml
CHANGED
@@ -13,6 +13,7 @@ matrix:
|
|
13
13
|
- rvm: 2.4
|
14
14
|
- rvm: 2.5
|
15
15
|
- rvm: 2.6
|
16
|
+
env: BENCHMARK=true
|
16
17
|
- rvm: 2.6
|
17
18
|
env: COVERAGE=BriefSummary,Coveralls
|
18
19
|
- rvm: ruby-head
|
@@ -22,5 +23,3 @@ matrix:
|
|
22
23
|
- rvm: ruby-head
|
23
24
|
- rvm: jruby-head
|
24
25
|
- rvm: truffleruby
|
25
|
-
|
26
|
-
env: BENCHMARK=true
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -8,6 +8,7 @@ namespace :documentation do
|
|
8
8
|
sh('yard', '-o', "documentation/public/code")
|
9
9
|
end
|
10
10
|
|
11
|
+
desc "Build and run the documentation wiki."
|
11
12
|
task :server => :yard do
|
12
13
|
Bundler.with_clean_env do
|
13
14
|
Dir.chdir('documentation') do
|
@@ -17,6 +18,7 @@ namespace :documentation do
|
|
17
18
|
end
|
18
19
|
end
|
19
20
|
|
21
|
+
desc "Update static documentation."
|
20
22
|
task :static => :yard do
|
21
23
|
require 'rackula/command'
|
22
24
|
|
data/docs/code/Utopia.html
CHANGED
@@ -1,92 +1,92 @@
|
|
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
|
-
Module: Utopia
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.
|
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";
|
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 (U)</a> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">Utopia</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>Module: Utopia
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/utopia.rb<span class="defines">,<br />
|
82
|
-
lib/utopia/http.rb,<br /> lib/utopia/path.rb,<br /> lib/utopia/setup.rb,<br /> lib/utopia/locale.rb,<br /> lib/utopia/logger.rb,<br /> lib/utopia/static.rb,<br /> lib/utopia/command.rb,<br /> lib/utopia/content.rb,<br /> lib/utopia/session.rb,<br /> lib/utopia/version.rb,<br /> lib/utopia/controller.rb,<br /> lib/utopia/exceptions.rb,<br /> lib/utopia/middleware.rb,<br /> lib/utopia/redirection.rb,<br /> lib/utopia/command/site.rb,<br /> lib/utopia/content/link.rb,<br /> lib/utopia/content/node.rb,<br /> lib/utopia/content/tags.rb,<br /> lib/utopia/localization.rb,<br /> lib/utopia/path/matcher.rb,<br /> lib/utopia/content/links.rb,<br /> lib/utopia/command/server.rb,<br /> lib/utopia/content/markup.rb,<br /> lib/utopia/content_length.rb,<br /> lib/utopia/controller/base.rb,<br /> lib/utopia/content/document.rb,<br /> lib/utopia/content/response.rb,<br /> lib/utopia/content/namespace.rb,<br /> lib/utopia/exceptions/mailer.rb,<br /> lib/utopia/session/lazy_hash.rb,<br /> lib/utopia/static/local_file.rb,<br /> lib/utopia/static/mime_types.rb,<br /> lib/utopia/controller/actions.rb,<br /> lib/utopia/controller/respond.rb,<br /> lib/utopia/controller/rewrite.rb,<br /> lib/utopia/exceptions/handler.rb,<br /> lib/utopia/command/environment.rb,<br /> lib/utopia/controller/variables.rb,<br /> lib/utopia/extensions/array_split.rb,<br /> lib/utopia/logger/compact_formatter.rb,<br /> lib/utopia/extensions/date_comparisons.rb</span>
|
83
|
-
</dd>
|
84
|
-
</dl>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<h2>Overview</h2><div class="docstring">
|
89
|
-
<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
|
+
Module: Utopia
|
8
|
+
|
9
|
+
— 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";
|
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 (U)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Utopia</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>Module: Utopia
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/utopia.rb<span class="defines">,<br />
|
82
|
+
lib/utopia/http.rb,<br /> lib/utopia/path.rb,<br /> lib/utopia/setup.rb,<br /> lib/utopia/locale.rb,<br /> lib/utopia/logger.rb,<br /> lib/utopia/static.rb,<br /> lib/utopia/command.rb,<br /> lib/utopia/content.rb,<br /> lib/utopia/session.rb,<br /> lib/utopia/version.rb,<br /> lib/utopia/controller.rb,<br /> lib/utopia/exceptions.rb,<br /> lib/utopia/middleware.rb,<br /> lib/utopia/redirection.rb,<br /> lib/utopia/command/site.rb,<br /> lib/utopia/content/link.rb,<br /> lib/utopia/content/node.rb,<br /> lib/utopia/content/tags.rb,<br /> lib/utopia/localization.rb,<br /> lib/utopia/path/matcher.rb,<br /> lib/utopia/content/links.rb,<br /> lib/utopia/command/server.rb,<br /> lib/utopia/content/markup.rb,<br /> lib/utopia/content_length.rb,<br /> lib/utopia/controller/base.rb,<br /> lib/utopia/content/document.rb,<br /> lib/utopia/content/response.rb,<br /> lib/utopia/content/namespace.rb,<br /> lib/utopia/exceptions/mailer.rb,<br /> lib/utopia/session/lazy_hash.rb,<br /> lib/utopia/static/local_file.rb,<br /> lib/utopia/static/mime_types.rb,<br /> lib/utopia/controller/actions.rb,<br /> lib/utopia/controller/respond.rb,<br /> lib/utopia/controller/rewrite.rb,<br /> lib/utopia/exceptions/handler.rb,<br /> lib/utopia/command/environment.rb,<br /> lib/utopia/controller/variables.rb,<br /> lib/utopia/extensions/array_split.rb,<br /> lib/utopia/logger/compact_formatter.rb,<br /> lib/utopia/extensions/date_comparisons.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Overview</h2><div class="docstring">
|
89
|
+
<div class="discussion">
|
90
90
|
<p>Copyright, 2012, by Samuel G. D. Williams. <a href="http://www.codeotaku.com">http://www.codeotaku.com</a></p>
|
91
91
|
|
92
92
|
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -106,368 +106,374 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
106
106
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
107
107
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
108
108
|
THE SOFTWARE.</p>
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
<div class="tags">
|
114
|
-
|
115
|
-
|
116
|
-
</div><h2>Defined Under Namespace</h2>
|
117
|
-
<p class="children">
|
118
|
-
|
119
|
-
|
120
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Utopia/Command.html" title="Utopia::Command (module)">Command</a></span>, <span class='object_link'><a href="Utopia/Controllers.html" title="Utopia::Controllers (module)">Controllers</a></span>, <span class='object_link'><a href="Utopia/Exceptions.html" title="Utopia::Exceptions (module)">Exceptions</a></span>, <span class='object_link'><a href="Utopia/Extensions.html" title="Utopia::Extensions (module)">Extensions</a></span>, <span class='object_link'><a href="Utopia/HTTP.html" title="Utopia::HTTP (module)">HTTP</a></span>, <span class='object_link'><a href="Utopia/Logger.html" title="Utopia::Logger (module)">Logger</a></span>, <span class='object_link'><a href="Utopia/Redirection.html" title="Utopia::Redirection (module)">Redirection</a></span>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Utopia/Content.html" title="Utopia::Content (class)">Content</a></span>, <span class='object_link'><a href="Utopia/ContentLength.html" title="Utopia::ContentLength (class)">ContentLength</a></span>, <span class='object_link'><a href="Utopia/Controller.html" title="Utopia::Controller (class)">Controller</a></span>, <span class='object_link'><a href="Utopia/Locale.html" title="Utopia::Locale (class)">Locale</a></span>, <span class='object_link'><a href="Utopia/Localization.html" title="Utopia::Localization (class)">Localization</a></span>, <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>, <span class='object_link'><a href="Utopia/Session.html" title="Utopia::Session (class)">Session</a></span>, <span class='object_link'><a href="Utopia/Setup.html" title="Utopia::Setup (class)">Setup</a></span>, <span class='object_link'><a href="Utopia/Static.html" title="Utopia::Static (class)">Static</a></span>
|
125
|
-
|
126
|
-
|
127
|
-
</p>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
<
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
</div>
|
113
|
+
<div class="tags">
|
114
|
+
|
115
|
+
|
116
|
+
</div><h2>Defined Under Namespace</h2>
|
117
|
+
<p class="children">
|
118
|
+
|
119
|
+
|
120
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Utopia/Command.html" title="Utopia::Command (module)">Command</a></span>, <span class='object_link'><a href="Utopia/Controllers.html" title="Utopia::Controllers (module)">Controllers</a></span>, <span class='object_link'><a href="Utopia/Exceptions.html" title="Utopia::Exceptions (module)">Exceptions</a></span>, <span class='object_link'><a href="Utopia/Extensions.html" title="Utopia::Extensions (module)">Extensions</a></span>, <span class='object_link'><a href="Utopia/HTTP.html" title="Utopia::HTTP (module)">HTTP</a></span>, <span class='object_link'><a href="Utopia/Logger.html" title="Utopia::Logger (module)">Logger</a></span>, <span class='object_link'><a href="Utopia/Redirection.html" title="Utopia::Redirection (module)">Redirection</a></span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Utopia/Content.html" title="Utopia::Content (class)">Content</a></span>, <span class='object_link'><a href="Utopia/ContentLength.html" title="Utopia::ContentLength (class)">ContentLength</a></span>, <span class='object_link'><a href="Utopia/Controller.html" title="Utopia::Controller (class)">Controller</a></span>, <span class='object_link'><a href="Utopia/Locale.html" title="Utopia::Locale (class)">Locale</a></span>, <span class='object_link'><a href="Utopia/Localization.html" title="Utopia::Localization (class)">Localization</a></span>, <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>, <span class='object_link'><a href="Utopia/Session.html" title="Utopia::Session (class)">Session</a></span>, <span class='object_link'><a href="Utopia/Setup.html" title="Utopia::Setup (class)">Setup</a></span>, <span class='object_link'><a href="Utopia/Static.html" title="Utopia::Static (class)">Static</a></span>
|
125
|
+
|
126
|
+
|
127
|
+
</p>
|
128
|
+
|
129
|
+
|
130
|
+
<h2>
|
131
|
+
Constant Summary
|
132
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
133
|
+
</h2>
|
134
|
+
|
135
|
+
<dl class="constants">
|
136
|
+
|
137
|
+
<dt id="VERSION-constant" class="">VERSION =
|
138
|
+
|
139
|
+
</dt>
|
140
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>2.6.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
141
|
+
|
142
|
+
<dt id="PAGES_PATH-constant" class="">PAGES_PATH =
|
143
|
+
<div class="docstring">
|
144
|
+
<div class="discussion">
|
140
145
|
<p>The default pages path for <span class='object_link'><a href="Utopia/Content.html" title="Utopia::Content (class)">Content</a></span> middleware.</p>
|
141
|
-
|
142
|
-
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
<div class="tags">
|
146
|
-
|
147
|
-
|
148
|
-
</div>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
<div class="discussion">
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
<div class="tags">
|
151
|
+
|
152
|
+
|
153
|
+
</div>
|
154
|
+
</dt>
|
155
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pages</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
156
|
+
|
157
|
+
<dt id="VARIABLES_KEY-constant" class="">VARIABLES_KEY =
|
158
|
+
<div class="docstring">
|
159
|
+
<div class="discussion">
|
155
160
|
<p>This is used for shared controller variables which get consumed by the content middleware.</p>
|
156
|
-
|
157
|
-
|
158
|
-
</div>
|
159
|
-
</div>
|
160
|
-
<div class="tags">
|
161
|
-
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
161
|
+
|
162
|
+
|
163
|
+
</div>
|
164
|
+
</div>
|
165
|
+
<div class="tags">
|
166
|
+
|
167
|
+
|
168
|
+
</div>
|
169
|
+
</dt>
|
170
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>utopia.variables</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
171
|
+
|
172
|
+
</dl>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<h2>
|
183
|
+
Class Method Summary
|
184
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
185
|
+
</h2>
|
186
|
+
|
187
|
+
<ul class="summary">
|
188
|
+
|
189
|
+
<li class="public ">
|
190
|
+
<span class="summary_signature">
|
191
|
+
|
192
|
+
<a href="#default_path-class_method" title="default_path (class method)">.<strong>default_path</strong>(*args) ⇒ Path </a>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
</span>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
200
206
|
<span class="summary_desc"><div class='inline'><p>The same as <span class='object_link'><a href="#default_root-class_method" title="Utopia.default_root (method)">Utopia.default_root</a></span> but returns an instance of <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>.</p>
|
201
|
-
</div></span>
|
202
|
-
|
203
|
-
</li>
|
204
|
-
|
205
|
-
|
206
|
-
<li class="public ">
|
207
|
-
<span class="summary_signature">
|
208
|
-
|
209
|
-
<a href="#default_root-class_method" title="default_root (class method)">.<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ Object </a>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
</span>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
207
|
+
</div></span>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
|
211
|
+
|
212
|
+
<li class="public ">
|
213
|
+
<span class="summary_signature">
|
214
|
+
|
215
|
+
<a href="#default_root-class_method" title="default_root (class method)">.<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ Object </a>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
223
229
|
<span class="summary_desc"><div class='inline'><p>The default root directory for middleware to operate within, e.g.</p>
|
224
|
-
</div></span>
|
225
|
-
|
226
|
-
</li>
|
227
|
-
|
228
|
-
|
229
|
-
<li class="public ">
|
230
|
-
<span class="summary_signature">
|
231
|
-
|
232
|
-
<a href="#Path-class_method" title="Path (class method)">.<strong>Path</strong>(path) ⇒ Object </a>
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
</span>
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
230
|
+
</div></span>
|
231
|
+
|
232
|
+
</li>
|
233
|
+
|
234
|
+
|
235
|
+
<li class="public ">
|
236
|
+
<span class="summary_signature">
|
237
|
+
|
238
|
+
<a href="#Path-class_method" title="Path (class method)">.<strong>Path</strong>(path) ⇒ Object </a>
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
</span>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
246
252
|
<span class="summary_desc"><div class='inline'>
|
247
|
-
</div></span>
|
248
|
-
|
249
|
-
</li>
|
250
|
-
|
251
|
-
|
252
|
-
<li class="public ">
|
253
|
-
<span class="summary_signature">
|
254
|
-
|
255
|
-
<a href="#setup-class_method" title="setup (class method)">.<strong>setup</strong>(config_root = nil, **options) ⇒ Object </a>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
</span>
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
253
|
+
</div></span>
|
254
|
+
|
255
|
+
</li>
|
256
|
+
|
257
|
+
|
258
|
+
<li class="public ">
|
259
|
+
<span class="summary_signature">
|
260
|
+
|
261
|
+
<a href="#setup-class_method" title="setup (class method)">.<strong>setup</strong>(config_root = nil, **options) ⇒ Object </a>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
</span>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
269
275
|
<span class="summary_desc"><div class='inline'><p>The main entry point for <code>config/environment.rb</code> for setting up the site.</p>
|
270
|
-
</div></span>
|
271
|
-
|
272
|
-
</li>
|
273
|
-
|
274
|
-
|
275
|
-
</ul>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
<div id="class_method_details" class="method_details_list">
|
281
|
-
<h2>Class Method Details</h2>
|
282
|
-
|
283
|
-
|
284
|
-
<div class="method_details first">
|
285
|
-
<h3 class="signature first" id="default_path-class_method">
|
286
|
-
|
287
|
-
.<strong>default_path</strong>(*args) ⇒ <tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
</h3><div class="docstring">
|
294
|
-
<div class="discussion">
|
276
|
+
</div></span>
|
277
|
+
|
278
|
+
</li>
|
279
|
+
|
280
|
+
|
281
|
+
</ul>
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
<div id="class_method_details" class="method_details_list">
|
287
|
+
<h2>Class Method Details</h2>
|
288
|
+
|
289
|
+
|
290
|
+
<div class="method_details first">
|
291
|
+
<h3 class="signature first" id="default_path-class_method">
|
292
|
+
|
293
|
+
.<strong>default_path</strong>(*args) ⇒ <tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
</h3><div class="docstring">
|
300
|
+
<div class="discussion">
|
295
301
|
<p>The same as <span class='object_link'><a href="#default_root-class_method" title="Utopia.default_root (method)">default_root</a></span> but returns an instance of <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>.</p>
|
296
|
-
|
297
|
-
|
298
|
-
</div>
|
299
|
-
</div>
|
300
|
-
<div class="tags">
|
301
|
-
|
302
|
-
<p class="tag_title">Returns:</p>
|
303
|
-
<ul class="return">
|
304
|
-
|
305
|
-
<li>
|
306
|
-
|
307
|
-
|
308
|
-
<span class='type'>(<tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>)</span>
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
—
|
302
|
+
|
303
|
+
|
304
|
+
</div>
|
305
|
+
</div>
|
306
|
+
<div class="tags">
|
307
|
+
|
308
|
+
<p class="tag_title">Returns:</p>
|
309
|
+
<ul class="return">
|
310
|
+
|
311
|
+
<li>
|
312
|
+
|
313
|
+
|
314
|
+
<span class='type'>(<tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>)</span>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
—
|
313
319
|
<div class='inline'><p>The path as requested.</p>
|
314
|
-
</div>
|
315
|
-
|
316
|
-
</li>
|
317
|
-
|
318
|
-
</ul>
|
319
|
-
|
320
|
-
</div><table class="source_code">
|
321
|
-
<tr>
|
322
|
-
<td>
|
320
|
+
</div>
|
321
|
+
|
322
|
+
</li>
|
323
|
+
|
324
|
+
</ul>
|
325
|
+
|
326
|
+
</div><table class="source_code">
|
327
|
+
<tr>
|
328
|
+
<td>
|
323
329
|
<pre class="lines">
|
324
330
|
|
325
331
|
|
326
332
|
42
|
327
333
|
43
|
328
|
-
44</pre>
|
329
|
-
</td>
|
330
|
-
<td>
|
334
|
+
44</pre>
|
335
|
+
</td>
|
336
|
+
<td>
|
331
337
|
<pre class="code"><span class="info file"># File 'lib/utopia/middleware.rb', line 42</span>
|
332
338
|
|
333
339
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_path'>default_path</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
334
340
|
<span class='const'><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_default_root'>default_root</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
335
|
-
<span class='kw'>end</span></pre>
|
336
|
-
</td>
|
337
|
-
</tr>
|
338
|
-
</table>
|
339
|
-
</div>
|
340
|
-
|
341
|
-
<div class="method_details ">
|
342
|
-
<h3 class="signature " id="default_root-class_method">
|
343
|
-
|
344
|
-
.<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ <tt>Object</tt>
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
</h3><div class="docstring">
|
351
|
-
<div class="discussion">
|
341
|
+
<span class='kw'>end</span></pre>
|
342
|
+
</td>
|
343
|
+
</tr>
|
344
|
+
</table>
|
345
|
+
</div>
|
346
|
+
|
347
|
+
<div class="method_details ">
|
348
|
+
<h3 class="signature " id="default_root-class_method">
|
349
|
+
|
350
|
+
.<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ <tt>Object</tt>
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
</h3><div class="docstring">
|
357
|
+
<div class="discussion">
|
352
358
|
<p>The default root directory for middleware to operate within, e.g. the web-site directory. Convention over configuration.</p>
|
353
|
-
|
354
|
-
|
355
|
-
</div>
|
356
|
-
</div>
|
357
|
-
<div class="tags">
|
358
|
-
<p class="tag_title">Parameters:</p>
|
359
|
-
<ul class="param">
|
360
|
-
|
361
|
-
<li>
|
362
|
-
|
363
|
-
<span class='name'>subdirectory</span>
|
364
|
-
|
365
|
-
|
366
|
-
<span class='type'>(<tt>String</tt>)</span>
|
367
|
-
|
368
|
-
|
369
|
-
<em class="default">(defaults to: <tt>PAGES_PATH</tt>)</em>
|
370
|
-
|
371
|
-
|
372
|
-
—
|
359
|
+
|
360
|
+
|
361
|
+
</div>
|
362
|
+
</div>
|
363
|
+
<div class="tags">
|
364
|
+
<p class="tag_title">Parameters:</p>
|
365
|
+
<ul class="param">
|
366
|
+
|
367
|
+
<li>
|
368
|
+
|
369
|
+
<span class='name'>subdirectory</span>
|
370
|
+
|
371
|
+
|
372
|
+
<span class='type'>(<tt>String</tt>)</span>
|
373
|
+
|
374
|
+
|
375
|
+
<em class="default">(defaults to: <tt>PAGES_PATH</tt>)</em>
|
376
|
+
|
377
|
+
|
378
|
+
—
|
373
379
|
<div class='inline'><p>Appended to the default root to make a more specific path.</p>
|
374
|
-
</div>
|
375
|
-
|
376
|
-
</li>
|
377
|
-
|
378
|
-
<li>
|
379
|
-
|
380
|
-
<span class='name'>pwd</span>
|
381
|
-
|
382
|
-
|
383
|
-
<span class='type'>(<tt>String</tt>)</span>
|
384
|
-
|
385
|
-
|
386
|
-
<em class="default">(defaults to: <tt>Dir.pwd</tt>)</em>
|
387
|
-
|
388
|
-
|
389
|
-
—
|
380
|
+
</div>
|
381
|
+
|
382
|
+
</li>
|
383
|
+
|
384
|
+
<li>
|
385
|
+
|
386
|
+
<span class='name'>pwd</span>
|
387
|
+
|
388
|
+
|
389
|
+
<span class='type'>(<tt>String</tt>)</span>
|
390
|
+
|
391
|
+
|
392
|
+
<em class="default">(defaults to: <tt>Dir.pwd</tt>)</em>
|
393
|
+
|
394
|
+
|
395
|
+
—
|
390
396
|
<div class='inline'><p>The working directory for the current site.</p>
|
391
|
-
</div>
|
392
|
-
|
393
|
-
</li>
|
394
|
-
|
395
|
-
</ul>
|
396
|
-
|
397
|
-
|
398
|
-
</div><table class="source_code">
|
399
|
-
<tr>
|
400
|
-
<td>
|
397
|
+
</div>
|
398
|
+
|
399
|
+
</li>
|
400
|
+
|
401
|
+
</ul>
|
402
|
+
|
403
|
+
|
404
|
+
</div><table class="source_code">
|
405
|
+
<tr>
|
406
|
+
<td>
|
401
407
|
<pre class="lines">
|
402
408
|
|
403
409
|
|
404
410
|
36
|
405
411
|
37
|
406
|
-
38</pre>
|
407
|
-
</td>
|
408
|
-
<td>
|
412
|
+
38</pre>
|
413
|
+
</td>
|
414
|
+
<td>
|
409
415
|
<pre class="code"><span class="info file"># File 'lib/utopia/middleware.rb', line 36</span>
|
410
416
|
|
411
417
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_root'>default_root</span><span class='lparen'>(</span><span class='id identifier rubyid_subdirectory'>subdirectory</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#PAGES_PATH-constant" title="Utopia::PAGES_PATH (constant)">PAGES_PATH</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_pwd'>pwd</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span><span class='rparen'>)</span>
|
412
418
|
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_subdirectory'>subdirectory</span><span class='comma'>,</span> <span class='id identifier rubyid_pwd'>pwd</span><span class='rparen'>)</span>
|
413
|
-
<span class='kw'>end</span></pre>
|
414
|
-
</td>
|
415
|
-
</tr>
|
416
|
-
</table>
|
417
|
-
</div>
|
418
|
-
|
419
|
-
<div class="method_details ">
|
420
|
-
<h3 class="signature " id="Path-class_method">
|
421
|
-
|
422
|
-
.<strong>Path</strong>(path) ⇒ <tt>Object</tt>
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
</h3><table class="source_code">
|
429
|
-
<tr>
|
430
|
-
<td>
|
419
|
+
<span class='kw'>end</span></pre>
|
420
|
+
</td>
|
421
|
+
</tr>
|
422
|
+
</table>
|
423
|
+
</div>
|
424
|
+
|
425
|
+
<div class="method_details ">
|
426
|
+
<h3 class="signature " id="Path-class_method">
|
427
|
+
|
428
|
+
.<strong>Path</strong>(path) ⇒ <tt>Object</tt>
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
</h3><table class="source_code">
|
435
|
+
<tr>
|
436
|
+
<td>
|
431
437
|
<pre class="lines">
|
432
438
|
|
433
439
|
|
434
440
|
377
|
435
441
|
378
|
436
|
-
379</pre>
|
437
|
-
</td>
|
438
|
-
<td>
|
442
|
+
379</pre>
|
443
|
+
</td>
|
444
|
+
<td>
|
439
445
|
<pre class="code"><span class="info file"># File 'lib/utopia/path.rb', line 377</span>
|
440
446
|
|
441
447
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='const'>Path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
442
448
|
<span class='const'><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="Utopia/Path.html#create-class_method" title="Utopia::Path.create (method)">create</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
443
|
-
<span class='kw'>end</span></pre>
|
444
|
-
</td>
|
445
|
-
</tr>
|
446
|
-
</table>
|
447
|
-
</div>
|
448
|
-
|
449
|
-
<div class="method_details ">
|
450
|
-
<h3 class="signature " id="setup-class_method">
|
451
|
-
|
452
|
-
.<strong>setup</strong>(config_root = nil, **options) ⇒ <tt>Object</tt>
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
</h3><div class="docstring">
|
459
|
-
<div class="discussion">
|
449
|
+
<span class='kw'>end</span></pre>
|
450
|
+
</td>
|
451
|
+
</tr>
|
452
|
+
</table>
|
453
|
+
</div>
|
454
|
+
|
455
|
+
<div class="method_details ">
|
456
|
+
<h3 class="signature " id="setup-class_method">
|
457
|
+
|
458
|
+
.<strong>setup</strong>(config_root = nil, **options) ⇒ <tt>Object</tt>
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
</h3><div class="docstring">
|
465
|
+
<div class="discussion">
|
460
466
|
<p>The main entry point for <code>config/environment.rb</code> for setting up the site.</p>
|
461
|
-
|
462
|
-
|
463
|
-
</div>
|
464
|
-
</div>
|
465
|
-
<div class="tags">
|
466
|
-
|
467
|
-
|
468
|
-
</div><table class="source_code">
|
469
|
-
<tr>
|
470
|
-
<td>
|
467
|
+
|
468
|
+
|
469
|
+
</div>
|
470
|
+
</div>
|
471
|
+
<div class="tags">
|
472
|
+
|
473
|
+
|
474
|
+
</div><table class="source_code">
|
475
|
+
<tr>
|
476
|
+
<td>
|
471
477
|
<pre class="lines">
|
472
478
|
|
473
479
|
|
@@ -478,9 +484,9 @@ THE SOFTWARE.</p>
|
|
478
484
|
107
|
479
485
|
108
|
480
486
|
109
|
481
|
-
110</pre>
|
482
|
-
</td>
|
483
|
-
<td>
|
487
|
+
110</pre>
|
488
|
+
</td>
|
489
|
+
<td>
|
484
490
|
<pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 103</span>
|
485
491
|
|
486
492
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup'>setup</span><span class='lparen'>(</span><span class='id identifier rubyid_config_root'>config_root</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -490,22 +496,22 @@ THE SOFTWARE.</p>
|
|
490
496
|
<span class='kw'>end</span>
|
491
497
|
|
492
498
|
<span class='const'><span class='object_link'><a href="Utopia/Setup.html" title="Utopia::Setup (class)">Setup</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Utopia/Setup.html#initialize-instance_method" title="Utopia::Setup#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_config_root'>config_root</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:apply</span><span class='rparen'>)</span>
|
493
|
-
<span class='kw'>end</span></pre>
|
494
|
-
</td>
|
495
|
-
</tr>
|
496
|
-
</table>
|
497
|
-
</div>
|
498
|
-
|
499
|
-
</div>
|
500
|
-
|
501
|
-
</div>
|
502
|
-
|
503
|
-
<div id="footer">
|
504
|
-
Generated on Sat Mar
|
505
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
506
|
-
0.9.
|
507
|
-
</div>
|
508
|
-
|
509
|
-
</div>
|
510
|
-
</body>
|
499
|
+
<span class='kw'>end</span></pre>
|
500
|
+
</td>
|
501
|
+
</tr>
|
502
|
+
</table>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
</div>
|
506
|
+
|
507
|
+
</div>
|
508
|
+
|
509
|
+
<div id="footer">
|
510
|
+
Generated on Sat Mar 9 12:01:52 2019 by
|
511
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
512
|
+
0.9.18 (ruby-2.6.1).
|
513
|
+
</div>
|
514
|
+
|
515
|
+
</div>
|
516
|
+
</body>
|
511
517
|
</html>
|