diff --git a/.gitignore b/.gitignore index b3a0cf5..8f8508e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /jekyll-toc-0.8.0.gem /jekyll-toc-0.9.0.gem /jekyll-toc-0.9.1.gem +/jekyll-toc-0.11.0.gem diff --git a/00-disable-simplecov.patch b/00-disable-simplecov.patch index 7659ddf..c870f76 100644 --- a/00-disable-simplecov.patch +++ b/00-disable-simplecov.patch @@ -1,18 +1,20 @@ -From 0642a2876c9810142c5b5f09cdb856fb0e1f2ec6 Mon Sep 17 00:00:00 2001 +From c03704244529e240e5f9badcdd3ea02f6d9b288c Mon Sep 17 00:00:00 2001 From: Fabio Valentini -Date: Wed, 31 Oct 2018 23:12:34 +0100 -Subject: [PATCH] test: disable simplecov in tests +Date: Sun, 24 Mar 2019 16:07:50 +0100 +Subject: [PATCH] test: disable simplecov and minitest/reporters in tests and + fix imports --- - Rakefile | 1 + - test/test_helper.rb | 3 --- - test/test_inject_anchors_filter.rb | 2 +- - test/test_kramdown_list.rb | 2 +- - test/test_option_error.rb | 2 +- - test/test_toc_filter.rb | 2 +- - test/test_toc_only_filter.rb | 2 +- - test/test_various_toc_html.rb | 2 +- - 8 files changed, 7 insertions(+), 9 deletions(-) + Rakefile | 1 + + test/parser/test_inject_anchors_filter.rb | 2 +- + test/parser/test_option_error.rb | 2 +- + test/parser/test_toc_filter.rb | 2 +- + test/parser/test_toc_only_filter.rb | 2 +- + test/parser/test_various_toc_html.rb | 2 +- + test/test_helper.rb | 5 ----- + test/test_jekyll-toc.rb | 2 +- + test/test_kramdown_list.rb | 2 +- + 9 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Rakefile b/Rakefile index d7278cc..9b3234b 100644 @@ -23,91 +25,106 @@ index d7278cc..9b3234b 100644 require "bundler/gem_tasks" task :default => [:test] -diff --git a/test/test_helper.rb b/test/test_helper.rb -index c4069d5..1282753 100644 ---- a/test/test_helper.rb -+++ b/test/test_helper.rb -@@ -1,8 +1,5 @@ - # frozen_string_literal: true - --require 'simplecov' --SimpleCov.start -- - require 'minitest/autorun' - require 'jekyll' - require 'jekyll-toc' -diff --git a/test/test_inject_anchors_filter.rb b/test/test_inject_anchors_filter.rb -index 3c7a95f..8bd2b70 100644 ---- a/test/test_inject_anchors_filter.rb -+++ b/test/test_inject_anchors_filter.rb +diff --git a/test/parser/test_inject_anchors_filter.rb b/test/parser/test_inject_anchors_filter.rb +index c9158e5..b3eb789 100644 +--- a/test/parser/test_inject_anchors_filter.rb ++++ b/test/parser/test_inject_anchors_filter.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'test_helper' -+require_relative 'test_helper' ++require_relative '../test_helper' class TestInjectAnchorsFilter < Minitest::Test include TestHelpers -diff --git a/test/test_kramdown_list.rb b/test/test_kramdown_list.rb -index 60019aa..32fe36c 100644 ---- a/test/test_kramdown_list.rb -+++ b/test/test_kramdown_list.rb -@@ -1,6 +1,6 @@ - # frozen_string_literal: true - --require 'test_helper' -+require_relative 'test_helper' - - class TestKramdownList < Minitest::Test - # NOTE: kramdown automatically injects `id` attribute -diff --git a/test/test_option_error.rb b/test/test_option_error.rb -index c469e29..8432ed4 100644 ---- a/test/test_option_error.rb -+++ b/test/test_option_error.rb +diff --git a/test/parser/test_option_error.rb b/test/parser/test_option_error.rb +index c469e29..ba0313f 100644 +--- a/test/parser/test_option_error.rb ++++ b/test/parser/test_option_error.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'test_helper' -+require_relative 'test_helper' ++require_relative '../test_helper' class TestOptionError < Minitest::Test BASE_HTML = '

h1

