html-pipeline 2.11.0 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +2 -0
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/html-pipeline.gemspec +1 -0
- data/lib/html/pipeline.rb +2 -0
- data/lib/html/pipeline/@mention_filter.rb +4 -2
- data/lib/html/pipeline/absolute_source_filter.rb +2 -0
- data/lib/html/pipeline/autolink_filter.rb +2 -0
- data/lib/html/pipeline/body_content.rb +2 -0
- data/lib/html/pipeline/camo_filter.rb +2 -0
- data/lib/html/pipeline/email_reply_filter.rb +2 -0
- data/lib/html/pipeline/emoji_filter.rb +2 -0
- data/lib/html/pipeline/filter.rb +2 -0
- data/lib/html/pipeline/https_filter.rb +2 -0
- data/lib/html/pipeline/image_filter.rb +2 -0
- data/lib/html/pipeline/image_max_width_filter.rb +2 -0
- data/lib/html/pipeline/markdown_filter.rb +2 -0
- data/lib/html/pipeline/plain_text_input_filter.rb +2 -0
- data/lib/html/pipeline/sanitization_filter.rb +2 -0
- data/lib/html/pipeline/syntax_highlight_filter.rb +2 -0
- data/lib/html/pipeline/text_filter.rb +2 -0
- data/lib/html/pipeline/textile_filter.rb +2 -0
- data/lib/html/pipeline/toc_filter.rb +3 -1
- data/lib/html/pipeline/version.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6247333ffe74b1a26211f5563ceea18e43b355aa8b8fe5b0474355f7efa81f93
|
4
|
+
data.tar.gz: 0f29d8cae966aa24960a57e874a73693e50040444d3f98d2c505b6bb6161c9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19b69c57d6b7df1efa7ad35c754b283242d46d61a6b8a8313ca27ea2929511934eecf4c019e744cd640704455a0ac0ec06f52bcb2929425f58153320b2e47be2
|
7
|
+
data.tar.gz: 9fb8ca18eeb49d3150e7b88e024b89da94e88e8723861964e49a8873e0045e8886b49745deff0973b3cd731fb2488283a96fad7b23dec7d3fd9f424a087a75f9
|
data/Appraisals
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/html-pipeline.gemspec
CHANGED
data/lib/html/pipeline.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'set'
|
2
4
|
|
3
5
|
module HTML
|
@@ -81,8 +83,8 @@ module HTML
|
|
81
83
|
doc
|
82
84
|
end
|
83
85
|
|
84
|
-
# The URL to provide when someone @mentions a "mention" name, such
|
85
|
-
# @mention or @mentioned, that will give them more info on mentions.
|
86
|
+
# The URL to provide when someone @mentions a "mention" name, such
|
87
|
+
# as @mention or @mentioned, that will give them more info on mentions.
|
86
88
|
def info_url
|
87
89
|
context[:info_url] || nil
|
88
90
|
end
|
data/lib/html/pipeline/filter.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
HTML::Pipeline.require_dependency('escape_utils', 'TableOfContentsFilter')
|
2
4
|
|
3
5
|
module HTML
|
@@ -33,7 +35,7 @@ module HTML
|
|
33
35
|
end
|
34
36
|
|
35
37
|
def call
|
36
|
-
result[:toc] = ''
|
38
|
+
result[:toc] = String.new('')
|
37
39
|
|
38
40
|
headers = Hash.new(0)
|
39
41
|
doc.css('h1, h2, h3, h4, h5, h6').each do |node|
|
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.11.
|
4
|
+
version: 2.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|