From 0c044a3b2c4dfc9647b3e30f4697909e548dbdbf Mon Sep 17 00:00:00 2001 From: Robert Panzer Date: Sun, 27 Sep 2020 15:02:12 +0200 Subject: [PATCH] Release 2.0.4 --- README.adoc | 2 +- asciidoctorj-diagram/gradle.properties | 2 +- .../org.asciidoctor/WhenDocumentContainsDitaaDiagram.java | 8 +++++--- gradle.properties | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.adoc b/README.adoc index ef001e0..54510eb 100644 --- a/README.adoc +++ b/README.adoc @@ -22,7 +22,7 @@ ifndef::awestruct[:uri-docs: http://asciidoctor.org/docs] :uri-repo: https://github.com/asciidoctor/asciidoctorj-diagram :uri-issues: {uri-repo}/issues :uri-discuss: http://discuss.asciidoctor.org -:artifact-version: 1.5.0-alpha.13 +:artifact-version: 2.0.4 :uri-maven-artifact-query: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.asciidoctor%22%20AND%20a%3A%22asciidoctorj%22%20AND%20v%3A%22{artifact-version}%22 :uri-maven-artifact-detail: http://search.maven.org/#artifactdetails%7Corg.asciidoctor%7Casciidoctorj%7C{artifact-version}%7Cjar :uri-maven-artifact-file: http://search.maven.org/remotecontent?filepath=org/asciidoctor/asciidoctorj/{artifact-version}/asciidoctorj-{artifact-version} diff --git a/asciidoctorj-diagram/gradle.properties b/asciidoctorj-diagram/gradle.properties index ecbc7c0..90ed7d6 100644 --- a/asciidoctorj-diagram/gradle.properties +++ b/asciidoctorj-diagram/gradle.properties @@ -1,4 +1,4 @@ properName=AsciidoctorJ Diagram description=AsciidoctorJ Diagram bundles the Asciidoctor Diagram RubyGem (asciidoctor-diagram) so it can be loaded into the JVM using JRuby. -version=2.0.3 +version=2.0.4 gem_name=asciidoctor-diagram diff --git a/asciidoctorj-diagram/src/test/java/org.asciidoctor/WhenDocumentContainsDitaaDiagram.java b/asciidoctorj-diagram/src/test/java/org.asciidoctor/WhenDocumentContainsDitaaDiagram.java index 0ffad1c..1b8d5a3 100644 --- a/asciidoctorj-diagram/src/test/java/org.asciidoctor/WhenDocumentContainsDitaaDiagram.java +++ b/asciidoctorj-diagram/src/test/java/org.asciidoctor/WhenDocumentContainsDitaaDiagram.java @@ -16,13 +16,15 @@ public class WhenDocumentContainsDitaaDiagram { public void png_should_be_rendered_for_diagram() { File inputFile = new File("build/resources/test/sample.adoc"); - File outputFile1 = new File(inputFile.getParentFile(), "asciidoctor-diagram-process.png"); - File outputFile2 = new File(inputFile.getParentFile(), ".asciidoctor/diagram/asciidoctor-diagram-process.png.cache"); + File outputDir = new File("build"); + File outputFile1 = new File(outputDir, "asciidoctor-diagram-process.png"); + File outputFile2 = new File(outputDir, ".asciidoctor/diagram/asciidoctor-diagram-process.png.cache"); asciidoctor.requireLibrary("asciidoctor-diagram"); asciidoctor.convertFile(inputFile, options() .backend("html5") - .toDir(new File("build")) + .toDir(outputDir) + .safe(SafeMode.UNSAFE) .get()); assertThat(outputFile1.exists(), is(true)); assertThat(outputFile2.exists(), is(true)); diff --git a/gradle.properties b/gradle.properties index a80dc36..6d986d8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=2.0.3 +version=2.0.4