Skip to content

Commit

Permalink
Prepare version 0.3.2 (#85)
Browse files Browse the repository at this point in the history
* Use Elixir 1.16.2 for development

* Bump version to 0.3.2

* Use elixir 1.16.2 in CI
  • Loading branch information
martinthenth authored Mar 21, 2024
1 parent b43fbb8 commit 0b2764b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 25.1.2
elixir 1.14.2-otp-25
erlang 26.2.1
elixir 1.16.2-otp-26
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
15 changes: 7 additions & 8 deletions test/goal_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 0b2764b

Please sign in to comment.