Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
v0.16 release
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerbrandl committed Apr 13, 2021
1 parent aea29a9 commit 17be47a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
9 changes: 7 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down Expand Up @@ -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'


Expand Down
6 changes: 3 additions & 3 deletions docs/userguide/docs/index.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down Expand Up @@ -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
Expand All @@ -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.
Expand Down
15 changes: 8 additions & 7 deletions src/test/kotlin/krangl/misc/PatchVersion.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand Down

0 comments on commit 17be47a

Please sign in to comment.