A hare library for parsing TOML documents.
- Hare 98.8%
- Ruby 0.8%
- Makefile 0.4%
| example | Update for hare 0.25.2 and remove webdocs | |
| toml | Update for hare 0.25.2 and remove webdocs | |
| toml_test | Skip failed tests | |
| tools | Skip failed tests | |
| .gitignore | Update for hare 0.25.2 and remove webdocs | |
| LICENSE | Update copyright | |
| Makefile | Fix the install script | |
| README.md | Skip failed tests | |
hare-toml, version 0.2.1
This package implements the TOML format for Hare, version 1.0.0.
Installation
System-wide installation
# make install
Vendoring
$ git subtree -P vendor/hare-toml/ add https://codeberg.org/lunacb/hare-toml master
Usage
See the documented source code with haredoc toml. There's an
example program that shows how you can validate and process a TOML
configuration. It can be run with hare run ./example.
Running the tests
hare-toml is tested both by internal tests and by the
toml-test suite.
The make check command runs all tests. For just the internal ones you can run
make check_local.
The test data is located at toml_test/vendor/, and can be
updated from the root directory of this repository with:
$ toml-test -toml 1.0.0 -copy toml_test/vendor/
The tests themselves are performed with auto-generated Hare source files that
can be generated with tools/generate_tests.rb.