From 6f9925fd925e38535c7078934b2c3e43f3528b29 Mon Sep 17 00:00:00 2001 From: nscyclone Date: Sat, 16 Jul 2016 13:07:14 +0300 Subject: [PATCH] Replace the use of the deprecated `Dict` module --- README.md | 2 +- lib/tentacat/releases.ex | 2 +- lib/tentacat/releases/assets.ex | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a29d3a1..5be3f05 100644 --- a/README.md +++ b/README.md @@ -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") "eduardo@gurgel.me" ``` diff --git a/lib/tentacat/releases.ex b/lib/tentacat/releases.ex index 56218a9..ed3549a 100644 --- a/lib/tentacat/releases.ex +++ b/lib/tentacat/releases.ex @@ -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 diff --git a/lib/tentacat/releases/assets.ex b/lib/tentacat/releases/assets.ex index ed5b181..4ce3239 100644 --- a/lib/tentacat/releases/assets.ex +++ b/lib/tentacat/releases/assets.ex @@ -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