Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.

# Environment: Undefined
# Owner was chosen between ['rtb', 'owners-old']

* @SemanticSugar/rtb

10 changes: 5 additions & 5 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{erl_opts,
[warn_unused_import, warn_export_vars, warnings_as_errors, verbose, report, debug_info]}.

{deps, [{lhttpc, "1.3.1", {pkg, nextroll_lhttpc}}, {erliam, "0.4.1"}]}.
{deps, [{lhttpc, "1.3.3", {pkg, nextroll_lhttpc}}, {erliam, "1.0.0"}, {jiffy, "1.1.1"}]}.

{cover_enabled, true}.

{cover_opts, [verbose]}.

{project_plugins,
[{rebar3_hex, "~> 7.0.1"},
[{rebar3_hex, "~> 7.0.4"},
{rebar3_format, "~> 1.2.1"},
{rebar3_lint, "~> 1.1.0"},
{rebar3_lint, "~> 2.0.1"},
{rebar3_hank, "~> 1.3.0"}]}.

{dialyzer,
[{warnings, [unknown, no_return, error_handling]},
[{warnings, [unknown, no_return, error_handling, missing_return, extra_return]},
{get_warnings, true},
{plt_apps, top_level_deps},
{plt_extra_apps, []},
{plt_extra_apps, [jiffy]},
{plt_location, local},
{base_plt_apps, [erts, stdlib, kernel]},
{base_plt_location, global}]}.
Expand Down
14 changes: 7 additions & 7 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{"1.2.0",
[{<<"erliam">>,{pkg,<<"erliam">>,<<"0.4.1">>},0},
{<<"jiffy">>,{pkg,<<"jiffy">>,<<"1.1.1">>},1},
{<<"lhttpc">>,{pkg,<<"nextroll_lhttpc">>,<<"1.3.1">>},0}]}.
[{<<"erliam">>,{pkg,<<"erliam">>,<<"1.0.0">>},0},
{<<"jiffy">>,{pkg,<<"jiffy">>,<<"1.1.1">>},0},
{<<"lhttpc">>,{pkg,<<"nextroll_lhttpc">>,<<"1.3.3">>},0}]}.
[
{pkg_hash,[
{<<"erliam">>, <<"D6C4C38CEA143AB22633AA423240861EFA6E63D09CAE9AD130BA3E1437CB40D9">>},
{<<"erliam">>, <<"55FD69959349080CA44728B34076A004FCAFB8064B7600DD17473B7D33F03415">>},
{<<"jiffy">>, <<"ACA10F47AA91697BF24AB9582C74E00E8E95474C7EF9F76D4F1A338D0F5DE21B">>},
{<<"lhttpc">>, <<"9F7EC32071847BAE326C16270F114396125E8CC75A54BCE44482BD4FCAE0DA3B">>}]},
{<<"lhttpc">>, <<"C1617E2D73A78FED3D973227CA75220B868AB55C0C5DC1C12FBD081DB8D83CB7">>}]},
{pkg_hash_ext,[
{<<"erliam">>, <<"0D1EF799285F7AF8C0019ED6B06A2CA5AA9699C77905153F1203D9063B8015A0">>},
{<<"erliam">>, <<"88B039BC7200538A471E747DE720C0CD9839B19A8CC25DFCECB0384346ACF1A1">>},
{<<"jiffy">>, <<"62E1F0581C3C19C33A725C781DFA88410D8BFF1BBAFC3885A2552286B4785C4C">>},
{<<"lhttpc">>, <<"A6E729BD3CF3DCC92179B4210D7DA648D5EA316850C483A21D5D97173A6AC08F">>}]}
{<<"lhttpc">>, <<"8033152140E6E82325E68263D193A79A2322D857F69DDF1D875B5045B05EC463">>}]}
].
2 changes: 0 additions & 2 deletions src/dinerl.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
-module(dinerl).

-author('Valentino Volonghi <valentino@adroll.com>').

-define(DINERL_DATA, dinerl_data).
-define(ARGS_KEY, args).
-define(NONE, <<"NONE">>).
Expand Down
6 changes: 2 additions & 4 deletions src/dinerl_client.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
-module(dinerl_client).

-author('Valentino Volonghi <valentino@adroll.com>').

-include("dinerl_types.hrl").

-export([api/5, api/6]).
Expand Down Expand Up @@ -57,11 +55,11 @@ api(Credentials, Zone, ISODate, Name, Body, Timeout) ->
Zone,
method_name(Name),
ISODate,
dmochijson2:encode(Body),
jiffy:encode(Body),
Timeout)
of
{ok, Response} ->
{ok, dmochijson2:decode(Response)};
{ok, jiffy:decode(Response)};
{error, Code, Reason} ->
{error, Code, Reason}
end.
Expand Down
Loading