all repos — min @ 9ad149295019732de11130dbddaa9520bc618ae2

A small but practical concatenative programming language.

Ensuring that nimble metadata is specified statically (Closes #193).
h3rald h3rald@h3rald.com
Fri, 03 May 2024 14:49:20 +0200
commit

9ad149295019732de11130dbddaa9520bc618ae2

parent

fe19e56086145a6c8d4f9abf075d507abe3c0b7e

M min.nimblemin.nimble

@@ -1,21 +1,17 @@

-import - minpkg/core/meta - -# Package - -version = pkgVersion -author = pkgAuthor -description = pkgDescription -license = "MIT" -bin = @[pkgName] -installExt = @["nim", "c", "h", "a"] -installFiles = @["min.yml", "min.nim", "prelude.min", "help.json"] -installDirs = @["minpkg"] - -# Dependencies - -requires "nim >= 2.0.0 & < 3.0.0" -requires "checksums" -requires "zippy >= 0.5.6 & < 0.6.0" -requires "nimquery >= 2.0.1 & < 3.0.0" -requires "minline >= 0.1.1 & < 0.2.0" +# Package + +version = "0.43.1" author = "Fabio Cevasco" +description = "A small but practical concatenative programming language and shell." +license = "MIT" +bin = @["min"] +installExt = @["nim", "c", "h", "a"] +installFiles = @["min.yml", "min.nim", "prelude.min", "help.json"] +installDirs = @["minpkg"] + +# Dependencies + +requires "nim >= 2.0.0 & < 3.0.0" +requires "checksums" +requires "zippy >= 0.5.6 & < 0.6.0" +requires "nimquery >= 2.0.1 & < 3.0.0" +requires "minline >= 0.1.1 & < 0.2.0"
M min.ymlmin.yml

@@ -1,5 +1,5 @@

author: Fabio Cevasco description: A small but practical concatenative programming language and shell. -id: 138790547 +id: 153992690 name: min -version: 0.43.0+version: 0.43.1
M next-release.mdnext-release.md

@@ -1,18 +1,5 @@

-### BREAKING CHANGES - -- Renamed `ROOT` symbol to `global`. Also the built-in `lang` module is now called `global`. - -### New Features - -- Upgraded OpenSSL to v3.2.0 -- Added the `min run <mmm>` command to (download, install globally, and) execute the `main` symbol of the the specified managed module. For example this functionality can be used to upgrade `.min` files using the `min-upgrade` managed module. -- mmm: It is now possible to install, uninstall, and update modules by specifying them via `<name>@<version>`. -- mmm: The version is now optional when installing, uninstalling, and updating modules (the name of the HEAD branch will be used, e.g. "master" or "main", typically). - ### Fixes and Improvements -- Added check to prevent installing local managed modules in the HOME directory or $HOME/mmm. -- Changed `tokenize` symbol so that it returns the full token, including delimiters (for strings and comments). -- Fixed regression in `min compile` command introduced in the previews version due to parses changes. - +- Nimble metadata are now specified statically in the `min.nimble` file (Fixes #193). +- Minor documentation fixes.
A site/contents/news/v0.43.1.md

@@ -0,0 +1,14 @@

+----- +content-type: "post" +title: "Version 0.43.1 released" +slug: v0.43.1 +date: 2024-05-03 +----- +{@ _defs_.md || 0 @} + +This is a small patch release to address an issue related to Nimble metadata. + +### Fixes and Improvements + +- Nimble metadata are now specified statically in the `min.nimble` file (Fixes #193). +- Minor documentation fixes.
M site/contents/reference-str.mdsite/contents/reference-str.md

@@ -126,11 +126,7 @@ > > produces:

> > > > `"-1--2--3--4-"` > > -> > Note that for each match the following quotations (each containing the full match and the captured matches) are produced as input for the replace quotation: -> > ("-1-" "1") -> > ("-2-" "2") -> > ("-3-" "3") -> > ("-4-" "4") #} +> > Note that for each match the following quotations (each containing the full match and the captured matches) are produced as input for the replace quotation: `("-1-" "1") ("-2-" "2") ("-3-" "3") ("-4-" "4")` #} {#op||search||{{s1}} {{s2}}||{{q}}|| > Returns a quotation containing the first occurrence of {{s2}} within {{s1}}. Note that:
M site/settings.jsonsite/settings.json

@@ -6,5 +6,5 @@ "rules": "rules.min",

"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.43.0" + "version": "0.43.1" }
M tasks/version.mintasks/version.min

