Skip to content

Commit

Permalink
Hotfix/release glitches (#21)
Browse files Browse the repository at this point in the history
* [fix] horrible typo

* [fix] do not read from files not available in release

* [0.1.4] bump version
  • Loading branch information
zoten authored Oct 20, 2022
1 parent 9e3d9a5 commit d8e96f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/redact_ex.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule RedactEx do
@moduledoc """
RedactEx provides protocols and derivatoin utilities to work with
RedactEx provides protocols and derivation utilities to work with
sensitive data that should be redacted in logs and external facing tools
* `RedactEx.Redactor` module gives you automagical generation of redacting
Expand Down
12 changes: 11 additions & 1 deletion lib/redact_ex/redactable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,17 @@ defprotocol RedactEx.Redactable do
e.g. suppose you define a module like
```
#{File.read!("./test/support/derive/redact_struct.ex")}
# ./test/support/derive/redact_struct.ex
defmodule MyApp.RedactStruct do
@moduledoc false
# For usage in RedactEx.Redactable doctests
@derive {RedactEx.Redactable,
fields: [
myfield: {String, :reverse}
]}
defstruct [:myfield]
end
```
then you can expect it to have derived the `RedactEx.Redactable` protocol
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 RedactEx.MixProject do
def project do
[
app: :redact_ex,
version: "0.1.3",
version: "0.1.4",
source_url: "https://github.com/primait/redact_ex",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
Expand Down

0 comments on commit d8e96f2

Please sign in to comment.