diff --git a/include/urilib.hrl b/include/urilib.hrl deleted file mode 100644 index 6bf56d2..0000000 --- a/include/urilib.hrl +++ /dev/null @@ -1,28 +0,0 @@ -%% ============================================================================= -%% @author Gavin M. Roy -%% @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()}). diff --git a/rebar.config b/rebar.config index b38f5ff..a2bf773 100644 --- a/rebar.config +++ b/rebar.config @@ -4,7 +4,7 @@ {clean_files, ["*.eunit", "ebin/*.beam"]}. {dialyzer, [{plt_extra_apps, [kernel, stdlib, erts, inets, edoc]}]}. {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_opts, [verbose, {skip_deps, true}]}. {lib_dirs,["deps"]}. diff --git a/src/urilib.app.src b/src/urilib.app.src index 3bad966..aacf95c 100644 --- a/src/urilib.app.src +++ b/src/urilib.app.src @@ -1,6 +1,6 @@ {application, urilib, [ {description, "A RFC-3986 URI Library for parsing and building URIs"}, - {vsn,"0.1.0"}, + {vsn,"0.1.1"}, {licenses, ["BSD"]}, {links, [{"Github", "https://github.com/gmr/urilib"}]}, {maintainers, ["Gavin M. Roy"]}, diff --git a/src/urilib.erl b/src/urilib.erl index c07a34d..db55fb8 100644 --- a/src/urilib.erl +++ b/src/urilib.erl @@ -27,8 +27,6 @@ uri/0, url/0]). --include("urilib.hrl"). - %% Export all for unit tests -ifdef(TEST). -compile(export_all). diff --git a/test/urilib_tests.erl b/test/urilib_tests.erl index 9b7134f..7072878 100644 --- a/test/urilib_tests.erl +++ b/test/urilib_tests.erl @@ -2,8 +2,6 @@ -include_lib("eunit/include/eunit.hrl"). --include("urilib.hrl"). - build_variation1_test() -> Params = {amqp, {{"guest", "password"}, "rabbitmq", 5672}, "/%2f", [{"heartbeat", "5"}], undefined}, Expect = "amqp://guest:password@rabbitmq:5672/%2f?heartbeat=5",