Skip to content

Commit

Permalink
prepare version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tessi committed Aug 5, 2023
1 parent 4f7bc38 commit 921d783
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ Types of changes

put your changes here

## [0.3.0] - 2023-07-??
## [0.3.0] - 2023-08-05

* renamed library from `ecto_named_fragment` to `ecto_fragment_extras` because it contains a little more than just the named_fragment() macro now
* renamed library from `ecto_named_fragment` to `ecto_fragment_extras` because it contains a little more than just the named_fragment() macro now 👇
* added inline fragments which allow inlining fragment params into the query string:

```elixir
inline_fragment("coalesce(#{users.name}, #{^default_name})")
```
* added `frag/1` and `frag/2` as a shorthand for inline and named fragments depending on the arity it is called with.

## [0.2.0] - 2023-07-24

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule EctoFragmentExtras.MixProject do
def project do
[
app: :ecto_fragment_extras,
version: "0.2.0",
version: "0.3.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down
2 changes: 1 addition & 1 deletion test/ecto_fragment_extras/convert_inline_params_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule ConvertInlineParamsTest do
use ExUnit.Case
use ExUnit.Case, async: true
doctest EctoFragmentExtras

alias EctoFragmentExtras.ConvertInlineParams
Expand Down
2 changes: 1 addition & 1 deletion test/ecto_fragment_extras/convert_named_params_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule ConvertNamedParamsTest do
use ExUnit.Case
use ExUnit.Case, async: true
doctest EctoFragmentExtras

alias EctoFragmentExtras.ConvertNamedParams
Expand Down
2 changes: 1 addition & 1 deletion test/ecto_fragment_extras_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule EctoFragmentExtrasTest do
use ExUnit.Case
use ExUnit.Case, async: true
doctest EctoFragmentExtras

import Ecto.Query
Expand Down
11 changes: 11 additions & 0 deletions test/readme_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
defmodule ReadmeTest do
use ExUnit.Case, async: true

test "version in readme matches mix.exs" do
readme_markdown = File.read!(Path.join(__DIR__, "../README.md"))
mix_config = Mix.Project.config()
version = mix_config[:version]
assert version == "0.3.0"
assert readme_markdown =~ ~s({:ecto_fragment_extras, "~> #{version}"})
end
end

0 comments on commit 921d783

Please sign in to comment.