Skip to content

Commit ef8953d

Browse files
committed
Update sbt, scala and libs
1 parent 0dd454e commit ef8953d

File tree

9 files changed

+21
-20
lines changed

9 files changed

+21
-20
lines changed

build.sbt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
val ScalaV = "2.13.4"
21
val JoguinV = "2.0"
32

4-
val CatsV = "2.3.0"
5-
val CatsEffectV = "2.3.0"
6-
val RefinedV = "0.9.18"
3+
val ScalaV = "2.13.5"
4+
5+
val CatsV = "2.6.0"
6+
val CatsEffectV = "3.1.0"
7+
val RefinedV = "0.9.24"
78
val CirceV = "0.13.0"
89
val BetterMonadicForV = "0.3.1"
910
val KindProjectorV = "0.10.3"
10-
val ScalaTestV = "3.2.3"
11+
val ScalaTestV = "3.2.8"
1112
val ScalatestPlusScalaCheckV = "3.1.1.1"
1213
val ScalaCheckShapelessV = "1.2.5"
1314
val CatsScalaCheckV = "0.3.0"
@@ -93,4 +94,4 @@ ThisBuild / scalacOptions ++= Seq(
9394
"-Ymacro-annotations"
9495
)
9596

96-
mainClass in assembly := Some("joguin.JoguinApplication")
97+
assembly / mainClass := Some("joguin.JoguinApplication")

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.4.4
1+
sbt.version = 1.5.1

src/main/scala/joguin/alien/terraformdevice/PowerGeneratorF.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package joguin.alien.terraformdevice
22

33
import cats.InjectK
44
import cats.free.Free
5-
import cats.free.Free.inject
5+
import cats.free.Free.liftInject
66
import joguin.alien.Power
77
import joguin.alien.terraformdevice.PowerGeneratorF.GeneratePower
88

@@ -14,7 +14,7 @@ object PowerGeneratorF {
1414

1515
final class PowerGeneratorOps[F[_]](implicit i: InjectK[PowerGeneratorF, F]) {
1616
def generatePower(min: Power, max: Power): Free[F, Power] =
17-
inject(GeneratePower(min, max))
17+
liftInject(GeneratePower(min, max))
1818
}
1919

2020
object PowerGeneratorOps {

src/main/scala/joguin/earth/city/CityRepositoryF.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object CityRepositoryF {
1313
}
1414

1515
final class CityRepositoryOps[F[_]](implicit i: InjectK[CityRepositoryF, F]) {
16-
def findAllCities: Free[F, IdxSeq[City]] = inject(FindAllCities)
16+
def findAllCities: Free[F, IdxSeq[City]] = liftInject(FindAllCities)
1717
}
1818

1919
object CityRepositoryOps {

src/main/scala/joguin/game/progress/GameProgressRepositoryF.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ object GameProgressRepositoryF {
1414
}
1515

1616
final class GameProgressRepositoryOps[F[_]](implicit i: InjectK[GameProgressRepositoryF, F]) {
17-
def save(gameProgress: GameProgress): Free[F, Boolean] = inject(Save(gameProgress))
18-
def savedProgressExists: Free[F, Boolean] = inject(SavedProgressExists)
19-
def restore: Free[F, Option[GameProgress]] = inject(Restore)
17+
def save(gameProgress: GameProgress): Free[F, Boolean] = liftInject(Save(gameProgress))
18+
def savedProgressExists: Free[F, Boolean] = liftInject(SavedProgressExists)
19+
def restore: Free[F, Option[GameProgress]] = liftInject(Restore)
2020
}
2121

2222
object GameProgressRepositoryOps {

src/main/scala/joguin/playerinteraction/interaction/InteractionF.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ object InteractionF {
1515

1616
final class InteractionOps[F[_]](implicit i: InjectK[InteractionF, F]) {
1717
def writeMessage(message: String): Free[F, Unit] =
18-
inject(WriteMessage(message))
18+
liftInject(WriteMessage(message))
1919

2020
def readAnswer: Free[F, String] =
21-
inject(ReadAnswer)
21+
liftInject(ReadAnswer)
2222
}
2323

2424
object InteractionOps {

src/main/scala/joguin/playerinteraction/message/MessagesF.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ object MessagesF {
2626

2727
final class MessagesOps[F[_]](implicit i: InjectK[MessagesF, F]) {
2828
def getLocalizedMessageSource[T <: MessageSource](source: T): Free[F, LocalizedMessageSource[T]] =
29-
inject[MessagesF, F](GetLocalizedMessageSource(source))
29+
liftInject[F].apply[MessagesF, LocalizedMessageSource[T]](GetLocalizedMessageSource(source))
3030

3131
def getMessage[T <: MessageSource](source: LocalizedMessageSource[T])(key: T#Key): Free[F, String] =
32-
inject[MessagesF, F](GetMessage(source, key))
32+
liftInject[F].apply[MessagesF, String](GetMessage(source, key))
3333

3434
def getMessageFmt[T <: MessageSource](
3535
source: LocalizedMessageSource[T]
3636
)(key: T#Key, args: List[String]): Free[F, String] =
37-
inject[MessagesF, F](GetMessageFmt(source, key, args))
37+
liftInject[F].apply[MessagesF, String](GetMessageFmt(source, key, args))
3838
}
3939

4040
object MessagesOps {

src/main/scala/joguin/playerinteraction/wait/WaitF.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object WaitF {
1515

1616
final class WaitOps[F[_]](implicit i: InjectK[WaitF, F]) {
1717
def waitFor(duration: FiniteDuration): Free[F, Unit] =
18-
inject(WaitFor(duration))
18+
liftInject(WaitFor(duration))
1919
}
2020

2121
object WaitOps {

src/test/scala/joguin/testutil/generators/other/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package object other {
88
implicit val quitOption: Arbitrary[String] = Arbitrary(genQuitOption)
99

1010
def genSmallInt: Gen[Int] =
11-
Gen.choose(min = 1, max = 10)
11+
Gen.choose(min = 1, max = 100)
1212

1313
def genQuitOption: Gen[String] =
1414
Gen.oneOf("q", "Q")

0 commit comments

Comments
 (0)