jekyll-toc 0.12.1 → 0.12.2

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: 79d1409209555ff59be7d83d30b1576ca4ae792835a934fa2618e9efb13c0a61
4
- data.tar.gz: 1008538004cb196a363fca3748988f1156d21e6ff72b30505d4a4f20ad0c1600
3
+ metadata.gz: '0878c3ea712b5773638228ba2048ded434e9c838e10a8eff44d9e26d27de6185'
4
+ data.tar.gz: 284c54ed6ecc9dd9ccafbb7e743106d4ad26c234dbfb5924c43dc93c7b24f6fd
5
5
  SHA512:
6
- metadata.gz: 4a4f68a3f04691f78bfe05f8a5b3e5e59f0b75b26e43cdb199ba8a5aa08192c397fd7bc2ffbbf458d5923b136369d986dac1f1a6556ef6c820faa95365873a8e
7
- data.tar.gz: 83ad420d0a58ca60ef99635b1ed13b85e2f17f7a638c35724f22c0f6b628121cf73c25ae4a9d6e2c65d909dcae72355220c3465471bd3f14d858f9af5c143764
6
+ metadata.gz: e814c47560c29f929f6af34cc260b22f54738f78d4709bc88b75a8135fc6655adb34e9db084d6e11dd6227549a0d7884dc72529d231efc9b5b74471f0a428622
7
+ data.tar.gz: 4d686304db3a0d2b77e93830f4e2899ba973bd213b33c6c704a9f330fce8e8c0580a6540c7fe8b1fea5eca72ecbae3fac173b8946c362b664b056f82b763e042
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.4
3
3
  Exclude:
4
4
  - '*.gemspec'
5
5
  - 'gemfiles/*'
@@ -20,3 +20,9 @@ Metrics/ClassLength:
20
20
 
21
21
  Style/FileName:
22
22
  Enabled: false
23
+
24
+ Style/BracesAroundHashParameters:
25
+ Enabled: false
26
+
27
+ Style/WordArray:
28
+ Enabled: false
@@ -4,10 +4,9 @@ env:
4
4
  global:
5
5
  - CC_TEST_REPORTER_ID=6b81e393ea6ad38560386f650ea2fb0e57a7beb5e20f8c8364fabee30d5bff07
6
6
  rvm:
7
- - 2.3.7
8
- - 2.4.4
9
- - 2.5.1
10
- - 2.6.2
7
+ - 2.4.6
8
+ - 2.5.5
9
+ - 2.6.3
11
10
  # gemfile is generated by appraisal
12
11
  gemfile:
13
12
  - gemfiles/jekyll_3.8.gemfile
data/README.md CHANGED
@@ -66,9 +66,9 @@ This filter places the TOC directly above the content.
66
66
 
67
67
  If you'd like separated TOC and content, you can use `toc_only` and `inject_anchors` filters.
68
68
 
69
- #### ~~`toc_only` filter~~ `toc` tag
69
+ #### `toc_only` filter
70
70
 
71
- ⚠️ Please use `{% toc %}` instead of `{{ content | toc_only }}`.
71
+ ⚠️ ~~Please use `{% toc %}` instead of `{{ content | toc_only }}`.~~
72
72
 
73
73
  Generates the TOC itself as described [below](#generated-html).
74
74
  Mostly useful in cases where the TOC should _not_ be placed immediately
@@ -20,8 +20,6 @@ module Jekyll
20
20
  module TableOfContentsFilter
21
21
  # Deprecated method. Removed in v1.0.
22
22
  def toc_only(html)
23
- Jekyll.logger.warn 'Deprecation: toc_only filter is deprecated and will be remove in jekyll-toc v1.0.',
24
- 'Use `{% toc %}` instead of `{{ content | toc_only }}`.'
25
23
  return '' unless toc_enabled?
26
24
 
27
25
  TableOfContents::Parser.new(html, toc_config).build_toc
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllToc
4
- VERSION = '0.12.1'
4
+ VERSION = '0.12.2'
5
5
  end
@@ -396,7 +396,6 @@ class TestVariousTocHtml < Minitest::Test
396
396
  assert_includes(html, %(<a class="anchor" href="#third" aria-hidden="true">))
397
397
  end
398
398
 
399
-
400
399
  TEST_UNIQ_ID = <<~HTML
401
400
  <h1>h1</h1>
402
401
  <h1>h1</h1>
@@ -4,7 +4,7 @@ require 'simplecov'
4
4
  SimpleCov.start
5
5
 
6
6
  require 'minitest/autorun'
7
- require "minitest/reporters"
7
+ require 'minitest/reporters'
8
8
  Minitest::Reporters.use!
9
9
 
10
10
  require 'jekyll'
@@ -13,7 +13,7 @@ class TestTableOfContentsTag < Minitest::Test
13
13
 
14
14
  def test_toc_tag
15
15
  context = @stubbed_context.new(
16
- page: @stubbed_context2.new({ 'toc' => false }, '<h1>test</h1>'),
16
+ page: @stubbed_context2.new({ 'toc' => false }, '<h1>test</h1>'),
17
17
  site: @stubbed_context1.new({ 'toc' => nil })
18
18
  )
19
19
  tag = Jekyll::TocTag.parse('toc_tag', '', Tokenizer.new(''), ParseContext.new)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-toc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-07 00:00:00.000000000 Z
12
+ date: 2019-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri