aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Seay <sam@manuka.co>2016-09-08 09:36:09 +1200
committerGitHub <noreply@github.com>2016-09-08 09:36:09 +1200
commit8b77a3c045c81061f50f44716d60a96787203a5f (patch)
tree327005e4a38f13805d5dbb132d6f13422a41d4b5
parenta35e5f82f3ff09b9c76e4924b50af559a6c07ae6 (diff)
downloadrecaptcha-8b77a3c045c81061f50f44716d60a96787203a5f.tar.gz
recaptcha-8b77a3c045c81061f50f44716d60a96787203a5f.tar.xz
support 1.5 and 2.x poison2.0.1
-rw-r--r--.gitignore1
-rw-r--r--lib/recaptcha.ex2
-rw-r--r--mix.exs4
3 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 3f54e5e..571f7e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/mix.exs b/mix.exs
index a63f56d..eb0106e 100644
--- a/mix.exs
+++ b/mix.exs
@@ -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}
]