mbrao 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/doc/ActionView/Template/Handlers/MbraoTemplate.html +1 -1
  4. data/doc/ActionView/Template/Handlers.html +1 -1
  5. data/doc/HTML/Pipeline/KramdownFilter.html +1 -1
  6. data/doc/HTML/Pipeline.html +1 -1
  7. data/doc/HTML.html +1 -1
  8. data/doc/Mbrao/Author.html +1 -1
  9. data/doc/Mbrao/Content.html +1 -1
  10. data/doc/Mbrao/ContentPublicInterface.html +1 -1
  11. data/doc/Mbrao/Exceptions/InvalidDate.html +1 -1
  12. data/doc/Mbrao/Exceptions/InvalidMetadata.html +1 -1
  13. data/doc/Mbrao/Exceptions/Parsing.html +1 -1
  14. data/doc/Mbrao/Exceptions/Rendering.html +1 -1
  15. data/doc/Mbrao/Exceptions/UnavailableLocalization.html +1 -1
  16. data/doc/Mbrao/Exceptions/Unimplemented.html +1 -1
  17. data/doc/Mbrao/Exceptions/UnknownEngine.html +1 -1
  18. data/doc/Mbrao/Exceptions.html +1 -1
  19. data/doc/Mbrao/Parser.html +1 -1
  20. data/doc/Mbrao/ParsingEngines/Base.html +1 -1
  21. data/doc/Mbrao/ParsingEngines/PlainText.html +1 -1
  22. data/doc/Mbrao/ParsingEngines.html +1 -1
  23. data/doc/Mbrao/PublicInterface/ClassMethods.html +5 -5
  24. data/doc/Mbrao/PublicInterface.html +1 -1
  25. data/doc/Mbrao/RenderingEngines/Base.html +1 -1
  26. data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +1 -1
  27. data/doc/Mbrao/RenderingEngines.html +1 -1
  28. data/doc/Mbrao/Validations/ClassMethods.html +1 -1
  29. data/doc/Mbrao/Validations.html +1 -1
  30. data/doc/Mbrao/Version.html +2 -2
  31. data/doc/Mbrao.html +1 -1
  32. data/doc/_index.html +1 -1
  33. data/doc/file.README.html +1 -1
  34. data/doc/index.html +1 -1
  35. data/doc/top-level-namespace.html +1 -1
  36. data/lib/mbrao/parser.rb +1 -1
  37. data/lib/mbrao/version.rb +1 -1
  38. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9be1bd246c95ef6bae71b31426492e883072232c
4
- data.tar.gz: 92c6b9167b4d34bff13b442fb19ca7d89c0b3f20
3
+ metadata.gz: 56267b4f295f64e1d9caf9ac3133f754cbd606d5
4
+ data.tar.gz: 362710d7a4f48947685e66bb7dcab4c3c4193c86
5
5
  SHA512:
6
- metadata.gz: bcde59a4c8eb9dd7262ce093462cd3c6cd7cb7ad10ce8760c29c5252ea85ba922f05a190c8745a0cf59917f0d4bc286910cc308ee908c5e43817024d3cc748d0
7
- data.tar.gz: fff3ea5ef34a3673e86e6821462dd662f711c370b3ee5ca5431a6632d3cf39025e6998a90f7544581b20e3afde2c01f83dbcd6090c7889b1830cfd04fb416b2e
6
+ metadata.gz: d5f9044cb6127c881d62c9aed1a3d8f66b931b482420416e3bf311e4ebab1aa2b556f0a97c01d7ae71603c645070159236daa58f1ca9d6e89d76250fb8f8d7d5
7
+ data.tar.gz: 0783b558f9775fad881c60914d496a4273220ce7595833a2753d7e6b9d7d983e38065d8e7f4d48530d17ccaf91d3b1f3283d696e8e5d7fbde8b995cb7fb30ed3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.4.1 / 2013-11-24
2
+
3
+ * Improved Parser#as_json.
4
+
1
5
  ### 1.4.0 / 2013-11-24
2
6
 
3
7
  * Added support for summary in Content.
@@ -626,7 +626,7 @@
626
626
  </div>
627
627
 
628
628
  <div id="footer">
629
- Generated on Sun Nov 24 14:38:53 2013 by
629
+ Generated on Sun Nov 24 16:21:18 2013 by
630
630
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
631
631
  0.8.7.3 (ruby-2.0.0).
632
632
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun Nov 24 14:38:52 2013 by
119
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
122
122
  </div>
@@ -345,7 +345,7 @@
345
345
  </div>
346
346
 
347
347
  <div id="footer">
348
- Generated on Sun Nov 24 14:38:53 2013 by
348
+ Generated on Sun Nov 24 16:21:18 2013 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.0.0).
351
351
  </div>
@@ -131,7 +131,7 @@
131
131
  </div>
132
132
 
133
133
  <div id="footer">
