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,470 +1,476 @@
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::Setup
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::Setup";
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">Setup</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::Setup
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::Setup</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/setup.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <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::Setup
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::Setup";
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">Setup</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::Setup
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::Setup</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/setup.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
104
  <p>Used for setting up a Utopia web application, typically via <code>config/environment.rb</code></p>
105
-
106
-
107
- </div>
108
- </div>
109
- <div class="tags">
110
-
111
-
112
- </div>
113
- <h2>Constant Summary</h2>
114
- <dl class="constants">
115
-
116
- <dt id="ENVIRONMENT_KEY-constant" class="">ENVIRONMENT_KEY =
117
-
118
- </dt>
119
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>UTOPIA_ENV</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
120
-
121
- <dt id="DEFAULT_ENVIRONMENT-constant" class="">DEFAULT_ENVIRONMENT =
122
-
123
- </dt>
124
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>environment</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
125
-
126
- </dl>
127
-
128
-
129
-
130
-
131
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
132
- <ul class="summary">
133
-
134
- <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#config_root-instance_method" title="#config_root (instance method)">#<strong>config_root</strong> &#x21d2; Object </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
-
145
-
146
- <span class="note title readonly">readonly</span>
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+
112
+ </div>
113
+
114
+ <h2>
115
+ Constant Summary
116
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
117
+ </h2>
118
+
119
+ <dl class="constants">
120
+
121
+ <dt id="ENVIRONMENT_KEY-constant" class="">ENVIRONMENT_KEY =
122
+
123
+ </dt>
124
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>UTOPIA_ENV</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
125
+
126
+ <dt id="DEFAULT_ENVIRONMENT-constant" class="">DEFAULT_ENVIRONMENT =
127
+
128
+ </dt>
129
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>environment</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
130
+
131
+ </dl>
132
+
133
+
134
+
135
+
136
+
137
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
138
+ <ul class="summary">
139
+
140
+ <li class="public ">
141
+ <span class="summary_signature">
142
+
143
+ <a href="#config_root-instance_method" title="#config_root (instance method)">#<strong>config_root</strong> &#x21d2; Object </a>
144
+
145
+
146
+
147
+ </span>
148
+
149
+
150
+
151
+
152
+ <span class="note title readonly">readonly</span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
156
162
  <span class="summary_desc"><div class='inline'><p>Returns the value of attribute config_root.</p>
157
- </div></span>
158
-
159
- </li>
160
-
161
-
162
- <li class="public ">
163
- <span class="summary_signature">
164
-
165
- <a href="#environment-instance_method" title="#environment (instance method)">#<strong>environment</strong> &#x21d2; Object </a>
166
-
167
-
168
-
169
- </span>
170
-
171
-
172
-
173
-
174
- <span class="note title readonly">readonly</span>
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
163
+ </div></span>
164
+
165
+ </li>
166
+
167
+
168
+ <li class="public ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#environment-instance_method" title="#environment (instance method)">#<strong>environment</strong> &#x21d2; Object </a>
172
+
173
+
174
+
175
+ </span>
176
+
177
+
178
+
179
+
180
+ <span class="note title readonly">readonly</span>
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
184
190
  <span class="summary_desc"><div class='inline'><p>Returns the value of attribute environment.</p>
185
- </div></span>
186
-
187
- </li>
188
-
189
-
190
- <li class="public ">
191
- <span class="summary_signature">
192
-
193
- <a href="#external_encoding-instance_method" title="#external_encoding (instance method)">#<strong>external_encoding</strong> &#x21d2; Object </a>
194
-
195
-
196
-
197
- </span>
198
-
199
-
200
-
201
-
202
- <span class="note title readonly">readonly</span>
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
191
+ </div></span>
192
+
193
+ </li>
194
+
195
+
196
+ <li class="public ">
197
+ <span class="summary_signature">
198
+
199
+ <a href="#external_encoding-instance_method" title="#external_encoding (instance method)">#<strong>external_encoding</strong> &#x21d2; Object </a>
200
+
201
+
202
+
203
+ </span>
204
+
205
+
206
+
207
+
208
+ <span class="note title readonly">readonly</span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
212
218
  <span class="summary_desc"><div class='inline'><p>Returns the value of attribute external_encoding.</p>
