Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Switch to ReactiveMongo 0.12.1 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
akkie committed Apr 6, 2017
1 parent c255352 commit 4082af3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -9,7 +9,7 @@ In your project/Build.scala:

```scala
libraryDependencies ++= Seq(
"com.mohiva" %% "play-silhouette-persistence-reactivemongo" % "4.0.1"
"com.mohiva" %% "play-silhouette-persistence-reactivemongo" % "4.0.2"
)
```

Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Expand Up @@ -9,7 +9,7 @@ import scalariform.formatter.preferences._

name := "play-silhouette-persistence-reactivemongo"

version := "4.0.1"
version := "4.0.2"

scalaVersion := "2.11.8"

Expand All @@ -22,9 +22,9 @@ resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(
"com.mohiva" %% "play-silhouette" % "4.0.0",
"com.mohiva" %% "play-silhouette-persistence" % "4.0.0",
"org.reactivemongo" %% "play2-reactivemongo" % "0.12.0",
"org.reactivemongo" %% "play2-reactivemongo" % "0.12.1",
"net.codingwell" %% "scala-guice" % "4.0.1" % "test",
"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "1.50.5" % "test",
"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "2.0.0" % "test",
specs2 % Test
)

Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
@@ -1,7 +1,7 @@
// Comment to get more information during initialization
logLevel := Level.Warn

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.4")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.13")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5")

Expand Down
Expand Up @@ -51,8 +51,14 @@ class MongoAuthInfoDAO[A <: AuthInfo: ClassTag: Format](reactiveMongoApi: Reacti

/**
* The collection to use for JSON queries.
*
* It’s generally a good practice not to assign the database and collection references to val (even to lazy val),
* as it’s better to get a fresh reference each time, to automatically recover from any previous issues
* (e.g. network failure).
*
* @see http://reactivemongo.org/releases/0.12/documentation/release-details.html
*/
private val jsonCollection = reactiveMongoApi.database.map(db => db[JSONCollection](collectionName))
private def jsonCollection = reactiveMongoApi.database.map(db => db[JSONCollection](collectionName))

/**
* Finds the auth info which is linked with the specified login info.
Expand Down

0 comments on commit 4082af3

Please sign in to comment.