From 5c37f7e7c832bd0aaf1ee7ffb4d6eed2763f932f Mon Sep 17 00:00:00 2001 From: Brian Scully Date: Tue, 15 May 2018 21:35:59 -0400 Subject: [PATCH] Prepare for v2.0.10 release --- README.md | 2 +- build.sbt | 2 +- docs/akka25.md | 6 +++--- docs/changelog25.md | 4 ++++ release_process_pre.sh | 22 +++++++++++++--------- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 40e4a86d..63f04169 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ * Cross-compiled for 2.11 / 2.12 - Java 8 targeted * Active development -* Latest release - `2.0.9` ~ compatible with Akka 2.5 +* Latest release - `2.0.10` ~ compatible with Akka 2.5 ### Using Akka 2.4? Use 1.x Series. [![Build Status](https://travis-ci.org/scullxbones/akka-persistence-mongo.svg?branch=akka24)](https://travis-ci.org/scullxbones/akka-persistence-mongo) diff --git a/build.sbt b/build.sbt index 5d3064a8..d78560ec 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -val releaseV = "2.0.9" +val releaseV = "2.0.10" val scalaV = "2.11.8" diff --git a/docs/akka25.md b/docs/akka25.md index 7fafec0f..e293859b 100644 --- a/docs/akka25.md +++ b/docs/akka25.md @@ -24,12 +24,12 @@ (Casbah) ```scala -libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-casbah" % "2.0.9" +libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-casbah" % "2.0.10" ``` (Reactive Mongo) ##### Please note: Supported versions of reactive mongo require the `0.12` series, with a minimum version number of `0.12.3` (for Akka 2.5 support) ```scala -libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-rxmongo" % "2.0.9" +libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-rxmongo" % "2.0.10" ``` * Inside of your `application.conf` file, add the following line if you want to use the journal (snapshot is optional). The casbah/rxmongo selection should be pulled in by a `reference.conf` in the driver jar you choose: ``` @@ -509,7 +509,7 @@ Of course, once this is done, you should **not** start your application, unless ###### Configuration Add the following to your `build.sbt` file: ```scala -libraryDependencies ++= Seq( "com.github.scullxbones" %% "akka-persistence-mongo-tools" % "2.0.9", +libraryDependencies ++= Seq( "com.github.scullxbones" %% "akka-persistence-mongo-tools" % "2.0.10", "org.mongodb" %% "casbah" % "3.1.0" ) ``` diff --git a/docs/changelog25.md b/docs/changelog25.md index 3b5533e5..cd103af2 100644 --- a/docs/changelog25.md +++ b/docs/changelog25.md @@ -1,5 +1,9 @@ ## Changelog for 2.x major version +### 2.0.10 +* Merge pull request #192 from Fabszn/externalizedConfBuffer +* Makes buffer size can be setting up from properties + ### 2.0.9 * Merge pull request #189 from bmontuelle/master * Filter database system collections diff --git a/release_process_pre.sh b/release_process_pre.sh index a6cc872a..30835dcb 100755 --- a/release_process_pre.sh +++ b/release_process_pre.sh @@ -18,8 +18,8 @@ if [ "$PREVIOUS" = "$NEXT" ]; then die "Previous and next must be different prev=$PREVIOUS next=$NEXT" fi -echo $PREVIOUS | grep -E -q '^v[0-9]\.[0-9]\.[0-9]$' || die "Previous version must follow pattern v#.#.#, was $PREVIOUS" -echo $NEXT | grep -E -q '^v[0-9]\.[0-9]\.[0-9]$' || die "Next version must follow pattern v#.#.#, was $NEXT" +echo $PREVIOUS | grep -E -q '^v[0-9]+\.[0-9]+\.[0-9]+$' || die "Previous version must follow pattern v#.#.#, was $PREVIOUS" +echo $NEXT | grep -E -q '^v[0-9]+\.[0-9]+\.[0-9]+$' || die "Next version must follow pattern v#.#.#, was $NEXT" sed -i '' -e "s/$PREVIOUS_WO_V/$NEXT_WO_V/" README.md sed -i '' -e "s/$PREVIOUS_WO_V/$NEXT_WO_V/" docs/akka25.md @@ -38,16 +38,20 @@ git commit -m 'Prepare for '$NEXT' release' -S git tag -a $NEXT -m "$BLOCK" -s CR=$(printf '\r') -BLOCK_WITH_CR=$(echo $BLOCK | sed -e "s/\$/$CR/g") +BLOCK_WITH_CR=$(echo -e "$BLOCK" | sed -e "s/\$/$CR/g") -API_JSON='{ - "tag_name": "'"$NEXT"'", +cat <api.json +{ + "tag_name": "$NEXT", "target_commitish": "master", - "name": "'"$NEXT"'", + "name": "$NEXT", "draft": true, - "body": "'"$BLOCK_WITH_CR"'" -}' + "body": "$BLOCK" +} +API_JSON curl -v -H "Content-Type: application/json" -XPOST \ - --data "$API_JSON" \ + -d @api.json \ https://api.github.com/repos/scullxbones/akka-persistence-mongo/releases?access_token=$GH_TOKEN + +rm api.json