Skip to content

Commit

Permalink
First milestone release
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Dec 26, 2023
1 parent 0875ba9 commit d7e8e8a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion modules/core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description := "Core of sbt-guardrail plugin, for custom forks of guardrail"
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")

// Explicitly pinning this to a binding so we can grep for it
val guardrailCoreVersion = "1.0.0-SNAPSHOT"
val guardrailCoreVersion = "1.0.0-M1"
resolvers +=
"Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
else addSbtPlugin("dev.guardrail" % "sbt-guardrail" % pluginVersion)
}

libraryDependencies += "dev.guardrail" %% "guardrail-java-support" % "0.73.1"
libraryDependencies += "dev.guardrail" %% "guardrail-java-async-http" % "0.72.0"
libraryDependencies += "dev.guardrail" %% "guardrail-java-dropwizard" % "0.72.0"
libraryDependencies += "dev.guardrail" %% "guardrail-java-support" % "1.0.0-M1"
libraryDependencies += "dev.guardrail" %% "guardrail-java-async-http" % "1.0.0-M1"
libraryDependencies += "dev.guardrail" %% "guardrail-java-dropwizard" % "1.0.0-M1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
else addSbtPlugin("dev.guardrail" % "sbt-guardrail" % pluginVersion)
}

libraryDependencies += "dev.guardrail" %% "guardrail-scala-support" % "0.75.3"
libraryDependencies += "dev.guardrail" %% "guardrail-scala-akka-http" % "0.76.0"
libraryDependencies += "dev.guardrail" %% "guardrail-scala-support" % "1.0.0-M1"
libraryDependencies += "dev.guardrail" %% "guardrail-scala-akka-http" % "1.0.0-M1"
24 changes: 14 additions & 10 deletions src/test/scala/dev/guardrail/sbt/ContextParameterSpec.scala
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
package dev.guardrail.sbt

import dev.guardrail.Context
import dev.guardrail.{ AuthImplementation, Context, TagsBehaviour }

import org.scalatest.funsuite.AnyFunSuite
import org.scalatest.matchers.should.Matchers

class EscapeTreeSpec extends AnyFunSuite with Matchers {

test("Ensure that all Context fields are accounted for") {
val Context(
framework,
customExtraction,
tracing,
modules,
propertyRequirement,
tagsBehaviour,
authImplementation
) = Context.empty
val built = Context(
None,
customExtraction = false,
tracing = false,
modules = List.empty,
propertyRequirement = dev.guardrail.terms.protocol.PropertyRequirement.Configured(
dev.guardrail.terms.protocol.PropertyRequirement.OptionalLegacy,
dev.guardrail.terms.protocol.PropertyRequirement.OptionalLegacy
),
tagsBehaviour = TagsBehaviour.TagsAreIgnored,
authImplementation = AuthImplementation.Disable
)
built.toString() shouldBe (Context.empty.toString())
}
}

0 comments on commit d7e8e8a

Please sign in to comment.