mbrao 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/.travis-gemfile +5 -2
  2. data/.travis.yml +2 -2
  3. data/Gemfile +6 -4
  4. data/README.md +1 -0
  5. data/Rakefile +18 -0
  6. data/doc/ActionView/Template/Handlers/MbraoTemplate.html +5 -5
  7. data/doc/ActionView/Template/Handlers.html +5 -5
  8. data/doc/HTML/Pipeline/KramdownFilter.html +5 -5
  9. data/doc/HTML/Pipeline.html +5 -5
  10. data/doc/HTML.html +5 -5
  11. data/doc/Mbrao/Author.html +12 -12
  12. data/doc/Mbrao/Content.html +104 -140
  13. data/doc/Mbrao/ContentPublicInterface.html +6 -6
  14. data/doc/Mbrao/Exceptions/InvalidDate.html +7 -7
  15. data/doc/Mbrao/Exceptions/InvalidMetadata.html +7 -7
  16. data/doc/Mbrao/Exceptions/Parsing.html +7 -7
  17. data/doc/Mbrao/Exceptions/Rendering.html +7 -7
  18. data/doc/Mbrao/Exceptions/UnavailableLocalization.html +7 -7
  19. data/doc/Mbrao/Exceptions/Unimplemented.html +7 -7
  20. data/doc/Mbrao/Exceptions/UnknownEngine.html +7 -7
  21. data/doc/Mbrao/Exceptions.html +5 -5
  22. data/doc/Mbrao/Parser.html +15 -15
  23. data/doc/Mbrao/ParsingEngines/Base.html +5 -5
  24. data/doc/Mbrao/ParsingEngines/PlainText.html +5 -5
  25. data/doc/Mbrao/ParsingEngines.html +5 -5
  26. data/doc/Mbrao/PublicInterface/ClassMethods.html +20 -32
  27. data/doc/Mbrao/PublicInterface.html +5 -5
  28. data/doc/Mbrao/RenderingEngines/Base.html +5 -5
  29. data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +16 -16
  30. data/doc/Mbrao/RenderingEngines.html +5 -5
  31. data/doc/Mbrao/Validations/ClassMethods.html +13 -351
  32. data/doc/Mbrao/Validations.html +5 -5
  33. data/doc/Mbrao/Version.html +7 -7
  34. data/doc/Mbrao.html +5 -5
  35. data/doc/_index.html +6 -6
  36. data/doc/class_list.html +3 -2
  37. data/doc/file.README.html +7 -6
  38. data/doc/file_list.html +2 -1
  39. data/doc/frames.html +1 -1
  40. data/doc/index.html +7 -6
  41. data/doc/js/full_list.js +7 -2
  42. data/doc/method_list.html +67 -192
  43. data/doc/top-level-namespace.html +5 -5
  44. data/lib/mbrao/author.rb +1 -1
  45. data/lib/mbrao/content.rb +10 -12
  46. data/lib/mbrao/exceptions.rb +7 -7
  47. data/lib/mbrao/parser.rb +4 -65
  48. data/lib/mbrao/rendering_engines/html_pipeline.rb +5 -5
  49. data/lib/mbrao/version.rb +2 -2
  50. data/lib/mbrao.rb +1 -1
  51. data/mbrao.gemspec +4 -4
  52. data/spec/coverage_helper.rb +4 -1
  53. data/spec/mbrao/author_spec.rb +5 -5
  54. data/spec/mbrao/content_spec.rb +3 -3
  55. data/spec/mbrao/integrations/rails_spec.rb +8 -8
  56. data/spec/mbrao/parser_spec.rb +19 -96
  57. data/spec/mbrao/parsing_engines/base_spec.rb +7 -7
  58. data/spec/mbrao/rendering_engines/html_pipeline_spec.rb +13 -14
  59. metadata +11 -11
data/doc/file.README.html CHANGED
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; 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" media="screen" charset="utf-8" />
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" media="screen" charset="utf-8" />
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;
@@ -66,7 +66,8 @@
66
66
  <p><a href="http://badge.fury.io/rb/mbrao"><img src="https://badge.fury.io/rb/mbrao.png" alt="Gem Version" /></a>
67
67
  <a href="https://gemnasium.com/ShogunPanda/mbrao"><img src="https://gemnasium.com/ShogunPanda/mbrao.png?travis" alt="Dependency Status" /></a>
68
68
  <a href="https://travis-ci.org/ShogunPanda/mbrao"><img src="https://secure.travis-ci.org/ShogunPanda/mbrao.png?branch=master" alt="Build Status" /></a>
69
- <a href="https://codeclimate.com/github/ShogunPanda/mbrao"><img src="https://codeclimate.com/github/ShogunPanda/mbrao.png" alt="Code Climate" /></a></p>
69
+ <a href="https://codeclimate.com/github/ShogunPanda/mbrao"><img src="https://codeclimate.com/github/ShogunPanda/mbrao.png" alt="Code Climate" /></a>
70
+ <a href="https://coveralls.io/r/ShogunPanda/mbrao"><img src="https://coveralls.io/repos/ShogunPanda/mbrao/badge.png" alt="Coverage Status" /></a></p>
70
71
 
