Extension methods to the lua string
type.
Please see code doc and tests for examples.
Usage
luarocks install lua-string-extensions
# or for CraftOS
bsrocks install lua-string-extensions
We use busted for testing.
luarocks install busted
busted
# ●●●●
# 4 successes / 0 failures / 0 errors / 0 pending : 0.004402 seconds
To publish a version on https://luarocks.org/, we need luarocks
installed.
sudo apt install luarocks
- Create a new git tag
- Create a new version of the rockspec
- Update the versions in the rockspec
- Ensure that the
tar.gz
is accessible - Lint and upload
luarocks lint ./<rockspec>
luarocks upload --api-key <apiKey> ./lua-string-extensions-<version>.rockspec
- Ensure that the new version is registered in the root manifest
Same procedure as publishing a new version but instead of creating a new version, you update the existing tag and force update.
luarocks upload --api-key <apiKey> ./lua-string-extensions-<existing-version>.rockspec --force