Compare commits
No commits in common. "v0.6.1-rc.1" and "v0.6.1-rc.0" have entirely different histories.
v0.6.1-rc.
...
v0.6.1-rc.
6 changed files with 52 additions and 61 deletions
80
.drone.yml
80
.drone.yml
|
@ -251,46 +251,46 @@ steps:
|
||||||
- git log -1 --format=%s > .last_commit_message
|
- git log -1 --format=%s > .last_commit_message
|
||||||
- asdf mix git_ops.check_message .last_commit_message
|
- asdf mix git_ops.check_message .last_commit_message
|
||||||
|
|
||||||
# - name: mix git_ops.release
|
- name: mix git_ops.release
|
||||||
# image: harton.dev/james/asdf_container:latest
|
image: harton.dev/james/asdf_container:latest
|
||||||
# when:
|
when:
|
||||||
# branch:
|
branch:
|
||||||
# - main
|
- main
|
||||||
# event:
|
event:
|
||||||
# exclude:
|
exclude:
|
||||||
# - pull_request
|
- pull_request
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - mix test
|
- mix test
|
||||||
# - mix credo
|
- mix credo
|
||||||
# - mix hex.audit
|
- mix hex.audit
|
||||||
# - mix format
|
- mix format
|
||||||
# - mix spark.formatter
|
- mix spark.formatter
|
||||||
# - mix spark.cheat_sheets
|
- mix spark.cheat_sheets
|
||||||
# - mix deps.unlock
|
- mix deps.unlock
|
||||||
# - mix doctor
|
- mix doctor
|
||||||
# - mix git_ops.check_message
|
- mix git_ops.check_message
|
||||||
# environment:
|
environment:
|
||||||
# MIX_ENV: test
|
MIX_ENV: test
|
||||||
# HEX_HOME: /drone/src/.hex
|
HEX_HOME: /drone/src/.hex
|
||||||
# MIX_HOME: /drone/src/.mix
|
MIX_HOME: /drone/src/.mix
|
||||||
# REBAR_BASE_DIR: /drone/src/.rebar3
|
REBAR_BASE_DIR: /drone/src/.rebar3
|
||||||
# ASDF_DATA_DIR: /drone/src/.asdf
|
ASDF_DATA_DIR: /drone/src/.asdf
|
||||||
# ASDF_DIR: /root/.asdf
|
ASDF_DIR: /root/.asdf
|
||||||
# DRONE_TOKEN:
|
DRONE_TOKEN:
|
||||||
# from_secret: DRONE_TOKEN
|
from_secret: DRONE_TOKEN
|
||||||
# commands:
|
commands:
|
||||||
# - git fetch --tags
|
- git fetch --tags
|
||||||
# - asdf mix git_ops.project_info --format=shell > before.env
|
- asdf mix git_ops.project_info --format=shell > before.env
|
||||||
# - asdf mix git_ops.release --yes --no-major || true
|
- asdf mix git_ops.release --yes --no-major || true
|
||||||
# - asdf mix git_ops.project_info --format=shell > after.env
|
- asdf mix git_ops.project_info --format=shell > after.env
|
||||||
# - . ./before.env
|
- . ./before.env
|
||||||
# - export OLD_APP_VERSION=$${APP_VERSION}
|
- export OLD_APP_VERSION=$${APP_VERSION}
|
||||||
# - . ./after.env
|
- . ./after.env
|
||||||
# - export NEW_APP_VERSION=$${APP_VERSION}
|
- export NEW_APP_VERSION=$${APP_VERSION}
|
||||||
# - if [ "v$${OLD_APP_VERSION}" != "v$${NEW_APP_VERSION}" ]; then
|
- if [ "v$${OLD_APP_VERSION}" != "v$${NEW_APP_VERSION}" ]; then
|
||||||
# - export GIT_URL=$(echo $DRONE_GIT_HTTP_URL | sed -e "s/:\\/\\//:\\/\\/$DRONE_REPO_OWNER:$DRONE_TOKEN@/")
|
- export GIT_URL=$(echo $DRONE_GIT_HTTP_URL | sed -e "s/:\\/\\//:\\/\\/$DRONE_REPO_OWNER:$DRONE_TOKEN@/")
|
||||||
# - git push $${GIT_URL} "HEAD:${DRONE_COMMIT_REF}" "refs/tags/v$${NEW_APP_VERSION}"
|
- git push $${GIT_URL} "HEAD:${DRONE_COMMIT_REF}" "refs/tags/v$${NEW_APP_VERSION}"
|
||||||
# - fi
|
- fi
|
||||||
|
|
||||||
- name: build artifacts
|
- name: build artifacts
|
||||||
image: harton.dev/james/asdf_container:latest
|
image: harton.dev/james/asdf_container:latest
|
||||||
|
|
|
@ -5,15 +5,6 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
|
||||||
|
|
||||||
<!-- changelog -->
|
<!-- changelog -->
|
||||||
|
|
||||||
## [v0.6.1-rc.1](https://harton.dev/james/ash_cubdb/compare/v0.6.1-rc.0...v0.6.1-rc.1) (2024-04-01)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes:
|
|
||||||
|
|
||||||
* deprecation warnings in tests.
|
|
||||||
|
|
||||||
## [v0.6.1-rc.0](https://harton.dev/james/ash_cubdb/compare/v0.6.0...v0.6.1-rc.0) (2024-03-30)
|
## [v0.6.1-rc.0](https://harton.dev/james/ash_cubdb/compare/v0.6.0...v0.6.1-rc.0) (2024-03-30)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ by adding `ash_cubdb` to your list of dependencies in `mix.exs`:
|
||||||
```elixir
|
```elixir
|
||||||
def deps do
|
def deps do
|
||||||
[
|
[
|
||||||
{:ash_cubdb, "~> 0.6.1-rc.1"}
|
{:ash_cubdb, "~> 0.6.1-rc.0"}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
6
mix.exs
6
mix.exs
|
@ -1,7 +1,7 @@
|
||||||
defmodule AshCubDB.MixProject do
|
defmodule AshCubDB.MixProject do
|
||||||
use Mix.Project
|
use Mix.Project
|
||||||
|
|
||||||
@version "0.6.1-rc.1"
|
@version "0.6.1-rc.0"
|
||||||
|
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
A CubDB data layer for `Ash` resources.
|
A CubDB data layer for `Ash` resources.
|
||||||
|
@ -70,7 +70,7 @@ defmodule AshCubDB.MixProject do
|
||||||
opts = [only: ~w[dev test]a, runtime: false]
|
opts = [only: ~w[dev test]a, runtime: false]
|
||||||
|
|
||||||
[
|
[
|
||||||
{:ash, "== 3.0.0-rc.7"},
|
{:ash, "== 3.0.0-rc.5"},
|
||||||
{:cubdb, "~> 2.0"},
|
{:cubdb, "~> 2.0"},
|
||||||
{:spark, "~> 2.1"},
|
{:spark, "~> 2.1"},
|
||||||
{:earmark, ">= 0.0.0"},
|
{:earmark, ">= 0.0.0"},
|
||||||
|
@ -82,7 +82,7 @@ defmodule AshCubDB.MixProject do
|
||||||
{:faker, "~> 0.18", opts},
|
{:faker, "~> 0.18", opts},
|
||||||
{:git_ops, "~> 2.6", opts},
|
{:git_ops, "~> 2.6", opts},
|
||||||
{:mix_audit, "~> 2.1", opts},
|
{:mix_audit, "~> 2.1", opts},
|
||||||
{:smokestack, "== 0.6.1-rc.1", opts}
|
{:smokestack, "== 0.6.1-rc.0", opts}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
4
mix.lock
4
mix.lock
|
@ -1,5 +1,5 @@
|
||||||
%{
|
%{
|
||||||
"ash": {:hex, :ash, "3.0.0-rc.7", "f72a64fba1acdce7016984fe9cdf5e3ed856939fb14611d0c168e9971fe9bbed", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.7", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: true]}, {:plug, ">= 0.0.0", [hex: :plug, repo: "hexpm", optional: true]}, {:reactor, "~> 0.8", [hex: :reactor, repo: "hexpm", optional: false]}, {:simple_sat, ">= 0.1.1 and < 1.0.0-0", [hex: :simple_sat, repo: "hexpm", optional: true]}, {:spark, ">= 2.1.7 and < 3.0.0-0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.2", [hex: :splode, repo: "hexpm", optional: false]}, {:stream_data, "~> 0.6", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b6edc89cd39ec68bd765bfea271df011b20ab86f181cfab59ef6159e3a1577b4"},
|
"ash": {:hex, :ash, "3.0.0-rc.5", "351ed5a675c0e0adb001634303a498cc6feda6c9ba0f30c080645bc5fbd8b5b4", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.7", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: true]}, {:plug, ">= 0.0.0", [hex: :plug, repo: "hexpm", optional: true]}, {:reactor, "~> 0.8", [hex: :reactor, repo: "hexpm", optional: false]}, {:simple_sat, ">= 0.1.1 and < 1.0.0-0", [hex: :simple_sat, repo: "hexpm", optional: true]}, {:spark, ">= 2.1.7 and < 3.0.0-0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.2", [hex: :splode, repo: "hexpm", optional: false]}, {:stream_data, "~> 0.6", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "3356375e6488a6ac821a641394986beb495e7a84c4b169ed3d841635b40bbc71"},
|
||||||
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
|
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
|
||||||
"comparable": {:hex, :comparable, "1.0.0", "bb669e91cedd14ae9937053e5bcbc3c52bb2f22422611f43b6e38367d94a495f", [:mix], [{:typable, "~> 0.1", [hex: :typable, repo: "hexpm", optional: false]}], "hexpm", "277c11eeb1cd726e7cd41c6c199e7e52fa16ee6830b45ad4cdc62e51f62eb60c"},
|
"comparable": {:hex, :comparable, "1.0.0", "bb669e91cedd14ae9937053e5bcbc3c52bb2f22422611f43b6e38367d94a495f", [:mix], [{:typable, "~> 0.1", [hex: :typable, repo: "hexpm", optional: false]}], "hexpm", "277c11eeb1cd726e7cd41c6c199e7e52fa16ee6830b45ad4cdc62e51f62eb60c"},
|
||||||
"credo": {:hex, :credo, "1.7.5", "643213503b1c766ec0496d828c90c424471ea54da77c8a168c725686377b9545", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "f799e9b5cd1891577d8c773d245668aa74a2fcd15eb277f51a0131690ebfb3fd"},
|
"credo": {:hex, :credo, "1.7.5", "643213503b1c766ec0496d828c90c424471ea54da77c8a168c725686377b9545", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "f799e9b5cd1891577d8c773d245668aa74a2fcd15eb277f51a0131690ebfb3fd"},
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
|
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
|
||||||
"reactor": {:hex, :reactor, "0.8.1", "1aec71d16083901277727c8162f6dd0f07e80f5ca98911b6ef4f2c95e6e62758", [:mix], [{:libgraph, "~> 0.16", [hex: :libgraph, repo: "hexpm", optional: false]}, {:spark, "~> 2.0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.2", [hex: :splode, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ae3936d97a3e4a316744f70c77b85345b08b70da334024c26e6b5eb8ede1246b"},
|
"reactor": {:hex, :reactor, "0.8.1", "1aec71d16083901277727c8162f6dd0f07e80f5ca98911b6ef4f2c95e6e62758", [:mix], [{:libgraph, "~> 0.16", [hex: :libgraph, repo: "hexpm", optional: false]}, {:spark, "~> 2.0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.2", [hex: :splode, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ae3936d97a3e4a316744f70c77b85345b08b70da334024c26e6b5eb8ede1246b"},
|
||||||
"recase": {:hex, :recase, "0.7.0", "3f2f719f0886c7a3b7fe469058ec539cb7bbe0023604ae3bce920e186305e5ae", [:mix], [], "hexpm", "36f5756a9f552f4a94b54a695870e32f4e72d5fad9c25e61bc4a3151c08a4e0c"},
|
"recase": {:hex, :recase, "0.7.0", "3f2f719f0886c7a3b7fe469058ec539cb7bbe0023604ae3bce920e186305e5ae", [:mix], [], "hexpm", "36f5756a9f552f4a94b54a695870e32f4e72d5fad9c25e61bc4a3151c08a4e0c"},
|
||||||
"smokestack": {:hex, :smokestack, "0.6.1-rc.1", "4b4cbb06293c1c066da2d3f8976b16d3d23226051aeb037b5389650804161fff", [:mix], [{:ash, "3.0.0-rc.7", [hex: :ash, repo: "hexpm", optional: false]}, {:recase, "~> 0.7", [hex: :recase, repo: "hexpm", optional: false]}, {:spark, "~> 2.1", [hex: :spark, repo: "hexpm", optional: false]}], "hexpm", "01b6233720b02a0d81909ed43e2dfea1f2944d469367deb369cfe104176a740e"},
|
"smokestack": {:hex, :smokestack, "0.6.1-rc.0", "660fe802c4df5ee32fa4d03c0509c698aad44de4f75437bac455c53a44b4f175", [:mix], [{:ash, "3.0.0-rc.5", [hex: :ash, repo: "hexpm", optional: false]}, {:recase, "~> 0.7", [hex: :recase, repo: "hexpm", optional: false]}, {:spark, "~> 2.1", [hex: :spark, repo: "hexpm", optional: false]}], "hexpm", "63e14d22f838ad64ac990beee46c5736ca41bdb473ae3a76f52cbb0e1cdc1951"},
|
||||||
"sourceror": {:hex, :sourceror, "1.0.2", "c5e86fdc14881f797749d1fe5df017ca66727a8146e7ee3e736605a3df78f3e6", [:mix], [], "hexpm", "832335e87d0913658f129d58b2a7dc0490ddd4487b02de6d85bca0169ec2bd79"},
|
"sourceror": {:hex, :sourceror, "1.0.2", "c5e86fdc14881f797749d1fe5df017ca66727a8146e7ee3e736605a3df78f3e6", [:mix], [], "hexpm", "832335e87d0913658f129d58b2a7dc0490ddd4487b02de6d85bca0169ec2bd79"},
|
||||||
"spark": {:hex, :spark, "2.1.11", "8093149dfd583b5ce2c06e1fea1faaf4125b50e4703138b2cbefb78c8f4aa07f", [:mix], [{:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.0", [hex: :sourceror, repo: "hexpm", optional: false]}], "hexpm", "1877d92ab993b860e9d828bfd72d50367c0d3a53dd84f4de5d221baf66ae8723"},
|
"spark": {:hex, :spark, "2.1.11", "8093149dfd583b5ce2c06e1fea1faaf4125b50e4703138b2cbefb78c8f4aa07f", [:mix], [{:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.0", [hex: :sourceror, repo: "hexpm", optional: false]}], "hexpm", "1877d92ab993b860e9d828bfd72d50367c0d3a53dd84f4de5d221baf66ae8723"},
|
||||||
"splode": {:hex, :splode, "0.2.1", "020079ec06c9e00f8b6586852e781b5e07aee6ba588f3f45dd993831c87b0511", [:mix], [], "hexpm", "d232a933666061fe1f659d9906042fa94b9b393bb1129a4fde6fa680033b2611"},
|
"splode": {:hex, :splode, "0.2.1", "020079ec06c9e00f8b6586852e781b5e07aee6ba588f3f45dd993831c87b0511", [:mix], [], "hexpm", "d232a933666061fe1f659d9906042fa94b9b393bb1129a4fde6fa680033b2611"},
|
||||||
|
|
|
@ -124,7 +124,7 @@ defmodule AshCubDB.DataLayerTest do
|
||||||
[actual] =
|
[actual] =
|
||||||
Author
|
Author
|
||||||
|> Query.filter(name: "Marty McFly")
|
|> Query.filter(name: "Marty McFly")
|
||||||
|> Ash.read!()
|
|> Domain.read!()
|
||||||
|
|
||||||
assert expected.id == actual.id
|
assert expected.id == actual.id
|
||||||
end
|
end
|
||||||
|
@ -137,7 +137,7 @@ defmodule AshCubDB.DataLayerTest do
|
||||||
sorted =
|
sorted =
|
||||||
Author
|
Author
|
||||||
|> Query.sort(name: :desc)
|
|> Query.sort(name: :desc)
|
||||||
|> Ash.read!()
|
|> Domain.read!()
|
||||||
|
|
||||||
assert Enum.map(sorted, &to_string(&1.name)) == ["Mallory", "Bob", "Alice"]
|
assert Enum.map(sorted, &to_string(&1.name)) == ["Mallory", "Bob", "Alice"]
|
||||||
end
|
end
|
||||||
|
@ -148,7 +148,7 @@ defmodule AshCubDB.DataLayerTest do
|
||||||
assert [_] =
|
assert [_] =
|
||||||
Author
|
Author
|
||||||
|> Query.limit(1)
|
|> Query.limit(1)
|
||||||
|> Ash.read!()
|
|> Domain.read!()
|
||||||
end
|
end
|
||||||
|
|
||||||
test "offset" do
|
test "offset" do
|
||||||
|
@ -157,7 +157,7 @@ defmodule AshCubDB.DataLayerTest do
|
||||||
assert [_, _] =
|
assert [_, _] =
|
||||||
Author
|
Author
|
||||||
|> Query.offset(1)
|
|> Query.offset(1)
|
||||||
|> Ash.read!()
|
|> Domain.read!()
|
||||||
end
|
end
|
||||||
|
|
||||||
test "distinct" do
|
test "distinct" do
|
||||||
|
@ -167,7 +167,7 @@ defmodule AshCubDB.DataLayerTest do
|
||||||
assert [selected] =
|
assert [selected] =
|
||||||
Author
|
Author
|
||||||
|> Query.distinct(:name)
|
|> Query.distinct(:name)
|
||||||
|> Ash.read!()
|
|> Domain.read!()
|
||||||
|
|
||||||
assert selected.name == author.name
|
assert selected.name == author.name
|
||||||
end
|
end
|
||||||
|
@ -181,7 +181,7 @@ defmodule AshCubDB.DataLayerTest do
|
||||||
Post
|
Post
|
||||||
|> Query.distinct(:title)
|
|> Query.distinct(:title)
|
||||||
|> Query.distinct_sort(body: :desc)
|
|> Query.distinct_sort(body: :desc)
|
||||||
|> Ash.read!()
|
|> Domain.read!()
|
||||||
|
|
||||||
assert selected.title == post.title
|
assert selected.title == post.title
|
||||||
assert selected.body == "Mallory is cool"
|
assert selected.body == "Mallory is cool"
|
||||||
|
|
Loading…
Reference in a new issue