mbrao 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/doc/file.README.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
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;
|
@@ -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
|
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
|
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.
|
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.
|
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
|
-
— 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;
|
@@ -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
|
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
|
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.
|
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).
|
128
|
+
clicked = $(this).parents('li').addClass('clicked');
|
124
129
|
win.location = this.href;
|
125
130
|
}
|
126
131
|
else {
|