[ 0.10.16 ] Update JSON configuration

1. Remove startfunction
2. Rename configuration values
   - module_path    -> modulepath
   - module_include -> entryscript
   - startaction    -> entryroute
3. Add perl5 language highlights to *.raku* at .gitattributes
parent c644c102
Pipeline #161560393 passed with stage
in 35 minutes and 30 seconds
*.raku gitlab-language=perl
*.rakumod gitlab-language=perl
*.rakutest gitlab-language=perl
*.pl6 gitlab-language=perl
*.pm6 gitlab-language=perl
*.p6 gitlab-language=perl
......@@ -2,7 +2,7 @@ unit class Pheix::Model::Version;
constant ver_maj = 0;
constant ver_min = 10;
constant ver_rel = 15;
constant ver_rel = 16;
method get_version returns Str {
( ver_maj.Str ~ q{.} ~ ver_min.Str ~ q{.} ~ ver_rel.Str );
......
......@@ -15,17 +15,14 @@
"version": {
"value": "4.0"
},
"module_path": {
"modulepath": {
"value": "lib/Pheix"
},
"module_include": {
"value": "user.p6"
"entryscript": {
"value": "user.raku"
},
"startaction": {
"value": "index"
},
"startfunction": {
"value": "userfunc"
"entryroute": {
"value": "/index"
},
"staticsitemap": {
"value": "sitemap_static.xml"
......
......@@ -195,12 +195,12 @@ subtest {
# Check set_conf_value method
subtest {
plan 20;
plan 18;
my Str $currbackup = backup_conf;
my Str $add = 'Pheix';
my @confvalues = <
systemtype name menuitem description version module_path
module_include startaction startfunction staticsitemap>;
systemtype name menuitem description version modulepath
entryscript entryroute staticsitemap>;
for @confvalues -> $member {
my $wvalue = md5( (0..1000).rand.Str.encode('UTF8') ).unpack("H*");
ok(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment