Skip to content

Commit

Permalink
Maven Release 1.2-3.4 Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyosource committed Apr 15, 2020
1 parent 2aa3861 commit e303e0f
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[![Files 271](https://img.shields.io/badge/Files-271-inactive)](https://github.com/yoyosource/YAPI)
[![Methods 1499](https://img.shields.io/badge/Methods-1499-inactive)](https://github.com/yoyosource/YAPI)
[![Code Lines 28826](https://img.shields.io/badge/Code%20Lines-28826-inactive)](https://github.com/yoyosource/YAPI)
[![Code Lines 28838](https://img.shields.io/badge/Code%20Lines-28838-inactive)](https://github.com/yoyosource/YAPI)

[![Java Version V12.0.1](https://img.shields.io/badge/Java%20Version-12.0.1-blue.svg)](https://github.com/yoyosource/YAPI/releases/tag/v1.0)
[![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202-blue)](http://www.apache.org/licenses/LICENSE-2.0)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ publishing {
maven(MavenPublication) {
groupId = 'yoyosource'
artifactId = 'YAPI'
version = '1.2-3.3'
version = '1.2-3.4'

from components.java
}
Expand Down
Binary file added releases/yoyosource/YAPI/1.2-3.4/YAPI-1.2-3.4.jar
Binary file not shown.
1 change: 1 addition & 0 deletions releases/yoyosource/YAPI/1.2-3.4/YAPI-1.2-3.4.jar.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7c122af05a5f34abc7e69d15c5eb68fb
1 change: 1 addition & 0 deletions releases/yoyosource/YAPI/1.2-3.4/YAPI-1.2-3.4.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e3ce7c6d1ae5c7a13073ebe425a23ffd87e46304
22 changes: 22 additions & 0 deletions releases/yoyosource/YAPI/1.2-3.4/YAPI-1.2-3.4.pom
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>yoyosource</groupId>
<artifactId>YAPI</artifactId>
<version>1.2-3.4</version>
<dependencies>
<dependency>
<groupId>ch.obermuhlner</groupId>
<artifactId>big-math</artifactId>
<version>2.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>1.18</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
1 change: 1 addition & 0 deletions releases/yoyosource/YAPI/1.2-3.4/YAPI-1.2-3.4.pom.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
58f96759fdecd0415aacd5f1dc83163f
1 change: 1 addition & 0 deletions releases/yoyosource/YAPI/1.2-3.4/YAPI-1.2-3.4.pom.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5b2febef6a0ec85007fce1323e1635f3481baea6
5 changes: 3 additions & 2 deletions releases/yoyosource/YAPI/maven-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>yoyosource</groupId>
<artifactId>YAPI</artifactId>
<versioning>
<release>1.2-3.3</release>
<release>1.2-3.4</release>
<versions>
<version>1.2</version>
<version>1.2-1</version>
Expand All @@ -12,7 +12,8 @@
<version>1.2-3.1</version>
<version>1.2-3.2</version>
<version>1.2-3.3</version>
<version>1.2-3.4</version>
</versions>
<lastUpdated>20200412193351</lastUpdated>
<lastUpdated>20200415214917</lastUpdated>
</versioning>
</metadata>
2 changes: 1 addition & 1 deletion releases/yoyosource/YAPI/maven-metadata.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b05226fba2e43210cc724bcad33d0806
24f9b9fdfa59470e6972d03e228afce1
2 changes: 1 addition & 1 deletion releases/yoyosource/YAPI/maven-metadata.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b48b0ab968f9371490d85d0001e555271c5aca92
ce1938c2bb8488adc5512cdb1dd988618f41d9d7
10 changes: 5 additions & 5 deletions src/main/java/main/InteractiveMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

package main;

import yapi.encryption.proveofwork.ProveOfWork;
import yapi.file.FileUtils;
import yapi.manager.yapion.YAPIONParser;
import yapi.manager.yapion.value.YAPIONObject;
import yapi.file.FileUtils;
import yapi.string.StringSplitting;
import yapi.ui.console.Console;

import java.util.*;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class InteractiveMain {
Expand Down Expand Up @@ -49,8 +49,8 @@ private static void send(StringBuilder s) {

public static void main(String[] args) {
if (true) {
//Console.main(args);
ProveOfWork.main(args);
Console.main(args);
//ProveOfWork.main(args);
return;
}

Expand Down
56 changes: 56 additions & 0 deletions src/main/java/yapi/YAPIUtils.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package yapi;

import yapi.ui.console.Console;
import yapi.ui.console.ConsoleMessageBuilder;

public class YAPIUtils {

public static String link() {
return "https://github.com/yoyosource/YAPI";
}

public static String link_Refined() {
return "https://github.com/yoyosource/YAPI";
}

public static void link_Send() {
new Console().send(ConsoleMessageBuilder.build(link_Refined()));
}

public static String licence() {
return "";
}

public static String license_Refined() {
return "";
}

public static String license_OneLine() {
return "";
}

public static String license_OneLine_Refined() {
return "";
}

public static void license_Send() {
new Console().send(ConsoleMessageBuilder.build(license_Refined()));
}

public static String logo() {
return "";
}

public static String logo_Refined() {
return "";
}

public static void logo_Send() {
new Console().send(ConsoleMessageBuilder.build(logo_Refined()));
}

public static void logo_license_Send() {
new Console().send(ConsoleMessageBuilder.build(logo_Refined() + "\n\n" + license_OneLine_Refined()));
}

}
5 changes: 4 additions & 1 deletion src/main/java/yapi/ui/console/Console.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public class Console {
public static void main(String[] args) {
Console console = new Console();

console.send(ConsoleMessageBuilder.build("<RED>Hello World"));
console.send(ConsoleMessageBuilder.build("<RED>\\\\\\\\ <RED:BRIGHT,BOLD>\\\\¸/<WHITE> /¯\\\\ |¯) ˙|˙</BOLD> <RED>//"));
console.send(ConsoleMessageBuilder.build("<RED>// <RED:BRIGHT,BOLD> |<WHITE> |¯| |¯ ¸|¸</BOLD> <RED>\\\\\\\\"));
console.send(ConsoleMessageBuilder.build(""));
console.send(ConsoleMessageBuilder.build("<WHITE:BRIGHT>(C)<WHITE> 2019,2020 <RED:BRIGHT>y<WHITE>oyosource Apache-2.0"));
}

private ConsoleAlignment alignment = ConsoleAlignment.LEFT;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/yapi/ui/console/ConsoleBuildAttribute.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ enum ConsoleBuildAttribute {
ALIGNMENT_CENTER("center", new TaskAlignment(ConsoleAlignment.CENTER), new TaskAlignment(ConsoleAlignment.LEFT)),
ALIGNMENT_RIGHT("right", new TaskAlignment(ConsoleAlignment.RIGHT), new TaskAlignment(ConsoleAlignment.LEFT)),

ATTRIBUTE_INTENSITY_BOLD("intensity:bold", new TaskAttribute(Ansi.Attribute.INTENSITY_BOLD), new TaskAttribute(Ansi.Attribute.INTENSITY_BOLD_OFF)),
ATTRIBUTE_INTENSITY_FAINT("intensity:faint", new TaskAttribute(Ansi.Attribute.INTENSITY_FAINT), new TaskAttribute(Ansi.Attribute.INTENSITY_BOLD_OFF)),
ATTRIBUTE_INTENSITY_BOLD("bold", new TaskAttribute(Ansi.Attribute.INTENSITY_BOLD), new TaskAttribute(Ansi.Attribute.INTENSITY_BOLD_OFF)),
ATTRIBUTE_INTENSITY_FAINT("faint", new TaskAttribute(Ansi.Attribute.INTENSITY_FAINT), new TaskAttribute(Ansi.Attribute.INTENSITY_BOLD_OFF)),
ATTRIBUTE_ITALIC("italic", new TaskAttribute(Ansi.Attribute.ITALIC), new TaskAttribute(Ansi.Attribute.ITALIC_OFF)),
ATTRIBUTE_UNDERLINE("underline", new TaskAttribute(Ansi.Attribute.UNDERLINE), new TaskAttribute(Ansi.Attribute.UNDERLINE_OFF)),
ATTRIBUTE_UNDERLINE_DOUBLE("underline:double", new TaskAttribute(Ansi.Attribute.UNDERLINE_DOUBLE), new TaskAttribute(Ansi.Attribute.UNDERLINE_OFF)),
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/yapi/ui/console/ConsoleMessageBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ public static ConsoleMessage build(String s) {
st.append(c);
String attribute = st.toString();
st = new StringBuilder();
if (attribute.length() == 1) {
tasks.add(new TaskText(attribute));
continue;
}
tasks.addAll(buildAttributes(attribute));
} else {
if (c == '\n') {
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/yapi/ui/yui/YUI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package yapi.ui.yui;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class YUI {

public static void main(String[] args) {
YUI yui = new YUI(new File("/Users/jojo/IdeaProjects/YAPI/src/main/resources/Test.yui"));
System.out.println(yui.configs);
}

private List<YUIConfig> configs = new ArrayList<>();

public YUI(File config) {
configs.add(new YUIConfig(config));
}

}
32 changes: 32 additions & 0 deletions src/main/java/yapi/ui/yui/YUIConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package yapi.ui.yui;

import yapi.file.FileUtils;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class YUIConfig {

private String name;
private List<String> lines = new ArrayList<>();

YUIConfig(File config) {
name = config.getName();
String[] strings = FileUtils.fileContentAsString(config);
for (String s : strings) {
String t = s.trim();
if (!t.isEmpty()) {
lines.add(t);
}
}
}

@Override
public String toString() {
return "YUIConfig{" +
"name='" + name + "'" +
", lines=" + lines +
'}';
}
}

0 comments on commit e303e0f

Please sign in to comment.