-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed app name cleanup to allow paths; v0.31.2; tests and docs
- Loading branch information
1 parent
c2fe4f5
commit b06f397
Showing
20 changed files
with
293 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "Genie" | ||
uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" | ||
authors = ["Adrian Salceanu <[email protected]>"] | ||
version = "0.31.1" | ||
version = "0.31.2" | ||
|
||
[deps] | ||
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
```@meta | ||
CurrentModule = Assets | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
startup | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```@meta | ||
CurrentModule = Commands | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
withcache | ||
purge | ||
purgeall | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
```@meta | ||
CurrentModule = Cookies | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
get | ||
get!! | ||
set! | ||
Dict | ||
nullablevalue | ||
getcookies | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```@meta | ||
CurrentModule = Genie | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
serve | ||
newapp | ||
loadapp | ||
startup | ||
newmodel | ||
newcontroller | ||
newresource | ||
newmigration | ||
newtablemigration | ||
newtask | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
```@meta | ||
CurrentModule = REPL | ||
``` | ||
|
||
```@contents | ||
``` | ||
|
||
```@docs | ||
secret_token | ||
copy_fullstack_app | ||
copy_microstack_app | ||
copy_db_support | ||
copy_mvc_support | ||
write_secrets_file | ||
write_app_custom_files | ||
install_app_dependencies | ||
autostart_app | ||
newapp | ||
loadapp | ||
setup_windows_bin_files | ||
setup_nix_bin_files | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@safetestset "AppServer functionality" begin | ||
|
||
@safetestset "Start/stop servers" begin | ||
using Genie | ||
using Genie.AppServer | ||
|
||
servers = Genie.AppServer.startup() | ||
@test servers.webserver.state == :runnable | ||
@test Genie.AppServer.SERVERS.webserver.state == :runnable | ||
|
||
servers = Genie.AppServer.down() | ||
sleep(1) | ||
@test servers.webserver.state == :done | ||
@test Genie.AppServer.SERVERS.webserver.state == :done | ||
|
||
servers = Genie.AppServer.startup() | ||
Genie.AppServer.down(; webserver = false) | ||
sleep(1) | ||
@test servers.webserver.state == :runnable | ||
@test Genie.AppServer.SERVERS.webserver.state == :runnable | ||
|
||
servers = Genie.AppServer.down(; webserver = true) | ||
sleep(1) | ||
@test servers.webserver.state == :done | ||
@test Genie.AppServer.SERVERS.webserver.state == :done | ||
end; | ||
|
||
@safetestset "Update config when custom startup args" begin | ||
using Genie | ||
using Genie.AppServer | ||
|
||
port = Genie.config.server_port | ||
ws_port = Genie.config.websockets_port | ||
|
||
Genie.AppServer.up(port+1_000; ws_port = ws_port+1_000) | ||
|
||
@test Genie.config.server_port == port+1_000 | ||
@test Genie.config.websockets_port == ws_port+1_000 | ||
|
||
Genie.AppServer.down() | ||
end; | ||
|
||
end; |