Packages

This is a Elixir lib for generating captcha. No dependencies. It drawing captcha image with C code. No ImageMagick, No RMagick. This version includes critical production reliability improvements that fix intermittent empty image generation in production environments.

Current section

Files

Jump to
captcha_c mix.exs
Raw

mix.exs

defmodule Mix.Tasks.Compile.Make do
def run(_) do
{result, _error_code} = System.cmd("make", [], stderr_to_stdout: true)
Mix.shell().info(result)
:ok
end
end
defmodule Mix.Tasks.Clean.Make do
def run(_) do
{result, _error_code} = System.cmd("make", ["clean"], stderr_to_stdout: true)
Mix.shell().info(result)
:ok
end
end
defmodule Captcha.Mixfile do
use Mix.Project
def project do
[
app: :captcha_c,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
compilers: [:make] ++ Mix.compilers(),
description: description(),
aliases: aliases(),
package: package(),
deps: deps(),
elixirc_options: [
warnings_as_errors: true
]
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[extra_applications: [:logger]]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/p-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[{:ex_doc, "~> 0.35", only: :dev, runtime: false}]
end
defp aliases do
[clean: ["clean", "clean.make"]]
end
defp description do
"""
This is a Elixir lib for generating captcha. No dependencies. It drawing captcha image with C code. No ImageMagick, No RMagick.
This version includes critical production reliability improvements that fix intermittent empty image generation in production environments.
"""
end
defp package do
[
name: :captcha_c,
files: [
"lib",
"mix.exs",
"README*",
"LICENSE*",
"src",
"Makefile"
],
maintainers: ["ghbutton"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/ghbutton/elixir-captcha",
"Docs" => "https://github.com/ghbutton/elixir-captcha"
}
]
end
end