@@ -1,1 +1,99 @@

-#!/usr/bin/env min "min.yml" :yaml-cfg "site/settings.json" :json-site-cfg yaml-cfg fread from-yaml :config config /version :old-version ( symbol update-yaml-config ('sym :new-version ==>) ( config new-version %version @config config to-yaml yaml-cfg fwrite ) ) :: ;; Sets the version in the min.yml file to new-version. ( symbol update-site-config ('sym :new-version ==>) ( json-site-cfg fread from-json :site-config site-config new-version %version @site-config site-config to-json json-site-cfg fwrite ) ) :: ;; Updates the version of the web site to new-version. #| Tasks |# ( symbol set (==>) ( "" :new-version false :valid-semver (valid-semver not) ( "New version" ask @new-version new-version semver? @valid-semver ) while new-version update-yaml-config new-version update-site-config ) ) :: ;; Asks and sets the new min version where appropriate. ( symbol major (==>) ( old-version semver-inc-major :new-version new-version update-yaml-config new-version update-site-config ) ) :: ;; Increments the min major version. ( symbol minor (==>) ( old-version semver-inc-minor :new-version new-version update-yaml-config new-version update-site-config ) ) :: ;; Increments the min minor version. ( symbol patch (==>) ( old-version semver-inc-patch :new-version new-version update-yaml-config new-version update-site-config ) ) :: ;; Increments the min patch version. +#!/usr/bin/env min + +"min.yml" :yaml-cfg +"min.nimble" :nimble-cfg +"site/settings.json" :json-site-cfg + +yaml-cfg fread from-yaml :config +config /version :old-version +nimble-cfg fread :nimble-data + + +( + symbol update-yaml-config + ('sym :new-version ==>) + ( + config new-version %version @config + config to-yaml yaml-cfg fwrite + ) +) :: +;; Sets the version in the min.yml file to new-version. + +( + symbol update-site-config + ('sym :new-version ==>) + ( + json-site-cfg fread from-json :site-config + site-config new-version %version @site-config + site-config to-json json-site-cfg fwrite + ) +) :: +;; Updates the version of the web site to new-version. + +( + symbol update-nimble-config + ('sym :new-version ==>) + ( + "(version\s+=\s*)([^\s]+)(\s*)" :version-regexp + nimble-data version-regexp + (dup 1 get :start 3 get :end "$#\"$#\"$#" (start new-version end) =% puts) replace-apply @nimble-data + nimble-data nimble-cfg fwrite + ) +) :: +;; Updates the version in the nimble file to new-version. + +#| Tasks |# + +( + symbol set + (==>) + ( + "" :new-version + false :valid-semver + (valid-semver not) + ( + "New version" ask @new-version + new-version semver? @valid-semver + ) while + new-version update-yaml-config + new-version update-site-config + ) +) :: +;; Asks and sets the new min version where appropriate. + +( + symbol major + (==>) + ( + old-version semver-inc-major :new-version + new-version update-yaml-config + new-version update-site-config + new-version update-nimble-config + ) +) :: +;; Increments the min major version. + +( + symbol minor + (==>) + ( + old-version semver-inc-minor :new-version + new-version update-yaml-config + new-version update-site-config + new-version update-nimble-config + ) +) :: +;; Increments the min minor version. + +( + symbol patch + (==>) + ( + old-version semver-inc-patch :new-version + new-version update-yaml-config + new-version update-site-config + new-version update-nimble-config + ) +) :: +;; Increments the min patch version. +