213
- </div></span>
214
-
215
- </li>
216
-
217
-
218
- </ul>
219
-
220
-
221
-
222
-
223
-
224
- <h2>
225
- Instance Method Summary
226
- <small><a href="#" class="summary_toggle">collapse</a></small>
227
- </h2>
228
-
229
- <ul class="summary">
230
-
231
- <li class="public ">
232
- <span class="summary_signature">
233
-
234
- <a href="#add_load_path-instance_method" title="#add_load_path (instance method)">#<strong>add_load_path</strong>(path) &#x21d2; Object </a>
235
-
236
-
237
-
238
- </span>
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
219
+ </div></span>
220
+
221
+ </li>
222
+
223
+
224
+ </ul>
225
+
226
+
227
+
228
+
229
+
230
+ <h2>
231
+ Instance Method Summary
232
+ <small><a href="#" class="summary_toggle">collapse</a></small>
233
+ </h2>
234
+
235
+ <ul class="summary">
236
+
237
+ <li class="public ">
238
+ <span class="summary_signature">
239
+
240
+ <a href="#add_load_path-instance_method" title="#add_load_path (instance method)">#<strong>add_load_path</strong>(path) &#x21d2; Object </a>
241
+
242
+
243
+
244
+ </span>
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
248
254
  <span class="summary_desc"><div class='inline'><p>Add the given path to $LOAD_PATH.</p>
249
- </div></span>
250
-
251
- </li>
252
-
253
-
254
- <li class="public ">
255
- <span class="summary_signature">
256
-
257
- <a href="#apply-instance_method" title="#apply (instance method)">#<strong>apply</strong> &#x21d2; Object </a>
258
-
259
-
260
-
261
- </span>
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
255
+ </div></span>
256
+
257
+ </li>
258
+
259
+
260
+ <li class="public ">
261
+ <span class="summary_signature">
262
+
263
+ <a href="#apply-instance_method" title="#apply (instance method)">#<strong>apply</strong> &#x21d2; Object </a>
264
+
265
+
266
+
267
+ </span>
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
271
277
  <span class="summary_desc"><div class='inline'>
272
- </div></span>
273
-
274
- </li>
275
-
276
-
277
- <li class="public ">
278
- <span class="summary_signature">
279
-
280
- <a href="#apply_environment-instance_method" title="#apply_environment (instance method)">#<strong>apply_environment</strong> &#x21d2; Object </a>
281
-
282
-
283
-
284
- </span>
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
278
+ </div></span>
279
+
280
+ </li>
281
+
282
+
283
+ <li class="public ">
284
+ <span class="summary_signature">
285
+
286
+ <a href="#apply_environment-instance_method" title="#apply_environment (instance method)">#<strong>apply_environment</strong> &#x21d2; Object </a>
287
+
288
+
289
+
290
+ </span>
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
294
300
  <span class="summary_desc"><div class='inline'>
295
- </div></span>
296
-
297
- </li>
298
-
299
-
300
- <li class="public ">
301
- <span class="summary_signature">
302
-
303
- <a href="#environment_path-instance_method" title="#environment_path (instance method)">#<strong>environment_path</strong>(name, root = @config_root) &#x21d2; Object </a>
304
-
305
-
306
-
307
- </span>
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
301
+ </div></span>
302
+
303
+ </li>
304
+
305
+
306
+ <li class="public ">
307
+ <span class="summary_signature">
308
+
309
+ <a href="#environment_path-instance_method" title="#environment_path (instance method)">#<strong>environment_path</strong>(name, root = @config_root) &#x21d2; Object </a>
310
+
311
+
312
+
313
+ </span>
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
317
323
  <span class="summary_desc"><div class='inline'>
318
- </div></span>
319
-
320
- </li>
321
-
322
-
323
- <li class="public ">
324
- <span class="summary_signature">
325
-
326
- <a href="#explicit_environment_name-instance_method" title="#explicit_environment_name (instance method)">#<strong>explicit_environment_name</strong> &#x21d2; Object </a>
327
-
328
-
329
-
330
- </span>
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
324
+ </div></span>
325
+
326
+ </li>
327
+
328
+
329
+ <li class="public ">
330
+ <span class="summary_signature">
331
+
332
+ <a href="#explicit_environment_name-instance_method" title="#explicit_environment_name (instance method)">#<strong>explicit_environment_name</strong> &#x21d2; Object </a>
333
+
334
+
335
+
336
+ </span>
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
340
346
  <span class="summary_desc"><div class='inline'>