71
72
  <p>A content parser and renderer with embedded metadata support.</p>
72
73
 
@@ -128,9 +129,9 @@ Mbrao::Parser.render(content)
128
129
  </div></div>
129
130
 
130
131
  <div id="footer">
131
- Generated on Sat Apr 13 15:59:17 2013 by
132
+ Generated on Sat Jul 20 16:09:45 2013 by
132
133
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
- 0.8.5.2 (ruby-1.9.3).
134
+ 0.8.6.2 (ruby-1.9.3).
134
135
  </div>
135
136
 
136
137
  </body>
data/doc/file_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>File List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
@@ -46,7 +47,7 @@
46
47
  <ul id="full_list" class="file">
47
48
 
48
49
 
49
- <li class="r1"><a href="index.html" title="README">README</a></li>
50
+ <li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
50
51
 
51
52
 
52
53
  </ul>
data/doc/frames.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Documentation by YARD 0.8.5.2</title>
7
+ <title>Documentation by YARD 0.8.6.2</title>
8
8
  </head>
9
9
  <script type="text/javascript" charset="utf-8">
10
10
  window.onload = function() {
data/doc/index.html CHANGED
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; 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" media="screen" charset="utf-8" />
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" media="screen" charset="utf-8" />
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;
@@ -66,7 +66,8 @@
66
66
  <p><a href="http://badge.fury.io/rb/mbrao"><img src="https://badge.fury.io/rb/mbrao.png" alt="Gem Version" /></a>
67
67
  <a href="https://gemnasium.com/ShogunPanda/mbrao"><img src="https://gemnasium.com/ShogunPanda/mbrao.png?travis" alt="Dependency Status" /></a>
68
68
  <a href="https://travis-ci.org/ShogunPanda/mbrao"><img src="https://secure.travis-ci.org/ShogunPanda/mbrao.png?branch=master" alt="Build Status" /></a>
69
- <a href="https://codeclimate.com/github/ShogunPanda/mbrao"><img src="https://codeclimate.com/github/ShogunPanda/mbrao.png" alt="Code Climate" /></a></p>
69
+ <a href="https://codeclimate.com/github/ShogunPanda/mbrao"><img src="https://codeclimate.com/github/ShogunPanda/mbrao.png" alt="Code Climate" /></a>
70
+ <a href="https://coveralls.io/r/ShogunPanda/mbrao"><img src="https://coveralls.io/repos/ShogunPanda/mbrao/badge.png" alt="Coverage Status" /></a></p>
70
71
 
71
72
  <p>A content parser and renderer with embedded metadata support.</p>
72
73
 
@@ -128,9 +129,9 @@ Mbrao::Parser.render(content)
128
129
  </div></div>
129
130
 
130
131
  <div id="footer">
131
- Generated on Sat Apr 13 15:59:17 2013 by
132
+ Generated on Sat Jul 20 16:09:45 2013 by
132
133
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
- 0.8.5.2 (ruby-1.9.3).
134
+ 0.8.6.2 (ruby-1.9.3).
134
135
  </div>
135
136
 
136
137
  </body>
data/doc/js/full_list.js CHANGED
@@ -17,6 +17,7 @@ function fullListSearch() {
17
17
  searchCache = [];
18
18
  $('#full_list li').each(function() {
19
19
  var link = $(this).find('.object_link a');
20
+ if (link.length === 0) return;
20
21
  var fullName = link.attr('title').split(' ')[0];
21
22
  searchCache.push({name:link.text(), fullName:fullName, node:$(this), link:link});
22
23
  });
@@ -41,7 +42,7 @@ function fullListSearch() {
41
42
  $('#full_list li').removeClass('found').each(function() {
42
43
 
43
44
  var link = $(this).find('.object_link a');
44
- link.text(link.text());
45
+ if (link.length > 0) link.text(link.text());
45
46
  });
46
47
  if (clicked) {
47
48
  clicked.parents('ul').each(function() {
@@ -111,6 +112,10 @@ function linkList() {
111
112
  $('#full_list li, #full_list li a:last').click(function(evt) {
112
113
  if ($(this).hasClass('toggle')) return true;
113
114
  if (this.tagName.toLowerCase() == "li") {
115
+ if ($(this).find('.object_link a').length === 0) {
116
+ $(this).children('a.toggle').click();
117
+ return false;
118
+ }
114
119
  var toggle = $(this).children('a.toggle');
115
120
  if (toggle.size() > 0 && evt.pageX < toggle.offset().left) {
116
121
  toggle.click();
@@ -120,7 +125,7 @@ function linkList() {
120
125
  if (clicked) clicked.removeClass('clicked');
121
126
  var win = window.top.frames.main ? window.top.frames.main : window.parent;
122
127
  if (this.tagName.toLowerCase() == "a") {
123
- clicked = $(this).parent('li').addClass('clicked');
128
+ clicked = $(this).parents('li').addClass('clicked');
124
129
  win.location = this.href;
125
130
  }
126
131
  else {