diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lib/recaptcha.ex | 2 | ||||
-rw-r--r-- | mix.exs | 4 |
3 files changed, 4 insertions, 3 deletions
@@ -1,3 +1,4 @@ /_build erl_crash.dump /deps +/doc diff --git a/lib/recaptcha.ex b/lib/recaptcha.ex index 30a5bd8..3108add 100644 --- a/lib/recaptcha.ex +++ b/lib/recaptcha.ex @@ -41,7 +41,7 @@ defmodule Recaptcha do {:error, Enum.map(errors, fn(error) -> atomise_api_error(error) end)} {:ok, %{"success" => true, "challenge_ts" => timestamp, "hostname" => host}} -> {:ok, %Recaptcha.Response{challenge_ts: timestamp, hostname: host}} - {:ok, %{"success" => false, "challenge_ts" => timestamp, "hostname" => host}} -> + {:ok, %{"success" => false, "challenge_ts" => _timestamp, "hostname" => _host}} -> {:error, [:challenge_failed]} end end @@ -3,7 +3,7 @@ defmodule Recaptcha.Mixfile do def project do [app: :recaptcha, - version: "2.0.0", + version: "2.0.1", elixir: "~> 1.2", description: description, deps: deps, @@ -24,7 +24,7 @@ defmodule Recaptcha.Mixfile do defp deps do [ {:httpoison, "~> 0.9.0"}, - {:poison, "~> 2.0"}, + {:poison, "~> 1.5 or ~> 2.0"}, {:credo, "~> 0.4", only: [:dev, :test]}, {:ex_doc, ">= 0.0.0", only: :dev} ] |