Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Upgrade library dependecies (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger authored Apr 10, 2017
1 parent 84d0489 commit 6ac06d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ object ErrorAccumulatingCirceSupport extends ErrorAccumulatingCirceSupport
*
* To use automatic codec derivation import `io.circe.generic.auto._`.
*/
trait ErrorAccumulatingCirceSupport
extends BaseCirceSupport
with ErrorAccumulatingUnmarshaller
trait ErrorAccumulatingCirceSupport extends BaseCirceSupport with ErrorAccumulatingUnmarshaller

@deprecated(message = "Use either FailFastCirceSupport or ErrorAccumulatingCirceSupport",
since = "1.13.0")
Expand All @@ -79,7 +77,9 @@ trait BaseCirceSupport {
*
* @return marshaller for JSON value
*/
implicit final def jsonMarshaller(implicit printer: Printer = Printer.noSpaces): ToEntityMarshaller[Json] =
implicit final def jsonMarshaller(
implicit printer: Printer = Printer.noSpaces
): ToEntityMarshaller[Json] =
Marshaller.withFixedContentType(`application/json`) { json =>
HttpEntity(`application/json`, printer.pretty(json))
}
Expand All @@ -90,7 +90,9 @@ trait BaseCirceSupport {
* @tparam A type to encode
* @return marshaller for any `A` value
*/
implicit final def marshaller[A: Encoder](implicit printer: Printer = Printer.noSpaces): ToEntityMarshaller[A] =
implicit final def marshaller[A: Encoder](
implicit printer: Printer = Printer.noSpaces
): ToEntityMarshaller[A] =
jsonMarshaller(printer).compose(implicitly[Encoder[A]].apply)

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ final class CirceSupportSpec extends AsyncWordSpec with Matchers with BeforeAndA
val optionFoo = OptionFoo(None)
Marshal(optionFoo)
.to[RequestEntity]
.map(_.asInstanceOf[HttpEntity.Strict].data.decodeString("UTF-8") shouldBe "{\"a\":null}")
.map(_.asInstanceOf[HttpEntity.Strict].data.decodeString("UTF-8") shouldBe "{\"a\":null}")
}

"not write None" in {
implicit val printer = Printer.noSpaces.copy(dropNullKeys = true)
val optionFoo = OptionFoo(None)
val optionFoo = OptionFoo(None)
Marshal(optionFoo)
.to[RequestEntity]
.map(_.asInstanceOf[HttpEntity.Strict].data.decodeString("UTF-8") shouldBe "{}")
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ lazy val library =
object Version {
final val akka = "2.4.17"
final val akkaHttp = "10.0.5"
final val argonaut = "6.2-RC2"
final val argonaut = "6.2"
final val circe = "0.7.1"
final val jacksonScala = "2.8.7"
final val jacksonScala = "2.8.8"
final val json4s = "3.5.1"
final val play = "2.6.0-M6"
final val scala = "2.12.1"
Expand Down
8 changes: 5 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.0.0")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.6.5")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.0")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.6.6")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.8.5")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.2")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.8.0")
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")

libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.7.25" // Needed by sbt-git

0 comments on commit 6ac06d8

Please sign in to comment.