Skip to content

Commit 501256f

Browse files
committed
chore: bump to new version
1 parent 61a0939 commit 501256f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A parser that converts natural (English) language to a cron quartz expressions,
1010
You can add the library to your project using gradle:
1111

1212
```kotlin
13-
implementation("io.github.yamilmedina:natural-kron:1.0.0")
13+
implementation("io.github.yamilmedina:natural-kron:2.0.0")
1414
```
1515

1616
## Motif ##
@@ -45,7 +45,7 @@ import io.github.yamilmedina.kron.NaturalKronParser
4545
val input = "every saturday at 10:11"
4646
val cronExpression = NaturalKronParser().parse(input)
4747

48-
assertEquals("0 11 10 ? * SAT", cronExpression)---> This is a valid Quartz cron expression
48+
assertEquals("0 11 10 ? * SAT", cronExpression) //---> This is a valid Quartz cron expression
4949
```
5050

5151
## Implementation details ##
@@ -65,6 +65,14 @@ This is a starting point for now, so these things are not supported yet (most li
6565
- ranges of values (e.g. `every day between 10 and 20` -> `0 0 0 10-20 * ?`)
6666
- last day of the month (e.g. `every last day of the month` -> `0 0 0 L * ?`)
6767

68+
## Note ##
69+
70+
Up to version 1.0.1, the library was a direct port of [this library](https://github.com/bpolaszek/natural-cron-expression/)
71+
from PHP to Kotlin.
72+
The library was refactored to be more Kotlin idiomatic and to add some features, but rewritten completely from scratch,
73+
due to lack of test and not scalable code.
74+
In version 2.0.0, the library was refactored to use ANTLR4 to parse the input.
75+
6876
## License ##
6977

7078
The MIT license. See LICENSE.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kotlin.code.style=official
2-
VERSION_NAME=1.0.2
2+
VERSION_NAME=2.0.0
33

44
SONATYPE_HOST=CENTRAL_PORTAL
55
RELEASE_SIGNING_ENABLED=false

0 commit comments

Comments
 (0)