Page MenuHomePhorge

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/mix.exs b/mix.exs
index 99f17d2..eb6f248 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,57 +1,57 @@
defmodule PrometheusEx.Mixfile do
use Mix.Project
@version "1.1.0"
def project do
[app: :prometheus_ex,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
- description: description,
- package: package,
+ description: description(),
+ package: package(),
name: "Prometheus.ex",
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.html": :test],
docs: [main: Prometheus,
source_ref: "v#{@version}",
source_url: "https://github.com/deadtrickster/prometheus.ex",
extras: ["pages/Mnesia Collector.md",
"pages/VM Memory Collector.md",
"pages/VM Statistics Collector.md",
"pages/VM System Info Collector.md",
"pages/Time.md"]]]
end
def application do
[applications: [:logger,
:prometheus]]
end
defp description do
"""
Elixir-friendly Prometheus monitoring system client.
"""
end
defp package do
[maintainers: ["Ilya Khaprov"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/deadtrickster/prometheus.ex",
"Prometheus.erl" => "https://hex.pm/packages/prometheus",
"Ecto Instrumenter" => "https://hex.pm/packages/prometheus_ecto",
"Phoenix Instrumenter" => "https://hex.pm/packages/prometheus_phoenix",
"Plugs Instrumenter/Exporter" => "https://hex.pm/packages/prometheus_plugs",
"Process info Collector" => "https://hex.pm/packages/prometheus_process_collector"}]
end
defp deps do
[{:prometheus, "~> 3.1"},
{:credo, git: "https://github.com/rrrene/credo", only: [:dev, :test]},
{:excoveralls, "~> 0.5.6", only: :test},
{:ex_doc, "~> 0.11", only: :dev},
{:earmark, ">= 0.0.0", only: :dev}]
end
end
diff --git a/test/error_test.exs b/test/error_test.exs
index 76d7154..32951e5 100644
--- a/test/error_test.exs
+++ b/test/error_test.exs
@@ -1,21 +1,21 @@
defmodule Prometheus.ErrorTest do
use Prometheus.Case
require Prometheus.Error
def erlang_error do
raise ErlangError
end
test "properly proxies unknown exceptions" do
assert_raise ArgumentError,
fn ->
Prometheus.Error.with_prometheus_error :ets.tab2list(:qweqweqwe)
end
assert_raise ErlangError,
fn ->
- Prometheus.Error.with_prometheus_error erlang_error
+ Prometheus.Error.with_prometheus_error erlang_error()
end
end
end

File Metadata

Mime Type
text/x-diff
Expires
Sun, Dec 1, 10:43 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41659
Default Alt Text
(2 KB)

Event Timeline