Skip to content

Commit

Permalink
Merge pull request #91 from nscyclone/fix/replace-dict
Browse files Browse the repository at this point in the history
Replace the use of the deprecated `Dict` module
  • Loading branch information
duksis authored Jul 22, 2016
2 parents 5dfbe58 + 6f9925f commit f37f36a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ iex> Tentacat.Users.find "edgurgel", client
Getting info from a user without a defined client

```iex
iex> Tentacat.Users.find("edgurgel") |> Dict.get("email")
iex> Tentacat.Users.find("edgurgel") |> Map.get("email")
"[email protected]"
```

Expand Down
2 changes: 1 addition & 1 deletion lib/tentacat/releases.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule Tentacat.Releases do
"""
@spec create(binary, binary, binary, Client.t, list) :: Tentacat.response
def create(tag_name, owner, repo, client \\ %Client{}, options \\ []) when is_binary(tag_name) do
body = Dict.merge(options, tag_name: tag_name)
body = Keyword.merge(options, tag_name: tag_name)
post "repos/#{owner}/#{repo}/releases", client, body
end

Expand Down
2 changes: 1 addition & 1 deletion lib/tentacat/releases/assets.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ defmodule Tentacat.Releases.Assets do
"""
@spec edit(binary, integer, binary, binary, Client.t, list) :: Tentacat.response
def edit(name, id, owner, repo, client \\ %Client{}, options \\ []) when is_integer(id) do
body = Dict.merge(options, name: name)
body = Keyword.merge(options, name: name)
patch "repos/#{owner}/#{repo}/releases/assets/#{id}", client, body
end

Expand Down

0 comments on commit f37f36a

Please sign in to comment.