html-pipeline 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +1 -1
- data/lib/html/pipeline.rb +6 -0
- data/lib/html/pipeline/autolink_filter.rb +1 -5
- data/lib/html/pipeline/email_reply_filter.rb +2 -11
- data/lib/html/pipeline/emoji_filter.rb +1 -6
- data/lib/html/pipeline/markdown_filter.rb +1 -5
- data/lib/html/pipeline/plain_text_input_filter.rb +1 -5
- data/lib/html/pipeline/sanitization_filter.rb +1 -5
- data/lib/html/pipeline/syntax_highlight_filter.rb +1 -5
- data/lib/html/pipeline/textile_filter.rb +1 -5
- data/lib/html/pipeline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51be736324dd52bf97242e77f261fbbd77f14922
|
4
|
+
data.tar.gz: d3e7b8b65e9c6856e86ea9d287d450b2ddce66ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a4a67b0002cf54ef1b4983af83682f2cbfb6ec65a7c95bcef5fe4e644798a61f10c61191fb9ae9dd09863c5e3a5a30e9bd65f3b1a7f5232cd777d9eedd7a1bd
|
7
|
+
data.tar.gz: 7ddab3f6d8b59870c12ca8a5cbc449fd9b58cec104897563375da29d43ed6e9301eba92fde400a54eded048ece4659ab093e3c9d50525cc1ea3ae8e50616a770
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
## 2.4.1
|
16
16
|
|
17
|
-
* Regression in EmailReplyPipeline: unfiltered content is being
|
17
|
+
* Regression in EmailReplyPipeline: unfiltered content is being omitted [#253](https://github.com/jch/html-pipeline/pull/253)
|
18
18
|
|
19
19
|
## 2.4.0
|
20
20
|
|
data/lib/html/pipeline.rb
CHANGED
@@ -44,6 +44,12 @@ module HTML
|
|
44
44
|
autoload :TextFilter, 'html/pipeline/text_filter'
|
45
45
|
|
46
46
|
class MissingDependencyError < LoadError; end
|
47
|
+
def self.require_dependency(name, requirer)
|
48
|
+
require name
|
49
|
+
rescue LoadError => e
|
50
|
+
raise MissingDependencyError,
|
51
|
+
"Missing dependency '#{name}' for #{requirer}. See README.md for details.\n#{e.class.name}: #{e}"
|
52
|
+
end
|
47
53
|
|
48
54
|
# Our DOM implementation.
|
49
55
|
DocumentFragment = Nokogiri::HTML::DocumentFragment
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
require "rinku"
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'rinku' for AutolinkFilter. See README.md for details."
|
5
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("rinku", "AutolinkFilter")
|
6
2
|
|
7
3
|
module HTML
|
8
4
|
class Pipeline
|
@@ -1,14 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'escape_utils' for EmailReplyFilter. See README.md for details."
|
5
|
-
end
|
6
|
-
|
7
|
-
begin
|
8
|
-
require "email_reply_parser"
|
9
|
-
rescue LoadError => _
|
10
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'email_reply_parser' for EmailReplyFilter. See README.md for details."
|
11
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("escape_utils", "EmailReplyFilter")
|
2
|
+
HTML::Pipeline.require_dependency("email_reply_parser", "EmailReplyFilter")
|
12
3
|
|
13
4
|
module HTML
|
14
5
|
class Pipeline
|
@@ -1,10 +1,5 @@
|
|
1
1
|
require "cgi"
|
2
|
-
|
3
|
-
begin
|
4
|
-
require "gemoji"
|
5
|
-
rescue LoadError => _
|
6
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'gemoji' for EmojiFilter. See README.md for details."
|
7
|
-
end
|
2
|
+
HTML::Pipeline.require_dependency("gemoji", "EmojiFilter")
|
8
3
|
|
9
4
|
module HTML
|
10
5
|
class Pipeline
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
require "commonmarker"
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'commonmarker' for MarkdownFilter. See README.md for details."
|
5
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("commonmarker", "MarkdownFilter")
|
6
2
|
|
7
3
|
module HTML
|
8
4
|
class Pipeline
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
require "escape_utils"
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'escape_utils' for PlainTextInputFilter. See README.md for details."
|
5
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("escape_utils", "PlainTextInputFilter")
|
6
2
|
|
7
3
|
module HTML
|
8
4
|
class Pipeline
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
require "sanitize"
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'sanitize' for SanitizationFilter. See README.md for details."
|
5
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("sanitize", "SanitizationFilter")
|
6
2
|
|
7
3
|
module HTML
|
8
4
|
class Pipeline
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
require "linguist"
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'github-linguist' for SyntaxHighlightFilter. See README.md for details."
|
5
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("linguist", "SyntaxHighlightFilter")
|
6
2
|
|
7
3
|
module HTML
|
8
4
|
class Pipeline
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
require "redcloth"
|
3
|
-
rescue LoadError => _
|
4
|
-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'RedCloth' for TextileFilter. See README.md for details."
|
5
|
-
end
|
1
|
+
HTML::Pipeline.require_dependency("redcloth", "RedCloth")
|
6
2
|
|
7
3
|
module HTML
|
8
4
|
class Pipeline
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|