134
- Generated on Sun Nov 24 14:38:53 2013 by
134
+ Generated on Sun Nov 24 16:21:18 2013 by
135
135
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
136
136
  0.8.7.3 (ruby-2.0.0).
137
137
  </div>
data/doc/HTML.html CHANGED
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun Nov 24 14:38:52 2013 by
119
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
122
122
  </div>
@@ -1663,7 +1663,7 @@ The only supported value are:</p>
1663
1663
  </div>
1664
1664
 
1665
1665
  <div id="footer">
1666
- Generated on Sun Nov 24 14:38:52 2013 by
1666
+ Generated on Sun Nov 24 16:21:17 2013 by
1667
1667
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1668
1668
  0.8.7.3 (ruby-2.0.0).
1669
1669
  </div>
@@ -6257,7 +6257,7 @@ The only supported value are:</p>
6257
6257
  </div>
6258
6258
 
6259
6259
  <div id="footer">
6260
- Generated on Sun Nov 24 14:38:52 2013 by
6260
+ Generated on Sun Nov 24 16:21:17 2013 by
6261
6261
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
6262
6262
  0.8.7.3 (ruby-2.0.0).
6263
6263
  </div>
@@ -653,7 +653,7 @@ is returned, else a <code>HashWithIndifferentAccess</code> with locales as keys.
653
653
  </div>
654
654
 
655
655
  <div id="footer">
656
- Generated on Sun Nov 24 14:38:52 2013 by
656
+ Generated on Sun Nov 24 16:21:17 2013 by
657
657
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
658
658
  0.8.7.3 (ruby-2.0.0).
659
659
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Nov 24 14:38:52 2013 by
127
+ Generated on Sun Nov 24 16:21:17 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.0.0).
130
130
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun Nov 24 14:38:52 2013 by
119
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
122
122
  </div>
@@ -409,7 +409,7 @@
409
409
  </div>
410
410
 
411
411
  <div id="footer">
412
- Generated on Sun Nov 24 14:38:52 2013 by
412
+ Generated on Sun Nov 24 16:21:17 2013 by
413
413
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
414
414
  0.8.7.3 (ruby-2.0.0).
415
415
  </div>
@@ -650,7 +650,7 @@ returned, else a <code>HashWithIndifferentAccess</code> with locales as keys.</p
650
650
  </div>
651
651
 
652
652
  <div id="footer">
653
- Generated on Sun Nov 24 14:38:53 2013 by
653
+ Generated on Sun Nov 24 16:21:17 2013 by
654
654
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
655
655
  0.8.7.3 (ruby-2.0.0).
656
656
  </div>
@@ -563,7 +563,7 @@ returned, else a <code>HashWithIndifferentAccess</code> with locales as keys.</p
563
563
  </div>
564
564
 
565
565
  <div id="footer">
566
- Generated on Sun Nov 24 14:38:53 2013 by
566
+ Generated on Sun Nov 24 16:21:18 2013 by
567
567
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
568
568
  0.8.7.3 (ruby-2.0.0).
569
569
  </div>
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Sun Nov 24 14:38:52 2013 by
121
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
124
124
  </div>
@@ -554,7 +554,7 @@
554
554
  <span class='lparen'>(</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>-</span> <span class='id identifier rubyid_exclude'>exclude</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
555
555
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
556
556
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_as_json'>as_json</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:as_json</span><span class='rparen'>)</span>
557
- <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>NilClass</span><span class='rparen'>)</span>
557
+ <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
558
558
  <span class='id identifier rubyid_rv'>rv</span>
559
559
  <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_stringify_keys'>deep_stringify_keys</span>
560
560
  <span class='kw'>end</span>
@@ -872,7 +872,7 @@
872
872
  <span class='lparen'>(</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>-</span> <span class='id identifier rubyid_exclude'>exclude</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
873
873
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
874
874
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_as_json'>as_json</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:as_json</span><span class='rparen'>)</span>
875
- <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>NilClass</span><span class='rparen'>)</span>
875
+ <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
876
876
  <span class='id identifier rubyid_rv'>rv</span>
877
877
  <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_stringify_keys'>deep_stringify_keys</span>
878
878
  <span class='kw'>end</span>
@@ -1131,7 +1131,7 @@
1131
1131
  <span class='lparen'>(</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>-</span> <span class='id identifier rubyid_exclude'>exclude</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
1132
1132
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
1133
1133
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_as_json'>as_json</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:as_json</span><span class='rparen'>)</span>
1134
- <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>NilClass</span><span class='rparen'>)</span>
1134
+ <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
1135
1135
  <span class='id identifier rubyid_rv'>rv</span>
1136
1136
  <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_stringify_keys'>deep_stringify_keys</span>
1137
1137
  <span class='kw'>end</span>
