Skip to content

Commit

Permalink
Bump snowplow-badrows to 2.1.1 (close #52)
Browse files Browse the repository at this point in the history
  • Loading branch information
spenes committed Aug 16, 2021
1 parent 27c839b commit cbb788a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.sbt
Expand Up @@ -40,6 +40,7 @@ lazy val common = project
Dependencies.analyticsSdk,
Dependencies.badRows,
Dependencies.schemaDdl,
Dependencies.igluClient,
Dependencies.circeLiteral % Test,
Dependencies.specs2,
Dependencies.specs2Check,
Expand Down
Expand Up @@ -19,7 +19,7 @@ import java.nio.file.Files
import cats.data.{EitherT, ValidatedNel}
import cats.implicits._

import cats.effect.{Clock, Sync}
import cats.effect.{Clock, Sync, Async}

import com.typesafe.config.{Config => LightbendConfig, ConfigFactory}

Expand All @@ -46,7 +46,7 @@ object Cli {
val processor = Processor(BuildInfo.name, BuildInfo.version)

/** Parse list of arguments, validate against schema and initialize */
def parse[F[_]: Sync: Clock](args: List[String]): EitherT[F, String, Cli[F]] =
def parse[F[_]: Async: Clock](args: List[String]): EitherT[F, String, Cli[F]] =
command.parse(args) match {
case Left(help) => EitherT.leftT[F, Cli[F]](help.show)
case Right(rawConfig) => fromRawConfig(rawConfig)
Expand All @@ -66,7 +66,7 @@ object Cli {
private def fileExists[F[_]: Sync](pathInfo: PathInfo): F[Boolean] =
Sync[F].delay(Files.exists(pathInfo.allPath))

private def fromRawConfig[F[_]: Sync: Clock](rawConfig: RawConfig): EitherT[F, String, Cli[F]] =
private def fromRawConfig[F[_]: Async: Clock](rawConfig: RawConfig): EitherT[F, String, Cli[F]] =
for {
resolverJson <- loadJson(rawConfig.resolver).toEitherT[F]
igluClient <- Client.parseDefault[F](resolverJson).leftMap(_.show)
Expand Down
4 changes: 3 additions & 1 deletion project/Dependencies.scala
Expand Up @@ -35,8 +35,9 @@ object Dependencies {
val fs2BlobCore = "0.7.3"

val analyticsSdk = "2.1.0"
val badRows = "2.1.0"
val badRows = "2.1.1"
val schemaDdl = "0.13.0"
val igluClient = "1.1.1"

// Testing
val specs2 = "4.9.4"
Expand Down Expand Up @@ -75,6 +76,7 @@ object Dependencies {
val analyticsSdk = "com.snowplowanalytics" %% "snowplow-scala-analytics-sdk" % V.analyticsSdk
val badRows = "com.snowplowanalytics" %% "snowplow-badrows" % V.badRows
val schemaDdl = "com.snowplowanalytics" %% "schema-ddl" % V.schemaDdl
val igluClient = "com.snowplowanalytics" %% "iglu-scala-client" % V.igluClient

// Testing
val specs2 = "org.specs2" %% "specs2-core" % V.specs2 % Test
Expand Down

0 comments on commit cbb788a

Please sign in to comment.