Skip to content
Permalink
Browse files
Start on rebar3 support
  • Loading branch information
etrepum committed May 6, 2022
1 parent 53114ba commit 3b3478c6147aadc3cb2662c37b517110efc923b5
Showing 4 changed files with 19 additions and 5 deletions.
@@ -11,3 +11,5 @@
*.beam
*.dump
rebar.lock
/_build
/rebar3.crashdump
@@ -1,5 +1,7 @@
Version 3.0.0 released 2022-XX-XX

* rebar3 is now the preferred build tool (finally)
https://github.com/mochi/mochiweb/pull/241
* Minimum OTP version is now 18, which
allows us to remove a number of backwards
compatibility hacks while still supporting
@@ -14,6 +16,7 @@ Version 3.0.0 released 2022-XX-XX
that expression might have to be updated to
handle the `{shutdown, Error}` error reason.
https://github.com/mochi/mochiweb/pull/238
https://github.com/mochi/mochiweb/pull/242

Version 2.22.0 released 2021-08-23

@@ -348,9 +348,13 @@ find_boundary(Prefix, Data) ->
-include_lib("eunit/include/eunit.hrl").

ssl_cert_opts() ->
EbinDir = filename:dirname(code:which(?MODULE)),
CertDir = filename:join([EbinDir, "..", "support",
"test-materials"]),
{ok, Cwd} = file:get_cwd(),
CertDir = filename:join(
case filename:basename(Cwd) of
%% rebar2 compatibility
".eunit" -> [".."];
_ -> []
end ++ ["support", "test-materials"]),
CertFile = filename:join(CertDir, "test_ssl_cert.pem"),
KeyFile = filename:join(CertDir, "test_ssl_key.pem"),
[{certfile, CertFile}, {keyfile, KeyFile}].
@@ -5,8 +5,13 @@
-include_lib("eunit/include/eunit.hrl").

ssl_cert_opts() ->
EbinDir = filename:dirname(code:which(?MODULE)),
CertDir = filename:join([EbinDir, "..", "support", "test-materials"]),
{ok, Cwd} = file:get_cwd(),
CertDir = filename:join(
case filename:basename(Cwd) of
%% rebar2 compatibility
".eunit" -> [".."];
_ -> []
end ++ ["support", "test-materials"]),
CertFile = filename:join(CertDir, "test_ssl_cert.pem"),
KeyFile = filename:join(CertDir, "test_ssl_key.pem"),
[{certfile, CertFile}, {keyfile, KeyFile}].

0 comments on commit 3b3478c

Please sign in to comment.