Skip to content

Commit

Permalink
Prepare for v2.0.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
scullxbones committed May 16, 2018
1 parent 1add327 commit 5c37f7e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val releaseV = "2.0.9"
val releaseV = "2.0.10"

val scalaV = "2.11.8"

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

Expand Down
4 changes: 4 additions & 0 deletions docs/changelog25.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
22 changes: 13 additions & 9 deletions release_process_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 >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

0 comments on commit 5c37f7e

Please sign in to comment.