Packages
rambla
0.8.3
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.16.6
0.16.5
0.16.4
0.16.3
0.16.2
0.16.1
0.16.0
0.15.0
0.14.4
0.14.3
0.14.2
0.14.1
0.14.0
0.13.1
0.13.0
0.12.2
0.12.1
0.11.1
0.11.0
0.10.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
Easy publishing to many different targets. Supported back-ends: - Rabbit [Amqp](https://hexdocs.pm/amqp/) - Redis [Redix](https://hexdocs.pm/redix) - Http [:httpc](http://erlang.org/doc/man/httpc.html) - Smtp [:gen_smtp](https://hexdocs.pm/gen_smtp) - Slack [Envío](https://hexdocs.pm/envio)
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Rambla.MixProject do
use Mix.Project
@app :rambla
@version "0.8.3"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
aliases: aliases(),
deps: deps(),
description: "Easy publishing to many different targets",
name: "Rambla",
xref: [exclude: []],
docs: docs(),
dialyzer: [
plt_file: {:no_warn, ".dialyzer/plts/dialyzer.plt"},
plt_add_apps: [:amqp, :redix, :httpc, :inets, :ssl, :mix, :gen_smtp_client],
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
def application do
[
extra_applications: [:lager, :logger, :poolboy, :envio, :inets, :ssl],
mod: {Rambla.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer --halt-exit-status"
]
]
end
defp deps do
[
{:jason, "~> 1.0"},
{:poolboy, "~> 1.5"},
{:plug, "~> 1.9"},
# optional backends
{:amqp, "~> 1.2", optional: true},
{:redix, "~> 0.10", optional: true},
{:envio, "~> 0.4", optional: true},
{:gen_smtp, "~> 0.15", optional: true},
# dev, test
{:credo, "~> 1.0", only: [:dev, :ci], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :ci], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp package() do
[
# These are the default files included in the package
files: ~w(lib .formatter.exs .dialyzer/ignore.exs mix.exs README*),
maintainers: ["Aleksei Matiushkin"],
licenses: ["Kantox LTD"],
links: %{"GitHub" => "https://github.com/am-kantox/#{@app}"}
]
end
defp docs() do
[
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/am-kantox/#{@app}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/logo-48x48.png",
extras: ["README.md"],
groups_for_modules: [
Backends: [Rambla.Amqp, Rambla.Http, Rambla.Redis, Rambla.Smtp],
Expections: [Rambla.Exception]
]
]
end
end