Skip to content

Commit

Permalink
Merge pull request #30 from permutive/dependency-updates
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
bastewart authored Nov 12, 2019
2 parents 81583f1 + 703ace3 commit 0a01574
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ import scala.util.Try
object ExampleGoogle extends IOApp {

final implicit val Codec: JsonValueCodec[ExampleObject] =
JsonCodecMaker.make[ExampleObject](CodecMakerConfig())
JsonCodecMaker.make[ExampleObject](CodecMakerConfig)

implicit val encoder: MessageEncoder[ExampleObject] = (a: ExampleObject) => {
Try(writeToArray(a)).toEither
Expand Down Expand Up @@ -253,7 +253,7 @@ object ExampleBatching extends IOApp {
private[this] final implicit val unsafeLogger: Logger[IO] = Slf4jLogger.unsafeCreate[IO]

final implicit val Codec: JsonValueCodec[ExampleObject] =
JsonCodecMaker.make[ExampleObject](CodecMakerConfig())
JsonCodecMaker.make[ExampleObject](CodecMakerConfig)

implicit val encoder: MessageEncoder[ExampleObject] = (a: ExampleObject) => {
Try(writeToArray(a)).toEither
Expand Down
10 changes: 5 additions & 5 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ object Dependencies {

val catsCore = "2.0.0"
val effect = "2.0.0"
val fs2 = "2.0.1"
val fs2 = "2.1.0"
val http4s = "0.21.0-M5"
val log4cats = "1.0.0"
val jwt = "3.8.2"
val jsoniter = "0.55.2"
val gcp = "1.87.0"
val log4cats = "1.0.1"
val jwt = "3.8.3"
val jsoniter = "2.0.1"
val gcp = "1.100.0"

val scalatest = "3.1.0-RC3"
val scalatestPlus = "3.1.0.0-RC2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ case class PubsubMessage(

object PubsubMessage {
implicit final val Codec: JsonValueCodec[PubsubMessage] =
JsonCodecMaker.make[PubsubMessage](CodecMakerConfig())
JsonCodecMaker.make[PubsubMessage](CodecMakerConfig)
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,6 @@ private[internal] object HttpPubsubReader {

object PubSubErrorResponse {
implicit final val Codec: JsonValueCodec[PubSubErrorResponse] =
JsonCodecMaker.make[PubSubErrorResponse](CodecMakerConfig())
JsonCodecMaker.make[PubSubErrorResponse](CodecMakerConfig)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ private[http] object Model {
case class Record[F[_]](value: PubsubMessage, ack: F[Unit], nack: F[Unit])

implicit final val PullRequestCodec: JsonValueCodec[PullRequest] =
JsonCodecMaker.make[PullRequest](CodecMakerConfig())
JsonCodecMaker.make[PullRequest](CodecMakerConfig)

implicit final val PullResponseCodec: JsonValueCodec[PullResponse] =
JsonCodecMaker.make[PullResponse](CodecMakerConfig())
JsonCodecMaker.make[PullResponse](CodecMakerConfig)

implicit final val AckRequestCodec: JsonValueCodec[AckRequest] =
JsonCodecMaker.make[AckRequest](CodecMakerConfig())
JsonCodecMaker.make[AckRequest](CodecMakerConfig)

implicit final val NackRequestCodec: JsonValueCodec[NackRequest] =
JsonCodecMaker.make[NackRequest](CodecMakerConfig())
JsonCodecMaker.make[NackRequest](CodecMakerConfig)

case class AckId(value: String) extends AnyVal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ object GoogleAccountParser {
object JsonGoogleServiceAccount {
implicit final val codec: JsonValueCodec[JsonGoogleServiceAccount] =
JsonCodecMaker.make[JsonGoogleServiceAccount](
CodecMakerConfig(
fieldNameMapper = JsonCodecMaker.enforce_snake_case
)
CodecMakerConfig.withFieldNameMapper(JsonCodecMaker.enforce_snake_case)
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ final case class AccessToken(accessToken: String, tokenType: String, expiresIn:
object AccessToken {
implicit final val codec: JsonValueCodec[AccessToken] =
JsonCodecMaker.make[AccessToken](
CodecMakerConfig(
fieldNameMapper = JsonCodecMaker.enforce_snake_case
)
CodecMakerConfig.withFieldNameMapper(JsonCodecMaker.enforce_snake_case)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ private[http] object DefaultHttpPublisher {
}

implicit final val MessageCodec: JsonValueCodec[Message] =
JsonCodecMaker.make[Message](CodecMakerConfig())
JsonCodecMaker.make[Message](CodecMakerConfig)

implicit final def messageBundleCodec[G[_]: Foldable]: JsonValueCodec[MessageBundle[G]] =
JsonCodecMaker.make[MessageBundle[G]](CodecMakerConfig())
JsonCodecMaker.make[MessageBundle[G]](CodecMakerConfig)

implicit final val MessageIdsCodec: JsonValueCodec[MessageIds] =
JsonCodecMaker.make[MessageIds](CodecMakerConfig())
JsonCodecMaker.make[MessageIds](CodecMakerConfig)

case class FailedRequestToPubsub(response: String)
extends Throwable(s"Failed request to pubsub. Response was: $response")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import scala.util.Try
object ExampleBatching extends IOApp {

implicit final val Codec: JsonValueCodec[ExampleObject] =
JsonCodecMaker.make[ExampleObject](CodecMakerConfig())
JsonCodecMaker.make[ExampleObject](CodecMakerConfig)

implicit val encoder: MessageEncoder[ExampleObject] = (a: ExampleObject) => {
Try(writeToArray(a)).toEither
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import scala.util.Try
object ExampleEmulator extends IOApp {

implicit final val Codec: JsonValueCodec[ExampleObject] =
JsonCodecMaker.make[ExampleObject](CodecMakerConfig())
JsonCodecMaker.make[ExampleObject](CodecMakerConfig)

implicit val encoder: MessageEncoder[ExampleObject] = (a: ExampleObject) => {
Try(writeToArray(a)).toEither
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import scala.util.Try
object ExampleGoogle extends IOApp {

implicit final val Codec: JsonValueCodec[ExampleObject] =
JsonCodecMaker.make[ExampleObject](CodecMakerConfig())
JsonCodecMaker.make[ExampleObject](CodecMakerConfig)

implicit val encoder: MessageEncoder[ExampleObject] = (a: ExampleObject) => {
Try(writeToArray(a)).toEither
Expand Down

0 comments on commit 0a01574

Please sign in to comment.