341
- </div></span>
342
-
343
- </li>
344
-
345
-
346
- <li class="public ">
347
- <span class="summary_signature">
348
-
349
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(config_root, external_encoding: Encoding::UTF_8) &#x21d2; Setup </a>
350
-
351
-
352
-
353
- </span>
354
-
355
-
356
- <span class="note title constructor">constructor</span>
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
347
+ </div></span>
348
+
349
+ </li>
350
+
351
+
352
+ <li class="public ">
353
+ <span class="summary_signature">
354
+
355
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(config_root, external_encoding: Encoding::UTF_8) &#x21d2; Setup </a>
356
+
357
+
358
+
359
+ </span>
360
+
361
+
362
+ <span class="note title constructor">constructor</span>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
365
371
  <span class="summary_desc"><div class='inline'><p>A new instance of Setup.</p>
366
- </div></span>
367
-
368
- </li>
369
-
370
-
371
- <li class="public ">
372
- <span class="summary_signature">
373
-
374
- <a href="#load_environment-instance_method" title="#load_environment (instance method)">#<strong>load_environment</strong>(*args) &#x21d2; Object </a>
375
-
376
-
377
-
378
- </span>
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
372
+ </div></span>
373
+
374
+ </li>
375
+
376
+
377
+ <li class="public ">
378
+ <span class="summary_signature">
379
+
380
+ <a href="#load_environment-instance_method" title="#load_environment (instance method)">#<strong>load_environment</strong>(*args) &#x21d2; Object </a>
381
+
382
+
383
+
384
+ </span>
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
388
394
  <span class="summary_desc"><div class='inline'><p>Load the named configuration file from the <code>config_root</code> directory.</p>
389
- </div></span>
390
-
391
- </li>
392
-
393
-
394
- <li class="public ">
395
- <span class="summary_signature">
396
-
397
- <a href="#set_external_encoding-instance_method" title="#set_external_encoding (instance method)">#<strong>set_external_encoding</strong>(encoding = Encoding::UTF_8) &#x21d2; Object </a>
398
-
399
-
400
-
401
- </span>
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
395
+ </div></span>
396
+
397
+ </li>
398
+
399
+
400
+ <li class="public ">
401
+ <span class="summary_signature">
402
+
403
+ <a href="#set_external_encoding-instance_method" title="#set_external_encoding (instance method)">#<strong>set_external_encoding</strong>(encoding = Encoding::UTF_8) &#x21d2; Object </a>
404
+
405
+
406
+
407
+ </span>
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
411
417
  <span class="summary_desc"><div class='inline'><p>If you don’t specify these, it’s possible to have issues when encodings mismatch on the server.</p>
412
- </div></span>
413
-
414
- </li>
415
-
416
-
417
- <li class="public ">
418
- <span class="summary_signature">
419
-
420
- <a href="#site_root-instance_method" title="#site_root (instance method)">#<strong>site_root</strong> &#x21d2; Object </a>
421
-
422
-
423
-
424
- </span>
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
418
+ </div></span>
419
+
420
+ </li>
421
+
422
+
423
+ <li class="public ">
424
+ <span class="summary_signature">
425
+
426
+ <a href="#site_root-instance_method" title="#site_root (instance method)">#<strong>site_root</strong> &#x21d2; Object </a>
427
+
428
+
429
+
430
+ </span>
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
434
440
  <span class="summary_desc"><div class='inline'>
435
- </div></span>
436
-
437
- </li>
438
-
439
-
440
- </ul>
441
-
442
-
443
- <div id="constructor_details" class="method_details_list">
444
- <h2>Constructor Details</h2>
445
-
446
- <div class="method_details first">
447
- <h3 class="signature first" id="initialize-instance_method">
448
-
449
- #<strong>initialize</strong>(config_root, external_encoding: Encoding::UTF_8) &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Setup (class)">Setup</a></span></tt>
450
-
451
-
452
-
453
-
454
-
455
- </h3><div class="docstring">
456
- <div class="discussion">
441
+ </div></span>
442
+
443
+ </li>
444
+
445
+
446
+ </ul>
447
+
448
+
449
+ <div id="constructor_details" class="method_details_list">
450
+ <h2>Constructor Details</h2>
451
+
452
+ <div class="method_details first">
453
+ <h3 class="signature first" id="initialize-instance_method">
454
+
455
+ #<strong>initialize</strong>(config_root, external_encoding: Encoding::UTF_8) &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Setup (class)">Setup</a></span></tt>
456
+
457
+
458
+
459
+
460
+
461
+ </h3><div class="docstring">
462
+ <div class="discussion">
457
463
  <p>Returns a new instance of Setup</p>
458
-
459
-
460
- </div>
461
- </div>
462
- <div class="tags">
463
-
464
-
465
- </div><table class="source_code">
466
- <tr>
467
- <td>
464
+
465
+
466
+ </div>
467
+ </div>
468
+ <div class="tags">
469
+
470
+
471
+ </div><table class="source_code">
472
+ <tr>
473
+ <td>
468
474
  <pre class="lines">
