From 0b2764b75469fc8c94349edb8b73e6801fd1e44b Mon Sep 17 00:00:00 2001 From: Martin Nijboer Date: Thu, 21 Mar 2024 19:16:31 +0100 Subject: [PATCH] Prepare version 0.3.2 (#85) * Use Elixir 1.16.2 for development * Bump version to 0.3.2 * Use elixir 1.16.2 in CI --- .github/workflows/elixir.yml | 4 ++-- .tool-versions | 4 ++-- CHANGELOG.md | 4 ++++ mix.exs | 2 +- test/goal_test.exs | 15 +++++++-------- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index a045c66..418c55f 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -18,8 +18,8 @@ jobs: - uses: actions/checkout@v3 - uses: erlef/setup-beam@v1 with: - elixir-version: "1.13.3" - otp-version: "24.2" + elixir-version: "1.16.2" + otp-version: "26.2" - uses: actions/cache@v3 with: path: deps diff --git a/.tool-versions b/.tool-versions index a3e066b..8d5e719 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -erlang 25.1.2 -elixir 1.14.2-otp-25 \ No newline at end of file +erlang 26.2.1 +elixir 1.16.2-otp-26 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bb604b..4584c19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.3.2 + +- Adds support for custom regexes via the application config. + # 0.3.1 - Adds support for recasing inbound keys in `changeset/3` diff --git a/mix.exs b/mix.exs index 317636b..742dcc5 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Goal.MixProject do use Mix.Project - @version "0.3.1" + @version "0.3.2" @source_url "https://github.com/martinthenth/goal" @changelog_url "https://github.com/martinthenth/goal/blob/main/CHANGELOG.md" diff --git a/test/goal_test.exs b/test/goal_test.exs index 4bfe679..bf023f8 100644 --- a/test/goal_test.exs +++ b/test/goal_test.exs @@ -115,8 +115,8 @@ defmodule GoalTest do action: nil, changes: %{}, errors: [ - id: {"can't be blank", [validation: :required]}, - any_1: {"can't be blank", [validation: :required]} + any_1: {"can't be blank", [validation: :required]}, + id: {"can't be blank", [validation: :required]} ], data: %{}, valid?: false @@ -136,8 +136,8 @@ defmodule GoalTest do action: nil, changes: %{}, errors: [ - id: {"can't be blank", [validation: :required]}, - any_1: {"can't be blank", [validation: :required]} + any_1: {"can't be blank", [validation: :required]}, + id: {"can't be blank", [validation: :required]} ], data: %{}, valid?: false @@ -165,8 +165,8 @@ defmodule GoalTest do action: :validate, changes: %{}, errors: [ - id: {"can't be blank", [validation: :required]}, - any_1: {"can't be blank", [validation: :required]} + any_1: {"can't be blank", [validation: :required]}, + id: {"can't be blank", [validation: :required]} ], data: %{}, valid?: false @@ -178,8 +178,7 @@ defmodule GoalTest do assert validate(:show, %{id: 123, user_id: 123, any_1: 123}, recase_keys: [from: :camel_case] - ) == - {:ok, %{id: 123, user_id: 123, any_1: 123}} + ) == {:ok, %{id: 123, user_id: 123, any_1: 123}} end end