Skip to content

Commit

Permalink
Merge pull request #113 from laserdisc-io/upgrades
Browse files Browse the repository at this point in the history
upgrades
  • Loading branch information
barryoneill authored Jul 28, 2023
2 parents 48e53ab + ad7fdab commit 04e64dc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.13.10"
ThisBuild / scalaVersion := "2.13.11"

lazy val publishSettings = Seq(
Test / publishArtifact := false,
Expand Down
14 changes: 7 additions & 7 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ object Dependencies {
testFrameworks += new TestFramework("munit.Framework"),
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "0.7.29",
"org.mockito" % "mockito-core" % "5.3.0",
"org.mockito" % "mockito-core" % "5.4.0",
"org.gnieh" %% "diffson-circe" % "4.4.0"
).map(_ % Test)
)

val Slack = Seq(
libraryDependencies += "com.slack.api" % "slack-app-backend" % "1.29.2"
libraryDependencies += "com.slack.api" % "slack-app-backend" % "1.30.0"
)

val Refined = Seq(
libraryDependencies += "eu.timepit" %% "refined" % "0.10.3"
libraryDependencies += "eu.timepit" %% "refined" % "0.11.0"
)

val Logging = Seq(
libraryDependencies ++= Seq(
"org.typelevel" %% "log4cats-slf4j" % "2.5.0",
"ch.qos.logback" % "logback-classic" % "1.4.6" % Test,
"ch.qos.logback" % "logback-core" % "1.4.6" % Test,
"org.typelevel" %% "log4cats-slf4j" % "2.6.0",
"ch.qos.logback" % "logback-classic" % "1.4.8" % Test,
"ch.qos.logback" % "logback-core" % "1.4.8" % Test,
"org.slf4j" % "jcl-over-slf4j" % "2.0.7" % Test,
"org.slf4j" % "jul-to-slf4j" % "2.0.7" % Test
)
)

val Http4sVersion = "0.23.18"
val Http4sVersion = "0.23.23"
val Http4s = Seq(
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % Http4sVersion,
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.3
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.7")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package io.laserdisc.slack4s.slack.internal
import cats.effect.{Async, Ref, Resource}
import cats.implicits._
import com.slack.api.methods.request.chat.ChatPostMessageRequest
import fs2.io.net.Network
import org.http4s.client.Client
import org.http4s.ember.client.EmberClientBuilder
import org.http4s.{Method, Request, Uri}
import org.typelevel.log4cats.slf4j.Slf4jLogger

object SlackAPIClient {

def resource[F[_]: Async]: Resource[F, SlackAPIClientImpl[F]] =
def resource[F[_]: Async: Network]: Resource[F, SlackAPIClientImpl[F]] =
for {
httpClient <- EmberClientBuilder.default[F].build
client = SlackAPIClientImpl(httpClient)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import cats.effect._
import cats.implicits._
import com.comcast.ip4s.{IpAddress, IpLiteralSyntax, Port}
import eu.timepit.refined.auto._
import fs2.io.net.Network
import io.laserdisc.slack4s.slack.internal.SlackAPIClient
import io.laserdisc.slack4s.slashcmd.SlashCommandBotBuilder.Defaults
import io.laserdisc.slack4s.slashcmd.internal.SignatureValidator._
Expand All @@ -23,11 +24,11 @@ object SlashCommandBotBuilder {
val EndpointRoot: EndpointRoot = "/"
}

def apply[F[_]: Async](signingSecret: SigningSecret): SlashCommandBotBuilder[F] =
def apply[F[_]: Async: Network](signingSecret: SigningSecret): SlashCommandBotBuilder[F] =
new SlashCommandBotBuilder[F](signingSecret = signingSecret)
}

class SlashCommandBotBuilder[F[_]: Async] private[slashcmd] (
class SlashCommandBotBuilder[F[_]: Async: Network] private[slashcmd] (
signingSecret: SigningSecret,
bindPort: Port = Defaults.BindPort,
bindAddress: IpAddress = Defaults.BindAddress,
Expand Down

0 comments on commit 04e64dc

Please sign in to comment.