jekyll-html-pipeline 1.0.0 → 1.1.0

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
  SHA1:
3
- metadata.gz: 8782b7c58acabcb7e17da583172185f55656570a
4
- data.tar.gz: 82e6737159c8bf73c4c61be6ec2af11b1d1cbdff
3
+ metadata.gz: dd60066499eb2eb794386fcd98dc12891fde58e2
4
+ data.tar.gz: 0d66e93e15aa7b66f4b03bf40ed28323e7327f1e
5
5
  SHA512:
6
- metadata.gz: 5a0f181a79a1ce0d15e39b682ef7a313bbb810bbae06aaa6179112d5017d498101ce0292629bcfb6789c3aaf8c8d809ef184213b0b8da519d6a0a87690be98e1
7
- data.tar.gz: fcaa3686640d5592ab6b28517e0dec57292ce3708faf3a296075b44c7a886618e51074dd227b5c8b07e32bcc1e248a191e517e9f02d9165c5484e97b9db78b04
6
+ metadata.gz: '084ab5d83418fc86aa21a0f17e4b31201bcfa1ad98b87f2de7e109746f3e38e24896dfd7bae1eee01ed09c1a52bb7edd8c2e8c4914ae036418aed5ba29238393'
7
+ data.tar.gz: 0147bf36dd77bb53a4ecc0458d33a095f815211a04b8518ad21a86b5cbd1aa11bd426b4d364c7a92067eb3f0adda9f2a1ac33f227d8c605c4ae167bdcdf57432
@@ -0,0 +1,10 @@
1
+ inherit_gem:
2
+ rubocop-github:
3
+ - config/default.yml
4
+
5
+ Style/StringLiterals:
6
+ Enabled: true
7
+ EnforcedStyle: single_quotes
8
+
9
+ RequireParentheses:
10
+ Enabled: true
@@ -1,13 +1,16 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0
4
- - 2.1
5
- - 2.2
6
-
7
- sudo: false
8
-
9
- cache:
10
- - bundler
3
+ - 2.3.6
4
+ - 2.4.3
5
+ - 2.5.0
11
6
 
12
7
  git:
13
8
  depth: 10
