v0.10.10
This commit is contained in:
parent
65824583ab
commit
def86488f5
@ -1 +1 @@
|
|||||||
0.10.9
|
0.10.10
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{application,zx,
|
{application,zx,
|
||||||
[{description,"An Erlang development tool and Zomp user client"},
|
[{description,"An Erlang development tool and Zomp user client"},
|
||||||
{vsn,"0.10.9"},
|
{vsn,"0.10.10"},
|
||||||
{applications,[stdlib,kernel]},
|
{applications,[stdlib,kernel]},
|
||||||
{modules,[zx,zx_auth,zx_conn,zx_conn_sup,zx_daemon,zx_key,
|
{modules,[zx,zx_auth,zx_conn,zx_conn_sup,zx_daemon,zx_key,
|
||||||
zx_lib,zx_local,zx_net,zx_peer,zx_peer_man,
|
zx_lib,zx_local,zx_net,zx_peer,zx_peer_man,
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@ -24,7 +24,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx).
|
-module(zx).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behavior(application).
|
-behavior(application).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -9,7 +9,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_auth).
|
-module(zx_auth).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -7,7 +7,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_conn).
|
-module(zx_conn).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -5,7 +5,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_conn_sup).
|
-module(zx_conn_sup).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behavior(supervisor).
|
-behavior(supervisor).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -138,7 +138,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_daemon).
|
-module(zx_daemon).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behavior(gen_server).
|
-behavior(gen_server).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -8,7 +8,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_key).
|
-module(zx_key).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -10,7 +10,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_lib).
|
-module(zx_lib).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -6,7 +6,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_local).
|
-module(zx_local).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -168,7 +168,7 @@ initialize(P = #project{type = lib,
|
|||||||
"10" -> initialize(P#project{repo_url = none});
|
"10" -> initialize(P#project{repo_url = none});
|
||||||
"11" -> initialize(P#project{ws_url = none});
|
"11" -> initialize(P#project{ws_url = none});
|
||||||
"12" -> initialize(P#project{desc = none});
|
"12" -> initialize(P#project{desc = none});
|
||||||
"" -> initialize_check(P);
|
"" -> project_check(P, fun zompify/1, fun initialize/1);
|
||||||
_ ->
|
_ ->
|
||||||
ok = zx_tty:derp(),
|
ok = zx_tty:derp(),
|
||||||
initialize(P)
|
initialize(P)
|
||||||
@ -229,14 +229,14 @@ initialize(P = #project{type = Type,
|
|||||||
"11" -> initialize(P#project{repo_url = none});
|
"11" -> initialize(P#project{repo_url = none});
|
||||||
"12" -> initialize(P#project{ws_url = none});
|
"12" -> initialize(P#project{ws_url = none});
|
||||||
"13" -> initialize(P#project{desc = none});
|
"13" -> initialize(P#project{desc = none});
|
||||||
"" -> initialize_check(P);
|
"" -> project_check(P, fun zompify/1, fun initialize/1);
|
||||||
_ ->
|
_ ->
|
||||||
ok = zx_tty:derp(),
|
ok = zx_tty:derp(),
|
||||||
initialize(P)
|
initialize(P)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
initialize_check(P = #project{id = PackageID}) ->
|
project_check(P = #project{id = PackageID}, Continue, Retry) ->
|
||||||
case package_exists(PackageID) of
|
case package_exists(PackageID) of
|
||||||
false ->
|
false ->
|
||||||
zompify(P);
|
zompify(P);
|
||||||
@ -250,8 +250,8 @@ initialize_check(P = #project{id = PackageID}) ->
|
|||||||
{"Continue anyway.", 2},
|
{"Continue anyway.", 2},
|
||||||
{"Abort and do it later.", 3}],
|
{"Abort and do it later.", 3}],
|
||||||
case zx_tty:select(Options) of
|
case zx_tty:select(Options) of
|
||||||
1 -> initialize(P#project{id = none});
|
1 -> Retry(P#project{id = none});
|
||||||
2 -> zompify(P);
|
2 -> Continue(P);
|
||||||
3 -> ok
|
3 -> ok
|
||||||
end;
|
end;
|
||||||
maybe ->
|
maybe ->
|
||||||
@ -265,8 +265,8 @@ initialize_check(P = #project{id = PackageID}) ->
|
|||||||
{"Check again.", 2},
|
{"Check again.", 2},
|
||||||
{"Abort and do it later.", 3}],
|
{"Abort and do it later.", 3}],
|
||||||
case zx_tty:select(Options) of
|
case zx_tty:select(Options) of
|
||||||
1 -> zompify(P);
|
1 -> Continue(P);
|
||||||
2 -> initialize_check(P);
|
2 -> Retry(P);
|
||||||
3 -> ok
|
3 -> ok
|
||||||
end
|
end
|
||||||
end.
|
end.
|
||||||
@ -1284,7 +1284,7 @@ create(P = #project{type = lib,
|
|||||||
"11" -> create(P#project{repo_url = none});
|
"11" -> create(P#project{repo_url = none});
|
||||||
"12" -> create(P#project{ws_url = none});
|
"12" -> create(P#project{ws_url = none});
|
||||||
"13" -> create(P#project{desc = none});
|
"13" -> create(P#project{desc = none});
|
||||||
"" -> create_check(P);
|
"" -> project_check(P, fun create_project/1, fun create/1);
|
||||||
_ ->
|
_ ->
|
||||||
ok = zx_tty:derp(),
|
ok = zx_tty:derp(),
|
||||||
create(P)
|
create(P)
|
||||||
@ -1339,7 +1339,7 @@ create(P = #project{type = cli,
|
|||||||
"11" -> create(P#project{repo_url = none});
|
"11" -> create(P#project{repo_url = none});
|
||||||
"12" -> create(P#project{ws_url = none});
|
"12" -> create(P#project{ws_url = none});
|
||||||
"13" -> create(P#project{desc = none});
|
"13" -> create(P#project{desc = none});
|
||||||
"" -> create_check(P);
|
"" -> project_check(P, fun create_project/1, fun create/1);
|
||||||
_ ->
|
_ ->
|
||||||
ok = zx_tty:derp(),
|
ok = zx_tty:derp(),
|
||||||
create(P)
|
create(P)
|
||||||
@ -1433,43 +1433,13 @@ create(P = #project{type = Type,
|
|||||||
"11" -> create(P#project{repo_url = none});
|
"11" -> create(P#project{repo_url = none});
|
||||||
"12" -> create(P#project{ws_url = none});
|
"12" -> create(P#project{ws_url = none});
|
||||||
"13" -> create(P#project{desc = none});
|
"13" -> create(P#project{desc = none});
|
||||||
"" -> create_check(P);
|
"" -> project_check(P, fun create_project/1, fun create/1);
|
||||||
_ ->
|
_ ->
|
||||||
ok = zx_tty:derp(),
|
ok = zx_tty:derp(),
|
||||||
create(P)
|
create(P)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
create_check(P = #project{id = PackageID}) ->
|
|
||||||
case package_exists(PackageID) of
|
|
||||||
false ->
|
|
||||||
create_project(P);
|
|
||||||
true ->
|
|
||||||
Message =
|
|
||||||
"~nDHOH!~n"
|
|
||||||
"Sadly this package already exists.~n"
|
|
||||||
"Two packages with the same name cannot exist in a single realm.~n"
|
|
||||||
"Please pick another name.~n",
|
|
||||||
ok = io:format(Message),
|
|
||||||
create(P#project{id = none});
|
|
||||||
maybe ->
|
|
||||||
Message =
|
|
||||||
"~nHmmm...~n"
|
|
||||||
"zx_daemon wasn't able to find out (network problem?) whether this "
|
|
||||||
"package already exists.~n"
|
|
||||||
"What do?~n",
|
|
||||||
ok = io:format(Message),
|
|
||||||
Options = [{"Continue anyway.", 1},
|
|
||||||
{"Check again.", 2},
|
|
||||||
{"Abort and do it later.", 3}],
|
|
||||||
case zx_tty:select(Options) of
|
|
||||||
1 -> create_project(P);
|
|
||||||
2 -> create_check(P);
|
|
||||||
3 -> ok
|
|
||||||
end
|
|
||||||
end.
|
|
||||||
|
|
||||||
|
|
||||||
create_project(#project{type = escript,
|
create_project(#project{type = escript,
|
||||||
license = Title,
|
license = Title,
|
||||||
name = Name,
|
name = Name,
|
||||||
@ -5,7 +5,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_net).
|
-module(zx_net).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -8,7 +8,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_peer).
|
-module(zx_peer).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -9,7 +9,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_peer_man).
|
-module(zx_peer_man).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behavior(gen_server).
|
-behavior(gen_server).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -6,7 +6,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_peer_sup).
|
-module(zx_peer_sup).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behaviour(supervisor).
|
-behaviour(supervisor).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -10,7 +10,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_peers).
|
-module(zx_peers).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behavior(supervisor).
|
-behavior(supervisor).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -5,7 +5,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_proxy).
|
-module(zx_proxy).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -5,7 +5,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_sup).
|
-module(zx_sup).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-behavior(supervisor).
|
-behavior(supervisor).
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
@ -6,7 +6,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_tty).
|
-module(zx_tty).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -5,7 +5,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_userconf).
|
-module(zx_userconf).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -7,7 +7,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
|
|
||||||
-module(zx_zsp).
|
-module(zx_zsp).
|
||||||
-vsn("0.10.9").
|
-vsn("0.10.10").
|
||||||
-author("Craig Everett <zxq9@zxq9.com>").
|
-author("Craig Everett <zxq9@zxq9.com>").
|
||||||
-copyright("Craig Everett <zxq9@zxq9.com>").
|
-copyright("Craig Everett <zxq9@zxq9.com>").
|
||||||
-license("GPL-3.0").
|
-license("GPL-3.0").
|
||||||
@ -9,7 +9,7 @@
|
|||||||
{license,"MIT"}.
|
{license,"MIT"}.
|
||||||
{modules,[]}.
|
{modules,[]}.
|
||||||
{name,"zx"}.
|
{name,"zx"}.
|
||||||
{package_id,{"otpr","zx",{0,10,9}}}.
|
{package_id,{"otpr","zx",{0,10,10}}}.
|
||||||
{prefix,"zx_"}.
|
{prefix,"zx_"}.
|
||||||
{repo_url,"https://gitlab.com/zxq9/zx"}.
|
{repo_url,"https://gitlab.com/zxq9/zx"}.
|
||||||
{tags,["tools","package manager","erlang"]}.
|
{tags,["tools","package manager","erlang"]}.
|
||||||
Loading…
x
Reference in New Issue
Block a user