Skip to content

Commit 8e31419

Browse files
authored
Merge pull request #13 from chef/CHEF-11677/CHEF-12498/lbaker
Chef 11677/chef 12498/lbaker update erlang
2 parents 1389b01 + f110205 commit 8e31419

File tree

8 files changed

+15
-17
lines changed

8 files changed

+15
-17
lines changed

rebar.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
{xref_checks, [undefined_function_calls]}.
77

8-
{deps, [{mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", {branch, "master"}}}]}.
8+
{deps, [{mochiweb, ".*", {git, "https://github.com/mochi/mochiweb", {branch, "main"}}}]}.
99

1010
{eunit_opts, [
1111
no_tty,
@@ -15,8 +15,8 @@
1515
{profiles,
1616
[{test,
1717
[{deps, [meck,
18-
{ibrowse, {git, "git://github.com/chef/ibrowse.git", {branch, "ma/revert_ipv6"}}},
19-
{eunit_formatters, {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
18+
{ibrowse, {git, "https://github.com/chef/ibrowse", {branch, "ma/revert_ipv6"}}},
19+
{eunit_formatters, {git, "https://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
2020
]},
2121
{erl_opts, [debug_info]}
2222
]}

rebar.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{"1.1.0",
21
[{<<"mochiweb">>,
3-
{git,"git://github.com/mochi/mochiweb.git",
4-
{ref,"070594e4d66163d662ac7e3bfb75dadcc922dd7c"}},
5-
0}]}.
2+
{git,"https://github.com/mochi/mochiweb",
3+
{ref,"611254eb941e502227f221667389b98fd8e72d6f"}},
4+
0}].

rebar3

53.2 KB
Binary file not shown.

src/webmachine_dispatcher.erl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,7 @@ make_reqdata(Path) ->
627627
%% object.
628628
MochiReq = mochiweb_request:new(testing, 'GET', Path, {1, 1},
629629
mochiweb_headers:make([])),
630-
Req = webmachine:new_request(mochiweb, MochiReq),
631-
{RD, _} = Req:get_reqdata(),
630+
{Mod, Req} = webmachine:new_request(mochiweb, MochiReq),
631+
{RD, _} = Mod:get_reqdata(Req),
632632
RD.
633-
634633
-endif.

src/webmachine_util.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ do_choose(Choices, Header, Default) ->
264264
DefaultOkay = case DefaultPrio of
265265
[] ->
266266
case StarPrio of
267-
[0.0] -> no;
267+
[+0.0] -> no;
268268
_ -> yes
269269
end;
270-
[0.0] -> no;
270+
[+0.0] -> no;
271271
_ -> yes
272272
end,
273273
AnyOkay = case StarPrio of
274274
[] -> no;
275-
[0.0] -> no;
275+
[+0.0] -> no;
276276
_ -> yes
277277
end,
278278
do_choose(Default, DefaultOkay, AnyOkay, Choices, Accepted).
@@ -296,7 +296,7 @@ do_choose(Default, DefaultOkay, AnyOkay, Choices, []) ->
296296
do_choose(Default, DefaultOkay, AnyOkay, Choices, [AccPair|AccRest]) ->
297297
{Prio, Acc} = AccPair,
298298
case Prio of
299-
0.0 ->
299+
+0.0 ->
300300
do_choose(Default, DefaultOkay, AnyOkay,
301301
lists:delete(Acc, Choices), AccRest);
302302
_ ->

test/decision_core_test.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
-include("wm_reqdata.hrl").
2121
-include_lib("eunit/include/eunit.hrl").
2222

23-
-compile(export_all).
23+
-compile([export_all, nowarn_export_all]).
2424

2525
-define(RESOURCE, atom_to_list(?MODULE)).
2626
-define(RESOURCE_PATH, "/" ++ ?RESOURCE).

test/etag_test.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
-include_lib("eunit/include/eunit.hrl").
2323
-include("webmachine.hrl").
2424

25-
-compile(export_all).
25+
-compile(export_all, nowarn_export_all).
2626

2727
-define(QC_OUT(P),
2828
eqc:on_output(fun(Str, Args) -> io:format(user, Str, Args) end, P)).

test/wm_integration_test.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
-include_lib("eunit/include/eunit.hrl").
1818
-include("webmachine.hrl").
1919

20-
-compile([export_all]).
20+
-compile([export_all, nowarn_export_all]).
2121

2222
integration_test_() ->
2323
{foreach,

0 commit comments

Comments
 (0)