9
+
10
+ sudo: false
11
+ cache: bundler
12
+
13
+ matrix:
14
+ include:
15
+ - script: bundle exec rake rubocop
16
+ rvm: 2.5.0
data/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  [![Build Status](https://travis-ci.org/gjtorikian/jekyll-html-pipeline.svg?branch=master)](https://travis-ci.org/gjtorikian/jekyll-html-pipeline)
2
2
 
3
- jekyll-html-pipeline
4
- ====================
3
+ # jekyll-html-pipeline
5
4
 
6
5
  An [HTML::Pipeline](https://github.com/jch/html-pipeline), for Jekyll.
7
6
 
8
-
9
7
  ## Installation
10
8
 
11
9
  In your *_config.yml* file, add this gem:
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
 
3
- task :default => [:test]
3
+ task default: [:test]
4
4
 
5
5
  require 'rake/testtask'
6
6
  Rake::TestTask.new(:test) do |test|
@@ -8,3 +8,7 @@ Rake::TestTask.new(:test) do |test|
8
8
  test.pattern = 'test/**/test_*.rb'
9
9
  test.verbose = true
10
10
  end
11
+
12
+ require 'rubocop/rake_task'
13
+
14
+ RuboCop::RakeTask.new(:rubocop)
@@ -1,25 +1,27 @@
1
1
  Gem::Specification.new do |spec|
2
- spec.name = "jekyll-html-pipeline"
3
- spec.version = "1.0.0"
4
- spec.authors = ["Garen Torikian"]
5
- spec.email = ["gjtorikian@gmail.com"]
2
+ spec.name = 'jekyll-html-pipeline'
3
+ spec.version = '1.1.0'
4
+ spec.authors = ['Garen Torikian']
5
+ spec.email = ['gjtorikian@gmail.com']
6
6
  spec.summary = %q{Use GitHub's HTML::Pipeline, in Jekyll!}
7
7
  spec.description = %q{This is a custom Markdown processor for Jekyll 2.0 and above. It allows you to use GitHub's HTML::Pipeline in your Jekyll projects. }
8
- spec.homepage = ""
9
- spec.license = "MIT"
8
+ spec.homepage = 'https://github.com/gjtorikian/jekyll-html-pipeline'
9
+ spec.license = 'MIT'
10
10
 
11
11
  spec.files = `git ls-files`.split($/)
12
12
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
13
13
  spec.test_files = spec.files.grep(%r{^(test)/})
14
- spec.require_paths = ["lib"]
14
+ spec.require_paths = ['lib']
15
15
 
16
- spec.add_runtime_dependency "jekyll", ">= 2.0"
17
- spec.add_dependency 'html-pipeline', ">= 1.0"
16
+ spec.add_runtime_dependency 'jekyll', '~> 3.0'
17
+ spec.add_dependency 'html-pipeline', '~> 2.8'
18
18
 
19
- spec.add_development_dependency "bundler", "~> 1.4"
20
- spec.add_development_dependency "rake"
21
- spec.add_development_dependency 'minitest', "~> 5.0"
22
- spec.add_development_dependency 'github-markdown', "~> 0.6.3"
23
- spec.add_development_dependency 'sanitize', "~> 2.0.6"
24
- spec.add_development_dependency 'gemoji', "~> 2.0"
19
+ spec.add_development_dependency 'bundler', '~> 1.4'
20
+ spec.add_development_dependency 'rake'
21
+ spec.add_development_dependency 'minitest', '~> 5.0'
22
+ spec.add_development_dependency 'commonmarker', '~> 0.17'
23
+ spec.add_development_dependency 'sanitize', '~> 2.0.6'
24
+ spec.add_development_dependency 'rubocop'
25
+ spec.add_development_dependency 'rubocop-github'
26
+ spec.add_development_dependency 'gemoji', '~> 2.0'
25
27
  end
@@ -18,7 +18,7 @@ module Jekyll
18
18
  end
19
19
 
20
20
  def symbolize_keys(hash)
21
- hash.inject({}){|result, (key, value)|
21
+ hash.inject({}) { |result, (key, value)|
22
22
  new_key = case key
23
23
  when String then key.to_sym
24
24
  else key
@@ -56,7 +56,7 @@ module Jekyll
56
56
  else
57
57
  HTML::Pipeline.const_get(filter)
58
58
  end
59
- rescue Exception => e
59
+ rescue StandardError => e
60
60
  raise LoadError.new(e)
61
61
  end
62
62
  end
@@ -1,4 +1,4 @@
1
- require "html/pipeline"
1
+ require 'html/pipeline'
2
2
 
3
3
  class HelpMarkdownFilter < HTML::Pipeline::MarkdownFilter
4
4
 
@@ -1,11 +1,11 @@
1
- require "rubygems"
1
+ require 'rubygems'
2
2
 
3
- require "jekyll"
4
- require "liquid"
3
+ require 'jekyll'
4
+ require 'liquid'
5
5
 
6
6
  require 'minitest/autorun'
7
7
 
8
- require "jekyll-html-pipeline"
8
+ require 'jekyll-html-pipeline'
9
9
 
10
10
  # Send STDERR into the void to suppress program output messages
11
11
  # STDERR.reopen(test(?e, '/dev/null') ? '/dev/null' : 'NUL:')
@@ -1,26 +1,26 @@
1
- require "test_helper"
1
+ require 'test_helper'
2
2
 
3
3
  class HTMLPipelineTest < Converter::HTMLPipelineTestCase
4
4
  def setup
5
5
  @config = {
6
6
  'html_pipeline' => {
7
7
  'filters' => ['markdownfilter', 'sanitizationfilter', 'emojifilter', 'mentionfilter'],
8
- 'context' => { 'asset_root' => "http://foo.com/icons", 'base_url' => "https://github.com/"}},
8
+ 'context' => { 'asset_root' => 'http://foo.com/icons', 'base_url' => 'https://github.com/'}},
9
9
  'markdown' => 'HTMLPipeline'
10
10
  }
11
11
  @markdown = Jekyll::Converters::Markdown.new @config
12
12
  end
13
13
 
14
14
  def test_passes_regular_options
15
- assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip
15
+ assert_equal '<h1>Some Header</h1>', @markdown.convert('# Some Header #').strip
16
16
  end
17
17
 
18
18
  def test_pass_rendering_emoji
19
- assert_equal "<p><img class=\"emoji\" title=\":trollface:\" alt=\":trollface:\" src=\"http://foo.com/icons/emoji/trollface.png\" height=\"20\" width=\"20\" align=\"absmiddle\"></p>", @markdown.convert(':trollface:').strip
19
+ assert_equal '<p><img class="emoji" title=":trollface:" alt=":trollface:" src="http://foo.com/icons/emoji/trollface.png" height="20" width="20" align="absmiddle"></p>', @markdown.convert(':trollface:').strip
20
20
  end
21
21
 
22
22
  def test_pass_rendering_mentions
23
- assert_equal "<p><strong>Hey, <a href=\"https://github.com/mojombo\" class=\"user-mention\">@mojombo</a></strong>!</p>", @markdown.convert('**Hey, @mojombo**!').strip
23
+ assert_equal '<p><strong>Hey, <a href="https://github.com/mojombo" class="user-mention">@mojombo</a></strong>!</p>', @markdown.convert('**Hey, @mojombo**!').strip
24
24
  end
25
25
 
26
26
  def test_fail_when_a_library_dependency_is_not_met
@@ -43,6 +43,6 @@ class HTMLPipelineTest < Converter::HTMLPipelineTestCase
43
43
  override['html_pipeline']['filters'] = ['HelpMarkdownFilter']
44
44
  markdown = Jekyll::Converters::Markdown.new override
45
45
  text = "\n {{#tip}}\n **Tip**: Wow! \n {{/tip}}"
46
- assert_equal "<div class=\"alert tip\"><br>\n <strong>Tip</strong>: Wow! <br>\n </div>", markdown.convert(text)
46
+ assert_equal "<div class=\"alert tip\"><br />\n<strong>Tip</strong>: Wow!<br />\n</div>", markdown.convert(text)
47
47
  end
48
48
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-html-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '3.0'
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: '2.0'
26
+ version: '3.0'
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.0'
33
+ version: '2.8'
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.0'
40
+ version: '2.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '5.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: github-markdown
84
+ name: commonmarker
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.6.3
89
+ version: '0.17'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.6.3
96
+ version: '0.17'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sanitize
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,34 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.0.6
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-github
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: gemoji
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -131,6 +159,7 @@ extensions: []
131
159
  extra_rdoc_files: []
132
160
  files:
133
161
  - ".gitignore"
162
+ - ".rubocop.yml"
134
163
  - ".travis.yml"
135
164
  - Gemfile
136
165
  - LICENSE.txt
@@ -141,7 +170,7 @@ files:
141
170
  - test/support/new_pipeline.rb
142
171
  - test/test_helper.rb
143
172
  - test/test_jekyll_html_pipeline.rb
144
- homepage: ''
173
+ homepage: https://github.com/gjtorikian/jekyll-html-pipeline
145
174
  licenses:
146
175
  - MIT
147
176
  metadata: {}
@@ -161,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
190
  version: '0'
162
191
  requirements: []
163
192
  rubyforge_project:
164
- rubygems_version: 2.4.5.1
193
+ rubygems_version: 2.6.12
165
194
  signing_key:
166
195
  specification_version: 4
167
196
  summary: Use GitHub's HTML::Pipeline, in Jekyll!