469
475
 
470
476
 
@@ -474,9 +480,9 @@
474
480
  29
475
481
  30
476
482
  31
477
- 32</pre>
478
- </td>
479
- <td>
483
+ 32</pre>
484
+ </td>
485
+ <td>
480
486
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 26</span>
481
487
 
482
488
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_config_root'>config_root</span><span class='comma'>,</span> <span class='label'>external_encoding:</span> <span class='const'>Encoding</span><span class='op'>::</span><span class='const'>UTF_8</span><span class='rparen'>)</span>
@@ -485,204 +491,204 @@
485
491
  <span class='ivar'>@external_encoding</span> <span class='op'>=</span> <span class='id identifier rubyid_external_encoding'>external_encoding</span>
486
492
 
487
493
  <span class='ivar'>@environment</span> <span class='op'>=</span> <span class='kw'>nil</span>
488
- <span class='kw'>end</span></pre>
489
- </td>
490
- </tr>
491
- </table>
492
- </div>
493
-
494
- </div>
495
-
496
- <div id="instance_attr_details" class="attr_details">
497
- <h2>Instance Attribute Details</h2>
498
-
499
-
500
- <span id=""></span>
501
- <div class="method_details first">
502
- <h3 class="signature first" id="config_root-instance_method">
503
-
504
- #<strong>config_root</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
505
-
506
-
507
-
508
-
509
-
510
- </h3><div class="docstring">
511
- <div class="discussion">
494
+ <span class='kw'>end</span></pre>
495
+ </td>
496
+ </tr>
497
+ </table>
498
+ </div>
499
+
500
+ </div>
501
+
502
+ <div id="instance_attr_details" class="attr_details">
503
+ <h2>Instance Attribute Details</h2>
504
+
505
+
506
+ <span id=""></span>
507
+ <div class="method_details first">
508
+ <h3 class="signature first" id="config_root-instance_method">
509
+
510
+ #<strong>config_root</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
511
+
512
+
513
+
514
+
515
+
516
+ </h3><div class="docstring">
517
+ <div class="discussion">
512
518
  <p>Returns the value of attribute config_root</p>
513
-
514
-
515
- </div>
516
- </div>
517
- <div class="tags">
518
-
519
-
520
- </div><table class="source_code">
521
- <tr>
522
- <td>
519
+
520
+
521
+ </div>
522
+ </div>
523
+ <div class="tags">
524
+
525
+
526
+ </div><table class="source_code">
527
+ <tr>
528
+ <td>
523
529
  <pre class="lines">
524
530
 
525
531
 
526
532
  34
527
533
  35
528
- 36</pre>
529
- </td>
530
- <td>
534
+ 36</pre>
535
+ </td>
536
+ <td>
531
537
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 34</span>
532
538
 
533
539
  <span class='kw'>def</span> <span class='id identifier rubyid_config_root'>config_root</span>
534
540
  <span class='ivar'>@config_root</span>
535
- <span class='kw'>end</span></pre>
536
- </td>
537
- </tr>
538
- </table>
539
- </div>
540
-
541
-
542
- <span id=""></span>
543
- <div class="method_details ">
544
- <h3 class="signature " id="environment-instance_method">
545
-
546
- #<strong>environment</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
547
-
548
-
549
-
550
-
551
-
552
- </h3><div class="docstring">
553
- <div class="discussion">
541
+ <span class='kw'>end</span></pre>
542
+ </td>
543
+ </tr>
544
+ </table>
545
+ </div>
546
+
547
+
548
+ <span id=""></span>
549
+ <div class="method_details ">
550
+ <h3 class="signature " id="environment-instance_method">
551
+
552
+ #<strong>environment</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
553
+
554
+
555
+
556
+
557
+
558
+ </h3><div class="docstring">
559
+ <div class="discussion">
554
560
  <p>Returns the value of attribute environment</p>
555
-
556
-
557
- </div>
558
- </div>
559
- <div class="tags">
560
-
561
-
562
- </div><table class="source_code">
563
- <tr>
564
- <td>
561
+
562
+
563
+ </div>
564
+ </div>
565
+ <div class="tags">
566
+
567
+
568
+ </div><table class="source_code">
569
+ <tr>
570
+ <td>
565
571
  <pre class="lines">
566
572
 
567
573
 
568
574
  36
569
575
  37
570
- 38</pre>
571
- </td>
572
- <td>
576
+ 38</pre>
577
+ </td>
578
+ <td>
573
579
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 36</span>
574
580
 
