Skip to content

Commit

Permalink
Merge pull request #9 from asciidoctor/asciidoctor-diagram-2.0.4
Browse files Browse the repository at this point in the history
Release 2.0.4
  • Loading branch information
robertpanzer authored Oct 2, 2020
2 parents 62283bd + 0c044a3 commit b38c834
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion asciidoctorj-diagram/gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2.0.3
version=2.0.4

0 comments on commit b38c834

Please sign in to comment.