Skip to content

Commit

Permalink
fix Elixir 1.4 warnings, do not include priv in hex packages, links
Browse files Browse the repository at this point in the history
  • Loading branch information
deadtrickster committed Apr 15, 2017
1 parent 1f9c653 commit 34c233c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
18 changes: 11 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ defmodule PrometheusProcessCollector.Mixfile do

def project do
[app: :prometheus_process_collector,
version: "1.0.2",
description: description,
package: package,
deps: deps]
version: "1.0.3",
description: description(),
package: package(),
deps: deps()]
end

defp description do
Expand All @@ -23,12 +23,16 @@ defmodule PrometheusProcessCollector.Mixfile do
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/deadtrickster/prometheus_process_collector.erl",
"Prometheus.io Client" => "https://github.com/deadtrickster/prometheus.erl",
"Elixir Plugs" => "https://hex.pm/packages/prometheus_plugs"},
files: ["c_src", "src", "priv", "README.md", "LICENSE", "rebar.config"]]
"Inets HTTPD Exporter" => "https://hex.pm/packages/prometheus_httpd",
"Prometheus.ex" => "https://hex.pm/packages/prometheus_ex",
"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"},
files: ["c_src", "src", "README.md", "LICENSE", "rebar.config"]]
end

defp deps do
[{:prometheus, "~> 3.1"}
[{:prometheus, "~> 3.2"}
]
end
end
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
%{"prometheus": {:hex, :prometheus, "3.0.0-rc1", "f1563d344740b6c8a2948e2d7b558dd5cfc8619eb8db05956022d6066fb2cef2", [:rebar3], []}}
%{"prometheus": {:hex, :prometheus, "3.2.2", "887a687855e171852be3e023aea9dbc1ea3ce0f327b95765896ebb2847fef7f9", [:mix, :rebar3], []}}
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{erl_opts, [debug_info]}.
{deps, [{prometheus, "3.1.0"}]}.
{deps, [{prometheus, "3.2.2"}]}.

{pre_hooks,
[{"linux", compile, "make -C c_src"}]}.
Expand Down
6 changes: 6 additions & 0 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{"1.1.0",
[{<<"prometheus">>,{pkg,<<"prometheus">>,<<"3.2.2">>},0}]}.
[
{pkg_hash,[
{<<"prometheus">>, <<"887A687855E171852BE3E023AEA9DBC1EA3CE0F327B95765896EBB2847FEF7F9">>}]}
].
9 changes: 7 additions & 2 deletions src/prometheus_process_collector.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[{description, "Prometheus.io process collector
Collector exports the current state of process metrics including cpu, memory,
file descriptor usage and native threads count as well as the process start and up times."},
{vsn, "1.0.2"},
{vsn, "1.0.3"},
{registered, []},
{applications,
[kernel,
Expand All @@ -15,5 +15,10 @@
{licenses, ["MIT"]},
{links, [{"Github", "https://github.com/deadtrickster/prometheus_process_collector.erl"},
{"Prometheus.io Client", "https://github.com/deadtrickster/prometheus.erl"},
{"Elixir Plugs", "https://hex.pm/packages/prometheus_plugs"}]}
{"Prometheus.ex", "https://hex.pm/packages/prometheus_ex"},
{"Inets HTTPD Exporter", "https://hex.pm/packages/prometheus_httpd"},
{"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"}]}
]}.

0 comments on commit 34c233c

Please sign in to comment.