mbrao 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/doc/ActionView/Template/Handlers/MbraoTemplate.html +2 -2
  2. data/doc/ActionView/Template/Handlers.html +1 -1
  3. data/doc/HTML/Pipeline/KramdownFilter.html +1 -1
  4. data/doc/HTML/Pipeline.html +1 -1
  5. data/doc/HTML.html +1 -1
  6. data/doc/Mbrao/Author.html +1 -1
  7. data/doc/Mbrao/Content.html +1 -1
  8. data/doc/Mbrao/ContentPublicInterface.html +1 -1
  9. data/doc/Mbrao/Exceptions/InvalidDate.html +1 -1
  10. data/doc/Mbrao/Exceptions/InvalidMetadata.html +1 -1
  11. data/doc/Mbrao/Exceptions/Parsing.html +1 -1
  12. data/doc/Mbrao/Exceptions/Rendering.html +1 -1
  13. data/doc/Mbrao/Exceptions/UnavailableLocalization.html +1 -1
  14. data/doc/Mbrao/Exceptions/Unimplemented.html +1 -1
  15. data/doc/Mbrao/Exceptions/UnknownEngine.html +1 -1
  16. data/doc/Mbrao/Exceptions.html +1 -1
  17. data/doc/Mbrao/Parser.html +1 -1
  18. data/doc/Mbrao/ParsingEngines/Base.html +1 -1
  19. data/doc/Mbrao/ParsingEngines/PlainText.html +1 -1
  20. data/doc/Mbrao/ParsingEngines.html +1 -1
  21. data/doc/Mbrao/PublicInterface/ClassMethods.html +1 -1
  22. data/doc/Mbrao/PublicInterface.html +1 -1
  23. data/doc/Mbrao/RenderingEngines/Base.html +1 -1
  24. data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +1 -1
  25. data/doc/Mbrao/RenderingEngines.html +1 -1
  26. data/doc/Mbrao/Validations/ClassMethods.html +1 -1
  27. data/doc/Mbrao/Validations.html +1 -1
  28. data/doc/Mbrao/Version.html +2 -2
  29. data/doc/Mbrao.html +1 -1
  30. data/doc/_index.html +1 -1
  31. data/doc/file.README.html +1 -1
  32. data/doc/index.html +1 -1
  33. data/doc/top-level-namespace.html +1 -1
  34. data/lib/mbrao/integrations/rails.rb +1 -1
  35. data/lib/mbrao/version.rb +1 -1
  36. data/spec/mbrao/integrations/rails_spec.rb +2 -2
  37. metadata +3 -3
@@ -488,7 +488,7 @@
488
488
  <span class='id identifier rubyid_content'>content</span> <span class='op'>=</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_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_template'>template</span><span class='rparen'>)</span>
489
489
  <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='symbol'>:@mbrao_content</span><span class='comma'>,</span> <span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span>
490
490
  <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_define_singleton_method'>define_singleton_method</span><span class='lparen'>(</span><span class='symbol'>:mbrao_content</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='ivar'>@mbrao_content</span> <span class='rbrace'>}</span>
491
- <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:helper_method</span><span class='comma'>,</span> <span class='symbol'>:mbrao_content</span><span class='rparen'>)</span>
491
+ <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:helper_method</span><span class='comma'>,</span> <span class='symbol'>:mbrao_content</span><span class='rparen'>)</span>
492
492
 
