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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a8bd157eff1ba1292555528d57ca1531304fc28c88d65fd0e55b437d09eb78e
4
- data.tar.gz: 4adf30d60b4eae6691cb98566783bd970ebdf93cf89b9468480bba1c6b4c3c67
3
+ metadata.gz: 6247333ffe74b1a26211f5563ceea18e43b355aa8b8fe5b0474355f7efa81f93
4
+ data.tar.gz: 0f29d8cae966aa24960a57e874a73693e50040444d3f98d2c505b6bb6161c9e9
5
5
  SHA512:
6
- metadata.gz: 2a3c1ac79c81a611b5b30313cdcc0cff4b41eb82ada353370c3574eafdbec720498e8f5abe01f7b5ce0bf1245a396f78293a890d6aa840a0f9106ab17a1c9b9d
7
- data.tar.gz: 582038764201a0eea047a298dc28f3942bbbacdd27706b0305bb112a9cc42493df1fa7ff32bf35a871f3d9f1a3122a120d4bf1b4a65c74fb1afe42f0d3687f32
6
+ metadata.gz: 19b69c57d6b7df1efa7ad35c754b283242d46d61a6b8a8313ca27ea2929511934eecf4c019e744cd640704455a0ac0ec06f52bcb2929425f58153320b2e47be2
7
+ data.tar.gz: 9fb8ca18eeb49d3150e7b88e024b89da94e88e8723861964e49a8873e0045e8886b49745deff0973b3cd731fb2488283a96fad7b23dec7d3fd9f424a087a75f9
data/Appraisals CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  appraise 'rails-3' do
2
4
  gem 'rack', '< 2'
3
5
  gem 'rails', '3.2.22.2'
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in html-pipeline.gemspec
data/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env rake
2
+ # frozen_string_literal: true
3
+
2
4
  require 'rubygems'
3
5
  require 'bundler/setup'
4
6
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
 
2
3
  require File.expand_path('../lib/html/pipeline/version', __FILE__)
3
4
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'nokogiri'
2
4
  require 'active_support/xml_mini/nokogiri' # convert Documents to hashes
3
5
 
@@ -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 as
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'uri'
2
4
 
3
5
  module HTML
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('rinku', 'AutolinkFilter')
2
4
 
3
5
  module HTML
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
5
  # Public: Runs a String of content through an HTML processing pipeline,
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'openssl'
2
4
  require 'uri'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('escape_utils', 'EmailReplyFilter')
2
4
  HTML::Pipeline.require_dependency('email_reply_parser', 'EmailReplyFilter')
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'cgi'
2
4
  HTML::Pipeline.require_dependency('gemoji', 'EmojiFilter')
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
5
  # Base class for user content HTML filters. Each filter takes an
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
5
  # HTML Filter for replacing http references to :http_url with https versions.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
5
  # HTML Filter that converts image's url into <img> tag.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
5
  # This filter rewrites image tags with a max-width inline style and also wraps
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('commonmarker', 'MarkdownFilter')
2
4
 
3
5
  module HTML
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('escape_utils', 'PlainTextInputFilter')
2
4
 
3
5
  module HTML
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('sanitize', 'SanitizationFilter')
2
4
 
3
5
  module HTML
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('rouge', 'SyntaxHighlightFilter')
2
4
 
3
5
  module HTML
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
5
  class TextFilter < Filter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HTML::Pipeline.require_dependency('redcloth', 'RedCloth')
2
4
 
3
5
  module HTML
@@ -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|
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HTML
2
4
  class Pipeline
3
- VERSION = '2.11.0'.freeze
5
+ VERSION = '2.11.1'.freeze
4
6
  end
5
7
  end
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.0
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-04-06 00:00:00.000000000 Z
13
+ date: 2019-07-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport