File tree Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ Types of changes
18
18
19
19
put your changes here
20
20
21
- ## [ 0.3.0] - 2023-07-??
21
+ ## [ 0.3.0] - 2023-08-05
22
22
23
- * renamed library from ` ecto_named_fragment ` to ` ecto_fragment_extras ` because it contains a little more than just the named_fragment() macro now
23
+ * renamed library from ` ecto_named_fragment ` to ` ecto_fragment_extras ` because it contains a little more than just the named_fragment() macro now 👇
24
24
* added inline fragments which allow inlining fragment params into the query string:
25
25
26
26
``` elixir
27
27
inline_fragment (" coalesce(#{ users.name } , #{ ^default_name } )" )
28
28
```
29
+ * added ` frag/1 ` and ` frag/2 ` as a shorthand for inline and named fragments depending on the arity it is called with.
29
30
30
31
## [ 0.2.0] - 2023-07-24
31
32
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule EctoFragmentExtras.MixProject do
4
4
def project do
5
5
[
6
6
app: :ecto_fragment_extras ,
7
- version: "0.2 .0" ,
7
+ version: "0.3 .0" ,
8
8
elixir: "~> 1.14" ,
9
9
start_permanent: Mix . env ( ) == :prod ,
10
10
deps: deps ( ) ,
Original file line number Diff line number Diff line change 1
1
defmodule ConvertInlineParamsTest do
2
- use ExUnit.Case
2
+ use ExUnit.Case , async: true
3
3
doctest EctoFragmentExtras
4
4
5
5
alias EctoFragmentExtras.ConvertInlineParams
Original file line number Diff line number Diff line change 1
1
defmodule ConvertNamedParamsTest do
2
- use ExUnit.Case
2
+ use ExUnit.Case , async: true
3
3
doctest EctoFragmentExtras
4
4
5
5
alias EctoFragmentExtras.ConvertNamedParams
Original file line number Diff line number Diff line change 1
1
defmodule EctoFragmentExtrasTest do
2
- use ExUnit.Case
2
+ use ExUnit.Case , async: true
3
3
doctest EctoFragmentExtras
4
4
5
5
import Ecto.Query
Original file line number Diff line number Diff line change
1
+ defmodule ReadmeTest do
2
+ use ExUnit.Case , async: true
3
+
4
+ test "version in readme matches mix.exs" do
5
+ readme_markdown = File . read! ( Path . join ( __DIR__ , "../README.md" ) )
6
+ mix_config = Mix.Project . config ( )
7
+ version = mix_config [ :version ]
8
+ assert version == "0.3.0"
9
+ assert readme_markdown =~ ~s( {:ecto_fragment_extras, "~> #{ version } "})
10
+ end
11
+ end
You can’t perform that action at this time.
0 commit comments