575
581
  <span class='kw'>def</span> <span class='id identifier rubyid_environment'>environment</span>
576
582
  <span class='ivar'>@environment</span>
577
- <span class='kw'>end</span></pre>
578
- </td>
579
- </tr>
580
- </table>
581
- </div>
582
-
583
-
584
- <span id=""></span>
585
- <div class="method_details ">
586
- <h3 class="signature " id="external_encoding-instance_method">
587
-
588
- #<strong>external_encoding</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
589
-
590
-
591
-
592
-
593
-
594
- </h3><div class="docstring">
595
- <div class="discussion">
583
+ <span class='kw'>end</span></pre>
584
+ </td>
585
+ </tr>
586
+ </table>
587
+ </div>
588
+
589
+
590
+ <span id=""></span>
591
+ <div class="method_details ">
592
+ <h3 class="signature " id="external_encoding-instance_method">
593
+
594
+ #<strong>external_encoding</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
595
+
596
+
597
+
598
+
599
+
600
+ </h3><div class="docstring">
601
+ <div class="discussion">
596
602
  <p>Returns the value of attribute external_encoding</p>
597
-
598
-
599
- </div>
600
- </div>
601
- <div class="tags">
602
-
603
-
604
- </div><table class="source_code">
605
- <tr>
606
- <td>
603
+
604
+
605
+ </div>
606
+ </div>
607
+ <div class="tags">
608
+
609
+
610
+ </div><table class="source_code">
611
+ <tr>
612
+ <td>
607
613
  <pre class="lines">
608
614
 
609
615
 
610
616
  35
611
617
  36
612
- 37</pre>
613
- </td>
614
- <td>
618
+ 37</pre>
619
+ </td>
620
+ <td>
615
621
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 35</span>
616
622
 
617
623
  <span class='kw'>def</span> <span class='id identifier rubyid_external_encoding'>external_encoding</span>
618
624
  <span class='ivar'>@external_encoding</span>
619
- <span class='kw'>end</span></pre>
620
- </td>
621
- </tr>
622
- </table>
623
- </div>
624
-
625
- </div>
626
-
627
-
628
- <div id="instance_method_details" class="method_details_list">
629
- <h2>Instance Method Details</h2>
630
-
631
-
632
- <div class="method_details first">
633
- <h3 class="signature first" id="add_load_path-instance_method">
634
-
635
- #<strong>add_load_path</strong>(path) &#x21d2; <tt>Object</tt>
636
-
637
-
638
-
639
-
640
-
641
- </h3><div class="docstring">
642
- <div class="discussion">
625
+ <span class='kw'>end</span></pre>
626
+ </td>
627
+ </tr>
628
+ </table>
629
+ </div>
630
+
631
+ </div>
632
+
633
+
634
+ <div id="instance_method_details" class="method_details_list">
635
+ <h2>Instance Method Details</h2>
636
+
637
+
638
+ <div class="method_details first">
639
+ <h3 class="signature first" id="add_load_path-instance_method">
640
+
641
+ #<strong>add_load_path</strong>(path) &#x21d2; <tt>Object</tt>
642
+
643
+
644
+
645
+
646
+
647
+ </h3><div class="docstring">
648
+ <div class="discussion">
643
649
  <p>Add the given path to $LOAD_PATH. If it’s relative, make it absolute relative to <code>site_path</code>.</p>
644
-
645
-
646
- </div>
647
- </div>
648
- <div class="tags">
649
-
650
-
651
- </div><table class="source_code">
652
- <tr>
653
- <td>
650
+
651
+
652
+ </div>
653
+ </div>
654
+ <div class="tags">
655
+
656
+
657
+ </div><table class="source_code">
658
+ <tr>
659
+ <td>
654
660
  <pre class="lines">
655
661
 
656
662
 
657
663
  96
658
664
  97
659
665
  98
660
- 99</pre>
661
- </td>
662
- <td>
666
+ 99</pre>
667
+ </td>
668
+ <td>
663
669
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 96</span>
664
670
 
665
671
  <span class='kw'>def</span> <span class='id identifier rubyid_add_load_path'>add_load_path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
666
672
  <span class='comment'># Allow loading library code from lib directory:
667
673
  </span> <span class='gvar'>$LOAD_PATH</span> <span class='op'>&lt;&lt;</span> <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_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_site_root'>site_root</span><span class='rparen'>)</span>
