ballast 1.9.2 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/doc/Ballast.html +3 -7
  4. data/doc/Ballast/Concerns.html +1 -1
  5. data/doc/Ballast/Concerns/Ajax.html +53 -12
  6. data/doc/Ballast/Concerns/Common.html +1 -1
  7. data/doc/Ballast/Concerns/ErrorsHandling.html +1 -1
  8. data/doc/Ballast/Concerns/View.html +1 -1
  9. data/doc/Ballast/Configuration.html +1 -1
  10. data/doc/Ballast/Context.html +1 -1
  11. data/doc/Ballast/Errors.html +1 -1
  12. data/doc/Ballast/Errors/BaseError.html +1 -1
  13. data/doc/Ballast/Errors/InvalidDomain.html +1 -1
  14. data/doc/Ballast/Errors/PerformError.html +1 -1
  15. data/doc/Ballast/Errors/ValidationError.html +1 -1
  16. data/doc/Ballast/Middlewares.html +1 -1
  17. data/doc/Ballast/Middlewares/DefaultHost.html +1 -1
  18. data/doc/Ballast/Operation.html +1 -1
  19. data/doc/Ballast/OperationsChain.html +1 -1
  20. data/doc/Ballast/RequestDomainMatcher.html +1 -1
  21. data/doc/Ballast/Version.html +2 -2
  22. data/doc/_index.html +1 -1
  23. data/doc/file.README.html +1 -1
  24. data/doc/index.html +1 -1
  25. data/doc/method_list.html +10 -10
  26. data/doc/top-level-namespace.html +1 -1
  27. data/lib/ballast.rb +11 -3
  28. data/lib/ballast/concerns/ajax.rb +13 -3
  29. data/lib/ballast/version.rb +1 -1
  30. data/spec/ballast/concerns/ajax_spec.rb +7 -2
  31. data/tmp/saikuro/index_cyclo.html +158 -0
  32. data/tmp/saikuro/lib/ballast.rb_cyclo.html +8 -0
  33. data/tmp/saikuro/lib/ballast/concerns/ajax.rb_cyclo.html +21 -0
  34. data/tmp/saikuro/lib/ballast/concerns/common.rb_cyclo.html +20 -0
  35. data/tmp/saikuro/lib/ballast/concerns/errors_handling.rb_cyclo.html +14 -0
  36. data/tmp/saikuro/lib/ballast/concerns/view.rb_cyclo.html +20 -0
  37. data/tmp/saikuro/lib/ballast/configuration.rb_cyclo.html +10 -0
  38. data/tmp/saikuro/lib/ballast/context.rb_cyclo.html +11 -0
  39. data/tmp/saikuro/lib/ballast/errors.rb_cyclo.html +22 -0
  40. data/tmp/saikuro/lib/ballast/middlewares/default_host.rb_cyclo.html +14 -0
  41. data/tmp/saikuro/lib/ballast/operation.rb_cyclo.html +19 -0
  42. data/tmp/saikuro/lib/ballast/operations_chain.rb_cyclo.html +12 -0
  43. data/tmp/saikuro/lib/ballast/request_domain_matcher.rb_cyclo.html +11 -0
  44. data/tmp/saikuro/lib/ballast/version.rb_cyclo.html +9 -0
  45. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90402cc90960febdb8c01d502ce768c698aaf7d9
4
- data.tar.gz: e5768f863f473dd98c8f4005dea595c5b38b0846
3
+ metadata.gz: 024d28958af05267b4499eb6d73260cba811f54e
4
+ data.tar.gz: c88ba674fba0b08e527824e73a080c6bbc1f8b78
5
5
  SHA512:
6
- metadata.gz: d626150b5ba00faa379862990f78b9495c8cf93e92d678d7388629147d6026b9deb8fd43102cbad2911ec301ed94a2ba579bf05af132c99861819a27ac88710f
7
- data.tar.gz: d4172451c0b918126da6017027a6c277e812e8de7bc35143830880064aa3512878d2fa46d75fc1d040a6847165ade9a68db33f2d2afd267a70adee347b507635
6
+ metadata.gz: cffc97cd9e220c174e38952228ed3b2324c48022597cf47711e2a72200755c297b617e2880b7b7efa6157f030bb05d6b4ecd006bd86e9c4e79ee86ad799a0ded
7
+ data.tar.gz: 5c56e7aecaac44c11a99118a8751c0e14dff2808a7e07820b6f620a6f4899ed4d185d9f8836eae1144968a0d0a5c05b5906d32536b9e0a2997d8ecae533ecfff
@@ -1,3 +1,7 @@
1
+ ### 1.9.3 / 2014-03-15
2
+
3
+ * Added `Ballast::Concerns::Ajax::generate_robots_txt`.
4
+
1
5
  ### 1.9.2 / 2014-03-09
