From 1f0f6d64c01d8a9c74eca9490b86892e519338ee Mon Sep 17 00:00:00 2001 From: Martin Wiso Date: Tue, 14 Jun 2016 22:22:18 +0200 Subject: [PATCH] Add eunit_formatters deps and improve rebar config file + bump up version --- rebar.config | 41 +++++++++++++++++++++++++++++++++++++---- rebar.config.script | 4 +++- src/erlpocket.app.src | 10 +++++++--- 3 files changed, 47 insertions(+), 8 deletions(-) diff --git a/rebar.config b/rebar.config index c5d4e81..95dfe32 100644 --- a/rebar.config +++ b/rebar.config @@ -1,9 +1,42 @@ -{deps_dir, ["deps"]}. +{erl_opts, [ + debug_info, + warn_unused_vars, + warn_export_all, + warn_shadow_vars, + warn_unused_import, + warn_unused_function, + warn_bif_clash, + warn_unused_record, + warn_deprecated_function, + warn_obsolete_guard, + strict_validation, + warn_export_vars, + warn_exported_vars, + warn_untyped_record +]}. -{erl_opts, [debug_info]}. +{deps, [ {jiffy, "0.14.7"} + , {eunit_formatters, "0.3.1"} +]}. -{deps, [ {jiffy, "0.14.7"} ]}. +{overrides, + [{override, jiffy, [ + {plugins, [pc]}, + {artifacts, ["priv/jiffy.so"]}, + {provider_hooks, [ + {post, [ + {compile, {pc, compile}} + , {clean, {pc, clean}} + ] + }] + } + ]} +]}. {cover_enabled, true}. {cover_print_enabled, true}. -{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}. +{eunit_opts, [verbose, + no_tty, + {report, {eunit_progress, [colored]}}]}. + +{xref_checks, [undefined_function_calls]}. diff --git a/rebar.config.script b/rebar.config.script index 440bcb6..39db519 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -6,7 +6,9 @@ case erlang:function_exported(rebar3, main, 1) of %% rebar 2.x or older NewConf = lists:keystore(deps_dir, 1, CONFIG, {deps_dir, "deps"}), Deps = [{jiffy, "0.*", - {git, "https://github.com/davisp/jiffy.git", "0.14.7"}} + {git, "https://github.com/davisp/jiffy.git", "0.14.7"}}, + {eunit_formatters, ".*", + {git, "git://github.com/seancribbs/eunit_formatters", "0.3.1"}} ], lists:keystore(deps, 1, NewConf, {deps, Deps}) end. diff --git a/src/erlpocket.app.src b/src/erlpocket.app.src index 364e56f..61383c9 100755 --- a/src/erlpocket.app.src +++ b/src/erlpocket.app.src @@ -1,11 +1,15 @@ {application, erlpocket, [{description, "Erlang library for Pocket API"}, - {vsn, "v1.2"}, + {vsn, "1.2.1"}, {registered, []}, {applications, [stdlib, - kernel + kernel, + crypto, + public_key, + ssl, + inets ]}, - {env, [{verbose, false}]} + {env, [{verbose, false}]}, {maintainers,["Martin Wiso"]}, {licenses,["MIT"]}, {links,[{"Github","https://github.com/tgrk/erlpocket"}]}