Skip to content

Commit 9d5bc8a

Browse files
committed
bump library versions
1 parent 6829780 commit 9d5bc8a

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

activerecord/src/main/scala/squeryl/ExpressionConversion.scala

+16-12
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class ExpressionConversion(field: FieldInfo) {
2121
case f if f.is[Timestamp] => value.toOption[Timestamp]
2222
case f if f.is[Date] => value.toOption[Date]
2323
case f if f.is[UUID] => value.toOption[UUID]
24+
case _ => throw ActiveRecordException.unsupportedType(field.name)
2425
}
2526

2627
def toEqualityExpression(v1: => Any, v2: => Any): ast.EqualityExpression =
@@ -36,18 +37,21 @@ class ExpressionConversion(field: FieldInfo) {
3637
}
3738

3839
def toInExpression(v1: Any, v2: List[Any]): ast.InclusionOperator = try {
39-
new ast.InclusionOperator(toExpression(v1), new ast.RightHandSideOfIn(new ast.ConstantExpressionNodeList(v2, field match {
40-
case f if f.is[String] => optionStringTEF.createOutMapper
41-
case f if f.is[Boolean] => optionBooleanTEF.createOutMapper
42-
case f if f.is[Int] => optionIntTEF.createOutMapper
43-
case f if f.is[Long] => optionLongTEF.createOutMapper
44-
case f if f.is[Float] => optionFloatTEF.createOutMapper
45-
case f if f.is[Double] => optionDoubleTEF.createOutMapper
46-
case f if f.is[BigDecimal] => optionBigDecimalTEF.createOutMapper
47-
case f if f.is[Timestamp] => optionTimestampTEF.createOutMapper
48-
case f if f.is[Date] => optionDateTEF.createOutMapper
49-
case f if f.is[UUID] => optionUUIDTEF.createOutMapper
50-
})))
40+
new ast.InclusionOperator(toExpression(v1), new ast.RightHandSideOfIn(
41+
new ast.ConstantExpressionNodeList(v2, field match {
42+
case f if f.is[String] => optionStringTEF.createOutMapper
43+
case f if f.is[Boolean] => optionBooleanTEF.createOutMapper
44+
case f if f.is[Int] => optionIntTEF.createOutMapper
45+
case f if f.is[Long] => optionLongTEF.createOutMapper
46+
case f if f.is[Float] => optionFloatTEF.createOutMapper
47+
case f if f.is[Double] => optionDoubleTEF.createOutMapper
48+
case f if f.is[BigDecimal] => optionBigDecimalTEF.createOutMapper
49+
case f if f.is[Timestamp] => optionTimestampTEF.createOutMapper
50+
case f if f.is[Date] => optionDateTEF.createOutMapper
51+
case f if f.is[UUID] => optionUUIDTEF.createOutMapper
52+
case _ => throw ActiveRecordException.unsupportedType(field.name)
53+
})
54+
))
5155
} catch {
5256
case e: RuntimeException => throw ActiveRecordException.unsupportedType(field.name)
5357
}

build.sbt

+8-14
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ val isRelease = System.getProperty("release") == "true"
33

44
def specs2(scope: String, name: String = "core") = Def.setting {
55
val v = scalaBinaryVersion.value match {
6-
case "2.13" => "4.10.2"
6+
case "2.13" => "4.10.5"
77
}
88
"org.specs2" %% s"specs2-${name}" % v % scope
99
}
1010

1111
def play20(app: String, scope: String) = Def.setting {
12-
"com.typesafe.play" %% app % "2.8.2" % scope
12+
"com.typesafe.play" %% app % "2.8.7" % scope
1313
}
1414

1515
val compileOptions = Seq(
@@ -35,17 +35,11 @@ val compilerSettings = Seq(
3535
compileOrder in Compile := CompileOrder.JavaThenScala
3636
)
3737

38-
val defaultResolvers = Seq(
39-
Resolver.sonatypeRepo("snapshots"),
40-
("Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases").withAllowInsecureProtocol(true)
41-
)
42-
4338
val defaultSettings = Seq(
4439
version := (if (isRelease) _version else _version + "-SNAPSHOT"),
4540
organization := "com.github.aselab",
46-
scalaVersion := "2.13.3",
47-
crossScalaVersions := Seq("2.13.3"),
48-
resolvers ++= defaultResolvers,
41+
scalaVersion := "2.13.4",
42+
crossScalaVersions := Seq("2.13.4"),
4943
libraryDependencies ++= Seq(
5044
specs2("test").value,
5145
specs2("test", "mock").value,
@@ -76,11 +70,11 @@ lazy val core: Project = Project("core", file("activerecord")).settings(defaultS
7670
name := "scala-activerecord",
7771
libraryDependencies ++= Seq(
7872
"org.squeryl" %% "squeryl" % "0.9.15",
79-
"com.typesafe" % "config" % "1.4.0",
73+
"com.typesafe" % "config" % "1.4.1",
8074
"com.zaxxer" % "HikariCP" % "3.4.5",
81-
"com.github.nscala-time" %% "nscala-time" % "2.24.0",
75+
"com.github.nscala-time" %% "nscala-time" % "2.26.0",
8276
"commons-validator" % "commons-validator" % "1.7",
83-
"org.json4s" %% "json4s-native" % "3.6.9",
77+
"org.json4s" %% "json4s-native" % "3.6.10",
8478
"org.slf4j" % "slf4j-api" % "1.7.30",
8579
"org.scala-lang" % "scalap" % scalaVersion.value
8680
),
@@ -128,7 +122,7 @@ lazy val play2Specs = project.settings(defaultSettings:_*).settings(
128122
lazy val scalatra = project.settings(defaultSettings:_*).settings(
129123
name := "scala-activerecord-scalatra",
130124
libraryDependencies ++= Seq(
131-
"org.scalatra" %% "scalatra" % "2.7.0" % "provided",
125+
"org.scalatra" %% "scalatra" % "2.7.1" % "provided",
132126
"javax.servlet" % "javax.servlet-api" % "4.0.1" % "provided",
133127
"org.scala-lang" % "scala-compiler" % scalaVersion.value
134128
)

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.3.13
1+
sbt.version=1.4.6

0 commit comments

Comments
 (0)