2
6
 
3
7
  * Fixed type for HTML in `Ballast::Concerns::ErrorsHandling::handle_error`.
@@ -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'>&amp;</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='const'>EM</span><span class='op'>::</span><span class='const'>Synchrony</span><span class='period'>.</span><span class='id identifier rubyid_defer'>defer</span> <span class='kw'>do</span>
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'>&amp;</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'>&amp;</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 Sun Mar 9 20:39:20 2014 by
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>
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Sun Mar 9 20:39:20 2014 by
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="#disallow_robots-instance_method" title="#disallow_robots (instance method)">- (Object) <strong>disallow_robots</strong> </a>
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>Disallows web robots.</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="disallow_robots-instance_method">
423
+ <h3 class="signature " id="generate_robots_txt-instance_method">
422
424
 
423
- - (<tt>Object</tt>) <strong>disallow_robots</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>Disallows web robots.</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
+ &mdash;
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
- 94
446
- 95
447
- 96</pre>
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 94</span>
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'>&quot;</span><span class='tstring_content'>*</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</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'>&quot;</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'>&quot;</span></span> <span class='rbrace'>}</span>
490
+
491
+ <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</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'>&quot;</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
451
493
 
452
- <span class='kw'>def</span> <span class='id identifier rubyid_disallow_robots'>disallow_robots</span>
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'>&quot;</span><span class='tstring_content'>User-agent: *\nDisallow: /</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='label'>content_type:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>text/plain</span><span class='tstring_end'>&quot;</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'>&quot;</span><span class='tstring_content'>text/plain</span><span class='tstring_end'>&quot;</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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:21 2014 by
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>
@@ -408,7 +408,7 @@
408
408
  </div>
409
409
 
410
410
  <div id="footer">
411
- Generated on Sun Mar 9 20:39:20 2014 by
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>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:20 2014 by
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 Sun Mar 9 20:39:21 2014 by
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>
@@ -1295,7 +1295,7 @@ as owner will be created.</p>
1295
1295
  </div>
1296
1296
 
1297
1297
  <div id="footer">
1298
- Generated on Sun Mar 9 20:39:21 2014 by
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 Sun Mar 9 20:39:21 2014 by
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 Sun Mar 9 20:39:21 2014 by
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>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>2</span></pre></dd>
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 Sun Mar 9 20:39:20 2014 by
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>
@@ -310,7 +310,7 @@
310
310
  </div>
311
311
 
312
312
  <div id="footer">
313
- Generated on Sun Mar 9 20:39:20 2014 by
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>
@@ -106,7 +106,7 @@
106
106
  </div></div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Sun Mar 9 20:39:20 2014 by
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>
@@ -106,7 +106,7 @@
106
106
  </div></div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Sun Mar 9 20:39:20 2014 by
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>
@@ -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="r2 ">
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="r1 ">
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="r2 ">
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="r1 ">
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 Sun Mar 9 20:39:20 2014 by
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>
@@ -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
- EM::Synchrony.defer do
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
- # Disallows web robots.
94
- def disallow_robots
95
- render(text: "User-agent: *\nDisallow: /", content_type: "text/plain")
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.
@@ -16,7 +16,7 @@ module Ballast
16
16
  MINOR = 9
17
17
 
18
18
  # The patch version.
19
- PATCH = 2
19
+ PATCH = 3
20
20
 
21
21
  # The current version of ballast.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -127,10 +127,15 @@ describe Ballast::Concerns::Ajax do
127
127
  end
128
128
  end
129
129
 
130
- describe "#disallow_robots" do
131
- it "should disallow robots outputting a text view" do
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.2
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-10 00:00:00.000000000 Z
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