ballast 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/doc/Ballast.html +3 -7
- data/doc/Ballast/Concerns.html +1 -1
- data/doc/Ballast/Concerns/Ajax.html +53 -12
- data/doc/Ballast/Concerns/Common.html +1 -1
- data/doc/Ballast/Concerns/ErrorsHandling.html +1 -1
- data/doc/Ballast/Concerns/View.html +1 -1
- data/doc/Ballast/Configuration.html +1 -1
- data/doc/Ballast/Context.html +1 -1
- data/doc/Ballast/Errors.html +1 -1
- data/doc/Ballast/Errors/BaseError.html +1 -1
- data/doc/Ballast/Errors/InvalidDomain.html +1 -1
- data/doc/Ballast/Errors/PerformError.html +1 -1
- data/doc/Ballast/Errors/ValidationError.html +1 -1
- data/doc/Ballast/Middlewares.html +1 -1
- data/doc/Ballast/Middlewares/DefaultHost.html +1 -1
- data/doc/Ballast/Operation.html +1 -1
- data/doc/Ballast/OperationsChain.html +1 -1
- data/doc/Ballast/RequestDomainMatcher.html +1 -1
- data/doc/Ballast/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +10 -10
- data/doc/top-level-namespace.html +1 -1
- data/lib/ballast.rb +11 -3
- data/lib/ballast/concerns/ajax.rb +13 -3
- data/lib/ballast/version.rb +1 -1
- data/spec/ballast/concerns/ajax_spec.rb +7 -2
- data/tmp/saikuro/index_cyclo.html +158 -0
- data/tmp/saikuro/lib/ballast.rb_cyclo.html +8 -0
- data/tmp/saikuro/lib/ballast/concerns/ajax.rb_cyclo.html +21 -0
- data/tmp/saikuro/lib/ballast/concerns/common.rb_cyclo.html +20 -0
- data/tmp/saikuro/lib/ballast/concerns/errors_handling.rb_cyclo.html +14 -0
- data/tmp/saikuro/lib/ballast/concerns/view.rb_cyclo.html +20 -0
- data/tmp/saikuro/lib/ballast/configuration.rb_cyclo.html +10 -0
- data/tmp/saikuro/lib/ballast/context.rb_cyclo.html +11 -0
- data/tmp/saikuro/lib/ballast/errors.rb_cyclo.html +22 -0
- data/tmp/saikuro/lib/ballast/middlewares/default_host.rb_cyclo.html +14 -0
- data/tmp/saikuro/lib/ballast/operation.rb_cyclo.html +19 -0
- data/tmp/saikuro/lib/ballast/operations_chain.rb_cyclo.html +12 -0
- data/tmp/saikuro/lib/ballast/request_domain_matcher.rb_cyclo.html +11 -0
- data/tmp/saikuro/lib/ballast/version.rb_cyclo.html +9 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 024d28958af05267b4499eb6d73260cba811f54e
|
4
|
+
data.tar.gz: c88ba674fba0b08e527824e73a080c6bbc1f8b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cffc97cd9e220c174e38952228ed3b2324c48022597cf47711e2a72200755c297b617e2880b7b7efa6157f030bb05d6b4ecd006bd86e9c4e79ee86ad799a0ded
|
7
|
+
data.tar.gz: 5c56e7aecaac44c11a99118a8751c0e14dff2808a7e07820b6f620a6f4899ed4d185d9f8836eae1144968a0d0a5c05b5906d32536b9e0a2997d8ecae533ecfff
|
data/CHANGELOG.md
CHANGED
data/doc/Ballast.html
CHANGED
@@ -228,18 +228,14 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
228
228
|
44
|
229
229
|
45
|
230
230
|
46
|
231
|
-
47
|
232
|
-
48
|
233
|
-
49</pre>
|
231
|
+
47</pre>
|
234
232
|
</td>
|
235
233
|
<td>
|
236
234
|
<pre class="code"><span class="info file"># File 'lib/ballast.rb', line 36</span>
|
237
235
|
|
238
236
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_in_em_thread'>in_em_thread</span><span class='lparen'>(</span><span class='id identifier rubyid_start_reactor'>start_reactor</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
239
237
|
<span class='kw'>if</span> <span class='const'>EM</span><span class='period'>.</span><span class='id identifier rubyid_reactor_running?'>reactor_running?</span> <span class='kw'>then</span>
|
240
|
-
<span class='
|
241
|
-
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span>
|
242
|
-
<span class='kw'>end</span>
|
238
|
+
<span class='id identifier rubyid_run_in_thread'>run_in_thread</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
243
239
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_start_reactor'>start_reactor</span> <span class='kw'>then</span>
|
244
240
|
<span class='const'>EM</span><span class='period'>.</span><span class='id identifier rubyid_synchrony'>synchrony</span> <span class='kw'>do</span>
|
245
241
|
<span class='const'>Ballast</span><span class='period'>.</span><span class='id identifier rubyid_in_em_thread'>in_em_thread</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -259,7 +255,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
259
255
|
</div>
|
260
256
|
|
261
257
|
<div id="footer">
|
262
|
-
Generated on
|
258
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
263
259
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
264
260
|
0.8.7.3 (ruby-2.1.0).
|
265
261
|
</div>
|
data/doc/Ballast/Concerns.html
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on
|
121
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
123
|
0.8.7.3 (ruby-2.1.0).
|
124
124
|
</div>
|
@@ -139,10 +139,12 @@
|
|
139
139
|
<li class="public ">
|
140
140
|
<span class="summary_signature">
|
141
141
|
|
142
|
-
<a href="#
|
142
|
+
<a href="#generate_robots_txt-instance_method" title="#generate_robots_txt (instance method)">- (Object) <strong>generate_robots_txt</strong>(configuration = nil) </a>
|
143
143
|
|
144
144
|
|
145
145
|
|
146
|
+
(also: #disallow_robots)
|
147
|
+
|
146
148
|
</span>
|
147
149
|
|
148
150
|
|
@@ -153,7 +155,7 @@
|
|
153
155
|
|
154
156
|
|
155
157
|
|
156
|
-
<span class="summary_desc"><div class='inline'><p>
|
158
|
+
<span class="summary_desc"><div class='inline'><p>Generates a robots.txt file.</p>
|
157
159
|
</div></span>
|
158
160
|
|
159
161
|
</li>
|
@@ -418,23 +420,48 @@
|
|
418
420
|
</div>
|
419
421
|
|
420
422
|
<div class="method_details ">
|
421
|
-
<h3 class="signature " id="
|
423
|
+
<h3 class="signature " id="generate_robots_txt-instance_method">
|
422
424
|
|
423
|
-
- (<tt>Object</tt>) <strong>
|
425
|
+
- (<tt>Object</tt>) <strong>generate_robots_txt</strong>(configuration = nil)
|
424
426
|
|
425
427
|
|
426
428
|
|
429
|
+
<span class="aliases">Also known as:
|
430
|
+
<span class="names"><span id='disallow_robots-instance_method'>disallow_robots</span></span>
|
431
|
+
</span>
|
432
|
+
|
427
433
|
|
428
434
|
|
429
435
|
</h3><div class="docstring">
|
430
436
|
<div class="discussion">
|
431
|
-
<p>
|
437
|
+
<p>Generates a robots.txt file.</p>
|
432
438
|
|
433
439
|
|
434
440
|
</div>
|
435
441
|
</div>
|
436
442
|
<div class="tags">
|
443
|
+
<p class="tag_title">Parameters:</p>
|
444
|
+
<ul class="param">
|
437
445
|
|
446
|
+
<li>
|
447
|
+
|
448
|
+
<span class='name'>configuration</span>
|
449
|
+
|
450
|
+
|
451
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
452
|
+
|
453
|
+
|
454
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
455
|
+
|
456
|
+
|
457
|
+
—
|
458
|
+
<div class='inline'><p>An array of list of agent and paths to include.</p>
|
459
|
+
</div>
|
460
|
+
|
461
|
+
</li>
|
462
|
+
|
463
|
+
</ul>
|
464
|
+
|
438
465
|
|
439
466
|
</div><table class="source_code">
|
440
467
|
<tr>
|
@@ -442,15 +469,29 @@
|
|
442
469
|
<pre class="lines">
|
443
470
|
|
444
471
|
|
445
|
-
|
446
|
-
|
447
|
-
|
472
|
+
96
|
473
|
+
97
|
474
|
+
98
|
475
|
+
99
|
476
|
+
100
|
477
|
+
101
|
478
|
+
102
|
479
|
+
103
|
480
|
+
104
|
481
|
+
105</pre>
|
448
482
|
</td>
|
449
483
|
<td>
|
450
|
-
<pre class="code"><span class="info file"># File 'lib/ballast/concerns/ajax.rb', line
|
484
|
+
<pre class="code"><span class="info file"># File 'lib/ballast/concerns/ajax.rb', line 96</span>
|
485
|
+
|
486
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_generate_robots_txt'>generate_robots_txt</span><span class='lparen'>(</span><span class='id identifier rubyid_configuration'>configuration</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
487
|
+
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_entry'>entry</span><span class='op'>|</span>
|
488
|
+
<span class='id identifier rubyid_agent'>agent</span> <span class='op'>=</span> <span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_shift'>shift</span>
|
489
|
+
<span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Disallow: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_e'>e</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
490
|
+
|
491
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>User-agent: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent'>agent</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
492
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
451
493
|
|
452
|
-
<span class='
|
453
|
-
<span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='label'>text:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>User-agent: *\nDisallow: /</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>content_type:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>text/plain</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
494
|
+
<span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='label'>text:</span> <span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='label'>content_type:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>text/plain</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
454
495
|
<span class='kw'>end</span></pre>
|
455
496
|
</td>
|
456
497
|
</tr>
|
@@ -895,7 +936,7 @@
|
|
895
936
|
</div>
|
896
937
|
|
897
938
|
<div id="footer">
|
898
|
-
Generated on
|
939
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
899
940
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
900
941
|
0.8.7.3 (ruby-2.1.0).
|
901
942
|
</div>
|
@@ -1098,7 +1098,7 @@ and <code>%:Z</code> for the zone name considering also DST.</p>
|
|
1098
1098
|
</div>
|
1099
1099
|
|
1100
1100
|
<div id="footer">
|
1101
|
-
Generated on
|
1101
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
1102
1102
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1103
1103
|
0.8.7.3 (ruby-2.1.0).
|
1104
1104
|
</div>
|
@@ -291,7 +291,7 @@
|
|
291
291
|
</div>
|
292
292
|
|
293
293
|
<div id="footer">
|
294
|
-
Generated on
|
294
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
295
295
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
296
296
|
0.8.7.3 (ruby-2.1.0).
|
297
297
|
</div>
|
@@ -850,7 +850,7 @@
|
|
850
850
|
</div>
|
851
851
|
|
852
852
|
<div id="footer">
|
853
|
-
Generated on
|
853
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
854
854
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
855
855
|
0.8.7.3 (ruby-2.1.0).
|
856
856
|
</div>
|
@@ -275,7 +275,7 @@ Subfolders are not supported.</p>
|
|
275
275
|
</div>
|
276
276
|
|
277
277
|
<div id="footer">
|
278
|
-
Generated on
|
278
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
279
279
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
280
280
|
0.8.7.3 (ruby-2.1.0).
|
281
281
|
</div>
|
data/doc/Ballast/Context.html
CHANGED
@@ -408,7 +408,7 @@
|
|
408
408
|
</div>
|
409
409
|
|
410
410
|
<div id="footer">
|
411
|
-
Generated on
|
411
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
412
412
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
413
413
|
0.8.7.3 (ruby-2.1.0).
|
414
414
|
</div>
|
data/doc/Ballast/Errors.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.3 (ruby-2.1.0).
|
122
122
|
</div>
|
@@ -317,7 +317,7 @@
|
|
317
317
|
</div>
|
318
318
|
|
319
319
|
<div id="footer">
|
320
|
-
Generated on
|
320
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
321
321
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
322
322
|
0.8.7.3 (ruby-2.1.0).
|
323
323
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on
|
151
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.3 (ruby-2.1.0).
|
154
154
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on
|
151
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.3 (ruby-2.1.0).
|
154
154
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on
|
151
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.3 (ruby-2.1.0).
|
154
154
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.3 (ruby-2.1.0).
|
122
122
|
</div>
|
@@ -345,7 +345,7 @@
|
|
345
345
|
</div>
|
346
346
|
|
347
347
|
<div id="footer">
|
348
|
-
Generated on
|
348
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
349
349
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
350
350
|
0.8.7.3 (ruby-2.1.0).
|
351
351
|
</div>
|
data/doc/Ballast/Operation.html
CHANGED
@@ -1295,7 +1295,7 @@ as owner will be created.</p>
|
|
1295
1295
|
</div>
|
1296
1296
|
|
1297
1297
|
<div id="footer">
|
1298
|
-
Generated on
|
1298
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
1299
1299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1300
1300
|
0.8.7.3 (ruby-2.1.0).
|
1301
1301
|
</div>
|
@@ -588,7 +588,7 @@ as owner will be created.</p>
|
|
588
588
|
</div>
|
589
589
|
|
590
590
|
<div id="footer">
|
591
|
-
Generated on
|
591
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
592
592
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
593
593
|
0.8.7.3 (ruby-2.1.0).
|
594
594
|
</div>
|
@@ -908,7 +908,7 @@
|
|
908
908
|
</div>
|
909
909
|
|
910
910
|
<div id="footer">
|
911
|
-
Generated on
|
911
|
+
Generated on Sat Mar 15 14:04:13 2014 by
|
912
912
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
913
913
|
0.8.7.3 (ruby-2.1.0).
|
914
914
|
</div>
|
data/doc/Ballast/Version.html
CHANGED
@@ -149,7 +149,7 @@
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='int'>
|
152
|
+
<dd><pre class="code"><span class='int'>3</span></pre></dd>
|
153
153
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
155
155
|
<div class="docstring">
|
@@ -180,7 +180,7 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on
|
183
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.8.7.3 (ruby-2.1.0).
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
@@ -310,7 +310,7 @@
|
|
310
310
|
</div>
|
311
311
|
|
312
312
|
<div id="footer">
|
313
|
-
Generated on
|
313
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
314
314
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
315
315
|
0.8.7.3 (ruby-2.1.0).
|
316
316
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
</div></div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
111
|
0.8.7.3 (ruby-2.1.0).
|
112
112
|
</div>
|
data/doc/index.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
</div></div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
111
|
0.8.7.3 (ruby-2.1.0).
|
112
112
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -90,41 +90,41 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
<li class="r2 ">
|
93
|
-
<span class='object_link'><a href="Ballast/Concerns/Ajax.html#disallow_robots-instance_method" title="Ballast::Concerns::Ajax#disallow_robots (method)">#disallow_robots</a></span>
|
94
|
-
<small>Ballast::Concerns::Ajax</small>
|
95
|
-
</li>
|
96
|
-
|
97
|
-
|
98
|
-
<li class="r1 ">
|
99
93
|
<span class='object_link'><a href="Ballast/RequestDomainMatcher.html#domains-instance_method" title="Ballast::RequestDomainMatcher#domains (method)">#domains</a></span>
|
100
94
|
<small>Ballast::RequestDomainMatcher</small>
|
101
95
|
</li>
|
102
96
|
|
103
97
|
|
104
|
-
<li class="
|
98
|
+
<li class="r1 ">
|
105
99
|
<span class='object_link'><a href="Ballast/Operation.html#fail%21-instance_method" title="Ballast::Operation#fail! (method)">#fail!</a></span>
|
106
100
|
<small>Ballast::Operation</small>
|
107
101
|
</li>
|
108
102
|
|
109
103
|
|
110
|
-
<li class="
|
104
|
+
<li class="r2 ">
|
111
105
|
<span class='object_link'><a href="Ballast/Concerns/Common.html#format_long_date-instance_method" title="Ballast::Concerns::Common#format_long_date (method)">#format_long_date</a></span>
|
112
106
|
<small>Ballast::Concerns::Common</small>
|
113
107
|
</li>
|
114
108
|
|
115
109
|
|
116
|
-
<li class="
|
110
|
+
<li class="r1 ">
|
117
111
|
<span class='object_link'><a href="Ballast/Concerns/Common.html#format_short_amount-instance_method" title="Ballast::Concerns::Common#format_short_amount (method)">#format_short_amount</a></span>
|
118
112
|
<small>Ballast::Concerns::Common</small>
|
119
113
|
</li>
|
120
114
|
|
121
115
|
|
122
|
-
<li class="
|
116
|
+
<li class="r2 ">
|
123
117
|
<span class='object_link'><a href="Ballast/Concerns/Common.html#format_short_duration-instance_method" title="Ballast::Concerns::Common#format_short_duration (method)">#format_short_duration</a></span>
|
124
118
|
<small>Ballast::Concerns::Common</small>
|
125
119
|
</li>
|
126
120
|
|
127
121
|
|
122
|
+
<li class="r1 ">
|
123
|
+
<span class='object_link'><a href="Ballast/Concerns/Ajax.html#generate_robots_txt-instance_method" title="Ballast::Concerns::Ajax#generate_robots_txt (method)">#generate_robots_txt</a></span>
|
124
|
+
<small>Ballast::Concerns::Ajax</small>
|
125
|
+
</li>
|
126
|
+
|
127
|
+
|
128
128
|
<li class="r2 ">
|
129
129
|
<span class='object_link'><a href="Ballast/Concerns/ErrorsHandling.html#handle_error-instance_method" title="Ballast::Concerns::ErrorsHandling#handle_error (method)">#handle_error</a></span>
|
130
130
|
<small>Ballast::Concerns::ErrorsHandling</small>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Sat Mar 15 14:04:12 2014 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.3 (ruby-2.1.0).
|
109
109
|
</div>
|
data/lib/ballast.rb
CHANGED
@@ -35,9 +35,7 @@ module Ballast
|
|
35
35
|
# @param block [Proc] The block to run.
|
36
36
|
def self.in_em_thread(start_reactor = false, &block)
|
37
37
|
if EM.reactor_running? then
|
38
|
-
|
39
|
-
Fiber.new { block.call }.resume
|
40
|
-
end
|
38
|
+
run_in_thread(&block)
|
41
39
|
elsif start_reactor then
|
42
40
|
EM.synchrony do
|
43
41
|
Ballast.in_em_thread(&block)
|
@@ -47,4 +45,14 @@ module Ballast
|
|
47
45
|
block.call
|
48
46
|
end
|
49
47
|
end
|
48
|
+
|
49
|
+
private
|
50
|
+
# Runs a block inside a EM thread.
|
51
|
+
#
|
52
|
+
# @param block [Proc] The block to run.
|
53
|
+
def self.run_in_thread(&block)
|
54
|
+
EM::Synchrony.defer do
|
55
|
+
Fiber.new { block.call }.resume
|
56
|
+
end
|
57
|
+
end
|
50
58
|
end
|
@@ -90,10 +90,20 @@ module Ballast
|
|
90
90
|
headers["Access-Control-Allow-Credentials"] = "true" if allow_credentials
|
91
91
|
end
|
92
92
|
|
93
|
-
#
|
94
|
-
|
95
|
-
|
93
|
+
# Generates a robots.txt file.
|
94
|
+
#
|
95
|
+
# @param configuration [Array] An array of list of agent and paths to include.
|
96
|
+
def generate_robots_txt(configuration = nil)
|
97
|
+
rv = configuration.ensure_array([["*", "/"]], true, true, false) { |entry|
|
98
|
+
agent = entry.shift
|
99
|
+
paths = entry.map {|e| "Disallow: #{e}" }
|
100
|
+
|
101
|
+
"User-agent: #{agent}\n#{paths.join("\n")}"
|
102
|
+
}.join("\n\n")
|
103
|
+
|
104
|
+
render(text: rv, content_type: "text/plain")
|
96
105
|
end
|
106
|
+
alias_method :disallow_robots, :generate_robots_txt
|
97
107
|
|
98
108
|
private
|
99
109
|
# Prepares data for sending back to the client.
|
data/lib/ballast/version.rb
CHANGED
@@ -127,10 +127,15 @@ describe Ballast::Concerns::Ajax do
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
describe "#
|
131
|
-
it "should
|
130
|
+
describe "#generate_robots_txt" do
|
131
|
+
it "should generate a robots.txt file which prevents everything by default" do
|
132
132
|
expect(subject).to receive(:render).with(text: "User-agent: *\nDisallow: /", content_type: "text/plain")
|
133
133
|
subject.disallow_robots
|
134
134
|
end
|
135
|
+
|
136
|
+
it "should generate a robots.txt file which prevents everything by default" do
|
137
|
+
expect(subject).to receive(:render).with(text: "User-agent: A\nDisallow: B\nDisallow: C\nDisallow: D\n\nUser-agent: E\nDisallow: F\nDisallow: \nDisallow: G", content_type: "text/plain")
|
138
|
+
subject.generate_robots_txt([["A", "B", "C", "D"], ["E", "F", "", "G"]])
|
139
|
+
end
|
135
140
|
end
|
136
141
|
end
|
@@ -0,0 +1,158 @@
|
|
1
|
+
<html><head><title>Index for cyclomatic complexity</title></head>
|
2
|
+
<style>
|
3
|
+
body {
|
4
|
+
margin: 20px;
|
5
|
+
padding: 0;
|
6
|
+
font-size: 12px;
|
7
|
+
font-family: bitstream vera sans, verdana, arial, sans serif;
|
8
|
+
background-color: #efefef;
|
9
|
+
}
|
10
|
+
|
11
|
+
table {
|
12
|
+
border-collapse: collapse;
|
13
|
+
/*border-spacing: 0;*/
|
14
|
+
border: 1px solid #666;
|
15
|
+
background-color: #fff;
|
16
|
+
margin-bottom: 20px;
|
17
|
+
}
|
18
|
+
|
19
|
+
table, th, th+th, td, td+td {
|
20
|
+
border: 1px solid #ccc;
|
21
|
+
}
|
22
|
+
|
23
|
+
table th {
|
24
|
+
font-size: 12px;
|
25
|
+
color: #fc0;
|
26
|
+
padding: 4px 0;
|
27
|
+
background-color: #336;
|
28
|
+
}
|
29
|
+
|
30
|
+
th, td {
|
31
|
+
padding: 4px 10px;
|
32
|
+
}
|
33
|
+
|
34
|
+
td {
|
35
|
+
font-size: 13px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.class_name {
|
39
|
+
font-size: 17px;
|
40
|
+
margin: 20px 0 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
.class_complexity {
|
44
|
+
margin: 0 auto;
|
45
|
+
}
|
46
|
+
|
47
|
+
.class_complexity>.class_complexity {
|
48
|
+
margin: 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
.class_total_complexity, .class_total_lines, .start_token_count, .file_count {
|
52
|
+
font-size: 13px;
|
53
|
+
font-weight: bold;
|
54
|
+
}
|
55
|
+
|
56
|
+
.class_total_complexity, .class_total_lines {
|
57
|
+
color: #c00;
|
58
|
+
}
|
59
|
+
|
60
|
+
.start_token_count, .file_count {
|
61
|
+
color: #333;
|
62
|
+
}
|
63
|
+
|
64
|
+
.warning {
|
65
|
+
background-color: yellow;
|
66
|
+
}
|
67
|
+
|
68
|
+
.error {
|
69
|
+
background-color: #f00;
|
70
|
+
}
|
71
|
+
</style>
|
72
|
+
|
73
|
+
<body>
|
74
|
+
<h1>Index for cyclomatic complexity</h1>
|
75
|
+
|
76
|
+
<hr/>
|
77
|
+
<h2 class="class_name">Analyzed Files</h2>
|
78
|
+
<ul>
|
79
|
+
<li>
|
80
|
+
<p class="file_name"><a href="./lib/ballast/concerns/ajax.rb_cyclo.html">lib/ballast/concerns/ajax.rb</a>
|
81
|
+
</li>
|
82
|
+
<li>
|
83
|
+
<p class="file_name"><a href="./lib/ballast/concerns/common.rb_cyclo.html">lib/ballast/concerns/common.rb</a>
|
84
|
+
</li>
|
85
|
+
<li>
|
86
|
+
<p class="file_name"><a href="./lib/ballast/concerns/errors_handling.rb_cyclo.html">lib/ballast/concerns/errors_handling.rb</a>
|
87
|
+
</li>
|
88
|
+
<li>
|
89
|
+
<p class="file_name"><a href="./lib/ballast/concerns/view.rb_cyclo.html">lib/ballast/concerns/view.rb</a>
|
90
|
+
</li>
|
91
|
+
<li>
|
92
|
+
<p class="file_name"><a href="./lib/ballast/configuration.rb_cyclo.html">lib/ballast/configuration.rb</a>
|
93
|
+
</li>
|
94
|
+
<li>
|
95
|
+
<p class="file_name"><a href="./lib/ballast/context.rb_cyclo.html">lib/ballast/context.rb</a>
|
96
|
+
</li>
|
97
|
+
<li>
|
98
|
+
<p class="file_name"><a href="./lib/ballast/errors.rb_cyclo.html">lib/ballast/errors.rb</a>
|
99
|
+
</li>
|
100
|
+
<li>
|
101
|
+
<p class="file_name"><a href="./lib/ballast/middlewares/default_host.rb_cyclo.html">lib/ballast/middlewares/default_host.rb</a>
|
102
|
+
</li>
|
103
|
+
<li>
|
104
|
+
<p class="file_name"><a href="./lib/ballast/operation.rb_cyclo.html">lib/ballast/operation.rb</a>
|
105
|
+
</li>
|
106
|
+
<li>
|
107
|
+
<p class="file_name"><a href="./lib/ballast/operations_chain.rb_cyclo.html">lib/ballast/operations_chain.rb</a>
|
108
|
+
</li>
|
109
|
+
<li>
|
110
|
+
<p class="file_name"><a href="./lib/ballast/request_domain_matcher.rb_cyclo.html">lib/ballast/request_domain_matcher.rb</a>
|
111
|
+
</li>
|
112
|
+
<li>
|
113
|
+
<p class="file_name"><a href="./lib/ballast/version.rb_cyclo.html">lib/ballast/version.rb</a>
|
114
|
+
</li>
|
115
|
+
<li>
|
116
|
+
<p class="file_name"><a href="./lib/ballast.rb_cyclo.html">lib/ballast.rb</a>
|
117
|
+
</li>
|
118
|
+
<li>
|
119
|
+
<p class="file_name"><a href="./lib/ballast/concerns/ajax.rb_cyclo.html">lib/ballast/concerns/ajax.rb</a>
|
120
|
+
</li>
|
121
|
+
<li>
|
122
|
+
<p class="file_name"><a href="./lib/ballast/concerns/common.rb_cyclo.html">lib/ballast/concerns/common.rb</a>
|
123
|
+
</li>
|
124
|
+
<li>
|
125
|
+
<p class="file_name"><a href="./lib/ballast/concerns/errors_handling.rb_cyclo.html">lib/ballast/concerns/errors_handling.rb</a>
|
126
|
+
</li>
|
127
|
+
<li>
|
128
|
+
<p class="file_name"><a href="./lib/ballast/concerns/view.rb_cyclo.html">lib/ballast/concerns/view.rb</a>
|
129
|
+
</li>
|
130
|
+
<li>
|
131
|
+
<p class="file_name"><a href="./lib/ballast/configuration.rb_cyclo.html">lib/ballast/configuration.rb</a>
|
132
|
+
</li>
|
133
|
+
<li>
|
134
|
+
<p class="file_name"><a href="./lib/ballast/context.rb_cyclo.html">lib/ballast/context.rb</a>
|
135
|
+
</li>
|
136
|
+
<li>
|
137
|
+
<p class="file_name"><a href="./lib/ballast/errors.rb_cyclo.html">lib/ballast/errors.rb</a>
|
138
|
+
</li>
|
139
|
+
<li>
|
140
|
+
<p class="file_name"><a href="./lib/ballast/middlewares/default_host.rb_cyclo.html">lib/ballast/middlewares/default_host.rb</a>
|
141
|
+
</li>
|
142
|
+
<li>
|
143
|
+
<p class="file_name"><a href="./lib/ballast/operation.rb_cyclo.html">lib/ballast/operation.rb</a>
|
144
|
+
</li>
|
145
|
+
<li>
|
146
|
+
<p class="file_name"><a href="./lib/ballast/operations_chain.rb_cyclo.html">lib/ballast/operations_chain.rb</a>
|
147
|
+
</li>
|
148
|
+
<li>
|
149
|
+
<p class="file_name"><a href="./lib/ballast/request_domain_matcher.rb_cyclo.html">lib/ballast/request_domain_matcher.rb</a>
|
150
|
+
</li>
|
151
|
+
<li>
|
152
|
+
<p class="file_name"><a href="./lib/ballast/version.rb_cyclo.html">lib/ballast/version.rb</a>
|
153
|
+
</li>
|
154
|
+
<li>
|
155
|
+
<p class="file_name"><a href="./lib/ballast.rb_cyclo.html">lib/ballast.rb</a>
|
156
|
+
</li>
|
157
|
+
</ul>
|
158
|
+
</body></html>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:0
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:7 Lines:24
|
6
|
+
Type:Def Name:self.in_em_thread Complexity:4 Lines:11
|
7
|
+
Type:Def Name:self.run_in_thread Complexity:3 Lines:4
|
8
|
+
-- END Ballast --
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:3
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Concerns --
|
8
|
+
Type:Module Name:Ballast::Concerns Complexity:0 Lines:3
|
9
|
+
-- END Ballast::Concerns --
|
10
|
+
-- START Ballast::Concerns::Ajax --
|
11
|
+
Type:Module Name:Ballast::Concerns::Ajax Complexity:24 Lines:122
|
12
|
+
Type:Def Name:is_ajax? Complexity:2 Lines:2
|
13
|
+
Type:Def Name:prepare_ajax Complexity:3 Lines:5
|
14
|
+
Type:Def Name:send_ajax Complexity:4 Lines:15
|
15
|
+
Type:Def Name:update_ajax Complexity:2 Lines:4
|
16
|
+
Type:Def Name:prevent_caching Complexity:1 Lines:6
|
17
|
+
Type:Def Name:allow_cors Complexity:3 Lines:9
|
18
|
+
Type:Def Name:generate_robots_txt Complexity:3 Lines:9
|
19
|
+
Type:Def Name:prepare_ajax_send Complexity:3 Lines:5
|
20
|
+
Type:Def Name:format_ajax_send Complexity:3 Lines:6
|
21
|
+
-- END Ballast::Concerns::Ajax --
|
@@ -0,0 +1,20 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:2
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Concerns --
|
8
|
+
Type:Module Name:Ballast::Concerns Complexity:0 Lines:3
|
9
|
+
-- END Ballast::Concerns --
|
10
|
+
-- START Ballast::Concerns::Common --
|
11
|
+
Type:Module Name:Ballast::Concerns::Common Complexity:18 Lines:100
|
12
|
+
Type:Def Name:is_json? Complexity:2 Lines:2
|
13
|
+
Type:Def Name:sending_data? Complexity:1 Lines:2
|
14
|
+
Type:Def Name:perform_operation Complexity:1 Lines:2
|
15
|
+
Type:Def Name:perform_operations_chain Complexity:1 Lines:2
|
16
|
+
Type:Def Name:format_short_duration Complexity:4 Lines:13
|
17
|
+
Type:Def Name:format_short_amount Complexity:3 Lines:8
|
18
|
+
Type:Def Name:format_long_date Complexity:3 Lines:4
|
19
|
+
Type:Def Name:authenticate_user Complexity:3 Lines:10
|
20
|
+
-- END Ballast::Concerns::Common --
|
@@ -0,0 +1,14 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:2
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Concerns --
|
8
|
+
Type:Module Name:Ballast::Concerns Complexity:0 Lines:3
|
9
|
+
-- END Ballast::Concerns --
|
10
|
+
-- START Ballast::Concerns::ErrorsHandling --
|
11
|
+
Type:Module Name:Ballast::Concerns::ErrorsHandling Complexity:6 Lines:44
|
12
|
+
Type:Def Name:handle_error Complexity:3 Lines:16
|
13
|
+
Type:Def Name:send_or_render_error Complexity:3 Lines:11
|
14
|
+
-- END Ballast::Concerns::ErrorsHandling --
|
@@ -0,0 +1,20 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:2
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Concerns --
|
8
|
+
Type:Module Name:Ballast::Concerns Complexity:0 Lines:3
|
9
|
+
-- END Ballast::Concerns --
|
10
|
+
-- START Ballast::Concerns::View --
|
11
|
+
Type:Module Name:Ballast::Concerns::View Complexity:14 Lines:78
|
12
|
+
Type:Def Name:scope_css Complexity:1 Lines:2
|
13
|
+
Type:Def Name:browser Complexity:1 Lines:2
|
14
|
+
Type:Def Name:browser_supported? Complexity:2 Lines:3
|
15
|
+
Type:Def Name:layout_params Complexity:2 Lines:3
|
16
|
+
Type:Def Name:set_layout_params Complexity:1 Lines:3
|
17
|
+
Type:Def Name:javascript_params Complexity:2 Lines:3
|
18
|
+
Type:Def Name:add_javascript_params Complexity:4 Lines:12
|
19
|
+
Type:Def Name:initialize_view_params Complexity:1 Lines:3
|
20
|
+
-- END Ballast::Concerns::View --
|
@@ -0,0 +1,10 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:4
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Configuration --
|
8
|
+
Type:Class Name:Ballast::Configuration Complexity:4 Lines:20
|
9
|
+
Type:Def Name:initialize Complexity:4 Lines:12
|
10
|
+
-- END Ballast::Configuration --
|
@@ -0,0 +1,11 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:3
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Context --
|
8
|
+
Type:Class Name:Ballast::Context Complexity:3 Lines:29
|
9
|
+
Type:Def Name:self.build Complexity:1 Lines:7
|
10
|
+
Type:Def Name:method_missing Complexity:2 Lines:8
|
11
|
+
-- END Ballast::Context --
|
@@ -0,0 +1,22 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:3
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Errors --
|
8
|
+
Type:Module Name:Ballast::Errors Complexity:0 Lines:15
|
9
|
+
-- END Ballast::Errors --
|
10
|
+
-- START Ballast::Errors::BaseError --
|
11
|
+
Type:Class Name:Ballast::Errors::BaseError Complexity:1 Lines:7
|
12
|
+
Type:Def Name:initialize Complexity:1 Lines:3
|
13
|
+
-- END Ballast::Errors::BaseError --
|
14
|
+
-- START Ballast::Errors::InvalidDomain --
|
15
|
+
Type:Class Name:Ballast::Errors::InvalidDomain Complexity:0 Lines:1
|
16
|
+
-- END Ballast::Errors::InvalidDomain --
|
17
|
+
-- START Ballast::Errors::PerformError --
|
18
|
+
Type:Class Name:Ballast::Errors::PerformError Complexity:0 Lines:1
|
19
|
+
-- END Ballast::Errors::PerformError --
|
20
|
+
-- START Ballast::Errors::ValidationError --
|
21
|
+
Type:Class Name:Ballast::Errors::ValidationError Complexity:0 Lines:1
|
22
|
+
-- END Ballast::Errors::ValidationError --
|
@@ -0,0 +1,14 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:3
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Middlewares --
|
8
|
+
Type:Module Name:Ballast::Middlewares Complexity:0 Lines:3
|
9
|
+
-- END Ballast::Middlewares --
|
10
|
+
-- START Ballast::Middlewares::DefaultHost --
|
11
|
+
Type:Class Name:Ballast::Middlewares::DefaultHost Complexity:3 Lines:26
|
12
|
+
Type:Def Name:initialize Complexity:1 Lines:3
|
13
|
+
Type:Def Name:call Complexity:2 Lines:12
|
14
|
+
-- END Ballast::Middlewares::DefaultHost --
|
@@ -0,0 +1,19 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:3
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Operation --
|
8
|
+
Type:Class Name:Ballast::Operation Complexity:27 Lines:127
|
9
|
+
Type:Def Name:self.perform Complexity:2 Lines:4
|
10
|
+
Type:Def Name:initialize Complexity:1 Lines:3
|
11
|
+
Type:Def Name:setup_response Complexity:3 Lines:12
|
12
|
+
Type:Def Name:import_response Complexity:3 Lines:5
|
13
|
+
Type:Def Name:perform_with_handling Complexity:5 Lines:10
|
14
|
+
Type:Def Name:fail! Complexity:2 Lines:3
|
15
|
+
Type:Def Name:import_error Complexity:5 Lines:10
|
16
|
+
Type:Def Name:resolve_error Complexity:3 Lines:4
|
17
|
+
Type:Def Name:in_em_thread Complexity:1 Lines:2
|
18
|
+
Type:Def Name:method_missing Complexity:2 Lines:6
|
19
|
+
-- END Ballast::Operation --
|
@@ -0,0 +1,12 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:6
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::OperationsChain --
|
8
|
+
Type:Class Name:Ballast::OperationsChain Complexity:4 Lines:33
|
9
|
+
Type:Def Name:self.perform Complexity:2 Lines:3
|
10
|
+
Type:Def Name:initialize Complexity:1 Lines:3
|
11
|
+
Type:Def Name:interactors Complexity:1 Lines:2
|
12
|
+
-- END Ballast::OperationsChain --
|
@@ -0,0 +1,11 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:12
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::RequestDomainMatcher --
|
8
|
+
Type:Class Name:Ballast::RequestDomainMatcher Complexity:3 Lines:24
|
9
|
+
Type:Def Name:initialize Complexity:1 Lines:5
|
10
|
+
Type:Def Name:matches? Complexity:2 Lines:3
|
11
|
+
-- END Ballast::RequestDomainMatcher --
|
@@ -0,0 +1,9 @@
|
|
1
|
+
-- START --
|
2
|
+
Type:Global Name: Complexity:0 Lines:1
|
3
|
+
-- END --
|
4
|
+
-- START Ballast --
|
5
|
+
Type:Module Name:Ballast Complexity:0 Lines:5
|
6
|
+
-- END Ballast --
|
7
|
+
-- START Ballast::Version --
|
8
|
+
Type:Module Name:Ballast::Version Complexity:0 Lines:12
|
9
|
+
-- END Ballast::Version --
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ballast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shogun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -199,6 +199,20 @@ files:
|
|
199
199
|
- spec/ballast_spec.rb
|
200
200
|
- spec/coverage_helper.rb
|
201
201
|
- spec/spec_helper.rb
|
202
|
+
- tmp/saikuro/index_cyclo.html
|
203
|
+
- tmp/saikuro/lib/ballast.rb_cyclo.html
|
204
|
+
- tmp/saikuro/lib/ballast/concerns/ajax.rb_cyclo.html
|
205
|
+
- tmp/saikuro/lib/ballast/concerns/common.rb_cyclo.html
|
206
|
+
- tmp/saikuro/lib/ballast/concerns/errors_handling.rb_cyclo.html
|
207
|
+
- tmp/saikuro/lib/ballast/concerns/view.rb_cyclo.html
|
208
|
+
- tmp/saikuro/lib/ballast/configuration.rb_cyclo.html
|
209
|
+
- tmp/saikuro/lib/ballast/context.rb_cyclo.html
|
210
|
+
- tmp/saikuro/lib/ballast/errors.rb_cyclo.html
|
211
|
+
- tmp/saikuro/lib/ballast/middlewares/default_host.rb_cyclo.html
|
212
|
+
- tmp/saikuro/lib/ballast/operation.rb_cyclo.html
|
213
|
+
- tmp/saikuro/lib/ballast/operations_chain.rb_cyclo.html
|
214
|
+
- tmp/saikuro/lib/ballast/request_domain_matcher.rb_cyclo.html
|
215
|
+
- tmp/saikuro/lib/ballast/version.rb_cyclo.html
|
202
216
|
homepage: http://github.com/ShogunPanda/ballast
|
203
217
|
licenses:
|
204
218
|
- MIT
|