mbrao 1.0.0 → 1.0.1

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 (36) hide show
  1. data/README.md +7 -5
  2. data/doc/ActionView/Template/Handlers/MbraoTemplate.html +1 -1
  3. data/doc/ActionView/Template/Handlers.html +1 -1
  4. data/doc/HTML/Pipeline/KramdownFilter.html +1 -1
  5. data/doc/HTML/Pipeline.html +1 -1
  6. data/doc/HTML.html +1 -1
  7. data/doc/Mbrao/Author.html +1 -1
  8. data/doc/Mbrao/Content.html +1 -1
  9. data/doc/Mbrao/ContentPublicInterface.html +1 -1
  10. data/doc/Mbrao/Exceptions/InvalidDate.html +1 -1
  11. data/doc/Mbrao/Exceptions/InvalidMetadata.html +1 -1
  12. data/doc/Mbrao/Exceptions/Parsing.html +1 -1
  13. data/doc/Mbrao/Exceptions/Rendering.html +1 -1
  14. data/doc/Mbrao/Exceptions/UnavailableLocalization.html +1 -1
  15. data/doc/Mbrao/Exceptions/Unimplemented.html +1 -1
  16. data/doc/Mbrao/Exceptions/UnknownEngine.html +1 -1
  17. data/doc/Mbrao/Exceptions.html +1 -1
  18. data/doc/Mbrao/Parser.html +1 -1
  19. data/doc/Mbrao/ParsingEngines/Base.html +1 -1
  20. data/doc/Mbrao/ParsingEngines/PlainText.html +1 -1
  21. data/doc/Mbrao/ParsingEngines.html +1 -1
  22. data/doc/Mbrao/PublicInterface/ClassMethods.html +1 -1
  23. data/doc/Mbrao/PublicInterface.html +1 -1
  24. data/doc/Mbrao/RenderingEngines/Base.html +1 -1
  25. data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +1 -1
  26. data/doc/Mbrao/RenderingEngines.html +1 -1
  27. data/doc/Mbrao/Validations/ClassMethods.html +1 -1
  28. data/doc/Mbrao/Validations.html +1 -1
  29. data/doc/Mbrao/Version.html +2 -2
  30. data/doc/Mbrao.html +1 -1
  31. data/doc/_index.html +1 -1
  32. data/doc/file.README.html +8 -6
  33. data/doc/index.html +8 -6
  34. data/doc/top-level-namespace.html +1 -1
  35. data/lib/mbrao/version.rb +1 -1
  36. metadata +2 -2
data/README.md CHANGED
@@ -11,17 +11,17 @@ http://sw.cow.tc/mbrao
11
11
 
12
12
  http://rdoc.info/gems/mbrao
13
13
 
14
- # Introduction
14
+ ## Usage
15
15
 
16
16
  mbrao is a content parser and renderer framework for managing posts which have both metadata and content.
17
17
 
