summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2021-01-08 03:11:35 +0300
committerGitHub <noreply@github.com>2021-01-08 03:11:35 +0300
commit3c30514d86bee6ffbffe84952fe605041f6af76c (patch)
tree944e2708a5fd4544d3895d4c80d25767e5fb6eac
parenta05dba8cdeeb11b6b921a3f5a98328d64d749888 (diff)
use pygments.rb 2.0.0 in CI (#387)
-rw-r--r--.github/workflows/ci.yml3
-rw-r--r--CHANGELOG.adoc1
-rw-r--r--asciidoctor-epub3.gemspec2
-rw-r--r--spec/highlight_spec.rb2
4 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f9d8db7..a967f19 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -53,7 +53,4 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
- env:
- # pygments.rb often times out on MacOS nodes, leading to CI failures
- MENTOS_TIMEOUT: 60
run: bundle exec rake spec
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index afe6843..c145d30 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -9,6 +9,7 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[
* update Font Awesome Solid to 5.15.1
* use CSS for image size scaling instead of `width` attribute. #382
+* use pygments.rb 2.0.0 in CI
== 1.5.0.alpha.19 (2020-10-21) - @slonopotamus
diff --git a/asciidoctor-epub3.gemspec b/asciidoctor-epub3.gemspec
index 3cfaaa5..2eceade 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', '~> 1.2.0'
+ s.add_development_dependency 'pygments.rb', '~> 2.0.0'
s.add_development_dependency 'rake', '~> 13.0.0'
s.add_development_dependency 'rouge', '~> 3.0'
s.add_development_dependency 'rspec', '~> 3.10.0'
diff --git a/spec/highlight_spec.rb b/spec/highlight_spec.rb
index 578a607..89508c4 100644
--- a/spec/highlight_spec.rb
+++ b/spec/highlight_spec.rb
@@ -17,8 +17,6 @@ describe 'Asciidoctor::Epub3::Converter - Highlight' do
end
it 'highlights code listings with pygments.rb' do
- skip 'pygments.rb hangs on JRuby for Windows: https://github.com/asciidoctor/asciidoctor-epub3/issues/253' if RUBY_ENGINE == 'jruby' && Gem.win_platform?
-
book, = to_epub fixture_file('source_highlight.adoc'), attributes: { 'source-highlighter' => 'pygments' }
article = book.item_by_href 'source_highlight.xhtml'
expect(article).not_to be_nil