Skip to content

Commit

Permalink
switch to all hex packages for deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed May 22, 2015
1 parent f469f12 commit e424c7a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 39 deletions.
13 changes: 5 additions & 8 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{erl_opts, [debug_info]}.
{deps, [
{ssl_verify_hostname,
{git, "https://github.com/deadtrickster/ssl_verify_hostname.erl.git", {branch, "master"}}},
{providers,
{git, "https://github.com/tsloughter/providers.git", {branch, "master"}}},
{erlware_commons, ".*",
{git, "https://github.com/erlware/erlware_commons.git",
{branch, "master"}}},
{jsx, "", {git, "https://github.com/talentdeficit/jsx.git", {branch, "master"}}}]}.
{erlware_commons, "0.12.0"},
{ssl_verify_hostname, "1.0.4"},
{jsx, "2.6.1"},
{providers, "1.3.1"}
]}.

{overrides, [{override, erlware_commons, [{plugins, []}]}]}.
29 changes: 5 additions & 24 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
[{<<"rebar_vsn_plugin">>,
{git,"https://github.com/erlware/rebar_vsn_plugin.git",
{ref,"fd40c960c7912193631d948fe962e1162a8d1334"}},
1},
{<<"getopt">>,
{git,"https://github.com/jcomellas/getopt.git",
{ref,"626698975e63866156159661d100785d65eab6f9"}},
1},
{<<"ssl_verify_hostname">>,
{git,"https://github.com/deadtrickster/ssl_verify_hostname.erl.git",
{ref,"60c9d75e1a01ec5e92eb5e82f339398fa8880cf3"}},
0},
{<<"providers">>,
{git,"https://github.com/tsloughter/providers.git",
{ref,"7563ba7e916d5a35972b25b3aa1945ffe0a8e7a5"}},
0},
{<<"jsx">>,
{git,"https://github.com/talentdeficit/jsx.git",
{ref,"e751e3324fdfae4b43984650f7c8f4d5ea93da26"}},
0},
{<<"erlware_commons">>,
{git,"https://github.com/erlware/erlware_commons.git",
{ref,"05b956da26788f30b3cb793fa6ace02b75f481d0"}},
0}].
[{<<"providers">>,{pkg,<<"providers">>,<<"1.3.1">>},0},
{<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.12.0">>},0},
{<<"ssl_verify_hostname">>,{pkg,<<"ssl_verify_hostname">>,<<"1.0.4">>},0},
{<<"getopt">>,{pkg,<<"getopt">>,<<"0.8.2">>},1},
{<<"jsx">>,{pkg,<<"jsx">>,<<"2.6.1">>},0}].
2 changes: 1 addition & 1 deletion src/rebar3_hex.app.src
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{application, rebar3_hex,
[{description, "An OTP application"}
[{description, "Hex.pm plugin for rebar3"}
,{vsn, "0.1.0"}
,{registered, []}
,{applications,
Expand Down
2 changes: 1 addition & 1 deletion src/rebar3_hex.hrl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-define(VERSION, <<"3">>).

-define(DEFAULT_FILES, ["src", "c_src"
-define(DEFAULT_FILES, ["src", "c_src", "include"
,"priv", "rebar.config"
,"README*", "readme*"
,"LICENSE*", "license*"]).
Expand Down
10 changes: 5 additions & 5 deletions src/rebar3_hex_http.erl
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ post_json(Path, Auth, Body) ->
end.

post(Path, Auth, Tar, Size) ->
Body = fun(Size) when Size < byte_size(Tar) ->
NewSize = min(Size + ?CHUNK, byte_size(Tar)),
Chunk = NewSize - Size,
{ok, [binary:part(Tar, Size, Chunk)], NewSize};
(_Size) ->
Body = fun(S) when S < byte_size(Tar) ->
NewSize = min(S + ?CHUNK, byte_size(Tar)),
Chunk = NewSize - S,
{ok, [binary:part(Tar, S, Chunk)], NewSize};
(_S) ->
eof
end,

Expand Down

0 comments on commit e424c7a

Please sign in to comment.