Skip to content

Commit

Permalink
Update scala-library to 2.13.6
Browse files Browse the repository at this point in the history
  • Loading branch information
scala-steward authored and NomadBlacky committed Jun 13, 2021
1 parent 0ffdd49 commit 0073e7c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._

val Scala2_13 = "2.13.3"
val Scala2_13 = "2.13.6"
val Scala2_12 = "2.12.14"

val supportedScalaVersions = List(Scala2_13, Scala2_12)
Expand Down
5 changes: 4 additions & 1 deletion src/main/scala/scaladog/api/StatusResponse.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package scaladog.api

import scala.annotation.nowarn

case class StatusResponse(status: String) {
val isOk: Boolean = status.toLowerCase == "ok"
}

object StatusResponse {
implicit val reader: DDPickle.Reader[StatusResponse] = DDPickle.macroR
// https://github.com/com-lihaoyi/upickle/issues/345
@nowarn implicit val reader: DDPickle.Reader[StatusResponse] = DDPickle.macroR
}
5 changes: 4 additions & 1 deletion src/main/scala/scaladog/api/events/GetEventResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ package scaladog.api.events

import scaladog.api.DDPickle

import scala.annotation.nowarn

case class GetEventResponse(event: Event)

object GetEventResponse {
implicit val reader: DDPickle.Reader[GetEventResponse] = DDPickle.macroR
// https://github.com/com-lihaoyi/upickle/issues/345
@nowarn implicit val reader: DDPickle.Reader[GetEventResponse] = DDPickle.macroR
}
5 changes: 4 additions & 1 deletion src/main/scala/scaladog/api/events/QueryEventsResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ package scaladog.api.events

import scaladog.api.DDPickle

import scala.annotation.nowarn

private[events] case class QueryEventsResponse(events: Seq[Event])

private[events] object QueryEventsResponse {
implicit val reader: DDPickle.Reader[QueryEventsResponse] = DDPickle.macroR
// https://github.com/com-lihaoyi/upickle/issues/345
@nowarn implicit val reader: DDPickle.Reader[QueryEventsResponse] = DDPickle.macroR
}
5 changes: 3 additions & 2 deletions src/main/scala/scaladog/api/graphs/GraphsAPIClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package scaladog.api.graphs

import java.net.URL
import java.time.Instant

import requests.Requester
import scaladog.api.{APIClient, APIClientFactory, DDPickle, DatadogSite}

import scala.annotation.nowarn
import scala.collection.mutable.ListBuffer

trait GraphsAPIClient extends APIClient {
Expand Down Expand Up @@ -45,5 +45,6 @@ private[graphs] class GraphsAPIClientImpl(
private[graphs] case class SnapshotResponse(snapshotUrl: String)

private[graphs] object SnapshotResponse {
implicit val reader: DDPickle.Reader[SnapshotResponse] = DDPickle.macroR
// https://github.com/com-lihaoyi/upickle/issues/345
@nowarn implicit val reader: DDPickle.Reader[SnapshotResponse] = DDPickle.macroR
}
5 changes: 4 additions & 1 deletion src/test/scala/scaladog/api/APIClientTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package scaladog.api
import requests.Requester
import scaladog.ScaladogUnitTest

import scala.annotation.nowarn

class APIClientTest extends ScaladogUnitTest {
describe("Error handling") {
it("should throws DatadogApiException when return a JSON response") {
Expand Down Expand Up @@ -64,5 +66,6 @@ case class DummyAPIClient(requester: Requester) extends APIClient {
case class DummyResponse(state: String)

object DummyResponse {
implicit val reader: DDPickle.Reader[DummyResponse] = DDPickle.macroR
// https://github.com/com-lihaoyi/upickle/issues/345
@nowarn implicit val reader: DDPickle.Reader[DummyResponse] = DDPickle.macroR
}

0 comments on commit 0073e7c

Please sign in to comment.