Skip to content

Commit

Permalink
Bump circe to 0.14.0 (close #496)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Oct 5, 2021
1 parent ab44a1b commit 19d3edf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ object SpecHelpers {
)

val enrichmentRegistry = EnrichmentRegistry
.build(enrichmentConfs, BlockerF.noop)
.build[Id](enrichmentConfs, BlockerF.noop)
.fold(
e => throw new RuntimeException(e.toList.mkString("\n")),
r => r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import io.circe._
import io.circe.literal._
import io.circe.parser._

import cats.Id

import com.snowplowanalytics.iglu.core.{SchemaKey, SchemaVer, SelfDescribingData}

import org.specs2.Specification
Expand Down Expand Up @@ -88,7 +90,7 @@ class SqlQueryEnrichmentIntegrationTest extends Specification {

val event = new EnrichedEvent

val config = SqlQueryEnrichment.parse(configuration, SCHEMA_KEY).map(_.enrichment(BlockerF.noop))
val config = SqlQueryEnrichment.parse(configuration, SCHEMA_KEY).map(_.enrichment[Id](BlockerF.noop))
val context = config.toEither.flatMap(_.lookup(event, Nil, Nil, None).toEither)

val correctContext =
Expand Down Expand Up @@ -312,7 +314,7 @@ class SqlQueryEnrichmentIntegrationTest extends Specification {
json""" {"applicationName": "ue_test_london"} """
)

val config = SqlQueryEnrichment.parse(configuration, SCHEMA_KEY).toEither.map(_.enrichment(BlockerF.noop))
val config = SqlQueryEnrichment.parse(configuration, SCHEMA_KEY).toEither.map(_.enrichment[Id](BlockerF.noop))

val context1 =
config.flatMap(_.lookup(event1, List(weatherContext1), List(geoContext1), Some(ue1)).toEither)
Expand Down Expand Up @@ -403,7 +405,7 @@ class SqlQueryEnrichmentIntegrationTest extends Specification {
val event = new EnrichedEvent
event.user_id = null

val config = SqlQueryEnrichment.parse(configuration, SCHEMA_KEY).map(_.enrichment(BlockerF.noop))
val config = SqlQueryEnrichment.parse(configuration, SCHEMA_KEY).map(_.enrichment[Id](BlockerF.noop))
val context = config.toEither.flatMap(_.lookup(event, Nil, Nil, None).toEither)

context must beRight(Nil)
Expand Down
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ object Dependencies {

val refererParser = "1.1.0"
val maxmindIplookups = "0.7.1"
val circe = "0.13.0"
val circeOptics = "0.13.0"
val circe = "0.14.0"
val circeOptics = "0.14.0"
val circeConfig = "0.7.0"
val circeJackson = "0.13.0"
val circeJackson = "0.14.0"
val scalaForex = "1.0.0"
val scalaWeather = "1.0.0"
val gatlingJsonpath = "0.6.14"
Expand Down

0 comments on commit 19d3edf

Please sign in to comment.