Skip to content

Commit

Permalink
Upgrade asciidoctor 2.0.21 (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpanzer authored Mar 4, 2024
1 parent cf10c14 commit 63a6f36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
Improvement::

* Add Reader.getSource() and Reader.getSourceLines() (#1262)
* Upgrade to asciidoctor 2.0.21 (#1267)
* Upgrade to JRuby 9.4.6.0 (#1267)
* Upgrade to asciidoctorj-pdf 2.3.13 (#1267)
* Upgrade to asciidoctorj-diagram 2.3.0 (#1267)
* Upgrade to asciidoctorj-diagram-plantuml 1.2024.3 (#1267)
* Upgrade to asciidoctorj-reveal.js 5.1.0 (#1267)

== 2.5.10 (2023-12-20)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,11 @@
import java.util.List;

import static java.util.stream.Collectors.toList;
import static org.asciidoctor.OptionsBuilder.options;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;

public class WhenBackendIsRevealJs {

private Asciidoctor asciidoctor;

@Before
public void initAsciidoctor() {
this.asciidoctor = Asciidoctor.Factory.create();
}

@Test
public void should_create_simple_slides() throws IOException {
String filename = "sample";
Expand All @@ -38,7 +27,7 @@ public void should_create_simple_slides() throws IOException {
AsciidoctorInvoker.main(new String[]{
"-b", "revealjs",
"-r", "asciidoctor-diagram",
"-a", "revealjsdir=https://cdn.jsdelivr.net/npm/reveal.js@3.9.2",
"-a", "revealjsdir=https://cdn.jsdelivr.net/npm/reveal.js@4.1.2",
inputFile.getAbsolutePath()
});

Expand All @@ -51,9 +40,8 @@ public void should_create_simple_slides() throws IOException {
.map(element -> element.attr("href"))
.collect(toList());
assertThat(stylesheets,
hasItems(
"https://cdn.jsdelivr.net/npm/[email protected]/css/reveal.css",
"https://cdn.jsdelivr.net/npm/[email protected]/css/theme/black.css"));
hasItems("https://cdn.jsdelivr.net/npm/[email protected]/dist/reveal.css",
"https://cdn.jsdelivr.net/npm/[email protected]/dist/theme/black.css"));

Element diagramSlide = doc.selectFirst("#diagram");
assertThat(diagramSlide, notNullValue());
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ ext {
// jar versions
arquillianVersion = '1.6.0.Final'
arquillianSpockVersion = '1.0.0.CR1'
asciidoctorjPdfVersion = '2.3.10'
asciidoctorjPdfVersion = '2.3.13'
asciidoctorjEpub3Version = '1.5.1'
asciidoctorjDiagramVersion = '2.2.7' // 2.2.8+ requires Java 11
asciidoctorjDiagramVersion = '2.3.0'
asciidoctorjDiagramDitaaMiniVersion = '1.0.3'
asciidoctorjDiagramPlantumlVersion = '1.2023.5'
asciidoctorjRevealJsVersion = '4.1.0'
asciidoctorjDiagramPlantumlVersion = '1.2024.3'
asciidoctorjRevealJsVersion = '5.1.0'
commonsioVersion = '2.11.0'
guavaVersion = '18.0'
hamcrestVersion = '1.3'
jcommanderVersion = '1.82'
jrubyVersion = '9.4.5.0'
jrubyVersion = '9.4.6.0'
jsoupVersion = '1.14.3'
junitVersion = '4.13.2'
assertjVersion = '3.19.0'
Expand All @@ -79,7 +79,7 @@ ext {
pdfboxVersion = '1.8.16'

// gem versions
asciidoctorGemVersion = project.hasProperty('asciidoctorGemVersion') ? project.asciidoctorGemVersion : '2.0.20'
asciidoctorGemVersion = project.hasProperty('asciidoctorGemVersion') ? project.asciidoctorGemVersion : '2.0.21'
asciimathGemVersion = '2.0.4'
coderayGemVersion = '1.1.3'
rougeGemVersion = '3.30.0'
Expand Down

0 comments on commit 63a6f36

Please sign in to comment.