18
18
  First of all a big thanks to the [metadown](https://github.com/steveklabnik/metadown) project which gave me the final idea.
19
19
 
20
- ## Usage
21
-
22
20
  Using mbrao is pretty simple. First of all you have to parse a file with a parsing engine:
23
21
 
24
- `content = Mbrao::Parser.parse(File.read("/your/content.txt")`
22
+ ```ruby
23
+ content = Mbrao::Parser.parse(File.read("/your/content.txt")
24
+ ```
25
25
 
26
26
  The default is a plain text reader. This engine reads a text file and parse metadata embedded between `{{metadata}}` and `{{/metadata}}` tag in YAML format.
27
27
 
@@ -31,7 +31,9 @@ There is also locale filtering. See documentation for more information.
31
31
 
32
32
  At the end, you can render the content using any engine of your choice:
33
33
 
34
- `Mbrao::Parser.render(content)`
34
+ ```ruby
35
+ Mbrao::Parser.render(content)
36
+ ```
35
37
 
36
38
  The default is a [html-pipeline](https://github.com/jch/html-pipeline) renderer with [kramdown](http://kramdown.rubyforge.org/) support.
37
39
 
@@ -559,7 +559,7 @@
559
559
  </div>
560
560
 
561
561
  <div id="footer">
562
- Generated on Fri Mar 1 09:13:32 2013 by
562
+ Generated on Fri Mar 1 10:04:32 2013 by
563
563
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
564
564
  0.8.5.2 (ruby-1.9.3).
565
565
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri Mar 1 09:13:30 2013 by
119
+ Generated on Fri Mar 1 10:04:30 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.5.2 (ruby-1.9.3).
122
122
  </div>
@@ -345,7 +345,7 @@
345
345
  </div>
346
346
 
347
347
  <div id="footer">
348
- Generated on Fri Mar 1 09:13:32 2013 by
348
+ Generated on Fri Mar 1 10:04:32 2013 by
349
349
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
350
350
  0.8.5.2 (ruby-1.9.3).
351
351
  </div>
@@ -131,7 +131,7 @@
131
131
  </div>
132
132
 
133
133
  <div id="footer">
134
- Generated on Fri Mar 1 09:13:32 2013 by
134
+ Generated on Fri Mar 1 10:04:31 2013 by
135
135
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
136
136
  0.8.5.2 (ruby-1.9.3).
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 Fri Mar 1 09:13:30 2013 by
119
+ Generated on Fri Mar 1 10:04:30 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.5.2 (ruby-1.9.3).
122
122
  </div>
@@ -1393,7 +1393,7 @@
1393
1393
  </div>
1394
1394
 
1395
1395
  <div id="footer">
1396
- Generated on Fri Mar 1 09:13:31 2013 by
1396
+ Generated on Fri Mar 1 10:04:31 2013 by
1397
1397
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1398
1398
  0.8.5.2 (ruby-1.9.3).
1399
1399
  </div>
@@ -4770,7 +4770,7 @@
4770
4770
  </div>
4771
4771
 
4772
4772
  <div id="footer">
4773
- Generated on Fri Mar 1 09:13:31 2013 by
4773
+ Generated on Fri Mar 1 10:04:31 2013 by
4774
4774
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4775
4775
  0.8.5.2 (ruby-1.9.3).
4776
4776
  </div>
@@ -649,7 +649,7 @@
649
649
  </div>
650
650
 
651
651
  <div id="footer">
652
- Generated on Fri Mar 1 09:13:30 2013 by
652
+ Generated on Fri Mar 1 10:04:30 2013 by
653
653
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
654
654
  0.8.5.2 (ruby-1.9.3).
655
655
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Fri Mar 1 09:13:31 2013 by
127
+ Generated on Fri Mar 1 10:04:31 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.5.2 (ruby-1.9.3).
130
130
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri Mar 1 09:13:30 2013 by
119
+ Generated on Fri Mar 1 10:04:30 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.5.2 (ruby-1.9.3).
122
122
  </div>
@@ -409,7 +409,7 @@
409
409
  </div>
410
410
 
411
411
  <div id="footer">
412
- Generated on Fri Mar 1 09:13:31 2013 by
412
+ Generated on Fri Mar 1 10:04:31 2013 by
413
413
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
414
414
  0.8.5.2 (ruby-1.9.3).
415
415
  </div>
@@ -649,7 +649,7 @@
649
649
  </div>
650
650
 
651
651
  <div id="footer">
652
- Generated on Fri Mar 1 09:13:32 2013 by
652
+ Generated on Fri Mar 1 10:04:31 2013 by
653
653
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
654
654
  0.8.5.2 (ruby-1.9.3).
655
655
  </div>
@@ -562,7 +562,7 @@
562
562
  </div>
563
563
 
564
564
  <div id="footer">
565
- Generated on Fri Mar 1 09:13:32 2013 by
565
+ Generated on Fri Mar 1 10:04:31 2013 by
566
566
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
567
567
  0.8.5.2 (ruby-1.9.3).
568
568
  </div>
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Fri Mar 1 09:13:30 2013 by
121
+ Generated on Fri Mar 1 10:04:30 2013 by
122
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
123
  0.8.5.2 (ruby-1.9.3).
124
124
  </div>
@@ -1718,7 +1718,7 @@
1718
1718
  </div>
1719
1719
 
1720
1720
  <div id="footer">
1721
- Generated on Fri Mar 1 09:13:30 2013 by
1721
+ Generated on Fri Mar 1 10:04:30 2013 by
1722
1722
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1723
1723
  0.8.5.2 (ruby-1.9.3).
1724
1724
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Mar 1 09:13:30 2013 by
128
+ Generated on Fri Mar 1 10:04:30 2013 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.8.5.2 (ruby-1.9.3).
131
131
  </div>
@@ -271,7 +271,7 @@
271
271
  </div>
272
272
 
273
273
  <div id="footer">
274
- Generated on Fri Mar 1 09:13:32 2013 by
274
+ Generated on Fri Mar 1 10:04:31 2013 by
275
275
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
276
276
  0.8.5.2 (ruby-1.9.3).
277
277
  </div>
@@ -864,7 +864,7 @@
864
864
  </div>
865
865
 
866
866
  <div id="footer">
867
- Generated on Fri Mar 1 09:13:32 2013 by
867
+ Generated on Fri Mar 1 10:04:32 2013 by
868
868
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
869
869
  0.8.5.2 (ruby-1.9.3).
870
870
  </div>
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Fri Mar 1 09:13:30 2013 by
121
+ Generated on Fri Mar 1 10:04:30 2013 by
122
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
123
  0.8.5.2 (ruby-1.9.3).
124
124
  </div>
@@ -683,7 +683,7 @@
683
683
  </div>
684
684
 
685
685
  <div id="footer">
686
- Generated on Fri Mar 1 09:13:30 2013 by
686
+ Generated on Fri Mar 1 10:04:30 2013 by
687
687
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
688
688
  0.8.5.2 (ruby-1.9.3).
689
689
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Mar 1 09:13:30 2013 by
128
+ Generated on Fri Mar 1 10:04:30 2013 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.8.5.2 (ruby-1.9.3).
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 Fri Mar 1 09:13:30 2013 by
183
+ Generated on Fri Mar 1 10:04:30 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.5.2 (ruby-1.9.3).
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 Fri Mar 1 09:13:30 2013 by
124
+ Generated on Fri Mar 1 10:04:30 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.5.2 (ruby-1.9.3).
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 Fri Mar 1 09:13:30 2013 by
389
+ Generated on Fri Mar 1 10:04:30 2013 by
390
390
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
391
391
  0.8.5.2 (ruby-1.9.3).
392
392
  </div>
data/doc/file.README.html CHANGED
@@ -74,17 +74,17 @@
74
74
 
75
75
  <p>http://rdoc.info/gems/mbrao</p>
76
76
 
77
- <h1 id="introduction-1">Introduction</h1>
77
+ <h2 id="usage">Usage</h2>
78
78
 
79
79
  <p>mbrao is a content parser and renderer framework for managing posts which have both metadata and content.</p>
80
80
 
81
81
  <p>First of all a big thanks to the <a href="https://github.com/steveklabnik/metadown">metadown</a> project which gave me the final idea.</p>
82
82
 
83
- <h2 id="usage">Usage</h2>
84
-
85
83
  <p>Using mbrao is pretty simple. First of all you have to parse a file with a parsing engine:</p>
86
84
 
87
- <p><code>content = Mbrao::Parser.parse(File.read("/your/content.txt")</code></p>
85
+ <p><code>ruby
86
+ content = Mbrao::Parser.parse(File.read("/your/content.txt")
87
+ </code></p>
88
88
 
89
89
  <p>The default is a plain text reader. This engine reads a text file and parse metadata embedded between <code>{{metadata}}</code> and <code>{{/metadata}}</code> tag in YAML format.</p>
90
90
 
@@ -94,7 +94,9 @@
94
94
 
95
95
  <p>At the end, you can render the content using any engine of your choice:</p>
96
96
 
97
- <p><code>Mbrao::Parser.render(content)</code></p>
97
+ <p><code>ruby
98
+ Mbrao::Parser.render(content)
99
+ </code></p>
98
100
 
99
101
  <p>The default is a <a href="https://github.com/jch/html-pipeline">html-pipeline</a> renderer with <a href="http://kramdown.rubyforge.org/">kramdown</a> support.</p>
100
102
 
@@ -126,7 +128,7 @@
126
128
  </div></div>
127
129
 
128
130
  <div id="footer">
129
- Generated on Fri Mar 1 09:13:30 2013 by
131
+ Generated on Fri Mar 1 10:04:30 2013 by
130
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
133
  0.8.5.2 (ruby-1.9.3).
132
134
  </div>
data/doc/index.html CHANGED
@@ -74,17 +74,17 @@
74
74
 
75
75
  <p>http://rdoc.info/gems/mbrao</p>
76
76
 
77
- <h1 id="introduction-1">Introduction</h1>
77
+ <h2 id="usage">Usage</h2>
78
78
 
79
79
  <p>mbrao is a content parser and renderer framework for managing posts which have both metadata and content.</p>
80
80
 
81
81
  <p>First of all a big thanks to the <a href="https://github.com/steveklabnik/metadown">metadown</a> project which gave me the final idea.</p>
82
82
 
83
- <h2 id="usage">Usage</h2>
84
-
85
83
  <p>Using mbrao is pretty simple. First of all you have to parse a file with a parsing engine:</p>
86
84
 
87
- <p><code>content = Mbrao::Parser.parse(File.read("/your/content.txt")</code></p>
85
+ <p><code>ruby
86
+ content = Mbrao::Parser.parse(File.read("/your/content.txt")
87
+ </code></p>
88
88
 
89
89
  <p>The default is a plain text reader. This engine reads a text file and parse metadata embedded between <code>{{metadata}}</code> and <code>{{/metadata}}</code> tag in YAML format.</p>
90
90
 
@@ -94,7 +94,9 @@
94
94
 
95
95
  <p>At the end, you can render the content using any engine of your choice:</p>
96
96
 
97
- <p><code>Mbrao::Parser.render(content)</code></p>
97
+ <p><code>ruby
98
+ Mbrao::Parser.render(content)
99
+ </code></p>
98
100
 
99
101
  <p>The default is a <a href="https://github.com/jch/html-pipeline">html-pipeline</a> renderer with <a href="http://kramdown.rubyforge.org/">kramdown</a> support.</p>
100
102
 
@@ -126,7 +128,7 @@
126
128
  </div></div>
127
129
 
128
130
  <div id="footer">
129
- Generated on Fri Mar 1 09:13:30 2013 by
131
+ Generated on Fri Mar 1 10:04:30 2013 by
130
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
133
  0.8.5.2 (ruby-1.9.3).
132
134
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Fri Mar 1 09:13:30 2013 by
106
+ Generated on Fri Mar 1 10:04:30 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.5.2 (ruby-1.9.3).
109
109
  </div>
data/lib/mbrao/version.rb CHANGED
@@ -17,7 +17,7 @@ module Mbrao
17
17
  MINOR = 0
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbrao
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: 488107274440574524
177
+ hash: -3610072754361837779
178
178
  requirements: []
179
179
  rubyforge_project: mbrao
180
180
  rubygems_version: 1.8.25