mirror of
https://github.com/correl/urilib.git
synced 2024-11-24 03:00:16 +00:00
Remove unused include
This commit is contained in:
parent
791ed9efc9
commit
63a72b114e
5 changed files with 2 additions and 34 deletions
|
@ -1,28 +0,0 @@
|
||||||
%% =============================================================================
|
|
||||||
%% @author Gavin M. Roy <gavinmroy@gmail.com>
|
|
||||||
%% @copyright 2016
|
|
||||||
%% @doc urilib is a RFC-3986 URI Library for Erlang
|
|
||||||
%% @end
|
|
||||||
%% =============================================================================
|
|
||||||
|
|
||||||
-record(authority, {host :: string(),
|
|
||||||
port :: integer()}).
|
|
||||||
|
|
||||||
-record(userinfo, {username :: string(),
|
|
||||||
password :: string()}).
|
|
||||||
|
|
||||||
-record(uri, {scheme :: atom(),
|
|
||||||
userinfo :: #userinfo{},
|
|
||||||
authority :: #authority{},
|
|
||||||
path :: string(),
|
|
||||||
query :: list(),
|
|
||||||
fragment :: string()}).
|
|
||||||
|
|
||||||
-record(url, {scheme :: atom(),
|
|
||||||
username :: string(),
|
|
||||||
password :: string(),
|
|
||||||
host :: string(),
|
|
||||||
port :: integer(),
|
|
||||||
path :: string(),
|
|
||||||
query :: list(),
|
|
||||||
fragment :: string()}).
|
|
|
@ -4,7 +4,7 @@
|
||||||
{clean_files, ["*.eunit", "ebin/*.beam"]}.
|
{clean_files, ["*.eunit", "ebin/*.beam"]}.
|
||||||
{dialyzer, [{plt_extra_apps, [kernel, stdlib, erts, inets, edoc]}]}.
|
{dialyzer, [{plt_extra_apps, [kernel, stdlib, erts, inets, edoc]}]}.
|
||||||
{erl_opts, [fail_on_warning]}.
|
{erl_opts, [fail_on_warning]}.
|
||||||
{edoc_opts, [{includes, "include"}, {title, "urllib"}, {pretty_printer, erl_pp}]}.
|
{edoc_opts, [{title, "urllib"}, {pretty_printer, erl_pp}, {dir, "docs"}]}.
|
||||||
{eunit_exclude_deps, true}.
|
{eunit_exclude_deps, true}.
|
||||||
{eunit_opts, [verbose, {skip_deps, true}]}.
|
{eunit_opts, [verbose, {skip_deps, true}]}.
|
||||||
{lib_dirs,["deps"]}.
|
{lib_dirs,["deps"]}.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{application, urilib, [
|
{application, urilib, [
|
||||||
{description, "A RFC-3986 URI Library for parsing and building URIs"},
|
{description, "A RFC-3986 URI Library for parsing and building URIs"},
|
||||||
{vsn,"0.1.0"},
|
{vsn,"0.1.1"},
|
||||||
{licenses, ["BSD"]},
|
{licenses, ["BSD"]},
|
||||||
{links, [{"Github", "https://github.com/gmr/urilib"}]},
|
{links, [{"Github", "https://github.com/gmr/urilib"}]},
|
||||||
{maintainers, ["Gavin M. Roy"]},
|
{maintainers, ["Gavin M. Roy"]},
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
uri/0,
|
uri/0,
|
||||||
url/0]).
|
url/0]).
|
||||||
|
|
||||||
-include("urilib.hrl").
|
|
||||||
|
|
||||||
%% Export all for unit tests
|
%% Export all for unit tests
|
||||||
-ifdef(TEST).
|
-ifdef(TEST).
|
||||||
-compile(export_all).
|
-compile(export_all).
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
|
|
||||||
-include("urilib.hrl").
|
|
||||||
|
|
||||||
build_variation1_test() ->
|
build_variation1_test() ->
|
||||||
Params = {amqp, {{"guest", "password"}, "rabbitmq", 5672}, "/%2f", [{"heartbeat", "5"}], undefined},
|
Params = {amqp, {{"guest", "password"}, "rabbitmq", 5672}, "/%2f", [{"heartbeat", "5"}], undefined},
|
||||||
Expect = "amqp://guest:password@rabbitmq:5672/%2f?heartbeat=5",
|
Expect = "amqp://guest:password@rabbitmq:5672/%2f?heartbeat=5",
|
||||||
|
|
Loading…
Reference in a new issue