Compare commits
17 Commits
be4ccf088f
...
1.2
| Author | SHA1 | Date | |
|---|---|---|---|
| b646a06ec6 | |||
| 35a92e7661 | |||
| 8a5ad8a470 | |||
| f0cbc564f8 | |||
| 97d4325c02 | |||
| 4e57651370 | |||
| de3740741f | |||
| 452acf0cba | |||
| e97b04805d | |||
| 3627795fb9 | |||
| 42746bf347 | |||
| 7ca242c863 | |||
| 60dc3d6708 | |||
| 2f1a658235 | |||
| 450ff25c46 | |||
| e63352e7a8 | |||
| 88c6e93715 |
@@ -16,9 +16,9 @@ jobs:
|
||||
- name: Install java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
|
||||
distribution: "temurin"
|
||||
java-version: "21"
|
||||
|
||||
# Install Leiningen
|
||||
- name: Install Leiningen
|
||||
run: |
|
||||
@@ -29,15 +29,15 @@ jobs:
|
||||
# Install dependencies
|
||||
- name: Install dependencies
|
||||
run: lein deps
|
||||
|
||||
|
||||
# Optional: cache dependencies
|
||||
- name: Cache dependencias
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-m2-
|
||||
#- name: Cache dependencias
|
||||
# uses: actions/cache@v4
|
||||
# with:
|
||||
# path: ~/.m2/repository
|
||||
# key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-m2-
|
||||
|
||||
# Get leiningen's version
|
||||
- name: Get leiningen version
|
||||
@@ -46,14 +46,15 @@ jobs:
|
||||
# Test the code
|
||||
- name: Run tests
|
||||
env:
|
||||
TFT_API: ${{ secrets.DEV_API }}
|
||||
TFT_API: ${{ secrets.DEV_API }}
|
||||
run: lein test
|
||||
|
||||
# Send jar to repository
|
||||
- name: Deploy on Gitea Maven
|
||||
if: github.ref == 'refs/heads/main'
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
GITEA_USER: ${{ secrets.DEPLOY_USER }}
|
||||
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
||||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
||||
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
||||
run: |
|
||||
lein deploy gitea
|
||||
lein deploy gitea
|
||||
|
||||
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -15,4 +15,6 @@ pom.xml.asc
|
||||
.lsp
|
||||
.calva
|
||||
*.svg
|
||||
/logs
|
||||
/logs/*
|
||||
log.txt
|
||||
|
||||
|
||||
5
.idea/.gitignore
generated
vendored
5
.idea/.gitignore
generated
vendored
@@ -1,5 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Environment-dependent path to Maven home directory
|
||||
/mavenHomeManager.xml
|
||||
6
.idea/ClojureProjectResolveSettings.xml
generated
6
.idea/ClojureProjectResolveSettings.xml
generated
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ClojureProjectResolveSettings">
|
||||
<currentScheme>IDE</currentScheme>
|
||||
</component>
|
||||
</project>
|
||||
18
.idea/compiler.xml
generated
18
.idea/compiler.xml
generated
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<wildcardResourcePatterns>
|
||||
<entry name="!dev-resources:*" />
|
||||
<entry name="!resources:*" />
|
||||
<entry name="!?*.java" />
|
||||
<entry name="!?*.form" />
|
||||
<entry name="!?*.class" />
|
||||
<entry name="!?*.groovy" />
|
||||
<entry name="!?*.scala" />
|
||||
<entry name="!?*.flex" />
|
||||
<entry name="!?*.kt" />
|
||||
<entry name="!?*.clj" />
|
||||
<entry name="!?*.aj" />
|
||||
</wildcardResourcePatterns>
|
||||
</component>
|
||||
</project>
|
||||
7
.idea/dictionaries/project.xml
generated
7
.idea/dictionaries/project.xml
generated
@@ -1,7 +0,0 @@
|
||||
<component name="ProjectDictionaryState">
|
||||
<dictionary name="project">
|
||||
<words>
|
||||
<w>puuid</w>
|
||||
</words>
|
||||
</dictionary>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: buddy/buddy-core:1.12.0-430">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/buddy/buddy-core/1.12.0-430/buddy-core-1.12.0-430.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__cheshire_6_0_0.xml
generated
9
.idea/libraries/Leiningen__cheshire_6_0_0.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: cheshire:6.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/cheshire/cheshire/6.0.0/cheshire-6.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__cli_matic_0_5_4.xml
generated
9
.idea/libraries/Leiningen__cli_matic_0_5_4.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: cli-matic:0.5.4">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/cli-matic/cli-matic/0.5.4/cli-matic-0.5.4.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__clj_http_2_0_0.xml
generated
9
.idea/libraries/Leiningen__clj_http_2_0_0.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: clj-http:2.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/clj-http/clj-http/2.0.0/clj-http-2.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__clj_tuple_0_2_2.xml
generated
9
.idea/libraries/Leiningen__clj_tuple_0_2_2.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: clj-tuple:0.2.2">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/clj-tuple/clj-tuple/0.2.2/clj-tuple-0.2.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: com.fasterxml.jackson.core/jackson-core:2.18.3">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/core/jackson-core/2.18.3/jackson-core-2.18.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: com.fasterxml.jackson.dataformat/jackson-dataformat-cbor:2.18.3">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.18.3/jackson-dataformat-cbor-2.18.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: com.fasterxml.jackson.dataformat/jackson-dataformat-smile:2.18.3">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.18.3/jackson-dataformat-smile-2.18.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: commons-codec:1.10">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/commons-codec/commons-codec/1.10/commons-codec-1.10.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__commons_io_2_4.xml
generated
9
.idea/libraries/Leiningen__commons_io_2_4.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: commons-io:2.4">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/commons-io/commons-io/2.4/commons-io-2.4.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: commons-logging:1.2">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__expound_0_9_0.xml
generated
9
.idea/libraries/Leiningen__expound_0_9_0.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: expound:0.9.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/expound/expound/0.9.0/expound-0.9.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__nrepl_1_0_0.xml
generated
9
.idea/libraries/Leiningen__nrepl_1_0_0.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: nrepl:1.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/nrepl/nrepl/1.0.0/nrepl-1.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.apache.httpcomponents/httpclient:4.5">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.apache.httpcomponents/httpcore:4.4.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.apache.httpcomponents/httpmime:4.5">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpmime/4.5/httpmime-4.5.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.bouncycastle/bcpkix-jdk18on:1.78.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/bouncycastle/bcpkix-jdk18on/1.78.1/bcpkix-jdk18on-1.78.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.bouncycastle/bcprov-jdk18on:1.78.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/bouncycastle/bcprov-jdk18on/1.78.1/bcprov-jdk18on-1.78.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.bouncycastle/bcutil-jdk18on:1.78.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/bouncycastle/bcutil-jdk18on/1.78.1/bcutil-jdk18on-1.78.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/clojure:1.11.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/clojure/1.11.1/clojure-1.11.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/core.specs.alpha:0.2.62">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/core.specs.alpha/0.2.62/core.specs.alpha-0.2.62.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/java.classpath:1.1.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/java.classpath/1.1.0/java.classpath-1.1.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/spec.alpha:0.3.218">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/spec.alpha/0.3.218/spec.alpha-0.3.218.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/test.check:1.1.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/test.check/1.1.1/test.check-1.1.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/tools.cli:1.1.230">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/tools.cli/1.1.230/tools.cli-1.1.230.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/tools.namespace:1.5.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/tools.namespace/1.5.0/tools.namespace-1.5.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.clojure/tools.reader:1.4.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/tools.reader/1.4.0/tools.reader-1.4.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: org.nrepl/incomplete:0.1.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/nrepl/incomplete/0.1.0/incomplete-0.1.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__potemkin_0_4_1.xml
generated
9
.idea/libraries/Leiningen__potemkin_0_4_1.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: potemkin:0.4.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/potemkin/potemkin/0.4.1/potemkin-0.4.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__riddley_0_1_10.xml
generated
9
.idea/libraries/Leiningen__riddley_0_1_10.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: riddley:0.1.10">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/riddley/riddley/0.1.10/riddley-0.1.10.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__slingshot_0_12_2.xml
generated
9
.idea/libraries/Leiningen__slingshot_0_12_2.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: slingshot:0.12.2">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/slingshot/slingshot/0.12.2/slingshot-0.12.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
9
.idea/libraries/Leiningen__tigris_0_1_2.xml
generated
9
.idea/libraries/Leiningen__tigris_0_1_2.xml
generated
@@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Leiningen: tigris:0.1.2">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/tigris/tigris/0.1.2/tigris-0.1.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
11
.idea/misc.xml
generated
11
.idea/misc.xml
generated
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="LeiningenProjectsManager">
|
||||
<option name="projectFiles">
|
||||
<set>
|
||||
<option value="file://$PROJECT_DIR$/project.clj" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="21" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/riot-clojure.iml" filepath="$PROJECT_DIR$/riot-clojure.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
7
.idea/vcs.xml
generated
7
.idea/vcs.xml
generated
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
23
project.clj
23
project.clj
@@ -1,5 +1,5 @@
|
||||
(defproject riot-clojure "1.1.0"
|
||||
:description "Utility for getting for Riot APIs in Clojure"
|
||||
(defproject riot-clojure "1.2.0"
|
||||
:description "Utility for getting data from Riot APIs in Clojure"
|
||||
:url "https://git.rcorral.es/ruben/riot-clojure"
|
||||
|
||||
:license {:name "MIT"
|
||||
@@ -38,11 +38,13 @@
|
||||
|
||||
:native-image {:name "riot" ;; name of output image, optional
|
||||
:graal-bin "/home/ruben/.sdkman/candidates/java/21.0.2-graalce/" ;; path to GraalVM home, optional
|
||||
:opts ["--verbose"]} ;; pass-thru args to GraalVM native-image, optional
|
||||
:opts ["--verbose" "-H:+AllowDeprecatedBuilderClassesOnImageClasspath" "--no-fallback"]} ;; pass-thru args to GraalVM native-image, optional
|
||||
|
||||
:profiles {:uberjar {:aot :all
|
||||
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]}
|
||||
:native-image {:jvm-opts ["-Dclojure.compiler.direct-linking=true"]}
|
||||
;:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
|
||||
}
|
||||
:native-image {:jvm-opts ["-Dclojure.compiler.direct-linking=true" "--initialize-at-build-time"]
|
||||
}
|
||||
:dev {:dependencies [[org.clojure/test.check "1.1.1"]]
|
||||
:plugins [[io.taylorwood/lein-native-image "0.3.1"]
|
||||
[lein-binplus "0.6.8"]]}}
|
||||
@@ -53,10 +55,13 @@
|
||||
:jvm-opts ["-server" "-Dfile.encoding=utf-8" "$JVM_OPTS"]}
|
||||
|
||||
;; Deploy to repository
|
||||
:repositories {"gitea"
|
||||
{:url "https://git.rcorral.es/api/packages/ruben/maven"
|
||||
:username :env/DEPLOY_USER
|
||||
:password :env/DEPLOY_TOKEN}}
|
||||
:repositories [["gitea" {:url "https://git.rcorral.es/api/packages/ruben/maven"
|
||||
:username :env/DEPLOY_USER
|
||||
:password :env/DEPLOY_TOKEN
|
||||
:sign-releases false}]]
|
||||
|
||||
:deploy-repositories [["releases" :gitea]
|
||||
["snapshots" :gitea]]
|
||||
|
||||
;; Test selectors
|
||||
:test-selectors {:default (complement (some-fn :tft :timezone))
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="BuildSystem">
|
||||
<option name="buildSystemId" value="LEININGEN" />
|
||||
<option name="displayName" value="riot-clojure:1.0.0" />
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/classes" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/dev-resources" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Leiningen: buddy/buddy-core:1.12.0-430" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: cheshire:6.0.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: cli-matic:0.5.4" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: clj-http:2.0.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: clj-tuple:0.2.2" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: com.fasterxml.jackson.core/jackson-core:2.18.3" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: com.fasterxml.jackson.dataformat/jackson-dataformat-cbor:2.18.3" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: com.fasterxml.jackson.dataformat/jackson-dataformat-smile:2.18.3" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: commons-codec:1.10" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: commons-io:2.4" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: commons-logging:1.2" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: expound:0.9.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: nrepl:1.0.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.apache.httpcomponents/httpclient:4.5" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.apache.httpcomponents/httpcore:4.4.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.apache.httpcomponents/httpmime:4.5" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.bouncycastle/bcpkix-jdk18on:1.78.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.bouncycastle/bcprov-jdk18on:1.78.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.bouncycastle/bcutil-jdk18on:1.78.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/clojure:1.11.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/core.specs.alpha:0.2.62" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/java.classpath:1.1.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/spec.alpha:0.3.218" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/test.check:1.1.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/tools.cli:1.1.230" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/tools.namespace:1.5.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.clojure/tools.reader:1.4.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: org.nrepl/incomplete:0.1.0" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: potemkin:0.4.1" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: riddley:0.1.10" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: slingshot:0.12.2" level="project" />
|
||||
<orderEntry type="library" name="Leiningen: tigris:0.1.2" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -140,7 +140,7 @@
|
||||
;; More info: https://github.com/l3nz/cli-matic/blob/master/README.md
|
||||
(def CONFIGURATION
|
||||
{:app {:command "riot"
|
||||
:version "1.1.0"
|
||||
:version "1.2.0"
|
||||
:description ["Get how much you play your favourite games"
|
||||
""
|
||||
"EXAMPLE USAGES:"
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
;;;; API KEYS
|
||||
|
||||
(def DEV_KEY "RGAPI-ec3779d1-bc61-4a2e-a071-34addcc6bd56")
|
||||
(def LOL_KEY "jXL+gA3LIeBPBvrOhLOYSZCiURC7eOtwMXahkxtwpdj6JDtT5NMu25zMz+UY2+9MuHBADjUJh46jSanrV5OBag==")
|
||||
(def LOL_KEY "RqFfnwRNwf2UkRNvxwr6tE11J7KSjzRMtOecqm1Aw+PWOXWSil9yaNiglVeKinEddQk4BQs7N/G1r42MeyMZHA==")
|
||||
(def TFT_KEY (encrypt-data DEV_KEY secret-key iv))
|
||||
|
||||
(defn get-lol-api-key
|
||||
@@ -317,7 +317,10 @@
|
||||
:api-key api-key
|
||||
:debug debug)
|
||||
(catch [:status 404] _
|
||||
(when print-not-active (println "No active LoL match"))))))
|
||||
(when print-not-active (println "No active LoL match")))
|
||||
(catch [:status 403] _
|
||||
(println "Current status not available")))))
|
||||
|
||||
|
||||
|
||||
#_{:clj-kondo/ignore [:unresolved-symbol]}
|
||||
@@ -337,7 +340,9 @@
|
||||
:api-key api-key
|
||||
:debug debug)
|
||||
(catch [:status 404] _
|
||||
(when print-not-active (println "No active tft match"))))))
|
||||
(when print-not-active (println "No active tft match")))
|
||||
(catch [:status 403] _
|
||||
(println "Current status not available")))))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
[clojure.string :as str]
|
||||
[cheshire.core :refer :all]
|
||||
[riot.core :refer :all]
|
||||
[clj-commons.format.table :refer [print-table] :as table])
|
||||
[clj-commons.format.table :refer [print-table] :as table])
|
||||
(:gen-class))
|
||||
|
||||
|
||||
@@ -52,16 +52,6 @@
|
||||
(LocalDate->Date (unix->ZonedDateTime millis)))
|
||||
|
||||
|
||||
(defn parse-date-epoch
|
||||
[millis]
|
||||
(localdate-to-date (unix-to-datetime millis)))
|
||||
|
||||
|
||||
(defn parse-date-epoch
|
||||
[millis]
|
||||
(localdate-to-date (unix-to-datetime millis)))
|
||||
|
||||
|
||||
(defn format-datetime
|
||||
"Converts a LocalDateTime to its string representation"
|
||||
([dtime] (format-datetime dtime DEFAULT_DATE_TIME_FORMAT))
|
||||
@@ -87,8 +77,8 @@
|
||||
(when (some? seconds)
|
||||
(if (< seconds 3600)
|
||||
(format "%02d:%02d" (quot seconds 60) (rem seconds 60))
|
||||
(format "%02d:%02d:%02d"
|
||||
(quot seconds 3600)
|
||||
(format "%02d:%02d:%02d"
|
||||
(quot seconds 3600)
|
||||
(- (quot seconds 60) (* 60 (quot seconds 3600)))
|
||||
(rem seconds 60)))))
|
||||
|
||||
@@ -103,7 +93,7 @@
|
||||
|
||||
(defn match-today?
|
||||
"Predicate that is true if the match has been played today.
|
||||
|
||||
|
||||
A match has been played today if its start date or end date is from today"
|
||||
[match]
|
||||
(or
|
||||
@@ -257,4 +247,7 @@
|
||||
|
||||
(comment
|
||||
(calculate-statistics '({:winner true} {:winner false} {:winner true}))
|
||||
)
|
||||
|
||||
(let [data '({:winner true} {:winner false} {:winner true})]
|
||||
(pp/print-table [:name :all :lol :tft] (concat (for [k (keys data)] (assoc (k data) :name (name k))))))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user