Skip to content

Commit

Permalink
Merge pull request #83 from NineFX/handle_hex_with_pkg_name
Browse files Browse the repository at this point in the history
Handle Hex deps with package name
  • Loading branch information
Brujo Benavides authored Apr 17, 2017
2 parents 0376814 + 62c0a68 commit 3ee2d6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/elvis_project.erl
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ is_rebar_master_dep(_) ->
false.
is_rebar_hex_dep(_AppName) when is_atom(_AppName) ->
true;
is_rebar_hex_dep({_AppName, _Vsn, {pkg, _PackageName}})
when is_atom(_AppName),
is_list(_Vsn),
is_atom(_PackageName) ->
true;
is_rebar_hex_dep({_AppName, _Vsn})
when is_atom(_AppName),
is_list(_Vsn) ->
Expand Down
1 change: 1 addition & 0 deletions test/examples/rebar3.config.success
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{deps,
[
{lager, "2.1.1"},
{uuid, "1.7.0", {pkg, uuid_erl}},
{meck, "0.8.2", {git, "https://github.com/basho/meck.git", {tag, "0.8.2"}}},
{jiffy, {git, "https://github.com/davisp/jiffy.git"}},
recon
Expand Down

0 comments on commit 3ee2d6a

Please sign in to comment.