mbrao 1.4.4 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +29 -0
- data/.travis.yml +3 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -4
- data/doc/ActionView.html +125 -0
- data/doc/ActionView/Template.html +140 -0
- data/doc/ActionView/Template/Handlers.html +3 -3
- data/doc/ActionView/Template/Handlers/MbraoTemplate.html +26 -26
- data/doc/HTML.html +2 -2
- data/doc/HTML/Pipeline.html +2 -2
- data/doc/HTML/Pipeline/KramdownFilter.html +4 -4
- data/doc/Mbrao.html +3 -3
- data/doc/Mbrao/Author.html +29 -29
- data/doc/Mbrao/Content.html +1977 -3644
- data/doc/Mbrao/ContentInterface.html +817 -0
- data/doc/Mbrao/ContentInterface/ClassMethods.html +388 -0
- data/doc/Mbrao/Exceptions.html +1 -1
- data/doc/Mbrao/Exceptions/InvalidDate.html +1 -1
- data/doc/Mbrao/Exceptions/InvalidMetadata.html +1 -1
- data/doc/Mbrao/Exceptions/Parsing.html +1 -1
- data/doc/Mbrao/Exceptions/Rendering.html +1 -1
- data/doc/Mbrao/Exceptions/UnavailableLocalization.html +1 -1
- data/doc/Mbrao/Exceptions/Unimplemented.html +1 -1
- data/doc/Mbrao/Exceptions/UnknownEngine.html +1 -1
- data/doc/Mbrao/Parser.html +12 -12
- data/doc/Mbrao/ParserInterface.html +134 -0
- data/doc/Mbrao/ParserInterface/ClassMethods.html +1724 -0
- data/doc/Mbrao/ParserValidations.html +134 -0
- data/doc/Mbrao/ParserValidations/ClassMethods.html +348 -0
- data/doc/Mbrao/ParsingEngines.html +1 -1
- data/doc/Mbrao/ParsingEngines/Base.html +4 -4
- data/doc/Mbrao/ParsingEngines/PlainText.html +25 -15
- data/doc/Mbrao/RenderingEngines.html +1 -1
- data/doc/Mbrao/RenderingEngines/Base.html +2 -2
- data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +173 -169
- data/doc/Mbrao/Version.html +3 -3
- data/doc/_index.html +51 -24
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +63 -69
- data/doc/top-level-namespace.html +2 -2
- data/lib/mbrao.rb +7 -2
- data/lib/mbrao/author.rb +5 -5
- data/lib/mbrao/content.rb +110 -256
- data/lib/mbrao/content_interface.rb +146 -0
- data/lib/mbrao/exceptions.rb +1 -1
- data/lib/mbrao/integrations/rails.rb +48 -42
- data/lib/mbrao/parser.rb +24 -176
- data/lib/mbrao/parser_interface.rb +143 -0
- data/lib/mbrao/parser_validations.rb +41 -0
- data/lib/mbrao/parsing_engines/base.rb +4 -4
- data/lib/mbrao/parsing_engines/plain_text.rb +136 -121
- data/lib/mbrao/rendering_engines/base.rb +2 -2
- data/lib/mbrao/rendering_engines/html_pipeline.rb +52 -77
- data/lib/mbrao/rendering_engines/html_pipeline/kramdown_filter.rb +31 -0
- data/lib/mbrao/version.rb +2 -2
- data/mbrao.gemspec +3 -3
- data/spec/mbrao/author_spec.rb +1 -1
- data/spec/mbrao/content_spec.rb +1 -1
- data/spec/mbrao/parser_spec.rb +16 -16
- data/spec/mbrao/rendering_engines/html_pipeline/kramdown_filter_spec.rb +28 -0
- data/spec/mbrao/rendering_engines/html_pipeline_spec.rb +0 -21
- metadata +23 -8
@@ -15,8 +15,8 @@ module Mbrao
|
|
15
15
|
# @param _options [Hash] A list of options for renderer.
|
16
16
|
# @param _context [Hash] A context for rendering.
|
17
17
|
def render(_content, _options = {}, _context = {})
|
18
|
-
raise Mbrao::Exceptions::Unimplemented
|
18
|
+
raise Mbrao::Exceptions::Unimplemented
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
@@ -4,32 +4,6 @@
|
|
4
4
|
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
5
|
#
|
6
6
|
|
7
|
-
# Main module of the [html-pipeline](https://github.com/jch/html-pipeline) gem.
|
8
|
-
module HTML
|
9
|
-
# A [html-pipeline](https://github.com/jch/html-pipeline) gem Pipeline.
|
10
|
-
class Pipeline
|
11
|
-
# A filter to compile Markdown contents.
|
12
|
-
class KramdownFilter < TextFilter
|
13
|
-
# Creates a new filter.
|
14
|
-
#
|
15
|
-
# @param text [String] The string to convert.
|
16
|
-
# @param context [Hash] The context of the conversion.
|
17
|
-
# @param result [Hash] A result hash.
|
18
|
-
def initialize(text, context = nil, result = nil)
|
19
|
-
super(text, context, result)
|
20
|
-
@text = @text.gsub("\r", "")
|
21
|
-
end
|
22
|
-
|
23
|
-
# Converts Markdown to HTML using Kramdown and converts into a DocumentFragment.
|
24
|
-
#
|
25
|
-
# @return [DocumentFragment] The converted fragment.
|
26
|
-
def call
|
27
|
-
Kramdown::Document.new(@text, @context).to_html
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
7
|
module Mbrao
|
34
8
|
# Engines used to render contents with metadata.
|
35
9
|
module RenderingEngines
|
@@ -59,7 +33,7 @@ module Mbrao
|
|
59
33
|
rescue Mbrao::Exceptions::UnavailableLocalization => le
|
60
34
|
raise le
|
61
35
|
rescue => e
|
62
|
-
raise ::Mbrao::Exceptions::Rendering
|
36
|
+
raise ::Mbrao::Exceptions::Rendering, e.to_s
|
63
37
|
end
|
64
38
|
end
|
65
39
|
|
@@ -74,7 +48,7 @@ module Mbrao
|
|
74
48
|
#
|
75
49
|
# @return [Array] The default pipeline.
|
76
50
|
def default_pipeline=(value)
|
77
|
-
@default_pipeline = value.ensure_array(nil, false, false) {|v| v.ensure_array(nil, true, true, true) { |p| p.ensure_string.to_sym } }
|
51
|
+
@default_pipeline = value.ensure_array(nil, false, false) { |v| v.ensure_array(nil, true, true, true) { |p| p.ensure_string.to_sym } }
|
78
52
|
end
|
79
53
|
|
80
54
|
# Gets the default options.
|
@@ -92,61 +66,62 @@ module Mbrao
|
|
92
66
|
end
|
93
67
|
|
94
68
|
private
|
95
|
-
# Sanitizes options.
|
96
|
-
#
|
97
|
-
# @param options [Hash] The options to sanitize.
|
98
|
-
# @return [Hash] The sanitized options.
|
99
|
-
def sanitize_options(options)
|
100
|
-
options = options.ensure_hash(:symbols)
|
101
|
-
options = filter_filters(options)
|
102
|
-
options[:pipeline_options] = self.default_options.merge(options[:pipeline_options].ensure_hash(:symbols))
|
103
|
-
|
104
|
-
options
|
105
|
-
end
|
106
69
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
70
|
+
# Sanitizes options.
|
71
|
+
#
|
72
|
+
# @param options [Hash] The options to sanitize.
|
73
|
+
# @return [Hash] The sanitized options.
|
74
|
+
def sanitize_options(options)
|
75
|
+
options = options.ensure_hash(:symbols)
|
76
|
+
options = filter_filters(options)
|
77
|
+
options[:pipeline_options] = default_options.merge(options[:pipeline_options].ensure_hash(:symbols))
|
78
|
+
|
79
|
+
options
|
80
|
+
end
|
116
81
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
)
|
127
|
-
end
|
82
|
+
# Get body of a content.
|
83
|
+
#
|
84
|
+
# @param content [Content|String] The content to sanitize.
|
85
|
+
# @param options [Hash] A list of options for renderer.
|
86
|
+
# @return [Array] The body to parse.
|
87
|
+
def get_body(content, options)
|
88
|
+
content = ::Mbrao::Content.create(nil, content.ensure_string) unless content.is_a?(::Mbrao::Content)
|
89
|
+
content.get_body(options.fetch(:locales, ::Mbrao::Parser.locale).ensure_string)
|
90
|
+
end
|
128
91
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
92
|
+
# Creates the pipeline for rendering.
|
93
|
+
#
|
94
|
+
# @param options [Hash] A list of options for renderer.
|
95
|
+
# @param context [Hash] A context for rendering.
|
96
|
+
# @return [HTML::Pipeline] The pipeline
|
97
|
+
def create_pipeline(options, context)
|
98
|
+
::HTML::Pipeline.new(
|
99
|
+
options[:pipeline].map { |f| ::Lazier.find_class(f, "::HTML::Pipeline::%CLASS%Filter", true) },
|
100
|
+
options[:pipeline_options].merge(context)
|
101
|
+
)
|
102
|
+
end
|
135
103
|
|
136
|
-
|
137
|
-
|
138
|
-
|
104
|
+
# Filters pipeline filters basing on the options provided.
|
105
|
+
#
|
106
|
+
# @param options [Hash] The original options.
|
107
|
+
# @return [Hash] The options with the new set of filters.
|
108
|
+
def filter_filters(options)
|
109
|
+
options[:pipeline] = get_pipeline(options)
|
139
110
|
|
140
|
-
|
111
|
+
default_pipeline.each do |f|
|
112
|
+
options[:pipeline].delete(f.first) unless options.fetch(f.last, true)
|
141
113
|
end
|
142
114
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
115
|
+
options
|
116
|
+
end
|
117
|
+
|
118
|
+
# Gets the pipeline for the current options.
|
119
|
+
#
|
120
|
+
# @param options [Hash] The options to parse.
|
121
|
+
# @return [Array] The pipeline to process.
|
122
|
+
def get_pipeline(options)
|
123
|
+
options.fetch(:pipeline, default_pipeline.map(&:first)).map(&:to_sym)
|
124
|
+
end
|
150
125
|
end
|
151
126
|
end
|
152
|
-
end
|
127
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
4
|
+
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
|
+
#
|
6
|
+
|
7
|
+
# Main module of the [html-pipeline](https://github.com/jch/html-pipeline) gem.
|
8
|
+
module HTML
|
9
|
+
# A [html-pipeline](https://github.com/jch/html-pipeline) gem Pipeline.
|
10
|
+
class Pipeline
|
11
|
+
# A filter to compile Markdown contents.
|
12
|
+
class KramdownFilter < TextFilter
|
13
|
+
# Creates a new filter.
|
14
|
+
#
|
15
|
+
# @param text [String] The string to convert.
|
16
|
+
# @param context [Hash] The context of the conversion.
|
17
|
+
# @param result [Hash] A result hash.
|
18
|
+
def initialize(text, context = nil, result = nil)
|
19
|
+
super(text, context, result)
|
20
|
+
@text = @text.gsub("\r", "")
|
21
|
+
end
|
22
|
+
|
23
|
+
# Converts Markdown to HTML using Kramdown and converts into a DocumentFragment.
|
24
|
+
#
|
25
|
+
# @return [DocumentFragment] The converted fragment.
|
26
|
+
def call
|
27
|
+
Kramdown::Document.new(@text, @context).to_html
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/mbrao/version.rb
CHANGED
data/mbrao.gemspec
CHANGED
@@ -25,10 +25,10 @@ Gem::Specification.new do |gem|
|
|
25
25
|
|
26
26
|
gem.required_ruby_version = ">= 1.9.3"
|
27
27
|
|
28
|
-
gem.add_dependency("lazier", "~> 3.5.
|
29
|
-
gem.add_dependency("html-pipeline", "~> 1.
|
28
|
+
gem.add_dependency("lazier", "~> 3.5.5")
|
29
|
+
gem.add_dependency("html-pipeline", "~> 1.8.0")
|
30
30
|
gem.add_dependency("slim", "~> 2.0.2")
|
31
|
-
gem.add_dependency("kramdown", "~> 1.3.
|
31
|
+
gem.add_dependency("kramdown", "~> 1.3.3")
|
32
32
|
gem.add_dependency("rinku", "~> 1.7.3")
|
33
33
|
gem.add_dependency("gemoji", "~> 1.5.0")
|
34
34
|
end
|
data/spec/mbrao/author_spec.rb
CHANGED
@@ -68,7 +68,7 @@ describe Mbrao::Author do
|
|
68
68
|
expect(subject.as_json).to eq({
|
69
69
|
"email" => "name@example.com",
|
70
70
|
"image" => "http://example.com/image.jpg",
|
71
|
-
"metadata" => {"a" => {"b" =>
|
71
|
+
"metadata" => {"a" => {"b" => "c"}},
|
72
72
|
"name" => "NAME",
|
73
73
|
"uid" => nil,
|
74
74
|
"website" => "http://example.com"
|
data/spec/mbrao/content_spec.rb
CHANGED
@@ -315,7 +315,7 @@ describe Mbrao::Content do
|
|
315
315
|
describe "#as_json" do
|
316
316
|
subject {
|
317
317
|
@created_at = DateTime.civil(1984, 7, 7, 11, 30, 0)
|
318
|
-
@created_at_s = @created_at.
|
318
|
+
@created_at_s = @created_at.as_json
|
319
319
|
metadata = {"uid" => "UID", "title" => {it: "IT", en: "EN"}, "summary" => "SUMMARY", "author" => "AUTHOR", "tags" => {it: "IT", en: "EN"}, "more" => "MORE", created_at: @created_at, locales: ["it", ["en"]], other: ["OTHER"]}
|
320
320
|
::Mbrao::Content.create(metadata, "BODY")
|
321
321
|
}
|
data/spec/mbrao/parser_spec.rb
CHANGED
@@ -100,27 +100,27 @@ describe Mbrao::Parser do
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
describe ".
|
103
|
+
describe ".email?" do
|
104
104
|
it "should check for valid emails" do
|
105
|
-
expect(Mbrao::Parser.
|
106
|
-
expect(Mbrao::Parser.
|
107
|
-
expect(Mbrao::Parser.
|
108
|
-
expect(Mbrao::Parser.
|
109
|
-
expect(Mbrao::Parser.
|
110
|
-
expect(Mbrao::Parser.
|
111
|
-
expect(Mbrao::Parser.
|
105
|
+
expect(Mbrao::Parser.email?("valid@email.com")).to be_true
|
106
|
+
expect(Mbrao::Parser.email?("valid@localhost")).to be_false
|
107
|
+
expect(Mbrao::Parser.email?("this.is.9@email.com")).to be_true
|
108
|
+
expect(Mbrao::Parser.email?("INVALID")).to be_false
|
109
|
+
expect(Mbrao::Parser.email?(nil)).to be_false
|
110
|
+
expect(Mbrao::Parser.email?([])).to be_false
|
111
|
+
expect(Mbrao::Parser.email?("this.is.9@email.com.uk")).to be_true
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
-
describe ".
|
115
|
+
describe ".url?" do
|
116
116
|
it "should check for valid URLs" do
|
117
|
-
expect(Mbrao::Parser.
|
118
|
-
expect(Mbrao::Parser.
|
119
|
-
expect(Mbrao::Parser.
|
120
|
-
expect(Mbrao::Parser.
|
121
|
-
expect(Mbrao::Parser.
|
122
|
-
expect(Mbrao::Parser.
|
123
|
-
expect(Mbrao::Parser.
|
117
|
+
expect(Mbrao::Parser.url?("http://google.it")).to be_true
|
118
|
+
expect(Mbrao::Parser.url?("ftp://ftp.google.com")).to be_true
|
119
|
+
expect(Mbrao::Parser.url?("http://google.it/?q=FOO+BAR")).to be_true
|
120
|
+
expect(Mbrao::Parser.url?("INVALID")).to be_false
|
121
|
+
expect(Mbrao::Parser.url?([])).to be_false
|
122
|
+
expect(Mbrao::Parser.url?(nil)).to be_false
|
123
|
+
expect(Mbrao::Parser.url?({})).to be_false
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
4
|
+
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
|
+
#
|
6
|
+
|
7
|
+
require "spec_helper"
|
8
|
+
|
9
|
+
describe HTML::Pipeline::KramdownFilter do
|
10
|
+
describe "#initialize" do
|
11
|
+
it "should call the parent constructor" do
|
12
|
+
expect(HTML::Pipeline::TextFilter).to receive(:new).with("\rCONTENT\r", {a: "b"}, {c: "d"})
|
13
|
+
HTML::Pipeline::KramdownFilter.new("\rCONTENT\r", {a: "b"}, {c: "d"})
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should remove \r from the text" do
|
17
|
+
subject = HTML::Pipeline::KramdownFilter.new("\rCONTENT\r", {a: "b"}, {c: "d"})
|
18
|
+
expect(subject.instance_variable_get(:@text)).to eq("CONTENT")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should use Kramdown with given options for building the result" do
|
22
|
+
object = Object.new
|
23
|
+
expect(Kramdown::Document).to receive(:new).with("CONTENT", {a: "b"}).and_return(object)
|
24
|
+
expect(object).to receive(:to_html)
|
25
|
+
HTML::Pipeline::KramdownFilter.new("\rCONTENT\r", {a: "b"}, {c: "d"}).call
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -103,25 +103,4 @@ describe Mbrao::RenderingEngines::HtmlPipeline do
|
|
103
103
|
expect(subject.default_options).to eq({})
|
104
104
|
end
|
105
105
|
end
|
106
|
-
end
|
107
|
-
|
108
|
-
describe HTML::Pipeline::KramdownFilter do
|
109
|
-
describe "#initialize" do
|
110
|
-
it "should call the parent constructor" do
|
111
|
-
expect(HTML::Pipeline::TextFilter).to receive(:new).with("\rCONTENT\r", {a: "b"}, {c: "d"})
|
112
|
-
HTML::Pipeline::KramdownFilter.new("\rCONTENT\r", {a: "b"}, {c: "d"})
|
113
|
-
end
|
114
|
-
|
115
|
-
it "should remove \r from the text" do
|
116
|
-
subject = HTML::Pipeline::KramdownFilter.new("\rCONTENT\r", {a: "b"}, {c: "d"})
|
117
|
-
expect(subject.instance_variable_get(:@text)).to eq("CONTENT")
|
118
|
-
end
|
119
|
-
|
120
|
-
it "should use Kramdown with given options for building the result" do
|
121
|
-
object = Object.new
|
122
|
-
expect(Kramdown::Document).to receive(:new).with("CONTENT", {a: "b"}).and_return(object)
|
123
|
-
expect(object).to receive(:to_html)
|
124
|
-
HTML::Pipeline::KramdownFilter.new("\rCONTENT\r", {a: "b"}, {c: "d"}).call
|
125
|
-
end
|
126
|
-
end
|
127
106
|
end
|
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
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shogun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lazier
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.5.
|
19
|
+
version: 3.5.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.5.
|
26
|
+
version: 3.5.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: html-pipeline
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.8.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: slim
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.3.
|
61
|
+
version: 1.3.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.3.
|
68
|
+
version: 1.3.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rinku
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
|
+
- ".rubocop.yml"
|
105
106
|
- ".travis-gemfile"
|
106
107
|
- ".travis.yml"
|
107
108
|
- ".yardopts"
|
@@ -109,6 +110,8 @@ files:
|
|
109
110
|
- Gemfile
|
110
111
|
- README.md
|
111
112
|
- Rakefile
|
113
|
+
- doc/ActionView.html
|
114
|
+
- doc/ActionView/Template.html
|
112
115
|
- doc/ActionView/Template/Handlers.html
|
113
116
|
- doc/ActionView/Template/Handlers/MbraoTemplate.html
|
114
117
|
- doc/HTML.html
|
@@ -117,6 +120,8 @@ files:
|
|
117
120
|
- doc/Mbrao.html
|
118
121
|
- doc/Mbrao/Author.html
|
119
122
|
- doc/Mbrao/Content.html
|
123
|
+
- doc/Mbrao/ContentInterface.html
|
124
|
+
- doc/Mbrao/ContentInterface/ClassMethods.html
|
120
125
|
- doc/Mbrao/ContentPublicInterface.html
|
121
126
|
- doc/Mbrao/Exceptions.html
|
122
127
|
- doc/Mbrao/Exceptions/InvalidDate.html
|
@@ -127,6 +132,10 @@ files:
|
|
127
132
|
- doc/Mbrao/Exceptions/Unimplemented.html
|
128
133
|
- doc/Mbrao/Exceptions/UnknownEngine.html
|
129
134
|
- doc/Mbrao/Parser.html
|
135
|
+
- doc/Mbrao/ParserInterface.html
|
136
|
+
- doc/Mbrao/ParserInterface/ClassMethods.html
|
137
|
+
- doc/Mbrao/ParserValidations.html
|
138
|
+
- doc/Mbrao/ParserValidations/ClassMethods.html
|
130
139
|
- doc/Mbrao/ParsingEngines.html
|
131
140
|
- doc/Mbrao/ParsingEngines/Base.html
|
132
141
|
- doc/Mbrao/ParsingEngines/PlainText.html
|
@@ -155,13 +164,17 @@ files:
|
|
155
164
|
- lib/mbrao.rb
|
156
165
|
- lib/mbrao/author.rb
|
157
166
|
- lib/mbrao/content.rb
|
167
|
+
- lib/mbrao/content_interface.rb
|
158
168
|
- lib/mbrao/exceptions.rb
|
159
169
|
- lib/mbrao/integrations/rails.rb
|
160
170
|
- lib/mbrao/parser.rb
|
171
|
+
- lib/mbrao/parser_interface.rb
|
172
|
+
- lib/mbrao/parser_validations.rb
|
161
173
|
- lib/mbrao/parsing_engines/base.rb
|
162
174
|
- lib/mbrao/parsing_engines/plain_text.rb
|
163
175
|
- lib/mbrao/rendering_engines/base.rb
|
164
176
|
- lib/mbrao/rendering_engines/html_pipeline.rb
|
177
|
+
- lib/mbrao/rendering_engines/html_pipeline/kramdown_filter.rb
|
165
178
|
- lib/mbrao/version.rb
|
166
179
|
- mbrao.gemspec
|
167
180
|
- spec/coverage_helper.rb
|
@@ -172,6 +185,7 @@ files:
|
|
172
185
|
- spec/mbrao/parsing_engines/base_spec.rb
|
173
186
|
- spec/mbrao/parsing_engines/plain_text_spec.rb
|
174
187
|
- spec/mbrao/rendering_engines/base_spec.rb
|
188
|
+
- spec/mbrao/rendering_engines/html_pipeline/kramdown_filter_spec.rb
|
175
189
|
- spec/mbrao/rendering_engines/html_pipeline_spec.rb
|
176
190
|
- spec/spec_helper.rb
|
177
191
|
homepage: http://github.com/ShogunPanda/mbrao
|
@@ -207,6 +221,7 @@ test_files:
|
|
207
221
|
- spec/mbrao/parsing_engines/base_spec.rb
|
208
222
|
- spec/mbrao/parsing_engines/plain_text_spec.rb
|
209
223
|
- spec/mbrao/rendering_engines/base_spec.rb
|
224
|
+
- spec/mbrao/rendering_engines/html_pipeline/kramdown_filter_spec.rb
|
210
225
|
- spec/mbrao/rendering_engines/html_pipeline_spec.rb
|
211
226
|
- spec/spec_helper.rb
|
212
227
|
has_rdoc:
|