From f06d2caa534479d1bf73c77d061dafa13f12949e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Apr 2023 11:05:11 +0300 Subject: [PATCH] Update pygments.rb requirement from ~> 2.3.0 to ~> 2.4.0 (#440) * Update pygments.rb requirement from ~> 2.3.0 to ~> 2.4.0 Updates the requirements on [pygments.rb](https://github.com/pygments/pygments.rb) to permit the latest version. - [Release notes](https://github.com/pygments/pygments.rb/releases) - [Changelog](https://github.com/pygments/pygments.rb/blob/master/CHANGELOG.adoc) - [Commits](https://github.com/pygments/pygments.rb/compare/v2.3.0...v2.4.0) --- updated-dependencies: - dependency-name: pygments.rb dependency-type: direct:development ... Signed-off-by: dependabot[bot] * Fix tests --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marat Radchenko --- asciidoctor-epub3.gemspec | 2 +- spec/highlight_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asciidoctor-epub3.gemspec b/asciidoctor-epub3.gemspec index 59a5e6a..5417cfc 100644 --- a/asciidoctor-epub3.gemspec +++ b/asciidoctor-epub3.gemspec @@ -33,7 +33,7 @@ An extension for Asciidoctor that converts AsciiDoc documents to EPUB3 and KF8/M s.add_development_dependency 'asciidoctor-diagram', '>= 1.5.0', '< 3.0.0' s.add_development_dependency 'asciimath', '~> 2.0' s.add_development_dependency 'coderay', '~> 1.1.0' - s.add_development_dependency 'pygments.rb', '~> 2.3.0' + s.add_development_dependency 'pygments.rb', '~> 2.4.0' s.add_development_dependency 'rake', '~> 13.0.0' s.add_development_dependency 'rouge', '~> 3.0' s.add_development_dependency 'rspec', '~> 3.12.0' diff --git a/spec/highlight_spec.rb b/spec/highlight_spec.rb index 89508c4..2282fde 100644 --- a/spec/highlight_spec.rb +++ b/spec/highlight_spec.rb @@ -21,7 +21,7 @@ article = book.item_by_href 'source_highlight.xhtml' expect(article).not_to be_nil if Asciidoctor::Document.supports_syntax_highlighter? - expect(article.content).to include 'class Foo' + expect(article.content).to include 'Foo' expect(article.content).to include '' expect(book.item_by_href('pygments-bw.css')).not_to be_nil else