From 20fba7e16557dfb27416ebfcd967c56808d0adc7 Mon Sep 17 00:00:00 2001 From: Z1kkurat Date: Thu, 25 May 2023 17:15:24 +0200 Subject: [PATCH] Update smetrics to 0.5.0; cats-helper to 2.11.0 --- project/Dependencies.scala | 4 ++-- src/main/scala/com/evolution/scache/Cache.scala | 3 +-- src/main/scala/com/evolution/scache/CacheMetered.scala | 3 +-- src/test/scala/com/evolution/scache/IOSuite.scala | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 7c088d2..95f3c57 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -3,8 +3,8 @@ import sbt._ object Dependencies { val scalatest = "org.scalatest" %% "scalatest" % "3.2.3" - val `cats-helper` = "com.evolutiongaming" %% "cats-helper" % "2.8.0" - val smetrics = "com.evolutiongaming" %% "smetrics" % "0.3.6" + val `cats-helper` = "com.evolutiongaming" %% "cats-helper" % "2.11.0" + val smetrics = "com.evolutiongaming" %% "smetrics" % "0.5.0" val `kind-projector` = "org.typelevel" % "kind-projector" % "0.13.2" val betterMonadicFor = "com.olegpy" %% "better-monadic-for" % "0.3.1" diff --git a/src/main/scala/com/evolution/scache/Cache.scala b/src/main/scala/com/evolution/scache/Cache.scala index 59600f3..1de4a3e 100644 --- a/src/main/scala/com/evolution/scache/Cache.scala +++ b/src/main/scala/com/evolution/scache/Cache.scala @@ -5,8 +5,7 @@ import cats.syntax.all._ import cats.kernel.{CommutativeMonoid, Hash, Monoid} import cats.{Functor, Monad, MonadThrow, Parallel, ~>} import com.evolutiongaming.catshelper.CatsHelper._ -import com.evolutiongaming.catshelper.Runtime -import com.evolutiongaming.smetrics.MeasureDuration +import com.evolutiongaming.catshelper.{MeasureDuration, Runtime} import scala.util.control.NoStackTrace diff --git a/src/main/scala/com/evolution/scache/CacheMetered.scala b/src/main/scala/com/evolution/scache/CacheMetered.scala index 3edf1a3..0827030 100644 --- a/src/main/scala/com/evolution/scache/CacheMetered.scala +++ b/src/main/scala/com/evolution/scache/CacheMetered.scala @@ -3,8 +3,7 @@ package com.evolution.scache import cats.effect.{Concurrent, Resource, Timer} import cats.kernel.CommutativeMonoid import cats.syntax.all._ -import com.evolutiongaming.catshelper.Schedule -import com.evolutiongaming.smetrics.MeasureDuration +import com.evolutiongaming.catshelper.{MeasureDuration, Schedule} import scala.concurrent.duration._ diff --git a/src/test/scala/com/evolution/scache/IOSuite.scala b/src/test/scala/com/evolution/scache/IOSuite.scala index 0858c43..3541391 100644 --- a/src/test/scala/com/evolution/scache/IOSuite.scala +++ b/src/test/scala/com/evolution/scache/IOSuite.scala @@ -2,7 +2,7 @@ package com.evolution.scache import cats.Parallel import cats.effect.{Clock, Concurrent, ContextShift, IO, Timer} -import com.evolutiongaming.smetrics.MeasureDuration +import com.evolutiongaming.catshelper.MeasureDuration import org.scalactic.source.Position import org.scalatest.Succeeded import org.scalatest.enablers.Retrying