Skip to content

Commit

Permalink
changelog and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
amatalai committed May 28, 2017
1 parent 1db93d6 commit a16b112
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## 0.2

* **BREAKING** `root_scope` config replaced by `root_scopes`, it has to be list now
* `@authorize` now accepts `:scope` or `:scopes` for respectively single scope and list of scopes
* compilation error will be raised when single `@authorize` attribute contain both `:scope` and `:scopes`
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can register scope that will have full access everywhere

```elixir
config :conductor,
root_scope: "admin"
root_scopes: ["admin"]
```

## Adding scopes
Expand Down Expand Up @@ -95,7 +95,7 @@ This can be changed by following config
```elixir
#config
config :conductor,
root_scope: "root_scope",
root_scopes: ["root_scope"],
on_auth_error: :send_resp

#router
Expand Down Expand Up @@ -129,7 +129,7 @@ This can be changed by following config

def action3(conn, _params), do: conn |> send_resp(200, "")

@authorize scope: "other"
@authorize scopes: ["other", "unused"]
def action4(conn, _params), do: conn |> send_resp(200, "")
```

Expand Down
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Conductor.Mixfile do
use Mix.Project

@version "0.1.0"
@version "0.2.0"

def project do
[
Expand Down Expand Up @@ -33,12 +33,12 @@ defmodule Conductor.Mixfile do
end

defp description do
"Simple package for authorization."
"Simple package for api authorization."
end

defp docs do
[
extras: ["README.md"],
extras: ["README.md", "CHANGELOG.md"],
main: "readme"
]
end
Expand Down

0 comments on commit a16b112

Please sign in to comment.