From 19153c6ce15c416b1cf44dbeeb868cfcd4c9ae65 Mon Sep 17 00:00:00 2001 From: fvarrui <4354486+fvarrui@users.noreply.github.com> Date: Thu, 1 Jun 2023 21:44:52 +0100 Subject: [PATCH] refactoring --- README.md | 2 +- output/bad-doc.txt | 5 ----- output/bad-gift.txt | 6 ------ output/bad-log.txt | 11 ----------- output/bad-moodle.xml | 11 ----------- output/bad.yaml | 5 ----- .../io/github/teuton/jasker/utils/URLUtils.java | 16 ---------------- .../io/github/teuton/{ => jasker}/AskerTest.java | 4 +--- 8 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 output/bad-doc.txt delete mode 100644 output/bad-gift.txt delete mode 100644 output/bad-log.txt delete mode 100644 output/bad-moodle.xml delete mode 100644 output/bad.yaml delete mode 100644 src/main/java/io/github/teuton/jasker/utils/URLUtils.java rename src/test/java/io/github/teuton/{ => jasker}/AskerTest.java (97%) diff --git a/README.md b/README.md index 3328a25..eacc773 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # jasker -[![Maven Central](http://img.shields.io/maven-central/v/io.github.teuton-software/jteuton)](https://search.maven.org/artifact/io.github.teuton-software/jteuton) +[![Maven Central](http://img.shields.io/maven-central/v/io.github.teuton-software/jasker)](https://search.maven.org/artifact/io.github.teuton-software/jasker) [![GPL-3.0](https://img.shields.io/badge/license-GPL--3.0-%250778B9.svg)](https://www.gnu.org/licenses/gpl-3.0.html) All-in-one Java wrapper for [asker](https://rubygems.org/gems/asker-tool) Ruby gem (using JRuby). diff --git a/output/bad-doc.txt b/output/bad-doc.txt deleted file mode 100644 index 8339be3..0000000 --- a/output/bad-doc.txt +++ /dev/null @@ -1,5 +0,0 @@ -================================================== -Created by : asker (version 2.5.9) -File : bad-doc.txt -Time : 2023-06-01 20:53:59 +0100 -================================================== diff --git a/output/bad-gift.txt b/output/bad-gift.txt deleted file mode 100644 index 8f446c0..0000000 --- a/output/bad-gift.txt +++ /dev/null @@ -1,6 +0,0 @@ -// ================================================== -// Created by : asker (version 2.5.9) -// File : bad-gift.txt -// Time : 2023-06-01 20:53:59 +0100 -// ================================================== - diff --git a/output/bad-log.txt b/output/bad-log.txt deleted file mode 100644 index def127e..0000000 --- a/output/bad-log.txt +++ /dev/null @@ -1,11 +0,0 @@ -================================================== -Created by : asker (version 2.5.9) -File : bad-log.txt -Time : 2023-06-01 20:53:59 +0100 -================================================== - -[INFO] Project open - ├── inputdirs = C:\Users\fvarrui\GitHub\jasker\src\test\resources\demo2 - └── process_file = bad.haml - -[INFO] Showing concept data (default) diff --git a/output/bad-moodle.xml b/output/bad-moodle.xml deleted file mode 100644 index 374b7a7..0000000 --- a/output/bad-moodle.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/output/bad.yaml b/output/bad.yaml deleted file mode 100644 index 59ee884..0000000 --- a/output/bad.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -:params: - :lang: - :projectname: bad -:questions: [] diff --git a/src/main/java/io/github/teuton/jasker/utils/URLUtils.java b/src/main/java/io/github/teuton/jasker/utils/URLUtils.java deleted file mode 100644 index ad893de..0000000 --- a/src/main/java/io/github/teuton/jasker/utils/URLUtils.java +++ /dev/null @@ -1,16 +0,0 @@ -package io.github.teuton.jasker.utils; - -import java.net.MalformedURLException; -import java.net.URL; - -public class URLUtils { - - public static URL newUrl(String url) { - try { - return new URL(url); - } catch (MalformedURLException e) { - return null; - } - } - -} diff --git a/src/test/java/io/github/teuton/AskerTest.java b/src/test/java/io/github/teuton/jasker/AskerTest.java similarity index 97% rename from src/test/java/io/github/teuton/AskerTest.java rename to src/test/java/io/github/teuton/jasker/AskerTest.java index b9dbadb..72665cb 100644 --- a/src/test/java/io/github/teuton/AskerTest.java +++ b/src/test/java/io/github/teuton/jasker/AskerTest.java @@ -1,4 +1,4 @@ -package io.github.teuton; +package io.github.teuton.jasker; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @@ -11,8 +11,6 @@ import org.apache.commons.io.FileUtils; import org.junit.Test; -import io.github.teuton.jasker.Asker; - public class AskerTest { private static final File RESOURCES = new File("src/test/resources").getAbsoluteFile();