668
- <span class='kw'>end</span></pre>
669
- </td>
670
- </tr>
671
- </table>
672
- </div>
673
-
674
- <div class="method_details ">
675
- <h3 class="signature " id="apply-instance_method">
676
-
677
- #<strong>apply</strong> &#x21d2; <tt>Object</tt>
678
-
679
-
680
-
681
-
682
-
683
- </h3><table class="source_code">
684
- <tr>
685
- <td>
674
+ <span class='kw'>end</span></pre>
675
+ </td>
676
+ </tr>
677
+ </table>
678
+ </div>
679
+
680
+ <div class="method_details ">
681
+ <h3 class="signature " id="apply-instance_method">
682
+
683
+ #<strong>apply</strong> &#x21d2; <tt>Object</tt>
684
+
685
+
686
+
687
+
688
+
689
+ </h3><table class="source_code">
690
+ <tr>
691
+ <td>
686
692
  <pre class="lines">
687
693
 
688
694
 
@@ -694,9 +700,9 @@
694
700
  54
695
701
  55
696
702
  56
697
- 57</pre>
698
- </td>
699
- <td>
703
+ 57</pre>
704
+ </td>
705
+ <td>
700
706
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 49</span>
701
707
 
702
708
  <span class='kw'>def</span> <span class='id identifier rubyid_apply'>apply</span>
@@ -707,24 +713,24 @@
707
713
  <span class='id identifier rubyid_add_load_path'>add_load_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>lib</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
708
714
 
709
715
  <span class='id identifier rubyid_require_relative'>require_relative</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>../utopia</span><span class='tstring_end'>&#39;</span></span>
710
- <span class='kw'>end</span></pre>
711
- </td>
712
- </tr>
713
- </table>
714
- </div>
715
-
716
- <div class="method_details ">
717
- <h3 class="signature " id="apply_environment-instance_method">
718
-
719
- #<strong>apply_environment</strong> &#x21d2; <tt>Object</tt>
720
-
721
-
722
-
723
-
724
-
725
- </h3><table class="source_code">
726
- <tr>
727
- <td>
716
+ <span class='kw'>end</span></pre>
717
+ </td>
718
+ </tr>
719
+ </table>
720
+ </div>
721
+
722
+ <div class="method_details ">
723
+ <h3 class="signature " id="apply_environment-instance_method">
724
+
725
+ #<strong>apply_environment</strong> &#x21d2; <tt>Object</tt>
726
+
727
+
728
+
729
+
730
+
731
+ </h3><table class="source_code">
732
+ <tr>
733
+ <td>
728
734
  <pre class="lines">
729
735
 
730
736
 
@@ -734,9 +740,9 @@
734
740
  62
735
741
  63
736
742
  64
737
- 65</pre>
738
- </td>
739
- <td>
743
+ 65</pre>
744
+ </td>
745
+ <td>
740
746
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 59</span>
741
747
 
742
748
  <span class='kw'>def</span> <span class='id identifier rubyid_apply_environment'>apply_environment</span>
@@ -745,94 +751,94 @@
745
751
  <span class='kw'>else</span>
746
752
  <span class='id identifier rubyid_load_environment'>load_environment</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#DEFAULT_ENVIRONMENT-constant" title="Utopia::Setup::DEFAULT_ENVIRONMENT (constant)">DEFAULT_ENVIRONMENT</a></span></span><span class='rparen'>)</span>
747
753
  <span class='kw'>end</span>
748
- <span class='kw'>end</span></pre>
749
- </td>
750
- </tr>
751
- </table>
752
- </div>
753
-
754
- <div class="method_details ">
755
- <h3 class="signature " id="environment_path-instance_method">
756
-
757
- #<strong>environment_path</strong>(name, root = @config_root) &#x21d2; <tt>Object</tt>
758
-
759
-
760
-
761
-
762
-
763
- </h3><table class="source_code">
764
- <tr>
765
- <td>
754
+ <span class='kw'>end</span></pre>
755
+ </td>
756
+ </tr>
757
+ </table>
758
+ </div>
759
+
760
+ <div class="method_details ">
761
+ <h3 class="signature " id="environment_path-instance_method">
762
+
763
+ #<strong>environment_path</strong>(name, root = @config_root) &#x21d2; <tt>Object</tt>
764
+
765
+
766
+
767
+
768
+
769
+ </h3><table class="source_code">
770
+ <tr>
771
+ <td>
766
772
  <pre class="lines">
767
773
 
768
774
 
769
775
  67
770
776
  68
771
- 69</pre>
772
- </td>
773
- <td>
777
+ 69</pre>
778
+ </td>
779
+ <td>
774
780
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 67</span>
775
781
 
