Skip to content

Commit 8b77a3c

Browse files
author
Sam Seay
authored
support 1.5 and 2.x poison
1 parent a35e5f8 commit 8b77a3c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/_build
22
erl_crash.dump
33
/deps
4+
/doc

lib/recaptcha.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defmodule Recaptcha do
4141
{:error, Enum.map(errors, fn(error) -> atomise_api_error(error) end)}
4242
{:ok, %{"success" => true, "challenge_ts" => timestamp, "hostname" => host}} ->
4343
{:ok, %Recaptcha.Response{challenge_ts: timestamp, hostname: host}}
44-
{:ok, %{"success" => false, "challenge_ts" => timestamp, "hostname" => host}} ->
44+
{:ok, %{"success" => false, "challenge_ts" => _timestamp, "hostname" => _host}} ->
4545
{:error, [:challenge_failed]}
4646
end
4747
end

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule Recaptcha.Mixfile do
33

44
def project do
55
[app: :recaptcha,
6-
version: "2.0.0",
6+
version: "2.0.1",
77
elixir: "~> 1.2",
88
description: description,
99
deps: deps,
@@ -24,7 +24,7 @@ defmodule Recaptcha.Mixfile do
2424
defp deps do
2525
[
2626
{:httpoison, "~> 0.9.0"},
27-
{:poison, "~> 2.0"},
27+
{:poison, "~> 1.5 or ~> 2.0"},
2828
{:credo, "~> 0.4", only: [:dev, :test]},
2929
{:ex_doc, ">= 0.0.0", only: :dev}
3030
]

0 commit comments

Comments
 (0)