Skip to content

Commit

Permalink
Include dependency hashes in rebar.lock generated by rebar3
Browse files Browse the repository at this point in the history
  • Loading branch information
drobakowski committed Mar 23, 2017
1 parent 44760d2 commit ef0a3c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ _rel
erl_crash.dump
logs
log
.rebar3
13 changes: 12 additions & 1 deletion rebar.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{"1.1.0",
[{<<"certifi">>,{pkg,<<"certifi">>,<<"0.7.0">>},1},
{<<"hackney">>,{pkg,<<"hackney">>,<<"1.6.3">>},0},
{<<"idna">>,{pkg,<<"idna">>,<<"1.0.2">>},1},
{<<"jsx">>,{pkg,<<"jsx">>,<<"2.6.2">>},0},
{<<"metrics">>,{pkg,<<"metrics">>,<<"1.0.1">>},1},
{<<"mimerl">>,{pkg,<<"mimerl">>,<<"1.0.2">>},1},
{<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.1">>},1}].
{<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.1">>},1}]}.
[
{pkg_hash,[
{<<"certifi">>, <<"861A57F3808F7EB0C2D1802AFEAAE0FA5DE813B0DF0979153CBAFCD853ABABAF">>},
{<<"hackney">>, <<"D489D7CA2D4323E307BEDC4BFE684323A7BF773ECFD77938F3EE8074E488E140">>},
{<<"idna">>, <<"397E3D001C002319DA75759B0A81156BF11849C71D565162436D50020CB7265E">>},
{<<"jsx">>, <<"213721E058DA0587A4BCE3CC8A00FF6684CED229C8F9223245C6FF2C88FBAA5A">>},
{<<"metrics">>, <<"25F094DEA2CDA98213CECC3AEFF09E940299D950904393B2A29D191C346A8486">>},
{<<"mimerl">>, <<"993F9B0E084083405ED8252B99460C4F0563E41729AB42D9074FD5E52439BE88">>},
{<<"ssl_verify_fun">>, <<"28A4D65B7F59893BC2C7DE786DEC1E1555BD742D336043FE644AE956C3497FBE">>}]}
].
6 changes: 3 additions & 3 deletions src/erlastic_search.erl
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,13 @@ search_limit(Index, Type, Query, Limit) when is_integer(Limit) ->
%%--------------------------------------------------------------------
-spec count(binary() | list(), erlastic_json() | binary()) -> {ok, erlastic_success_result()} | {error, any()}.
count(Index, Query) ->
search_helper(<<"_count">>, #erls_params{}, Index, <<>>, Query, []).
count(#erls_params{}, Index, <<>>, Query, []).

-spec count(binary() | list() | #erls_params{}, binary() | list(), erlastic_json() | binary()) -> {ok, erlastic_success_result()} | {error, any()}.
count(Params, Index, Query) when is_record(Params, erls_params) ->
search_helper(<<"_count">>, Params, Index, <<>>, Query, []);
count(Params, Index, <<>>, Query, []);
count(Index, Type, Query) ->
search_helper(<<"_count">>, #erls_params{}, Index, Type, Query, []).
count(#erls_params{}, Index, Type, Query, []).

-spec count(#erls_params{}, list() | binary(), list() | binary(), erlastic_json() | binary(), list()) -> {ok, erlastic_success_result()} | {error, any()}.
count(Params, Index, Type, Query, Opts) ->
Expand Down

0 comments on commit ef0a3c4

Please sign in to comment.