From 17be47ab78f61d1e2db68d7e99ed3a078985bdf0 Mon Sep 17 00:00:00 2001 From: Holger Brandl Date: Tue, 13 Apr 2021 20:10:54 +0200 Subject: [PATCH] v0.16 release --- CHANGES.md | 9 +++++++-- README.md | 4 ++-- build.gradle | 4 ++-- docs/userguide/docs/index.md | 6 +++--- src/test/kotlin/krangl/misc/PatchVersion.kts | 15 ++++++++------- 5 files changed, 22 insertions(+), 16 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 21efdbe2..03d4dfe4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,10 +1,15 @@ krangl Release History ====================== -v0.16 (Work in Progress) +v0.16 ----- -* Added supported for fixed-width files with `readFixedWidth()` +Released 2021-04-13 + +`krangl` is now deployed to maven-central and no no longer ot jcenter + +Features +* Added support for fixed-width files with `readFixedWidth()` * Added supported for more compact column type specification when reading tsv * Fixed: NA and emtpy cell handling in excel-reader * Fixed: Use correct cell types when writing Excel file diff --git a/README.md b/README.md index 1506c6e9..293169b7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # krangl -[ ![Download](https://img.shields.io/badge/Maven%20Central-0.15.8-orange) ](https://mvnrepository.com/artifact/com.github.holgerbrandl.krangl/krangl) [![Build Status](https://github.com/holgerbrandl/krangl/workflows/build/badge.svg)](https://github.com/holgerbrandl/krangl/actions?query=workflow%3Abuild) [![Gitter](https://badges.gitter.im/holgerbrandl/krangl.svg)](https://gitter.im/holgerbrandl/krangl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) +[ ![Download](https://img.shields.io/badge/Maven%20Central-0.16-orange) ](https://mvnrepository.com/artifact/com.github.holgerbrandl.krangl/krangl) [![Build Status](https://github.com/holgerbrandl/krangl/workflows/build/badge.svg)](https://github.com/holgerbrandl/krangl/actions?query=workflow%3Abuild) [![Gitter](https://badges.gitter.im/holgerbrandl/krangl.svg)](https://gitter.im/holgerbrandl/krangl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) `krangl` is a {K}otlin library for data w{rangl}ing. By implementing a grammar of data manipulation using a modern functional-style API, it allows to filter, transform, aggregate and reshape tabular data. @@ -32,7 +32,7 @@ repositories { } dependencies { - implementation "com.github.holgerbrandl:krangl:0.15.8" + implementation "com.github.holgerbrandl:krangl:0.16" } ``` Declaring the repository is purely optional as it is the default already. diff --git a/build.gradle b/build.gradle index 9b6bcaaf..c4765445 100644 --- a/build.gradle +++ b/build.gradle @@ -54,7 +54,7 @@ dependencies { testImplementation group: 'junit', name: 'junit', version: '4.12' testImplementation("io.kotest:kotest-assertions-core:4.2.6") testImplementation 'com.h2database:h2:1.4.200' - testImplementation "org.jetbrains.kotlin:kotlin-script-runtime:1.4.21" + testImplementation "org.jetbrains.kotlin:kotlin-script-runtime:1.4.32" // testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.9" } @@ -117,7 +117,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { //http://stackoverflow.com/questions/34377367/why-is-gradle-install-replacing-my-version-with-unspecified //group 'com.github.holgerbrandl' -version '0.16-SNAPSHOT' +version '0.16' //version '0.15.8' diff --git a/docs/userguide/docs/index.md b/docs/userguide/docs/index.md index 1a73c3a5..7f4561e4 100644 --- a/docs/userguide/docs/index.md +++ b/docs/userguide/docs/index.md @@ -1,4 +1,4 @@ -[ ![Download](https://img.shields.io/badge/Maven%20Central-0.15.8-orange) ](https://mvnrepository.com/artifact/com.github.holgerbrandl.krangl/krangl) [![Build Status](https://github.com/holgerbrandl/krangl/workflows/build/badge.svg)](https://github.com/holgerbrandl/krangl/actions?query=workflow%3Abuild) [![Gitter](https://badges.gitter.im/holgerbrandl/krangl.svg)](https://gitter.im/holgerbrandl/krangl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) +[ ![Download](https://img.shields.io/badge/Maven%20Central-0.16-orange) ](https://mvnrepository.com/artifact/com.github.holgerbrandl.krangl/krangl) [![Build Status](https://github.com/holgerbrandl/krangl/workflows/build/badge.svg)](https://github.com/holgerbrandl/krangl/actions?query=workflow%3Abuild) [![Gitter](https://badges.gitter.im/holgerbrandl/krangl.svg)](https://gitter.im/holgerbrandl/krangl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) This is the manual of [krangl](https://github.com/holgerbrandl/krangl). @@ -27,7 +27,7 @@ Features * Descriptive statistics (mean, min, max, median, ...) * Functional API inspired by [dplyr](http://dplyr.tidyverse.org/), [pandas](http://pandas.pydata.org/), and Kotlin [stdlib](https://kotlinlang.org/api/latest/jvm/stdlib/index.html) -Furthermore it provides methods to go back and forth between untyped and typed data. +Furthermore, it provides methods to go back and forth between untyped and typed data. Installation @@ -40,7 +40,7 @@ repositories { } dependencies { - implementation "com.github.holgerbrandl:krangl:0.15.8" + implementation "com.github.holgerbrandl:krangl:0.16" } ``` Declaring the repository is purely optional as it is the default already. diff --git a/src/test/kotlin/krangl/misc/PatchVersion.kts b/src/test/kotlin/krangl/misc/PatchVersion.kts index 41d5be4c..0e431491 100644 --- a/src/test/kotlin/krangl/misc/PatchVersion.kts +++ b/src/test/kotlin/krangl/misc/PatchVersion.kts @@ -6,19 +6,20 @@ val newVersion = args[0] fun PatchVersion.fixInFile(file: File) { val transformedSetup: String = file.readLines().map { - val prefix: String = """ implementation "com.github.holgerbrandl:krangl:""" - if (it.startsWith(prefix)) { + val prefix = """ implementation "com.github.holgerbrandl:krangl:""" + val gradleFix = if (it.startsWith(prefix)) { """ implementation "com.github.holgerbrandl:krangl:${newVersion}"""" } else { it } // todo also fix badge here -// if(it.contains("Central-[0-9.]*-orange".toRegex())){ -// it -// }else{ - it -// } + val matchGroup = "Central-([0-9.]+)-orange.*".toRegex().find(gradleFix) + if(matchGroup!=null){ + gradleFix.replace(matchGroup.groupValues[1], newVersion) + }else{ + gradleFix + } }.joinToString(System.lineSeparator())