' -diff --git a/test/test_toc_filter.rb b/test/test_toc_filter.rb -index 874a9d7..7584abb 100644 ---- a/test/test_toc_filter.rb -+++ b/test/test_toc_filter.rb +diff --git a/test/parser/test_toc_filter.rb b/test/parser/test_toc_filter.rb +index a2ddd59..ec441ab 100644 +--- a/test/parser/test_toc_filter.rb ++++ b/test/parser/test_toc_filter.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'test_helper' -+require_relative 'test_helper' ++require_relative '../test_helper' class TestTOCFilter < Minitest::Test include TestHelpers -diff --git a/test/test_toc_only_filter.rb b/test/test_toc_only_filter.rb -index cc0b9eb..a8ae4cd 100644 ---- a/test/test_toc_only_filter.rb -+++ b/test/test_toc_only_filter.rb +diff --git a/test/parser/test_toc_only_filter.rb b/test/parser/test_toc_only_filter.rb +index cc0b9eb..234d691 100644 +--- a/test/parser/test_toc_only_filter.rb ++++ b/test/parser/test_toc_only_filter.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'test_helper' -+require_relative 'test_helper' ++require_relative '../test_helper' class TestTOCOnlyFilter < Minitest::Test include TestHelpers -diff --git a/test/test_various_toc_html.rb b/test/test_various_toc_html.rb -index 6526330..f23a845 100644 ---- a/test/test_various_toc_html.rb -+++ b/test/test_various_toc_html.rb +diff --git a/test/parser/test_various_toc_html.rb b/test/parser/test_various_toc_html.rb +index 87bb1e9..63c88da 100644 +--- a/test/parser/test_various_toc_html.rb ++++ b/test/parser/test_various_toc_html.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'test_helper' -+require_relative 'test_helper' ++require_relative '../test_helper' class TestVariousTocHtml < Minitest::Test # ref. https://github.com/toshimaru/jekyll-toc/issues/45 +diff --git a/test/test_helper.rb b/test/test_helper.rb +index c86eafe..1a86fdd 100644 +--- a/test/test_helper.rb ++++ b/test/test_helper.rb +@@ -1,11 +1,6 @@ + # frozen_string_literal: true + +-require 'simplecov' +-SimpleCov.start +- + require 'minitest/autorun' +-require "minitest/reporters" +-Minitest::Reporters.use! + + require 'jekyll' + require 'jekyll-toc' +diff --git a/test/test_jekyll-toc.rb b/test/test_jekyll-toc.rb +index f32ea23..4562d42 100644 +--- a/test/test_jekyll-toc.rb ++++ b/test/test_jekyll-toc.rb +@@ -1,6 +1,6 @@ + # frozen_string_literal: true + +-require 'test_helper' ++require_relative 'test_helper' + + class TestTableOfContentsFilter < Minitest::Test + include Jekyll::TableOfContentsFilter +diff --git a/test/test_kramdown_list.rb b/test/test_kramdown_list.rb +index 60019aa..32fe36c 100644 +--- a/test/test_kramdown_list.rb ++++ b/test/test_kramdown_list.rb +@@ -1,6 +1,6 @@ + # frozen_string_literal: true + +-require 'test_helper' ++require_relative 'test_helper' + + class TestKramdownList < Minitest::Test + # NOTE: kramdown automatically injects `id` attribute -- -2.19.2 +2.20.1 diff --git a/rubygem-jekyll-toc.spec b/rubygem-jekyll-toc.spec index 8095d42..2216f8c 100644 --- a/rubygem-jekyll-toc.spec +++ b/rubygem-jekyll-toc.spec @@ -1,8 +1,8 @@ %global gem_name jekyll-toc Name: rubygem-%{gem_name} -Version: 0.9.1 -Release: 2%{?dist} +Version: 0.11.0 +Release: 1%{?dist} Summary: Jekyll Table of Contents plugin License: MIT @@ -91,6 +91,9 @@ popd %changelog +* Sun Mar 24 2019 Fabio Valentini - 0.11.0-1 +- Update to version 0.11.0. + * Sat Feb 02 2019 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index ca6761c..8aa5ee2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jekyll-toc-0.9.1.gem) = 4a70063a3dbf9218b599f767c6231aa118b895f2cf0f926174157824d7930f4946b2d77a2cf8900e5a4aa4bf0b7b12d8db6f7eb3c879193981abb48c7a8e1641 +SHA512 (jekyll-toc-0.11.0.gem) = fd139d8fc67ecbd07142d896a497193bf07ac2535665466bffbfc01623dbbf4c1a96e2b9a65db64a0efdd0a396f34eb71ce0dfead60f789fbb896e34f7800249