From b889099350717ca333c67058e9cdfec9d8fce924 Mon Sep 17 00:00:00 2001 From: augustnagro Date: Fri, 7 Jun 2024 13:17:27 -0700 Subject: [PATCH] release v1.2.0 --- README.md | 4 ++-- build.sbt | 2 +- magnum/src/test/scala/OracleTests.scala | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 25d4035..6898161 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Yet another database client for Scala. No dependencies, high productivity. ## Installing ``` -"com.augustnagro" %% "magnum" % "1.1.1" +"com.augustnagro" %% "magnum" % "1.2.0" ``` Magnum requires Scala >= 3.3.0 @@ -465,7 +465,7 @@ This feature should be used sparingly and never with untrusted input. The Postgres Module adds support for [Geometric Types](https://www.postgresql.org/docs/current/datatype-geometric.html) and [Arrays](https://www.postgresql.org/docs/current/arrays.html). Postgres Arrays can be decoded into Scala List/Vector/IArray, etc; multi-dimensionality is also supported. ``` -"com.augustnagro" %% "magnumpg" % "" +"com.augustnagro" %% "magnumpg" % "1.2.0" ``` Example: Insert into a table with a `point[]` type column. diff --git a/build.sbt b/build.sbt index 1edb21d..cc78a3f 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,5 @@ ThisBuild / organization := "com.augustnagro" -ThisBuild / version := "1.1.2-SNAPSHOT" +ThisBuild / version := "1.2.0" ThisBuild / versionScheme := Some("early-semver") ThisBuild / scalaVersion := "3.3.0" ThisBuild / scalacOptions ++= Seq("-deprecation") diff --git a/magnum/src/test/scala/OracleTests.scala b/magnum/src/test/scala/OracleTests.scala index 5325e0d..ed25a04 100644 --- a/magnum/src/test/scala/OracleTests.scala +++ b/magnum/src/test/scala/OracleTests.scala @@ -347,8 +347,7 @@ class OracleTests extends FunSuite, TestContainersFixtures: val rowsInserted = update.run() assertEquals(rowsInserted, 1) assertEquals(personRepo.count, 9L) - val fetched = personRepo.findAll.last - assertEquals(fetched.firstName, p.firstName) + val fetched = personRepo.findAll.find(_.firstName == p.firstName).get assertEquals(fetched.lastName, p.lastName) assertEquals(fetched.isAdmin, p.isAdmin)