From aa4bc3c6c62c01445322234e7f11b2922b538d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Garc=C3=ADa?= Date: Mon, 4 Aug 2025 20:40:55 +0200 Subject: [PATCH 1/2] Enable gpg signing --- build.gradle | 1 + gradle.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8d7ead8..0738be8 100644 --- a/build.gradle +++ b/build.gradle @@ -134,6 +134,7 @@ publishing { signing { if (!version.endsWith('SNAPSHOT')) { + useGpgCmd() sign publishing.publications.mavenJava } } diff --git a/gradle.properties b/gradle.properties index d136678..4fb0ceb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ # Matching Ink v1.2.0 -version=1.2.1 +version=1.2.2 From f248aa99adc54ef5275178ff3ad38a64a3478e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Garc=C3=ADa?= Date: Wed, 27 Aug 2025 20:52:52 +0200 Subject: [PATCH 2/2] Additional check in test. --- .../com/bladecoder/ink/runtime/test/RuntimeSpecTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/bladecoder/ink/runtime/test/RuntimeSpecTest.java b/src/test/java/com/bladecoder/ink/runtime/test/RuntimeSpecTest.java index 5d0be2c..d81d1d4 100644 --- a/src/test/java/com/bladecoder/ink/runtime/test/RuntimeSpecTest.java +++ b/src/test/java/com/bladecoder/ink/runtime/test/RuntimeSpecTest.java @@ -249,7 +249,7 @@ public void externalFunctionFallback() throws Exception { Assert.assertEquals("The value is 7.0.", text.get(0)); } - private static int variableObserversExceptedValue = 5; + private static int variableObserversExpectedValue = 5; /** * Test variable observers. @@ -267,9 +267,9 @@ public void variableObservers() throws Exception { public void call(String variableName, Object newValue) { if (!"x".equals(variableName)) Assert.fail(); try { - if ((int) newValue != variableObserversExceptedValue) Assert.fail(); + if ((int) newValue != variableObserversExpectedValue) Assert.fail(); - variableObserversExceptedValue = 10; + variableObserversExpectedValue = 10; } catch (Exception e) { Assert.fail(); } @@ -279,6 +279,8 @@ public void call(String variableName, Object newValue) { TestUtils.nextAll(story, text); story.chooseChoiceIndex(0); TestUtils.nextAll(story, text); + + Assert.assertEquals(10, variableObserversExpectedValue); } /**