@@ -1306,7 +1306,7 @@ The only supported value are:</p>
1306
1306
  <span class='lparen'>(</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>-</span> <span class='id identifier rubyid_exclude'>exclude</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
1307
1307
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
1308
1308
  <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_as_json'>as_json</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:as_json</span><span class='rparen'>)</span>
1309
- <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>NilClass</span><span class='rparen'>)</span>
1309
+ <span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_include_empty'>include_empty</span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
1310
1310
  <span class='id identifier rubyid_rv'>rv</span>
1311
1311
  <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_stringify_keys'>deep_stringify_keys</span>
1312
1312
  <span class='kw'>end</span></pre>
@@ -1706,7 +1706,7 @@ The only supported value are:</p>
1706
1706
  </div>
1707
1707
 
1708
1708
  <div id="footer">
1709
- Generated on Sun Nov 24 14:38:51 2013 by
1709
+ Generated on Sun Nov 24 16:21:17 2013 by
1710
1710
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1711
1711
  0.8.7.3 (ruby-2.0.0).
1712
1712
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Sun Nov 24 14:38:51 2013 by
128
+ Generated on Sun Nov 24 16:21:16 2013 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.8.7.3 (ruby-2.0.0).
131
131
  </div>
@@ -271,7 +271,7 @@
271
271
  </div>
272
272
 
273
273
  <div id="footer">
274
- Generated on Sun Nov 24 14:38:53 2013 by
274
+ Generated on Sun Nov 24 16:21:17 2013 by
275
275
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
276
276
  0.8.7.3 (ruby-2.0.0).
277
277
  </div>
@@ -876,7 +876,7 @@
876
876
  </div>
877
877
 
878
878
  <div id="footer">
879
- Generated on Sun Nov 24 14:38:53 2013 by
879
+ Generated on Sun Nov 24 16:21:18 2013 by
880
880
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
881
881
  0.8.7.3 (ruby-2.0.0).
882
882
  </div>
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Sun Nov 24 14:38:52 2013 by
121
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
124
124
  </div>
@@ -345,7 +345,7 @@
345
345
  </div>
346
346
 
347
347
  <div id="footer">
348
- Generated on Sun Nov 24 14:38:52 2013 by
348
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
351
351
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Sun Nov 24 14:38:52 2013 by
128
+ Generated on Sun Nov 24 16:21:17 2013 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.8.7.3 (ruby-2.0.0).
131
131
  </div>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>0</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>1</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 Nov 24 14:38:52 2013 by
183
+ Generated on Sun Nov 24 16:21:17 2013 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.0.0).
186
186
  </div>
data/doc/Mbrao.html CHANGED
@@ -121,7 +121,7 @@ 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 Sun Nov 24 14:38:51 2013 by
124
+ Generated on Sun Nov 24 16:21:16 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.7.3 (ruby-2.0.0).
127
127
  </div>
data/doc/_index.html CHANGED
@@ -386,7 +386,7 @@
386
386
  </div>
387
387
 
388
388
  <div id="footer">
389
- Generated on Sun Nov 24 14:38:51 2013 by
389
+ Generated on Sun Nov 24 16:21:16 2013 by
390
390
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
391
391
  0.8.7.3 (ruby-2.0.0).
392
392
  </div>
data/doc/file.README.html CHANGED
@@ -130,7 +130,7 @@ Mbrao::Parser.render(content)
130
130
  </div></div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Sun Nov 24 14:38:51 2013 by
133
+ Generated on Sun Nov 24 16:21:16 2013 by
134
134
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.8.7.3 (ruby-2.0.0).
136
136
  </div>
data/doc/index.html CHANGED
@@ -130,7 +130,7 @@ Mbrao::Parser.render(content)
130
130
  </div></div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Sun Nov 24 14:38:51 2013 by
133
+ Generated on Sun Nov 24 16:21:16 2013 by
134
134
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.8.7.3 (ruby-2.0.0).
136
136
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun Nov 24 14:38:51 2013 by
106
+ Generated on Sun Nov 24 16:21:16 2013 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.0.0).
109
109
  </div>
data/lib/mbrao/parser.rb CHANGED
@@ -81,7 +81,7 @@ module Mbrao
81
81
  (keys - exclude).reduce({}) {|rv, key|
82
82
  value = target.send(key)
83
83
  value = value.as_json if value && value.respond_to?(:as_json)
84
- rv[key] = value if include_empty || !value.is_a?(NilClass)
84
+ rv[key] = value if include_empty || value.present?
85
85
  rv
86
86
  }.deep_stringify_keys
87
87
  end
data/lib/mbrao/version.rb CHANGED
@@ -17,7 +17,7 @@ module Mbrao
17
17
  MINOR = 4
18
18
 
19
19
  # The patch version.
20
- PATCH = 0
20
+ PATCH = 1
21
21
 
22
22
  # The current version of mbrao.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbrao
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shogun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-24 00:00:00.000000000 Z
11
+ date: 2013-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lazier