Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Casbah 2.8.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Jan 29, 2015
1 parent 67d3abf commit a7ea8be
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions casbah-core/src/test/scala/QueryIntegrationSpec.scala
Expand Up @@ -153,13 +153,17 @@ class QueryIntegrationSpec extends CasbahDBTestSpecification {

"$max" should {
"Work with a single pair" in {
serverIsAtLeastVersion(2, 46) must beTrue.orSkip("Needs server >= 2.6")

collection.drop()
collection += MongoDBObject("hello" -> "world", "foo" -> 5.0)

collection.update(MongoDBObject("hello" -> "world"), $max("foo" -> 6.0))
collection.findOne().get("foo") must beEqualTo(6)
}
"Work with multiple pairs" in {
serverIsAtLeastVersion(2, 46) must beTrue.orSkip("Needs server >= 2.6")

collection.drop()
collection += MongoDBObject("hello" -> "world", "foo" -> 5.0, "bar" -> 5.0)

Expand Down
2 changes: 1 addition & 1 deletion casbah-query/src/main/scala/BarewordOperators.scala
Expand Up @@ -173,7 +173,7 @@ trait IncOp extends BarewordQueryOperator {
*
* {{{ \$max ("foo" -> 5.0, "bar" -> 1.6) }}}
*
* @since 2.7
* @since 2.8
* @see http://docs.mongodb.org/manual/reference/operator/update/max/
*/
trait MaxOp extends BarewordQueryOperator {
Expand Down
4 changes: 2 additions & 2 deletions project/CasbahBuild.scala
Expand Up @@ -15,7 +15,7 @@ object CasbahBuild extends Build {
lazy val buildSettings = Seq(
organization := "org.mongodb",
organizationHomepage := Some(url("http://www.mongodb.org")),
version := "2.8.0-RC2",
version := "2.8.0",
scalaVersion := "2.10.4",
crossScalaVersions := Seq("2.11.5", "2.10.4", "2.9.3")
)
Expand Down Expand Up @@ -139,7 +139,7 @@ object CasbahBuild extends Build {
object Dependencies {

//val mongoJavaDriver = "org.mongodb" % "mongo-java-driver" % "3.0.0-SNAPSHOT"
val mongoJavaDriver = "org.mongodb" % "mongo-java-driver" % "2.13.0-rc2"
val mongoJavaDriver = "org.mongodb" % "mongo-java-driver" % "2.13.0"
val slf4j = "org.slf4j" % "slf4j-api" % "1.6.0"
val junit = "junit" % "junit" % "4.10" % "test"
val slf4jJCL = "org.slf4j" % "slf4j-jcl" % "1.6.0" % "test"
Expand Down
5 changes: 5 additions & 0 deletions src/sphinx/changelog.rst
Expand Up @@ -5,6 +5,11 @@ Changelog
Casbah jira project is here: https://jira.mongodb.org/browse/CASBAH


Changes in Version 2.8.0
------------------------
- Updated Mongo Java Driver to 2.13.0 (https://github.com/mongodb/mongo-java-driver/releases/tag/r2.13.0) (CASBAH-156)
- Added support for $max in DSL (https://github.com/mongodb/casbah/pull/69) (CASBAH-163)

Changes in Version 2.8.0-rc2
----------------------------
- Updated Mongo Java Driver to 2.13.0-rc2 (https://github.com/mongodb/mongo-java-driver/releases/tag/r2.13.0-rc2) (CASBAH-156)
Expand Down
4 changes: 2 additions & 2 deletions src/sphinx/conf.py
Expand Up @@ -49,9 +49,9 @@
# built documents.
#
# The short X.Y version.
version = '2.7'
version = '2.8'
# The full version, including alpha/beta/rc tags.
release = '2.7.5'
release = '2.8.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 3 additions & 3 deletions src/sphinx/guide/installation_alt.rst
Expand Up @@ -72,7 +72,7 @@ releases and should be considered (and kept) stable.

.. |scala_versions| replace:: 2.9.3, 2.10.x, 2.11.x
.. |all_dep_urls| replace::
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.11/2.7.5/casbah-alldep_2.11-2.7.5.jar
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.10/2.7.5/casbah-alldep_2.10-2.7.5.jar
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.9.3/2.7.5/casbah-alldep_2.9.3-2.7.5.jar
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.11/2.8.0/casbah-alldep_2.11-2.8.0.jar
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.10/2.8.0/casbah-alldep_2.10-2.8.0.jar
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.9.3/2.8.0/casbah-alldep_2.9.3-2.8.0.jar

0 comments on commit a7ea8be

Please sign in to comment.