(patch) version updates and doc updates (#15)
All checks were successful
/ Build and Release Library (push) Successful in 1m51s

Reviewed-on: #15
This commit is contained in:
Pat Garrity 2025-07-28 02:37:36 +00:00
parent 5f6d9086bc
commit fad88877fb
6 changed files with 16 additions and 5 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ project/target/
project/project/ project/project/
modules/core/target/ modules/core/target/
.version .version
.scala-version

View file

@ -1,4 +1,4 @@
val scala3: String = "3.6.4" val scala3: String = "3.7.1"
ThisBuild / scalaVersion := scala3 ThisBuild / scalaVersion := scala3
ThisBuild / versionScheme := Some("semver-spec") ThisBuild / versionScheme := Some("semver-spec")
@ -20,7 +20,7 @@ val sharedSettings = Seq(
lazy val testSettings = Seq( lazy val testSettings = Seq(
libraryDependencies ++= Seq( libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "1.1.0" % Test "org.scalameta" %% "munit" % "1.1.1" % Test
) )
) )

View file

@ -1 +1 @@
sbt.version=1.10.11 sbt.version=1.11.2

View file

@ -25,9 +25,10 @@ credentials += selectCredentials()
externalResolvers := Seq( externalResolvers := Seq(
"Garrity Software Mirror" at "https://maven.garrity.co/releases", "Garrity Software Mirror" at "https://maven.garrity.co/releases",
"Garrity Software Snapshots" at "https://maven.garrity.co/snapshots",
"Garrity Software Releases" at "https://maven.garrity.co/gs" "Garrity Software Releases" at "https://maven.garrity.co/gs"
) )
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.1.0") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.1.0")
addSbtPlugin("gs" % "sbt-garrity-software" % "0.5.0") addSbtPlugin("gs" % "sbt-garrity-software" % "0.6.0")
addSbtPlugin("gs" % "sbt-gs-semver" % "0.3.0") addSbtPlugin("gs" % "sbt-gs-semver" % "0.3.0")

View file

@ -118,7 +118,8 @@ object UUID:
* @return * @return
* Hexadecimal string representation of this UUID. * Hexadecimal string representation of this UUID.
*/ */
def str(dashes: Boolean = false): String = withoutDashes() def str(dashes: Boolean = false): String =
if dashes then withDashes() else withoutDashes()
/** @return /** @return
* Hexadecimal string representation of this UUID, without dashes. * Hexadecimal string representation of this UUID, without dashes.

View file

@ -56,6 +56,14 @@ class UUIDTests extends munit.FunSuite:
assertEquals(UUID.parse(base.withDashes()), Some(base)) assertEquals(UUID.parse(base.withDashes()), Some(base))
} }
test(
"should successfully parse a UUID with dashes (alternative serializer)"
) {
val raw = java.util.UUID.randomUUID()
val base = UUID(raw)
assertEquals(UUID.parse(base.str(true)), Some(base))
}
test( test(
"should successfully parse a UUID with dashes, generated with this library" "should successfully parse a UUID with dashes, generated with this library"
) { ) {