Current section

54 Versions

Jump to

Compare versions

7 files changed
+22 additions
-22 deletions
  @@ -2,9 +2,10 @@
2 2 {<<"build_tools">>,[<<"rebar3">>]}.
3 3 {<<"description">>,<<"Nova is a web application framework">>}.
4 4 {<<"files">>,
5 - [<<"LICENSE">>,<<"README.md">>,<<"include/nova.hrl">>,
6 - <<"include/nova_pubsub.hrl">>,<<"include/nova_router.hrl">>,
7 - <<"priv/static/nova.png">>,<<"rebar.config">>,<<"rebar.lock">>,
5 + [<<"LICENSE">>,<<"README.md">>,<<"include">>,<<"include/nova.hrl">>,
6 + <<"include/nova_pubsub.hrl">>,<<"include/nova_router.hrl">>,<<"priv">>,
7 + <<"priv/static">>,<<"priv/static/nova.png">>,<<"rebar.config">>,
8 + <<"rebar.lock">>,<<"src">>,<<"src/controllers">>,
8 9 <<"src/controllers/nova_error_controller.erl">>,
9 10 <<"src/controllers/nova_file_controller.erl">>,<<"src/nova.app.src">>,
10 11 <<"src/nova.erl">>,<<"src/nova.hrl">>,<<"src/nova_app.erl">>,
  @@ -16,10 +17,10 @@
16 17 <<"src/nova_session_ets.erl">>,<<"src/nova_stream_h.erl">>,
17 18 <<"src/nova_sup.erl">>,<<"src/nova_watcher.erl">>,
18 19 <<"src/nova_websocket.erl">>,<<"src/nova_ws_handler.erl">>,
19 - <<"src/plugins/nova_correlation_plugin.erl">>,
20 + <<"src/plugins">>,<<"src/plugins/nova_correlation_plugin.erl">>,
20 21 <<"src/plugins/nova_cors_plugin.erl">>,
21 - <<"src/plugins/nova_request_plugin.erl">>,<<"src/views/nova_error.dtl">>,
22 - <<"src/views/nova_file.dtl">>]}.
22 + <<"src/plugins/nova_request_plugin.erl">>,<<"src/views">>,
23 + <<"src/views/nova_error.dtl">>,<<"src/views/nova_file.dtl">>]}.
23 24 {<<"licenses">>,[<<"Apache 2.0">>]}.
24 25 {<<"links">>,[{<<"GitHub">>,<<"https://github.com/novaframework/nova">>}]}.
25 26 {<<"name">>,<<"nova">>}.
  @@ -52,4 +53,4 @@
52 53 [{<<"app">>,<<"uuid">>},
53 54 {<<"optional">>,false},
54 55 {<<"requirement">>,<<"~>2.0.7">>}]}]}.
55 - {<<"version">>,<<"0.10.1">>}.
56 + {<<"version">>,<<"0.10.2">>}.
  @@ -12,7 +12,6 @@
12 12
13 13 {deps, [
14 14 {cowboy, "2.12.0"},
15 - {uuid, "2.0.7", {pkg, uuid_erl}},
16 15 {erlydtl, "0.14.0"},
17 16 {jhn_stdlib, "5.1.0"},
18 17 {pmod_transform, "1.1.0"},
  @@ -1,6 +1,6 @@
1 1 {application,nova,
2 2 [{description,"Nova is a web application framework"},
3 - {vsn,"0.10.1"},
3 + {vsn,"0.10.2"},
4 4 {registered,[]},
5 5 {mod,{nova_app,[]}},
6 6 {included_applications,[]},
  @@ -55,7 +55,7 @@
55 55 handle_info/2,
56 56 terminate/2,
57 57 code_change/3,
58 - format_status/2
58 + format_status/1
59 59 ]).
60 60
61 61 -include_lib("kernel/include/logger.hrl").
  @@ -260,9 +260,9 @@ code_change(_OldVsn, State, _Extra) ->
260 260 %% or when it appears in termination error logs.
261 261 %% @end
262 262 %%--------------------------------------------------------------------
263 - -spec format_status(Opt :: normal | terminate,
264 - Status :: list()) -> Status :: term().
265 - format_status(_Opt, Status) ->
263 + -spec format_status(Status) -> NewStatus when Status :: #{'log'=>[any()], 'message'=>_, 'reason'=>_, 'state'=>_},
264 + NewStatus :: #{'log'=>[any()], 'message'=>_, 'reason'=>_, 'state'=>_}.
265 + format_status(Status) ->
266 266 Status.
267 267
268 268 %%%===================================================================
  @@ -21,7 +21,7 @@
21 21
22 22 %% gen_server callbacks
23 23 -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
24 - terminate/2, code_change/3, format_status/2]).
24 + terminate/2, code_change/3, format_status/1]).
25 25
26 26 -define(SERVER, ?MODULE).
27 27 -define(TABLE, nova_session_ets_entries).
  @@ -198,9 +198,9 @@ code_change(_OldVsn, State, _Extra) ->
198 198 %% or when it appears in termination error logs.
199 199 %% @end
200 200 %%--------------------------------------------------------------------
201 - -spec format_status(Opt :: normal | terminate,
202 - Status :: list()) -> Status :: term().
203 - format_status(_Opt, Status) ->
201 + -spec format_status(Status) -> NewStatus when Status :: #{'log'=>[any()], 'message'=>_, 'reason'=>_, 'state'=>_},
202 + NewStatus :: #{'log'=>[any()], 'message'=>_, 'reason'=>_, 'state'=>_}.
203 + format_status(Status) ->
204 204 Status.
205 205
206 206 %%%===================================================================
Loading more files…