From 61a8fa690676d495bd65997ba46dc5391a0578b3 Mon Sep 17 00:00:00 2001 From: Francesc Rocher Date: Sun, 22 Oct 2023 18:32:55 +0200 Subject: [PATCH 1/6] mold_lib 1.0.0 --- index/mo/mold_lib/mold_lib-1.0.0.toml | 84 +++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 index/mo/mold_lib/mold_lib-1.0.0.toml diff --git a/index/mo/mold_lib/mold_lib-1.0.0.toml b/index/mo/mold_lib/mold_lib-1.0.0.toml new file mode 100644 index 000000000..3a815f7f9 --- /dev/null +++ b/index/mo/mold_lib/mold_lib-1.0.0.toml @@ -0,0 +1,84 @@ +name = "mold_lib" +version = "1.0.0" +tags = ["template", "template-engine", "template-repo"] + +description = "Meta-variable Operations for Lean Development (lib)" +long-description = ''' +[![Alire](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/mold_lib.json)](https://alire.ada.dev/crates/mold_lib.html) +[![Alire CI/CD](https://img.shields.io/endpoint?url=https://alire-crate-ci.ada.dev/badges/mold_lib.json)](https://alire-crate-ci.ada.dev/crates/mold_lib.html) +![unit-test](https://github.com/rocher/mold_lib/actions/workflows/unit-test.yml/badge.svg) +[![codecov](https://codecov.io/gh/rocher/mold_lib/graph/badge.svg?token=LB83SI4I0Y)](https://codecov.io/gh/rocher/mold_lib) +[![GitHub release](https://img.shields.io/github/release/rocher/mold_lib.svg)](https://github.com/rocher/mold_lib/releases/latest) +[![License](https://img.shields.io/github/license/rocher/mold_lib.svg?color=blue)](https://github.com/rocher/mold_lib/blob/master/LICENSE) + +## Welcome to **Mold** + +> **MOLD**: *Meta-variable Operations for Lean Development* + +Mold is a Template Processor, or Template Engine, to work with repository +templates. The main motivation of Mold is to have repositories in GitHub used +as template repositories to create new, customized repositories for other +users. + +Main features supported in Mold include + + * variable replacement in mold files (*.mold) + + * for a given directory, variable replacement recursively for all mold files + in all subdirectories + + * variable replacement in file names + + * inclusion of other templates + + * definition of variables with a simple TOML file + +Variable replacement can be specified as *normal*, *optional* or *mandatory*. +For example, the variable `foo = "bar"` can be specified with `{{foo}}`, +`{{?foo}}` (optional) or `{{#foo}}` (mandatory). The difference is the handling +of errors when an undefined variable is encountered. + +All mold files must end with the extension `.mold`, for example +`README.md.mold`. Destination files (with variables replaced) have the same +name without the mold extension: `README.md`. This simplifies the work done in +large subdirectories with few templates. + +This crate contains the Ada library and unit tests. For a CLI tool, please +take a look at the crate `mold`. + +## Reference Guide + +Please visit [Mold documentation](https://rocher.github.io/mold) for more +information. + +--- +## License +MIT (c) 2023 Francesc Rocher +''' + +authors = ["Francesc Rocher"] +website = "https://rocher.github.io/mold" +maintainers = ["Francesc Rocher "] +maintainers-logins = ["rocher"] + +licenses = "MIT" + +[build-profiles] +"mold_lib" = "release" + +[build-switches."*"] +ada_version = ["-gnat2022", "-gnatW8", "-gnatX"] + +[build-switches] +release.optimization = ["-O2", "-gnatn"] + +[[depends-on]] +ada_toml = "~0.3.0" +gnat = ">=2021 | (>=12 & <2000)" +gnatcov = "^22.0.1" +simple_logging = "^1.2.0" + +[origin] +commit = "2982cd80e7ac6f1b027d09c00a719a9e46e5708e" +url = "git+https://github.com//rocher/mold_lib.git" + From b6bc91de57942401c648bf71dc8f378a4a57499c Mon Sep 17 00:00:00 2001 From: Francesc Rocher Date: Sun, 22 Oct 2023 20:01:45 +0200 Subject: [PATCH 2/6] Update release --- index/mo/mold_lib/mold_lib-1.0.0.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/mo/mold_lib/mold_lib-1.0.0.toml b/index/mo/mold_lib/mold_lib-1.0.0.toml index 3a815f7f9..a21efd837 100644 --- a/index/mo/mold_lib/mold_lib-1.0.0.toml +++ b/index/mo/mold_lib/mold_lib-1.0.0.toml @@ -79,6 +79,6 @@ gnatcov = "^22.0.1" simple_logging = "^1.2.0" [origin] -commit = "2982cd80e7ac6f1b027d09c00a719a9e46e5708e" +commit = "e06db2e59d2e2a787c47fb983f86f0a79ffc6fdf" url = "git+https://github.com//rocher/mold_lib.git" From bce925438815f141cdc41855772eb33f078d1506 Mon Sep 17 00:00:00 2001 From: Francesc Rocher Date: Sun, 22 Oct 2023 20:23:20 +0200 Subject: [PATCH 3/6] Update release 1.0.0 (main) --- index/mo/mold_lib/mold_lib-1.0.0.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/mo/mold_lib/mold_lib-1.0.0.toml b/index/mo/mold_lib/mold_lib-1.0.0.toml index a21efd837..99151c697 100644 --- a/index/mo/mold_lib/mold_lib-1.0.0.toml +++ b/index/mo/mold_lib/mold_lib-1.0.0.toml @@ -79,6 +79,6 @@ gnatcov = "^22.0.1" simple_logging = "^1.2.0" [origin] -commit = "e06db2e59d2e2a787c47fb983f86f0a79ffc6fdf" +commit = "13880966a86052e3d0528b2900b386062766c7e6" url = "git+https://github.com//rocher/mold_lib.git" From 6c6aef52578f5e37dcc979d00ca295e2220576ea Mon Sep 17 00:00:00 2001 From: Francesc Rocher Date: Mon, 23 Oct 2023 19:45:10 +0200 Subject: [PATCH 4/6] Update release to 1.0.2 --- .../{mold_lib-1.0.0.toml => mold_lib-1.0.2.toml} | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename index/mo/mold_lib/{mold_lib-1.0.0.toml => mold_lib-1.0.2.toml} (94%) diff --git a/index/mo/mold_lib/mold_lib-1.0.0.toml b/index/mo/mold_lib/mold_lib-1.0.2.toml similarity index 94% rename from index/mo/mold_lib/mold_lib-1.0.0.toml rename to index/mo/mold_lib/mold_lib-1.0.2.toml index 99151c697..5f1a13a48 100644 --- a/index/mo/mold_lib/mold_lib-1.0.0.toml +++ b/index/mo/mold_lib/mold_lib-1.0.2.toml @@ -1,5 +1,5 @@ name = "mold_lib" -version = "1.0.0" +version = "1.0.2" tags = ["template", "template-engine", "template-repo"] description = "Meta-variable Operations for Lean Development (lib)" @@ -11,7 +11,7 @@ long-description = ''' [![GitHub release](https://img.shields.io/github/release/rocher/mold_lib.svg)](https://github.com/rocher/mold_lib/releases/latest) [![License](https://img.shields.io/github/license/rocher/mold_lib.svg?color=blue)](https://github.com/rocher/mold_lib/blob/master/LICENSE) -## Welcome to **Mold** +## Welcome to **Mold (lib)** > **MOLD**: *Meta-variable Operations for Lean Development* @@ -33,6 +33,8 @@ Main features supported in Mold include * definition of variables with a simple TOML file + * predefined and custom text filters to easy text transformations + Variable replacement can be specified as *normal*, *optional* or *mandatory*. For example, the variable `foo = "bar"` can be specified with `{{foo}}`, `{{?foo}}` (optional) or `{{#foo}}` (mandatory). The difference is the handling @@ -75,10 +77,9 @@ release.optimization = ["-O2", "-gnatn"] [[depends-on]] ada_toml = "~0.3.0" gnat = ">=2021 | (>=12 & <2000)" -gnatcov = "^22.0.1" simple_logging = "^1.2.0" [origin] -commit = "13880966a86052e3d0528b2900b386062766c7e6" +commit = "0c2f204f8b41504b9e58b053bf16a46155deb8d7" url = "git+https://github.com//rocher/mold_lib.git" From 6144a9f4cc8fb7595c8ac6f5a2eed35aa987537e Mon Sep 17 00:00:00 2001 From: Francesc Rocher Date: Mon, 23 Oct 2023 19:49:10 +0200 Subject: [PATCH 5/6] Update commit id --- index/mo/mold_lib/mold_lib-1.0.2.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/mo/mold_lib/mold_lib-1.0.2.toml b/index/mo/mold_lib/mold_lib-1.0.2.toml index 5f1a13a48..2077533b8 100644 --- a/index/mo/mold_lib/mold_lib-1.0.2.toml +++ b/index/mo/mold_lib/mold_lib-1.0.2.toml @@ -80,6 +80,6 @@ gnat = ">=2021 | (>=12 & <2000)" simple_logging = "^1.2.0" [origin] -commit = "0c2f204f8b41504b9e58b053bf16a46155deb8d7" +commit = "cbb40d5c2d8316a3faa247ac350a9385db10476c" url = "git+https://github.com//rocher/mold_lib.git" From 1151c80326edbe0aedd53c5919790e2f3641509c Mon Sep 17 00:00:00 2001 From: Francesc Rocher Date: Tue, 24 Oct 2023 22:59:01 +0200 Subject: [PATCH 6/6] Update release to 1.0.3 --- .../mo/mold_lib/{mold_lib-1.0.2.toml => mold_lib-1.0.3.toml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename index/mo/mold_lib/{mold_lib-1.0.2.toml => mold_lib-1.0.3.toml} (97%) diff --git a/index/mo/mold_lib/mold_lib-1.0.2.toml b/index/mo/mold_lib/mold_lib-1.0.3.toml similarity index 97% rename from index/mo/mold_lib/mold_lib-1.0.2.toml rename to index/mo/mold_lib/mold_lib-1.0.3.toml index 2077533b8..1d155d47d 100644 --- a/index/mo/mold_lib/mold_lib-1.0.2.toml +++ b/index/mo/mold_lib/mold_lib-1.0.3.toml @@ -1,5 +1,5 @@ name = "mold_lib" -version = "1.0.2" +version = "1.0.3" tags = ["template", "template-engine", "template-repo"] description = "Meta-variable Operations for Lean Development (lib)" @@ -80,6 +80,6 @@ gnat = ">=2021 | (>=12 & <2000)" simple_logging = "^1.2.0" [origin] -commit = "cbb40d5c2d8316a3faa247ac350a9385db10476c" +commit = "68b38ff2fdac31f69df38bc010a1803630e00972" url = "git+https://github.com//rocher/mold_lib.git"