493
493
  <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_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='label'>engine:</span> <span class='id identifier rubyid_content'>content</span><span class='period'>.</span><span class='id identifier rubyid_metadata'>metadata</span><span class='lbracket'>[</span><span class='symbol'>:engine</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>locale:</span> <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span>
494
494
  <span class='kw'>end</span></pre>
@@ -559,7 +559,7 @@
559
559
  </div>
560
560
 
561
561
  <div id="footer">
562
- Generated on Fri Mar 1 10:04:32 2013 by
562
+ Generated on Fri Mar 8 09:03:36 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 10:04:30 2013 by
119
+ Generated on Fri Mar 8 09:03:34 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 10:04:32 2013 by
348
+ Generated on Fri Mar 8 09:03:36 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 10:04:31 2013 by
134
+ Generated on Fri Mar 8 09:03:35 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 10:04:30 2013 by
119
+ Generated on Fri Mar 8 09:03:34 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 10:04:31 2013 by
1396
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
4773
+ Generated on Fri Mar 8 09:03:35 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 10:04:30 2013 by
652
+ Generated on Fri Mar 8 09:03:34 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
127
+ Generated on Fri Mar 8 09:03:35 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 10:04:30 2013 by
119
+ Generated on Fri Mar 8 09:03:34 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 10:04:31 2013 by
412
+ Generated on Fri Mar 8 09:03:34 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 10:04:31 2013 by
652
+ Generated on Fri Mar 8 09:03:35 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 10:04:31 2013 by
565
+ Generated on Fri Mar 8 09:03:35 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 10:04:30 2013 by
121
+ Generated on Fri Mar 8 09:03:34 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 10:04:30 2013 by
1721
+ Generated on Fri Mar 8 09:03:34 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 10:04:30 2013 by
128
+ Generated on Fri Mar 8 09:03:34 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 10:04:31 2013 by
274
+ Generated on Fri Mar 8 09:03:35 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 10:04:32 2013 by
867
+ Generated on Fri Mar 8 09:03:36 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 10:04:30 2013 by
121
+ Generated on Fri Mar 8 09:03:34 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 10:04:30 2013 by
686
+ Generated on Fri Mar 8 09:03:34 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 10:04:30 2013 by
128
+ Generated on Fri Mar 8 09:03:34 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'>1</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>2</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 10:04:30 2013 by
183
+ Generated on Fri Mar 8 09:03:34 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 10:04:30 2013 by
124
+ Generated on Fri Mar 8 09:03:34 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 10:04:30 2013 by
389
+ Generated on Fri Mar 8 09:03:34 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
@@ -128,7 +128,7 @@ Mbrao::Parser.render(content)
128
128
  </div></div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Fri Mar 1 10:04:30 2013 by
131
+ Generated on Fri Mar 8 09:03:34 2013 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.8.5.2 (ruby-1.9.3).
134
134
  </div>
data/doc/index.html CHANGED
@@ -128,7 +128,7 @@ Mbrao::Parser.render(content)
128
128
  </div></div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Fri Mar 1 10:04:30 2013 by
131
+ Generated on Fri Mar 8 09:03:34 2013 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.8.5.2 (ruby-1.9.3).
134
134
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Fri Mar 1 10:04:30 2013 by
106
+ Generated on Fri Mar 8 09:03:34 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>
@@ -26,7 +26,7 @@ module ActionView::Template::Handlers
26
26
  content = ::Mbrao::Parser.parse(template)
27
27
  renderer.controller.instance_variable_set(:@mbrao_content, content)
28
28
  renderer.controller.define_singleton_method(:mbrao_content) { @mbrao_content }
29
- renderer.controller.send(:helper_method, :mbrao_content)
29
+ renderer.controller.class.send(:helper_method, :mbrao_content)
30
30
 
31
31
  ::Mbrao::Parser.render(content, {engine: content.metadata[:engine], locale: renderer.controller.params[:locale]})
32
32
  end
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 = 1
20
+ PATCH = 2
21
21
 
22
22
  # The current version of mbrao.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -22,7 +22,7 @@ describe ActionView::Template::Handlers::MbraoTemplate do
22
22
  {locale: "LOCALE"}
23
23
  end
24
24
 
25
- def helper_method(method)
25
+ def self.helper_method(method)
26
26
  end
27
27
  end
28
28
 
@@ -64,7 +64,7 @@ describe ActionView::Template::Handlers::MbraoTemplate do
64
64
 
65
65
  expect(controller.respond_to?(:mbrao_content)).to be_false
66
66
  ::Mbrao::Parser.should_receive(:parse).and_call_original
67
- controller.should_receive(:helper_method).with(:mbrao_content)
67
+ controller.class.should_receive(:helper_method).with(:mbrao_content)
68
68
  ActionView::Template::Handlers::MbraoTemplate.instance.render(renderer, "CONTENT")
69
69
 
70
70
  expect(controller.respond_to?(:mbrao_content)).to be_true
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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-01 00:00:00.000000000 Z
12
+ date: 2013-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lazier
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: -3610072754361837779
177
+ hash: 697222388501648155
178
178
  requirements: []
179
179
  rubyforge_project: mbrao
180
180
  rubygems_version: 1.8.25