Skip to content

Commit 3c338ac

Browse files
committed
v1.0.0
1 parent 9bdf74a commit 3c338ac

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
<!-- for main -->
2-
3-
[![Download](https://img.shields.io/badge/Download-0.16.0-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/0.16.0/jar)
2+
<!--
3+
[![Download](https://img.shields.io/badge/Download-1.0.0-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/1.0.0/jar)
44
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
55
[![Build Status Ubuntu](https://github.com/robstoll/kbox/workflows/Ubuntu/badge.svg?event=push)](https://github.com/robstoll/kbox/actions?query=workflow%3AUbuntu+branch%3Amain)
66
[![Build Status Windows](https://github.com/robstoll/kbox/workflows/Windows/badge.svg?event=push)](https://github.com/robstoll/kbox/actions?query=workflow%3AWindows+branch%3Amain)
77
[![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=robstoll_kbox&metric=alert_status)](https://sonarcloud.io/dashboard?id=robstoll_kbox)
8-
8+
-->
99

1010
<!-- for a specific release -->
11-
<!--
12-
[![Download](https://img.shields.io/badge/Download-0.15.1-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/0.15.1/jar)
11+
12+
[![Download](https://img.shields.io/badge/Download-1.0.0-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/1.0.0/jar)
1313
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
14-
-->
14+
1515

1616
# KBox
1717
KBox is a very small but useful utility library for Kotlin (JVM, Android and JS).
1818

1919
Current extension functions:
20-
- [`Array/List/Iterable/Sequence.appendtoStringBuilder`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/appendToString.kt#L37)
20+
- [`Array/List/Iterable/Sequence.appendtoStringBuilder`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/appendToString.kt#L37)
2121
with the ability to define a different separator for the last separation
2222
=> handy if you want to form sentences like `a, b and c`
2323

24-
- [`CharSequence.blankToNull`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/blanktoNull.kt#L7)
24+
- [`CharSequence.blankToNull`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/blanktoNull.kt#L7)
2525
returns the same `CharSequence` if not blank, `null` otherwise
2626

27-
- [`forEachIn(Array/Iterable/Sequence<E>, Array/Iterable/Sequence<E>, ..., action: (E) -> Unit)`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/forEachIn.kt#L6)
27+
- [`forEachIn(Array/Iterable/Sequence<E>, Array/Iterable/Sequence<E>, ..., action: (E) -> Unit)`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/forEachIn.kt#L6)
2828
applies the given action to each entry in the given `Iterable`s.
2929

30-
- [`<E> forElementAndEachIn(E, Array/Iterable/Sequence<E>, action: (E) -> Unit)`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/forThisAndForEach.kt#L6)
30+
- [`<E> forElementAndEachIn(E, Array/Iterable/Sequence<E>, action: (E) -> Unit)`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/forThisAndForEach.kt#L6)
3131
applies the given action to `this` and each entry in Iterable
3232

33-
- [`Iterable<T>.forEachRemaining()`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/forEachRemaining.kt#L9)
33+
- [`Iterable<T>.forEachRemaining()`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/forEachRemaining.kt#L9)
3434
shortcut for `while(hasNext()) yourLambda(next())`
3535

36-
- [`Array/List.ifWithinBound`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/ifWithinBound.kt#L13)
36+
- [`Array/List.ifWithinBound`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/ifWithinBound.kt#L13)
3737
shortcut for `if(index < size){ thenBlock() } else { elseBlock() }`
3838

39-
- [`CharSequence?.isNotNullAndNotEmpty/isNotNullAndNotBlank`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt#L6)
39+
- [`CharSequence?.isNotNullAndNotEmpty/isNotNullAndNotBlank`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt#L6)
4040

41-
- [`Array/List/Iterable/Sequence.joinToString`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/joinToString.kt#L31)
41+
- [`Array/List/Iterable/Sequence.joinToString`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/joinToString.kt#L31)
4242
with the ability to define a different separator for the last separation
4343
=> handy if you want to form sentences like `a, b and c`
4444

45-
- [`Map<T, T>.mapParents`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/mapParents.kt#L13)
45+
- [`Map<T, T>.mapParents`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/mapParents.kt#L13)
4646
maps child-parent relations.
4747

48-
- [`Iterator<T>.mapRemaining/mapRemainingWithCounter`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/mapRemaining.kt#L9)
48+
- [`Iterator<T>.mapRemaining/mapRemainingWithCounter`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/mapRemaining.kt#L9)
4949
maps remaining entries with the help of a transform function (where `mapRemainingWithCounter` passes a counter variable to the transform function).
5050

51-
- [`Array/Iterable/Sequence.mapWithIndex`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/mapWithIndex.kt#L11)
51+
- [`Array/Iterable/Sequence.mapWithIndex`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/mapWithIndex.kt#L11)
5252

53-
- [`Iterator.toPeekingIterator()`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/PeekingIteratorUnsynchronized.kt)
53+
- [`Iterator.toPeekingIterator()`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/PeekingIteratorUnsynchronized.kt)
5454
which allows to have a look what the next element is without consuming it.
5555

56-
- [`varargsToList/glue`](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/varargToList.kt#L11)
56+
- [`varargsToList/glue`](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/varargToList.kt#L11)
5757
creates a `List` out of a single `E` and an `Array<E>`.
5858

5959
Moreover, the following function might come in handy for you as well:
60-
- [identity](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/identity.kt)
60+
- [identity](https://github.com/robstoll/kbox/tree/v1.0.0/src/commonMain/kotlin/ch/tutteli/kbox/identity.kt)
6161

6262
# Installation
6363

@@ -66,7 +66,7 @@ KBox is published to maven central.
6666
```
6767
repositories { mavenCentral() }
6868
dependencies {
69-
implementation("ch.tutteli.kbox:kbox-jvm:0.16.0")
69+
implementation("ch.tutteli.kbox:kbox-jvm:1.0.0")
7070
}
7171
```
7272

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ Release & deploy a commit
128128
1. search for X.Y.Z-SNAPSHOT and replace with X.Y.Z
129129
2. update main:
130130
a) point to the tag, search for `tree/main` and replace it with `tree/vX.Y.Z` (README.md)
131-
b) commit (modified .travis.yml, build.gradle, README.md)
131+
b) update badges
132+
c) commit (modified docs/index.md, build.gradle.kts, README.md)
132133
c) git tag vX.Y.Z
133134
d) git push origin vX.Y.Z
134135
4. deploy to bintray:

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Download](https://img.shields.io/badge/Download-0.15.1-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/0.15.1/jar)
1+
[![Download](https://img.shields.io/badge/Download-1.0.0-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/1.0.0/jar)
22
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
33

44
# KBox

0 commit comments

Comments
 (0)