776
782
  <span class='kw'>def</span> <span class='id identifier rubyid_environment_path'>environment_path</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span> <span class='op'>=</span> <span class='ivar'>@config_root</span><span class='rparen'>)</span>
777
783
  <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='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>.yaml</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span><span class='rparen'>)</span>
778
- <span class='kw'>end</span></pre>
779
- </td>
780
- </tr>
781
- </table>
782
- </div>
783
-
784
- <div class="method_details ">
785
- <h3 class="signature " id="explicit_environment_name-instance_method">
786
-
787
- #<strong>explicit_environment_name</strong> &#x21d2; <tt>Object</tt>
788
-
789
-
790
-
791
-
792
-
793
- </h3><table class="source_code">
794
- <tr>
795
- <td>
784
+ <span class='kw'>end</span></pre>
785
+ </td>
786
+ </tr>
787
+ </table>
788
+ </div>
789
+
790
+ <div class="method_details ">
791
+ <h3 class="signature " id="explicit_environment_name-instance_method">
792
+
793
+ #<strong>explicit_environment_name</strong> &#x21d2; <tt>Object</tt>
794
+
795
+
796
+
797
+
798
+
799
+ </h3><table class="source_code">
800
+ <tr>
801
+ <td>
796
802
  <pre class="lines">
797
803
 
798
804
 
799
805
  41
800
806
  42
801
- 43</pre>
802
- </td>
803
- <td>
807
+ 43</pre>
808
+ </td>
809
+ <td>
804
810
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 41</span>
805
811
 
806
812
  <span class='kw'>def</span> <span class='id identifier rubyid_explicit_environment_name'>explicit_environment_name</span>
807
813
  <span class='const'>ENV</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#ENVIRONMENT_KEY-constant" title="Utopia::Setup::ENVIRONMENT_KEY (constant)">ENVIRONMENT_KEY</a></span></span><span class='rbracket'>]</span>
808
- <span class='kw'>end</span></pre>
809
- </td>
810
- </tr>
811
- </table>
812
- </div>
813
-
814
- <div class="method_details ">
815
- <h3 class="signature " id="load_environment-instance_method">
816
-
817
- #<strong>load_environment</strong>(*args) &#x21d2; <tt>Object</tt>
818
-
819
-
820
-
821
-
822
-
823
- </h3><div class="docstring">
824
- <div class="discussion">
814
+ <span class='kw'>end</span></pre>
815
+ </td>
816
+ </tr>
817
+ </table>
818
+ </div>
819
+
820
+ <div class="method_details ">
821
+ <h3 class="signature " id="load_environment-instance_method">
822
+
823
+ #<strong>load_environment</strong>(*args) &#x21d2; <tt>Object</tt>
824
+
825
+
826
+
827
+
828
+
829
+ </h3><div class="docstring">
830
+ <div class="discussion">
825
831
  <p>Load the named configuration file from the <code>config_root</code> directory.</p>
826
-
827
-
828
- </div>
829
- </div>
830
- <div class="tags">
831
-
832
-
833
- </div><table class="source_code">
834
- <tr>
835
- <td>
832
+
833
+
834
+ </div>
835
+ </div>
836
+ <div class="tags">
837
+
838
+
839
+ </div><table class="source_code">
840
+ <tr>
841
+ <td>
836
842
  <pre class="lines">
837
843
 
838
844
 
@@ -848,9 +854,9 @@
848
854
  90
849
855
  91
850
856
  92
851
- 93</pre>
852
- </td>
853
- <td>
857
+ 93</pre>
858
+ </td>
859
+ <td>
854
860
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 81</span>
855
861
 
856
862
  <span class='kw'>def</span> <span class='id identifier rubyid_load_environment'>load_environment</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -865,34 +871,34 @@
865
871
  <span class='id identifier rubyid_old_value'>old_value</span> <span class='op'>||</span> <span class='id identifier rubyid_new_value'>new_value</span>
866
872
  <span class='kw'>end</span>
867
873
  <span class='kw'>end</span>
