Skip to content

Commit 4ac614a

Browse files
committed
2.13 ad default
1 parent 1012052 commit 4ac614a

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: mongodb
55

66
scala:
77
- 2.12.10
8-
- 2.13.0
8+
- 2.13.1
99

1010
branches:
1111
only:

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Versions
44

5+
### 1.6.7
6+
* Typesave Config 1.4.0
7+
58
### 1.6.6
69
* Scala 2.13
710
* mongo-scala-driver 2.7.0

build.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import sbt.url
22

3-
import scala.sys.process._
4-
53
name := "simple-mongo"
64

75
organization := "com.sfxcode.nosql"
86

9-
crossScalaVersions := Seq("2.13.0", "2.12.10")
7+
crossScalaVersions := Seq("2.13.1", "2.12.10")
108

119
scalaVersion := crossScalaVersions.value.head
1210

@@ -53,7 +51,7 @@ libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.8.0" % Test
5351

5452
libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "2.7.0"
5553

56-
libraryDependencies += "com.typesafe" % "config" % "1.3.4"
54+
libraryDependencies += "com.typesafe" % "config" % "1.4.0"
5755

5856
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
5957

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.3.0
1+
sbt.version=1.3.2

project/plugins.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
1414

1515
// updates, release
1616

17-
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.2")
17+
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.3")
1818

1919
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.5")
2020

2121
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11")
2222

2323
// paradox
24-
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.6.5")
24+
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.6.6")
2525

26-
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-theme" % "0.6.5")
26+
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-theme" % "0.6.6")
2727

2828
addSbtPlugin("io.github.jonas" % "sbt-paradox-material-theme" % "0.6.0")
2929

src/main/scala/com/sfxcode/nosql/mongo/bson/BsonConverter.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import java.time.{ LocalDate, LocalDateTime, ZoneId }
55
import java.util.Date
66

77
import org.mongodb.scala.Document
8+
import org.mongodb.scala.bson.BsonArray.fromIterable
89
import org.mongodb.scala.bson._
910

1011
import scala.collection.JavaConverters._
@@ -64,9 +65,9 @@ object BsonConverter {
6465
})
6566
BsonDocument(doc)
6667
case it: Iterable[Any] =>
67-
BsonArray(it.map(v => toBson(v)))
68+
fromIterable(it.map(v => toBson(v)))
6869
case list: java.util.List[_] =>
69-
BsonArray(list.asScala.map(v => toBson(v)))
70+
fromIterable(list.asScala.map(v => toBson(v)))
7071
case v: AnyRef => converterPlugin.objectToBson(v)
7172
case _ =>
7273
BsonNull()

0 commit comments

Comments
 (0)