Skip to content

Commit

Permalink
Bump version to v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gordalina committed Jun 9, 2021
1 parent 29bb5da commit 5fd9826
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,22 @@
# Changelog

## v0.5.0

- [#2](https://github.com/gordalina/hush/pull/2) Add Apply Transformer

```ex
config :app, Web.Endpoint,
cdn_url: {:hush, GcpSecretManager, "CDN_DOMAIN", [apply: &{:ok, "https://" <> &1}]}
```
- Add Elixir 1.12 and OTP/24 compatibility
- Minor CI changes & documentation updates

## v0.4.1

- Add hush_aws_secrets_manager
- Add Elixir 1.11 compatibility
- Documentation updates

## v0.4.0

- Add Transformers to mutate data in runtime.
Expand Down
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -14,13 +14,13 @@ Hush can be used to inject configuration that is not known at compile time, such

```elixir
# config/prod.exs
alias Hush.Provider.{AwsSecretsManager, GcpSecretManager,SystemEnvironment}
alias Hush.Provider.{AwsSecretsManager, GcpSecretManager, SystemEnvironment}

config :app, Web.Endpoint,
http: [port: {:hush, SystemEnvironment, "PORT", [cast: :integer]}]

config :app, App.Repo,
password: {:hush, GcpSecretManager, "CLOUDSQL_PASSWORD"}
config :app, App,
cdn_url: {:hush, GcpSecretManager, "CDN_DOMAIN", [apply: &{:ok, "https://" <> &1}]}

config :app, App.RedshiftRepo,
password: {:hush, AwsSecretsManager, "REDSHIFT_PASSWORD"}
Expand All @@ -41,7 +41,7 @@ Add `hush` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:hush, "~> 0.4.1"}
{:hush, "~> 0.5.0"}
]
end
```
Expand Down Expand Up @@ -115,6 +115,7 @@ Hush will resolve any tuple in the following format into a value.
- `options` is a a Keyword list with the following properties:
- `default: any()` - If the provider can't find the value, hush will return this value
- `optional: boolean()` - By default, Hush will raise an error if it cannot find a value and there's no default, unless you mark it as `optional`.
- `apply: fun(any()) :: {:ok, any()} | {:error, String.t()}` - Apply a function to the value resolved by Hush.
- `cast: :string | :atom | :charlist | :float | :integer | :boolean | :module` - You can ask Hush to cast the value to a Elixir native type.
- `to_file: string()` - Write the data to the path give in `to_file()` and return the path.

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
@@ -1,7 +1,7 @@
defmodule Hush.MixProject do
use Mix.Project

@version "0.4.1"
@version "0.5.0"
@source_url "https://github.com/gordalina/hush"

def project do
Expand Down

0 comments on commit 5fd9826

Please sign in to comment.