Skip to content

Commit be6842e

Browse files
Release 0.11.0 (#69)
1 parent b783e30 commit be6842e

9 files changed

+19
-15
lines changed

arrow-site/.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
if [ -f $BASEDIR/arrow-site/update-other-versions.txt ]; then
6363
for version in $(cat update-other-versions.txt); do
6464
export VERSION=$version
65+
export SHORT_VERSION=$(echo $VERSION | cut -d. -f1-2)
6566
./scripts/generate-and-validate-doc.sh
6667
cd $BASEDIR/arrow-site
6768
bundle exec jekyll build -b docs/$SHORT_VERSION -s build/site -d build/_site

arrow-site/.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ jobs:
101101
if [ -f $BASEDIR/arrow-site/update-other-versions.txt ]; then
102102
for version in $(cat update-other-versions.txt); do
103103
export VERSION=$version
104+
export SHORT_VERSION=$(echo $VERSION | cut -d. -f1-2)
104105
./scripts/generate-and-validate-doc.sh
105106
cd $BASEDIR/arrow-site
106107
bundle exec jekyll build -b docs/$SHORT_VERSION -s build/site -d build/_site

arrow-site/docs/_code/core-home-code.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ library: core
66
import arrow.core.Either
77
import arrow.core.Left
88
import arrow.core.Right
9-
import arrow.core.extensions.fx
9+
import arrow.core.computations.either
1010
1111
object Lettuce
1212
object Knife
@@ -25,12 +25,12 @@ typealias InsufficientAmountOfLettuce = CookingException.InsufficientAmount
2525
fun takeFoodFromRefrigerator(): Either<NastyLettuce, Lettuce> = Right(Lettuce)
2626
fun getKnife(): Either<KnifeIsDull, Knife> = Right(Knife)
2727
fun prepare(tool: Knife, ingredient: Lettuce): Either<InsufficientAmountOfLettuce, Salad> = Left(InsufficientAmountOfLettuce(5))
28-
fun main() {
28+
suspend fun main() {
2929
//sampleStart
3030
3131
32-
fun prepareLunch(): Either<CookingException, Salad> =
33-
Either.fx<CookingException, Salad> {
32+
suspend fun prepareLunch(): Either<CookingException, Salad> =
33+
either<CookingException, Salad> {
3434
val lettuce = !takeFoodFromRefrigerator()
3535
val knife = !getKnife()
3636
val lunch = !prepare(knife, lettuce)

arrow-site/docs/_code/optics-home-code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fun main() {
3737
3838
3939
val john =
40-
Employee("John Doe",
40+
Employee("Audrey Tang",
4141
Company("Arrow",
4242
Address("Functional city",
4343
Street(42, "lambda street"))))

arrow-site/docs/_data/doc-versions.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ docVersions:
55
previous: https://arrow-kt.io/docs/0.8/
66

77
- title: "v0.10.5"
8-
url: https://arrow-kt.io/
8+
url: https://arrow-kt.io/docs/0.10/
99
previous: https://arrow-kt.io/docs/0.9/
1010

11-
- title: "v0.11.0-SNAPSHOT"
11+
- title: "v0.11.0"
12+
url: https://arrow-kt.io/
13+
previous: https://arrow-kt.io/docs/0.10/
14+
15+
- title: "v1.0.0-SNAPSHOT"
1216
url: https://arrow-kt.io/docs/next/
1317
previous: https://arrow-kt.io/
1418

arrow-site/docs/_data/sidebar-core.yml

-3
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,6 @@ options:
270270
- title: Ank
271271
url: /apidocs/arrow-ank/
272272

273-
- title: Benchmarks Effects
274-
url: /apidocs/arrow-benchmarks-fx/
275-
276273
- title: Core
277274
url: /apidocs/arrow-core/
278275

arrow-site/gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VERSION_NAME=0.10.5
2-
KOTLIN_VERSION=1.3.61
1+
VERSION_NAME=0.11.0
2+
KOTLIN_VERSION=1.4.0

arrow-site/scripts/generate-and-validate-doc.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ SHORT_VERSION=$(echo $VERSION | cut -d. -f1-2)
88

99
cd $BASEDIR/arrow-site
1010
git checkout .
11-
cp sidebar/$SHORT_VERSION/* docs/_data/
11+
if [ -d sidebar/$SHORT_VERSION ]; then cp sidebar/$SHORT_VERSION/* docs/_data/; fi
1212
perl -pe "s/latest/$VERSION/g" -i docs/_includes/_head-docs.html
1313
./gradlew clean runAnk
1414

1515
cd $BASEDIR/arrow
1616
git checkout .
17-
git checkout $VERSION
17+
git checkout -f $VERSION
1818
perl -pe "s/^VERSION_NAME.*/VERSION_NAME=$VERSION/g" -i gradle.properties
1919
. ./scripts/commons4gradle.sh
2020
replaceOSSbyBintrayRepository "*.gradle"
@@ -27,7 +27,7 @@ cp $BASEDIR/arrow-master/gradle/apidoc-creation.gradle $BASEDIR/arrow/doc-conf.g
2727
for repository in $(cat $BASEDIR/arrow/lists/libs.txt); do
2828
cd $BASEDIR/$repository
2929
git checkout .
30-
git checkout $(git tag -l --sort=version:refname ${VERSION}* | tail -1)
30+
git checkout -f $(git tag -l --sort=version:refname ${VERSION}* | tail -1)
3131
replaceGlobalPropertiesbyLocalConf gradle.properties
3232
perl -pe "s/$(escapeURL $OLD_DIR)/$(escapeURL $NEW_DIR)/g" -i $BASEDIR/arrow/*.gradle # TODO
3333
if [ -f arrow-docs/build.gradle ]; then

arrow-site/update-other-versions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.10.5

0 commit comments

Comments
 (0)