mbrao 1.1.1 → 1.2.0
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.
- data/.travis-gemfile +5 -2
- data/.travis.yml +2 -2
- data/Gemfile +6 -4
- data/README.md +1 -0
- data/Rakefile +18 -0
- data/doc/ActionView/Template/Handlers/MbraoTemplate.html +5 -5
- data/doc/ActionView/Template/Handlers.html +5 -5
- data/doc/HTML/Pipeline/KramdownFilter.html +5 -5
- data/doc/HTML/Pipeline.html +5 -5
- data/doc/HTML.html +5 -5
- data/doc/Mbrao/Author.html +12 -12
- data/doc/Mbrao/Content.html +104 -140
- data/doc/Mbrao/ContentPublicInterface.html +6 -6
- data/doc/Mbrao/Exceptions/InvalidDate.html +7 -7
- data/doc/Mbrao/Exceptions/InvalidMetadata.html +7 -7
- data/doc/Mbrao/Exceptions/Parsing.html +7 -7
- data/doc/Mbrao/Exceptions/Rendering.html +7 -7
- data/doc/Mbrao/Exceptions/UnavailableLocalization.html +7 -7
- data/doc/Mbrao/Exceptions/Unimplemented.html +7 -7
- data/doc/Mbrao/Exceptions/UnknownEngine.html +7 -7
- data/doc/Mbrao/Exceptions.html +5 -5
- data/doc/Mbrao/Parser.html +15 -15
- data/doc/Mbrao/ParsingEngines/Base.html +5 -5
- data/doc/Mbrao/ParsingEngines/PlainText.html +5 -5
- data/doc/Mbrao/ParsingEngines.html +5 -5
- data/doc/Mbrao/PublicInterface/ClassMethods.html +20 -32
- data/doc/Mbrao/PublicInterface.html +5 -5
- data/doc/Mbrao/RenderingEngines/Base.html +5 -5
- data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +16 -16
- data/doc/Mbrao/RenderingEngines.html +5 -5
- data/doc/Mbrao/Validations/ClassMethods.html +13 -351
- data/doc/Mbrao/Validations.html +5 -5
- data/doc/Mbrao/Version.html +7 -7
- data/doc/Mbrao.html +5 -5
- data/doc/_index.html +6 -6
- data/doc/class_list.html +3 -2
- data/doc/file.README.html +7 -6
- data/doc/file_list.html +2 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +7 -6
- data/doc/js/full_list.js +7 -2
- data/doc/method_list.html +67 -192
- data/doc/top-level-namespace.html +5 -5
- data/lib/mbrao/author.rb +1 -1
- data/lib/mbrao/content.rb +10 -12
- data/lib/mbrao/exceptions.rb +7 -7
- data/lib/mbrao/parser.rb +4 -65
- data/lib/mbrao/rendering_engines/html_pipeline.rb +5 -5
- data/lib/mbrao/version.rb +2 -2
- data/lib/mbrao.rb +1 -1
- data/mbrao.gemspec +4 -4
- data/spec/coverage_helper.rb +4 -1
- data/spec/mbrao/author_spec.rb +5 -5
- data/spec/mbrao/content_spec.rb +3 -3
- data/spec/mbrao/integrations/rails_spec.rb +8 -8
- data/spec/mbrao/parser_spec.rb +19 -96
- data/spec/mbrao/parsing_engines/base_spec.rb +7 -7
- data/spec/mbrao/rendering_engines/html_pipeline_spec.rb +13 -14
- metadata +11 -11
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao::Validations::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -152,52 +152,6 @@
|
|
152
152
|
<span class="summary_desc"><div class='inline'><p>Checks if the text is a valid URL.</p>
|
153
153
|
</div></span>
|
154
154
|
|
155
|
-
</li>
|
156
|
-
|
157
|
-
|
158
|
-
<li class="public ">
|
159
|
-
<span class="summary_signature">
|
160
|
-
|
161
|
-
<a href="#sanitized_array-instance_method" title="#sanitized_array (instance method)">- (Array) <strong>sanitized_array</strong>(object, uniq = true, compact = false, sanitize_method = :ensure_string, &block) </a>
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
</span>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<span class="summary_desc"><div class='inline'><p>Converts an object to a a flatten array with all values sanitized.</p>
|
176
|
-
</div></span>
|
177
|
-
|
178
|
-
</li>
|
179
|
-
|
180
|
-
|
181
|
-
<li class="public ">
|
182
|
-
<span class="summary_signature">
|
183
|
-
|
184
|
-
<a href="#sanitized_hash-instance_method" title="#sanitized_hash (instance method)">- (Object) <strong>sanitized_hash</strong>(object, sanitize_method = nil, &block) </a>
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
</span>
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
<span class="summary_desc"><div class='inline'><p>Converts an object making sure that every <code>Hash</code> is converted to a <code>HashWithIndifferentAccess</code>.</p>
|
199
|
-
</div></span>
|
200
|
-
|
201
155
|
</li>
|
202
156
|
|
203
157
|
|
@@ -271,13 +225,13 @@
|
|
271
225
|
<pre class="lines">
|
272
226
|
|
273
227
|
|
228
|
+
113
|
229
|
+
114
|
274
230
|
115
|
275
|
-
116
|
276
|
-
117
|
277
|
-
118</pre>
|
231
|
+
116</pre>
|
278
232
|
</td>
|
279
233
|
<td>
|
280
|
-
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line
|
234
|
+
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 113</span>
|
281
235
|
|
282
236
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_email?'>is_email?</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='rparen'>)</span>
|
283
237
|
<span class='id identifier rubyid_regex'>regex</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,6})$</span><span class='regexp_end'>/i</span></span>
|
@@ -349,6 +303,8 @@
|
|
349
303
|
<pre class="lines">
|
350
304
|
|
351
305
|
|
306
|
+
122
|
307
|
+
123
|
352
308
|
124
|
353
309
|
125
|
354
310
|
126
|
@@ -360,12 +316,10 @@
|
|
360
316
|
132
|
361
317
|
133
|
362
318
|
134
|
363
|
-
135
|
364
|
-
136
|
365
|
-
137</pre>
|
319
|
+
135</pre>
|
366
320
|
</td>
|
367
321
|
<td>
|
368
|
-
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line
|
322
|
+
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 122</span>
|
369
323
|
|
370
324
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_url?'>is_url?</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='rparen'>)</span>
|
371
325
|
<span class='id identifier rubyid_regex'>regex</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>
|
@@ -384,298 +338,6 @@
|
|
384
338
|
</td>
|
385
339
|
</tr>
|
386
340
|
</table>
|
387
|
-
</div>
|
388
|
-
|
389
|
-
<div class="method_details ">
|
390
|
-
<h3 class="signature " id="sanitized_array-instance_method">
|
391
|
-
|
392
|
-
- (<tt>Array</tt>) <strong>sanitized_array</strong>(object, uniq = true, compact = false, sanitize_method = :ensure_string, &block)
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
</h3><div class="docstring">
|
399
|
-
<div class="discussion">
|
400
|
-
<p>Converts an object to a a flatten array with all values sanitized.</p>
|
401
|
-
|
402
|
-
|
403
|
-
</div>
|
404
|
-
</div>
|
405
|
-
<div class="tags">
|
406
|
-
<p class="tag_title">Parameters:</p>
|
407
|
-
<ul class="param">
|
408
|
-
|
409
|
-
<li>
|
410
|
-
|
411
|
-
<span class='name'>object</span>
|
412
|
-
|
413
|
-
|
414
|
-
<span class='type'>(<tt>Object</tt>)</span>
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
—
|
419
|
-
<div class='inline'><p>The object to convert.</p>
|
420
|
-
</div>
|
421
|
-
|
422
|
-
</li>
|
423
|
-
|
424
|
-
<li>
|
425
|
-
|
426
|
-
<span class='name'>uniq</span>
|
427
|
-
|
428
|
-
|
429
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
430
|
-
|
431
|
-
|
432
|
-
<em class="default">(defaults to: <tt>true</tt>)</em>
|
433
|
-
|
434
|
-
|
435
|
-
—
|
436
|
-
<div class='inline'><p>If to remove duplicates from the array before sanitizing.</p>
|
437
|
-
</div>
|
438
|
-
|
439
|
-
</li>
|
440
|
-
|
441
|
-
<li>
|
442
|
-
|
443
|
-
<span class='name'>compact</span>
|
444
|
-
|
445
|
-
|
446
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
447
|
-
|
448
|
-
|
449
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
450
|
-
|
451
|
-
|
452
|
-
—
|
453
|
-
<div class='inline'><p>If to compact the array before sanitizing.</p>
|
454
|
-
</div>
|
455
|
-
|
456
|
-
</li>
|
457
|
-
|
458
|
-
<li>
|
459
|
-
|
460
|
-
<span class='name'>sanitize_method</span>
|
461
|
-
|
462
|
-
|
463
|
-
<span class='type'>(<tt>Symbol|nil</tt>)</span>
|
464
|
-
|
465
|
-
|
466
|
-
<em class="default">(defaults to: <tt>:ensure_string</tt>)</em>
|
467
|
-
|
468
|
-
|
469
|
-
—
|
470
|
-
<div class='inline'><p>If not <code>nil</code>, the method to use to sanitize entries. Ignored if a block is present.</p>
|
471
|
-
</div>
|
472
|
-
|
473
|
-
</li>
|
474
|
-
|
475
|
-
<li>
|
476
|
-
|
477
|
-
<span class='name'>block</span>
|
478
|
-
|
479
|
-
|
480
|
-
<span class='type'>(<tt>Proc</tt>)</span>
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
—
|
485
|
-
<div class='inline'><p>A block to sanitize entries. It must accept the value as unique argument.</p>
|
486
|
-
</div>
|
487
|
-
|
488
|
-
</li>
|
489
|
-
|
490
|
-
</ul>
|
491
|
-
|
492
|
-
<p class="tag_title">Returns:</p>
|
493
|
-
<ul class="return">
|
494
|
-
|
495
|
-
<li>
|
496
|
-
|
497
|
-
|
498
|
-
<span class='type'>(<tt>Array</tt>)</span>
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
—
|
503
|
-
<div class='inline'><p>An flattened array whose all values are strings.</p>
|
504
|
-
</div>
|
505
|
-
|
506
|
-
</li>
|
507
|
-
|
508
|
-
</ul>
|
509
|
-
|
510
|
-
</div><table class="source_code">
|
511
|
-
<tr>
|
512
|
-
<td>
|
513
|
-
<pre class="lines">
|
514
|
-
|
515
|
-
|
516
|
-
166
|
517
|
-
167
|
518
|
-
168
|
519
|
-
169
|
520
|
-
170
|
521
|
-
171
|
522
|
-
172
|
523
|
-
173
|
524
|
-
174
|
525
|
-
175
|
526
|
-
176
|
527
|
-
177
|
528
|
-
178
|
529
|
-
179
|
530
|
-
180</pre>
|
531
|
-
</td>
|
532
|
-
<td>
|
533
|
-
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 166</span>
|
534
|
-
|
535
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_sanitized_array'>sanitized_array</span><span class='lparen'>(</span><span class='id identifier rubyid_object'>object</span><span class='comma'>,</span> <span class='id identifier rubyid_uniq'>uniq</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_compact'>compact</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitize_method'>sanitize_method</span> <span class='op'>=</span> <span class='symbol'>:ensure_string</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
536
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span>
|
537
|
-
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_uniq!'>uniq!</span> <span class='kw'>if</span> <span class='id identifier rubyid_uniq'>uniq</span>
|
538
|
-
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_compact!'>compact!</span> <span class='kw'>if</span> <span class='id identifier rubyid_compact'>compact</span>
|
539
|
-
|
540
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span> <span class='kw'>then</span>
|
541
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
542
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_sanitize_method'>sanitize_method</span> <span class='kw'>then</span>
|
543
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_sanitize_method'>sanitize_method</span><span class='rparen'>)</span>
|
544
|
-
<span class='kw'>end</span>
|
545
|
-
|
546
|
-
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_uniq!'>uniq!</span> <span class='kw'>if</span> <span class='id identifier rubyid_uniq'>uniq</span>
|
547
|
-
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_compact!'>compact!</span> <span class='kw'>if</span> <span class='id identifier rubyid_compact'>compact</span>
|
548
|
-
<span class='id identifier rubyid_rv'>rv</span>
|
549
|
-
<span class='kw'>end</span></pre>
|
550
|
-
</td>
|
551
|
-
</tr>
|
552
|
-
</table>
|
553
|
-
</div>
|
554
|
-
|
555
|
-
<div class="method_details ">
|
556
|
-
<h3 class="signature " id="sanitized_hash-instance_method">
|
557
|
-
|
558
|
-
- (<tt>Object</tt>) <strong>sanitized_hash</strong>(object, sanitize_method = nil, &block)
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
</h3><div class="docstring">
|
565
|
-
<div class="discussion">
|
566
|
-
<p>Converts an object making sure that every <code>Hash</code> is converted to a <code>HashWithIndifferentAccess</code>.</p>
|
567
|
-
|
568
|
-
|
569
|
-
</div>
|
570
|
-
</div>
|
571
|
-
<div class="tags">
|
572
|
-
<p class="tag_title">Parameters:</p>
|
573
|
-
<ul class="param">
|
574
|
-
|
575
|
-
<li>
|
576
|
-
|
577
|
-
<span class='name'>object</span>
|
578
|
-
|
579
|
-
|
580
|
-
<span class='type'>(<tt>Object</tt>)</span>
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
—
|
585
|
-
<div class='inline'><p>The object to convert. If the object is not an Hash or doesn’t respond to <code>collect</code> then the original object is returned.</p>
|
586
|
-
</div>
|
587
|
-
|
588
|
-
</li>
|
589
|
-
|
590
|
-
<li>
|
591
|
-
|
592
|
-
<span class='name'>sanitize_method</span>
|
593
|
-
|
594
|
-
|
595
|
-
<span class='type'>(<tt>Symbol|nil</tt>)</span>
|
596
|
-
|
597
|
-
|
598
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
599
|
-
|
600
|
-
|
601
|
-
—
|
602
|
-
<div class='inline'><p>If not <code>nil</code>, the method to use to sanitize entries. Ignored if a block is present.</p>
|
603
|
-
</div>
|
604
|
-
|
605
|
-
</li>
|
606
|
-
|
607
|
-
<li>
|
608
|
-
|
609
|
-
<span class='name'>block</span>
|
610
|
-
|
611
|
-
|
612
|
-
<span class='type'>(<tt>Proc</tt>)</span>
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
—
|
617
|
-
<div class='inline'><p>A block to sanitize entries. It must accept the value as unique argument.</p>
|
618
|
-
</div>
|
619
|
-
|
620
|
-
</li>
|
621
|
-
|
622
|
-
</ul>
|
623
|
-
|
624
|
-
<p class="tag_title">Returns:</p>
|
625
|
-
<ul class="return">
|
626
|
-
|
627
|
-
<li>
|
628
|
-
|
629
|
-
|
630
|
-
<span class='type'>(<tt>Object</tt>)</span>
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
—
|
635
|
-
<div class='inline'><p>The converted object.</p>
|
636
|
-
</div>
|
637
|
-
|
638
|
-
</li>
|
639
|
-
|
640
|
-
</ul>
|
641
|
-
|
642
|
-
</div><table class="source_code">
|
643
|
-
<tr>
|
644
|
-
<td>
|
645
|
-
<pre class="lines">
|
646
|
-
|
647
|
-
|
648
|
-
145
|
649
|
-
146
|
650
|
-
147
|
651
|
-
148
|
652
|
-
149
|
653
|
-
150
|
654
|
-
151
|
655
|
-
152
|
656
|
-
153
|
657
|
-
154
|
658
|
-
155
|
659
|
-
156</pre>
|
660
|
-
</td>
|
661
|
-
<td>
|
662
|
-
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 145</span>
|
663
|
-
|
664
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_sanitized_hash'>sanitized_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_object'>object</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitize_method'>sanitize_method</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
665
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>HashWithIndifferentAccess</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
666
|
-
<span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_hash'>hash</span><span class='comma'>,</span> <span class='id identifier rubyid_pair'>pair</span><span class='op'>|</span>
|
667
|
-
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_pair'>pair</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Mbrao</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_sanitized_hash'>sanitized_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_pair'>pair</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitize_method'>sanitize_method</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
668
|
-
<span class='id identifier rubyid_hash'>hash</span>
|
669
|
-
<span class='kw'>end</span>
|
670
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:collect</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
671
|
-
<span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span> <span class='const'>Mbrao</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_sanitized_hash'>sanitized_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitize_method'>sanitize_method</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
672
|
-
<span class='kw'>else</span>
|
673
|
-
<span class='id identifier rubyid_sanitized_hash_entry'>sanitized_hash_entry</span><span class='lparen'>(</span><span class='id identifier rubyid_object'>object</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitize_method'>sanitize_method</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
674
|
-
<span class='kw'>end</span>
|
675
|
-
<span class='kw'>end</span></pre>
|
676
|
-
</td>
|
677
|
-
</tr>
|
678
|
-
</table>
|
679
341
|
</div>
|
680
342
|
|
681
343
|
</div>
|
@@ -683,9 +345,9 @@
|
|
683
345
|
</div>
|
684
346
|
|
685
347
|
<div id="footer">
|
686
|
-
Generated on Sat
|
348
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
687
349
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
688
|
-
0.8.
|
350
|
+
0.8.6.2 (ruby-1.9.3).
|
689
351
|
</div>
|
690
352
|
|
691
353
|
</body>
|
data/doc/Mbrao/Validations.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao::Validations
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -125,9 +125,9 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on Sat
|
128
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.8.
|
130
|
+
0.8.6.2 (ruby-1.9.3).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</body>
|
data/doc/Mbrao/Version.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao::Version
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -134,7 +134,7 @@
|
|
134
134
|
|
135
135
|
</div>
|
136
136
|
</dt>
|
137
|
-
<dd><pre class="code"><span class='int'>
|
137
|
+
<dd><pre class="code"><span class='int'>2</span></pre></dd>
|
138
138
|
|
139
139
|
<dt id="PATCH-constant" class="">PATCH =
|
140
140
|
<div class="docstring">
|
@@ -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'>0</span></pre></dd>
|
153
153
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
155
155
|
<div class="docstring">
|
@@ -180,9 +180,9 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on Sat
|
183
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
|
-
0.8.
|
185
|
+
0.8.6.2 (ruby-1.9.3).
|
186
186
|
</div>
|
187
187
|
|
188
188
|
</body>
|
data/doc/Mbrao.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -121,9 +121,9 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on Sat
|
124
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
|
-
0.8.
|
126
|
+
0.8.6.2 (ruby-1.9.3).
|
127
127
|
</div>
|
128
128
|
|
129
129
|
</body>
|
data/doc/_index.html
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.
|
7
|
+
Documentation by YARD 0.8.6.2
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
11
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
11
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
15
|
<script type="text/javascript" charset="utf-8">
|
16
16
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.6.2</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -386,9 +386,9 @@
|
|
386
386
|
</div>
|
387
387
|
|
388
388
|
<div id="footer">
|
389
|
-
Generated on Sat
|
389
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
390
390
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
391
|
-
0.8.
|
391
|
+
0.8.6.2 (ruby-1.9.3).
|
392
392
|
</div>
|
393
393
|
|
394
394
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
16
|
|
17
17
|
|
18
|
+
<title>Class List</title>
|
18
19
|
<base id="base_target" target="_parent" />
|
19
20
|
</head>
|
20
21
|
<body>
|
@@ -44,8 +45,8 @@
|
|
44
45
|
<div id="search">Search: <input type="text" /></div>
|
45
46
|
|
46
47
|
<ul id="full_list" class="class">
|
47
|
-
<li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
|
48
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="ActionView/Template/Handlers.html" title="ActionView::Template::Handlers (module)">ActionView::Template::Handlers</a></span><small class='search_info'>ActionView::Template</small></li><ul><li><span class='object_link'><a href="ActionView/Template/Handlers/MbraoTemplate.html" title="ActionView::Template::Handlers::MbraoTemplate (class)">MbraoTemplate</a></span> < Object<small class='search_info'>ActionView::Template::Handlers</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="HTML.html" title="HTML (module)">HTML</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="HTML/Pipeline.html" title="HTML::Pipeline (class)">Pipeline</a></span> < Object<small class='search_info'>HTML</small></li><ul><li><span class='object_link'><a href="HTML/Pipeline/KramdownFilter.html" title="HTML::Pipeline::KramdownFilter (class)">KramdownFilter</a></span> < TextFilter<small class='search_info'>HTML::Pipeline</small></li></ul></ul><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao.html" title="Mbrao (module)">Mbrao</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Mbrao/Author.html" title="Mbrao::Author (class)">Author</a></span> < Object<small class='search_info'>Mbrao</small></li><li><span class='object_link'><a href="Mbrao/Content.html" title="Mbrao::Content (class)">Content</a></span> < Object<small class='search_info'>Mbrao</small></li><li><span class='object_link'><a href="Mbrao/ContentPublicInterface.html" title="Mbrao::ContentPublicInterface (module)">ContentPublicInterface</a></span><small class='search_info'>Mbrao</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao/Exceptions.html" title="Mbrao::Exceptions (module)">Exceptions</a></span><small class='search_info'>Mbrao</small></li><ul><li><span class='object_link'><a href="Mbrao/Exceptions/InvalidDate.html" title="Mbrao::Exceptions::InvalidDate (class)">InvalidDate</a></span> <
|
48
|
+
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
49
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="ActionView/Template/Handlers.html" title="ActionView::Template::Handlers (module)">ActionView::Template::Handlers</a></span><small class='search_info'>ActionView::Template</small></li><ul><li><span class='object_link'><a href="ActionView/Template/Handlers/MbraoTemplate.html" title="ActionView::Template::Handlers::MbraoTemplate (class)">MbraoTemplate</a></span> < Object<small class='search_info'>ActionView::Template::Handlers</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="HTML.html" title="HTML (module)">HTML</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="HTML/Pipeline.html" title="HTML::Pipeline (class)">Pipeline</a></span> < Object<small class='search_info'>HTML</small></li><ul><li><span class='object_link'><a href="HTML/Pipeline/KramdownFilter.html" title="HTML::Pipeline::KramdownFilter (class)">KramdownFilter</a></span> < TextFilter<small class='search_info'>HTML::Pipeline</small></li></ul></ul><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao.html" title="Mbrao (module)">Mbrao</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Mbrao/Author.html" title="Mbrao::Author (class)">Author</a></span> < Object<small class='search_info'>Mbrao</small></li><li><span class='object_link'><a href="Mbrao/Content.html" title="Mbrao::Content (class)">Content</a></span> < Object<small class='search_info'>Mbrao</small></li><li><span class='object_link'><a href="Mbrao/ContentPublicInterface.html" title="Mbrao::ContentPublicInterface (module)">ContentPublicInterface</a></span><small class='search_info'>Mbrao</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao/Exceptions.html" title="Mbrao::Exceptions (module)">Exceptions</a></span><small class='search_info'>Mbrao</small></li><ul><li><span class='object_link'><a href="Mbrao/Exceptions/InvalidDate.html" title="Mbrao::Exceptions::InvalidDate (class)">InvalidDate</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li><li><span class='object_link'><a href="Mbrao/Exceptions/InvalidMetadata.html" title="Mbrao::Exceptions::InvalidMetadata (class)">InvalidMetadata</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li><li><span class='object_link'><a href="Mbrao/Exceptions/Parsing.html" title="Mbrao::Exceptions::Parsing (class)">Parsing</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li><li><span class='object_link'><a href="Mbrao/Exceptions/Rendering.html" title="Mbrao::Exceptions::Rendering (class)">Rendering</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li><li><span class='object_link'><a href="Mbrao/Exceptions/UnavailableLocalization.html" title="Mbrao::Exceptions::UnavailableLocalization (class)">UnavailableLocalization</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li><li><span class='object_link'><a href="Mbrao/Exceptions/Unimplemented.html" title="Mbrao::Exceptions::Unimplemented (class)">Unimplemented</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li><li><span class='object_link'><a href="Mbrao/Exceptions/UnknownEngine.html" title="Mbrao::Exceptions::UnknownEngine (class)">UnknownEngine</a></span> < RuntimeError<small class='search_info'>Mbrao::Exceptions</small></li></ul><li><span class='object_link'><a href="Mbrao/Parser.html" title="Mbrao::Parser (class)">Parser</a></span> < Object<small class='search_info'>Mbrao</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao/ParsingEngines.html" title="Mbrao::ParsingEngines (module)">ParsingEngines</a></span><small class='search_info'>Mbrao</small></li><ul><li><span class='object_link'><a href="Mbrao/ParsingEngines/Base.html" title="Mbrao::ParsingEngines::Base (class)">Base</a></span> < Object<small class='search_info'>Mbrao::ParsingEngines</small></li><li><span class='object_link'><a href="Mbrao/ParsingEngines/PlainText.html" title="Mbrao::ParsingEngines::PlainText (class)">PlainText</a></span> < Base<small class='search_info'>Mbrao::ParsingEngines</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao/PublicInterface.html" title="Mbrao::PublicInterface (module)">PublicInterface</a></span><small class='search_info'>Mbrao</small></li><ul><li><span class='object_link'><a href="Mbrao/PublicInterface/ClassMethods.html" title="Mbrao::PublicInterface::ClassMethods (module)">ClassMethods</a></span><small class='search_info'>Mbrao::PublicInterface</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao/RenderingEngines.html" title="Mbrao::RenderingEngines (module)">RenderingEngines</a></span><small class='search_info'>Mbrao</small></li><ul><li><span class='object_link'><a href="Mbrao/RenderingEngines/Base.html" title="Mbrao::RenderingEngines::Base (class)">Base</a></span> < Object<small class='search_info'>Mbrao::RenderingEngines</small></li><li><span class='object_link'><a href="Mbrao/RenderingEngines/HtmlPipeline.html" title="Mbrao::RenderingEngines::HtmlPipeline (class)">HtmlPipeline</a></span> < Base<small class='search_info'>Mbrao::RenderingEngines</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="Mbrao/Validations.html" title="Mbrao::Validations (module)">Validations</a></span><small class='search_info'>Mbrao</small></li><ul><li><span class='object_link'><a href="Mbrao/Validations/ClassMethods.html" title="Mbrao::Validations::ClassMethods (module)">ClassMethods</a></span><small class='search_info'>Mbrao::Validations</small></li></ul><li><span class='object_link'><a href="Mbrao/Version.html" title="Mbrao::Version (module)">Version</a></span><small class='search_info'>Mbrao</small></li></ul>
|
49
50
|
|
50
51
|
</ul>
|
51
52
|
</div>
|