Skip to content

Commit

Permalink
Merge pull request #3 from funyin/release/0.0.3
Browse files Browse the repository at this point in the history
Release/0.0.3
  • Loading branch information
funyin authored Dec 3, 2023
2 parents 1af9e9b + 58a3af1 commit 49ae912
Show file tree
Hide file tree
Showing 26 changed files with 123 additions and 132 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
git fetch origin gh-pages --depth=1
git config user.name ci-bot
git config user.email [email protected]
mike deploy --push --update-aliases 0.0.2 latest
mike deploy --push --update-aliases 0.0.3 latest
mike set-default --push latest
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 0.0.3 - Dec 3
- Changed initialization to only collect connection string
- Updated Docs

## 0.0.2 - Dec 2
- Initial release
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ The persistent job scheduling library for kotlin multiplatform.

```kotlin
suspend fun main() {
val mongoClient = MongoClient.create("mongodb://localhost:27017")
val redisClient = RedisClient.create("redis://localhost:6379")
val connection = redisClient.connect()

//Initialize
Kronos.init(mongoClient = mongoClient, redisConnection = connection)
Kronos.init(
mongoConnectionString = "mongodb://localhost:27017",
redisConnectionString = "redis://localhost:6379"
)
//Register a Job
Kronos.register(SayHello)
//Schedule a one time job
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {

group = "com.funyinkash"
//version = "0.0.1-SNAPSHOT"
version = "0.0.2"
version = "0.0.3"

repositories {
mavenCentral()
Expand Down
9 changes: 4 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Welcome to Kronos. The persistent job scheduling library for kotlin multiplatfor

```kotlin
suspend fun main() {
val mongoClient = MongoClient.create("mongodb://localhost:27017")
val redisClient = RedisClient.create("redis://localhost:6379")
val connection = redisClient.connect()

//Initialize
Kronos.init(mongoClient = mongoClient, redisConnection = connection)
Kronos.init(
mongoConnectionString = "mongodb://localhost:27017",
redisConnectionString = "redis://localhost:6379"
)
//Register a Job
Kronos.register(SayHello)
//Schedule a one time job
Expand Down
11 changes: 4 additions & 7 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Kronos is pushed to MavenCentral repository as kotlin multiplatform library.
Add dependencies:

```kotlin
implementation("com.funyinkash:kronos:0.0.2")
implementation("com.funyinkash:kronos:$latest")
```

=== "Gradle"
Expand All @@ -35,7 +35,7 @@ Kronos is pushed to MavenCentral repository as kotlin multiplatform library.
Add dependencies (you can also add other modules that you need):

```groovy
implementation 'com.funyinkash:kronos:0.0.2'
implementation 'com.funyinkash:kronos:$latest'
```

=== "Maven"
Expand All @@ -59,7 +59,7 @@ Kronos is pushed to MavenCentral repository as kotlin multiplatform library.
<dependency>
<groupId>com.funyinkash</groupId>
<artifactId>kronos</artifactId>
<version>0.0.2</version>
<version>$latest</version>
</dependency>
```

Expand All @@ -68,10 +68,7 @@ Specific dependencies. The Multiplatform dependency above should be sufficient,

=== "jvm"
```kotlin
implementation("com.funyinkash:kronos-jvm:0.0.2")
//supporting libraries that are required to initialize kronos
implementation("org.mongodb:mongodb-driver-kotlin-coroutine:4.11.1")
implementation("io.lettuce:lettuce-core:6.3.0.RELEASE")
implementation("com.funyinkash:kronos-jvm:$latest")
```

=== "js"
Expand Down
9 changes: 3 additions & 6 deletions example/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ repositories {
// maven {
// url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// }
// mavenLocal()
mavenLocal()
}

dependencies {
implementation("com.funyinkash:kronos:0.0.2")
implementation("com.funyinkash:kronos:0.0.3")
// implementation(project(":kronos"))
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation("com.google.guava:guava:31.1-jre")
implementation("org.mongodb:mongodb-driver-kotlin-coroutine:4.11.1")
implementation("io.lettuce:lettuce-core:6.3.0.RELEASE")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.mongodb:bson-kotlinx:4.11.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.0")
}

java {
Expand Down
12 changes: 5 additions & 7 deletions example/app/src/main/kotlin/example/App.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package example

import com.mongodb.kotlin.client.coroutine.MongoClient
import io.lettuce.core.RedisClient

import kotlinx.coroutines.delay
import kronos.*
import java.time.Instant

suspend fun main() {
val mongoClient = MongoClient.create("mongodb://localhost:27017")
val redisClient = RedisClient.create("redis://localhost:6379")
val connection = redisClient.connect()

//Initialize
Kronos.init(mongoClient = mongoClient, redisConnection = connection)
Kronos.init(
mongoConnectionString = "mongodb://localhost:27017",
redisConnectionString = "redis://localhost:6379"
)
//Register a Job
Kronos.register(SayHello)
//Schedule a one time job
Expand Down Expand Up @@ -47,7 +46,6 @@ suspend fun main() {
jobId?.let { Kronos.dropJob(SayHello.name) }

Kronos.dropAll()

delay(1000 * 60 * 7)
}

Expand Down
34 changes: 17 additions & 17 deletions site/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@



<link rel="icon" href="/Kronos/0.0.2/assets/images/favicon.png">
<link rel="icon" href="/Kronos/0.0.3/assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.4.14">


Expand All @@ -20,10 +20,10 @@



<link rel="stylesheet" href="/Kronos/0.0.2/assets/stylesheets/main.fad675c6.min.css">
<link rel="stylesheet" href="/Kronos/0.0.3/assets/stylesheets/main.fad675c6.min.css">


<link rel="stylesheet" href="/Kronos/0.0.2/assets/stylesheets/palette.356b1318.min.css">
<link rel="stylesheet" href="/Kronos/0.0.3/assets/stylesheets/palette.356b1318.min.css">



Expand All @@ -42,7 +42,7 @@



<script>__md_scope=new URL("/Kronos/0.0.2",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
<script>__md_scope=new URL("/Kronos/0.0.3",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>



Expand Down Expand Up @@ -92,7 +92,7 @@

<header class="md-header md-header--shadow" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="/Kronos/0.0.2/." title="Kronos" class="md-header__button md-logo" aria-label="Kronos" data-md-component="logo">
<a href="/Kronos/0.0.3/." title="Kronos" class="md-header__button md-logo" aria-label="Kronos" data-md-component="logo">


<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
Expand Down Expand Up @@ -200,7 +200,7 @@

<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="/Kronos/0.0.2/." title="Kronos" class="md-nav__button md-logo" aria-label="Kronos" data-md-component="logo">
<a href="/Kronos/0.0.3/." title="Kronos" class="md-nav__button md-logo" aria-label="Kronos" data-md-component="logo">


<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
Expand Down Expand Up @@ -230,7 +230,7 @@


<li class="md-nav__item">
<a href="/Kronos/0.0.2/." class="md-nav__link">
<a href="/Kronos/0.0.3/." class="md-nav__link">


<span class="md-ellipsis">
Expand All @@ -250,7 +250,7 @@


<li class="md-nav__item">
<a href="/Kronos/0.0.2/installation/" class="md-nav__link">
<a href="/Kronos/0.0.3/installation/" class="md-nav__link">


<span class="md-ellipsis">
Expand All @@ -270,7 +270,7 @@


<li class="md-nav__item">
<a href="/Kronos/0.0.2/quick_start/" class="md-nav__link">
<a href="/Kronos/0.0.3/quick_start/" class="md-nav__link">


<span class="md-ellipsis">
Expand Down Expand Up @@ -310,7 +310,7 @@



<a href="/Kronos/0.0.2/job/" class="md-nav__link">
<a href="/Kronos/0.0.3/job/" class="md-nav__link">


<span class="md-ellipsis">
Expand Down Expand Up @@ -356,7 +356,7 @@



<a href="/Kronos/0.0.2/schedule/" class="md-nav__link">
<a href="/Kronos/0.0.3/schedule/" class="md-nav__link">


<span class="md-ellipsis">
Expand All @@ -382,7 +382,7 @@


<li class="md-nav__item">
<a href="/Kronos/0.0.2/why_how/" class="md-nav__link">
<a href="/Kronos/0.0.3/why_how/" class="md-nav__link">


<span class="md-ellipsis">
Expand Down Expand Up @@ -420,7 +420,7 @@



<a href="/Kronos/0.0.2/examples/" class="md-nav__link">
<a href="/Kronos/0.0.3/examples/" class="md-nav__link">


<span class="md-ellipsis">
Expand Down Expand Up @@ -466,7 +466,7 @@


<li class="md-nav__item">
<a href="/Kronos/0.0.2/roadmap/" class="md-nav__link">
<a href="/Kronos/0.0.3/roadmap/" class="md-nav__link">


<span class="md-ellipsis">
Expand Down Expand Up @@ -506,7 +506,7 @@



<a href="/Kronos/0.0.2/community/" class="md-nav__link">
<a href="/Kronos/0.0.3/community/" class="md-nav__link">


<span class="md-ellipsis">
Expand Down Expand Up @@ -636,10 +636,10 @@ <h1>404 - Not found</h1>
</div>


<script id="__config" type="application/json">{"base": "/Kronos/0.0.2", "features": ["navigation.prune", "navigation.indexes", "navigation.path", "navigation.top", "search.suggest", "search.highlight", "content.action.edit", "content.code.copy", "navigation.footer"], "search": "/Kronos/0.0.2/assets/javascripts/workers/search.f886a092.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": {"default": "latest", "provider": "mike"}}</script>
<script id="__config" type="application/json">{"base": "/Kronos/0.0.3", "features": ["navigation.prune", "navigation.indexes", "navigation.path", "navigation.top", "search.suggest", "search.highlight", "content.action.edit", "content.code.copy", "navigation.footer"], "search": "/Kronos/0.0.3/assets/javascripts/workers/search.f886a092.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": {"default": "latest", "provider": "mike"}}</script>


<script src="/Kronos/0.0.2/assets/javascripts/bundle.cd18aaf1.min.js"></script>
<script src="/Kronos/0.0.3/assets/javascripts/bundle.cd18aaf1.min.js"></script>


</body>
Expand Down
8 changes: 4 additions & 4 deletions site/community/contributing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@



<link rel="canonical" href="https://funyin.github.io/Kronos/0.0.2/community/contributing/">
<link rel="canonical" href="https://funyin.github.io/Kronos/0.0.3/community/contributing/">


<link rel="prev" href="../">
Expand Down Expand Up @@ -69,23 +69,23 @@

<meta property="og:description" content="None" >

<meta property="og:image" content="https://funyin.github.io/Kronos/0.0.2/assets/images/social/community/contributing.png" >
<meta property="og:image" content="https://funyin.github.io/Kronos/0.0.3/assets/images/social/community/contributing.png" >

<meta property="og:image:type" content="image/png" >

<meta property="og:image:width" content="1200" >

<meta property="og:image:height" content="630" >

<meta property="og:url" content="https://funyin.github.io/Kronos/0.0.2/community/contributing/" >
<meta property="og:url" content="https://funyin.github.io/Kronos/0.0.3/community/contributing/" >

<meta name="twitter:card" content="summary_large_image" >

<meta name="twitter:title" content="Contribute - Kronos" >

<meta name="twitter:description" content="None" >

<meta name="twitter:image" content="https://funyin.github.io/Kronos/0.0.2/assets/images/social/community/contributing.png" >
<meta name="twitter:image" content="https://funyin.github.io/Kronos/0.0.3/assets/images/social/community/contributing.png" >



Expand Down
8 changes: 4 additions & 4 deletions site/community/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@



<link rel="canonical" href="https://funyin.github.io/Kronos/0.0.2/community/">
<link rel="canonical" href="https://funyin.github.io/Kronos/0.0.3/community/">


<link rel="prev" href="../roadmap/">
Expand Down Expand Up @@ -71,23 +71,23 @@

<meta property="og:description" content="None" >

<meta property="og:image" content="https://funyin.github.io/Kronos/0.0.2/assets/images/social/community/index.png" >
<meta property="og:image" content="https://funyin.github.io/Kronos/0.0.3/assets/images/social/community/index.png" >

<meta property="og:image:type" content="image/png" >

<meta property="og:image:width" content="1200" >

<meta property="og:image:height" content="630" >

<meta property="og:url" content="https://funyin.github.io/Kronos/0.0.2/community/" >
<meta property="og:url" content="https://funyin.github.io/Kronos/0.0.3/community/" >

<meta name="twitter:card" content="summary_large_image" >

<meta name="twitter:title" content="Community - Kronos" >

<meta name="twitter:description" content="None" >

<meta name="twitter:image" content="https://funyin.github.io/Kronos/0.0.2/assets/images/social/community/index.png" >
<meta name="twitter:image" content="https://funyin.github.io/Kronos/0.0.3/assets/images/social/community/index.png" >



Expand Down
Loading

0 comments on commit 49ae912

Please sign in to comment.