Packages
doma_recaptcha
3.1.1-doma
A simple reCaptcha package for Elixir applications, provides verification and templates for rendering forms with the reCaptcha widget. Forked for maintenance purposes by doma.
Current section
Files
Jump to
Current section
Files
doma_recaptcha
mix.exs
mix.exs
defmodule Recaptcha.Mixfile do
use Mix.Project
@source_url "https://github.com/samueljseay/recaptcha"
@version "3.1.1-doma"
def project do
[
app: :doma_recaptcha,
version: @version,
elixir: "~> 1.6",
description: description(),
deps: deps(),
package: package(),
docs: docs(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
# Test coverage:
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
# Dialyzer:
dialyzer: [
plt_add_deps: :apps_direct,
plt_add_apps: [:jason]
]
]
end
def application do
[applications: [:logger, :httpoison, :eex]]
end
defp description do
"""
A simple reCaptcha package for Elixir applications, provides verification
and templates for rendering forms with the reCaptcha widget.
Forked for maintenance purposes by doma.
"""
end
defp deps do
[
{:httpoison, ">= 0.12.0"},
{:jason, "~> 1.2", optional: true},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 0.5", only: [:dev]},
{:excoveralls, "~> 0.7.1", only: :test}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE.md"],
maintainers: ["doma.dev"],
licenses: ["MIT"],
links: %{
"Upatream" => "https://github.com/samueljseay/recaptcha",
"Github" => "https://github.com/doma-engineering/recaptcha"
}
]
end
defp docs do
[
extras: [
"CONTRIBUTING.md",
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: @version,
formatters: ["html"]
]
end
end