868
- <span class='kw'>end</span></pre>
869
- </td>
870
- </tr>
871
- </table>
872
- </div>
873
-
874
- <div class="method_details ">
875
- <h3 class="signature " id="set_external_encoding-instance_method">
876
-
877
- #<strong>set_external_encoding</strong>(encoding = Encoding::UTF_8) &#x21d2; <tt>Object</tt>
878
-
879
-
880
-
881
-
882
-
883
- </h3><div class="docstring">
884
- <div class="discussion">
874
+ <span class='kw'>end</span></pre>
875
+ </td>
876
+ </tr>
877
+ </table>
878
+ </div>
879
+
880
+ <div class="method_details ">
881
+ <h3 class="signature " id="set_external_encoding-instance_method">
882
+
883
+ #<strong>set_external_encoding</strong>(encoding = Encoding::UTF_8) &#x21d2; <tt>Object</tt>
884
+
885
+
886
+
887
+
888
+
889
+ </h3><div class="docstring">
890
+ <div class="discussion">
885
891
  <p>If you don’t specify these, it’s possible to have issues when encodings mismatch on the server.</p>
886
-
887
-
888
- </div>
889
- </div>
890
- <div class="tags">
891
-
892
-
893
- </div><table class="source_code">
894
- <tr>
895
- <td>
892
+
893
+
894
+ </div>
895
+ </div>
896
+ <div class="tags">
897
+
898
+
899
+ </div><table class="source_code">
900
+ <tr>
901
+ <td>
896
902
  <pre class="lines">
897
903
 
898
904
 
@@ -902,9 +908,9 @@
902
908
  75
903
909
  76
904
910
  77
905
- 78</pre>
906
- </td>
907
- <td>
911
+ 78</pre>
912
+ </td>
913
+ <td>
908
914
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 72</span>
909
915
 
910
916
  <span class='kw'>def</span> <span class='id identifier rubyid_set_external_encoding'>set_external_encoding</span><span class='lparen'>(</span><span class='id identifier rubyid_encoding'>encoding</span> <span class='op'>=</span> <span class='const'>Encoding</span><span class='op'>::</span><span class='const'>UTF_8</span><span class='rparen'>)</span>
@@ -913,52 +919,52 @@
913
919
  <span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Updating Encoding.default_external from </span><span class='embexpr_beg'>#{</span><span class='const'>Encoding</span><span class='period'>.</span><span class='id identifier rubyid_default_external'>default_external</span><span class='embexpr_end'>}</span><span class='tstring_content'> to </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_encoding'>encoding</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='gvar'>$VERBOSE</span>
914
920
  <span class='const'>Encoding</span><span class='period'>.</span><span class='id identifier rubyid_default_external'>default_external</span> <span class='op'>=</span> <span class='id identifier rubyid_encoding'>encoding</span>
915
921
  <span class='kw'>end</span>
916
- <span class='kw'>end</span></pre>
917
- </td>
918
- </tr>
919
- </table>
920
- </div>
921
-
922
- <div class="method_details ">
923
- <h3 class="signature " id="site_root-instance_method">
924
-
925
- #<strong>site_root</strong> &#x21d2; <tt>Object</tt>
926
-
927
-
928
-
929
-
930
-
931
- </h3><table class="source_code">
932
- <tr>
933
- <td>
922
+ <span class='kw'>end</span></pre>
923
+ </td>
924
+ </tr>
925
+ </table>
926
+ </div>
927
+
928
+ <div class="method_details ">
929
+ <h3 class="signature " id="site_root-instance_method">
930
+
931
+ #<strong>site_root</strong> &#x21d2; <tt>Object</tt>
932
+
933
+
934
+
935
+
936
+
937
+ </h3><table class="source_code">
938
+ <tr>
939
+ <td>
934
940
  <pre class="lines">
935
941
 
936
942
 
937
943
  45
938
944
  46
939
- 47</pre>
940
- </td>
941
- <td>
945
+ 47</pre>
946
+ </td>
947
+ <td>
942
948
  <pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 45</span>
943
949
 
944
950
  <span class='kw'>def</span> <span class='id identifier rubyid_site_root'>site_root</span>
945
951
  <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='ivar'>@config_root</span><span class='rparen'>)</span>
946
- <span class='kw'>end</span></pre>
947
- </td>
948
- </tr>
949
- </table>
950
- </div>
951
-
952
- </div>
953
-
954
- </div>
955
-
956
- <div id="footer">
957
- Generated on Sat Mar 24 21:17:19 2018 by
958
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
959
- 0.9.12 (ruby-2.5.0).
960
- </div>
961
-
962
- </div>
963
- </body>
952
+ <span class='kw'>end</span></pre>
953
+ </td>
954
+ </tr>
955
+ </table>
956
+ </div>
957
+
958
+ </div>
959
+
960
+ </div>
961
+
962
+ <div id="footer">
963
+ Generated on Sat Mar 9 12:01:52 2019 by
964
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
965
+ 0.9.18 (ruby-2.6.1).
966
+ </div>
967
+
968
+ </div>
969
+ </body>
964
970
  </html>