luke
now uses the same cpp defines for conftests as will be used for module compilation, otherwise we are potestially testing and compiling with different sets of features.
-
luke
no longer crashes instd.normalize
require loops occasionally in Lua 5.4. -
lyaml emitter no longer leaks at least six bytes for every map, sequence and scalar emitted.
- Don't skip YAML entries from mixed key Lua tables.
luke
really propagatesLDFLAGS
to module compilation commands.
luke
really propagatesYAML_BINDIR
,YAML_DIR
,YAML_INCDIR
andYAML_LIBDIR
to checksymbol test in lukefile given the change toexternal_dependencies
layout in 6.1.2.
luke
works with upgraded bootstrap luarocks version ofrequire
.
- Initial support for Lua 5.4.
- Remove spurious dependency on
std.normalize
andstd._debug
libraries.
spec/spec_helper.lua
now looks in the correct objdir for object modules built by luke, instead of adding unused paths from old Autotools objdirs. So now specl is properly running examples against the not yet installed lyaml objects.
-
luke
uses the correct spelling of LIBFLAG to match luarocks now. -
luke
no longer throws spuriouscp: file exists
errors. -
luke
works on luajit again.
luke
no longer bombs out with a nil concat error.
luke
now propagatesLUA_DIR
,YAML_INCDIR
andYAML_LIBDIR
correctly.
- Builds and installs with
luke
instead of Autotools.
-
lyaml.load
now correctly reads implicit null scalars in a YAML document as anlyaml.null
reference, identical to the "~" shorthand syntax, according to the specification.empty: canonical: ~ english: null ~: null key
-
lyaml.load
now correctly reads a !!bool tagged scalar from a YAML document, or an implicit bool value, according to the specification.%TAG ! tag:yaml.org,2002: --- truthy: - !bool Y - !bool y - !bool True - !bool "on" falsey: - !bool n - !bool OFF - !bool garbage
-
lyaml.load
now correctly reads a !!float tagged scalar from a YAML document, or an implicit float value, according to the specification. -
lyaml.load
now correctly reads a !!int tagged scalar from a YAML document, or an implicit integer value, according to the specification. -
lyaml.load
now supports the !!merge key type according to the specification.- &MERGE { x: 1, y: 2 } - &OVERRIDE { x: 0, z: 1 } - << : [&MERGE, &OVERRIDE] z: 3
The anchored tables remain in the document too, so this results in the following Lua table:
{ -- START_STREAM { -- START_DOCUMENT { x = 1, y = 2 }, -- MERGE { x = 0, z = 1 }, -- OVERRIDE { x = 1, y = 2, z = 3}, -- <<< } -- END_DOCUMENT } -- END_STREAM
-
Multi-line strings were previously being dumped using single quotes which caused the dumped YAML to break.
For example, { foo = "a\nmultiline\nstring" } would get dumped as:
foo: 'a multiline string'
Note the extra line-breaks in between each line. This also causes YAML parsing to fail (since the blank lines didn't have the expected indentation).
This patch fixes the dump to use the YAML literal syntax for any multi-line strings so the same example gets dumped as:
foo: |- a multiline string
-
lyaml.load
now correctly reads the !!null tag in a YAML document as anlyaml.null
reference, identical to the "~" shorthand syntax, according to the specification.
-
lyaml.load
now takes a table of options as an optional second argument, not a simple boolean to determine whether all documents should be returned from the stream. For now, atrue
second argument will be converted to the modern equivalent:lyaml.load (document, { all = true })
-
lyaml.dump
now takes a table of options as an optional second argument, not an initial table of anchors. For now, a second argument without any new API keys will be converted to the modern equivalent:lyaml.dump (t, { anchors = arg2 })
- This release is functionally identical to the last.
- This release is functionally identical to the last.
- No more spurious .travis.yml is out of date warnings during
luarocks install lyaml
.
- When using
sudo make install
instead of LuaRocks,lyaml.so
is now correctly installed to$luaexecdir
.
- Lua 5.3.0 compatibility.
- Significantly reduced pointer mismatch warnings from modern GNU compilers.
lyaml.dump
now takes a second argument containing a table of potential anchor values inANCHOR_NAME = { "match", "elements" }
pairs format. The first time any are matched in the table being dumped, they are preceded by&ANCHOR_NAME
in the output YAML document; subsequent matches are not written out in full, but shortened to the appropriate*ANCHOR_NAME
alias.
-
yaml.emitter
no longer emits numbers in SINGLE_QUOTE style by default. -
yaml.emitter ().emit
returns error strings correctly for invalid STREAM_START encoding, and MAPPING_START, SEQUENCE_START & SCALAR style fields.
-
New yaml.emitter API returns an object with an emit method for adding events using yaml_*_event_initialize() calls.
-
New yaml.parser API returns a Lua iterator that fetches the next event using yaml_parser_parse().
-
New yaml.scanner API returns a Lua iterator that fetches the next token using yaml_parser_scan().
-
Beginnings of Specl specs, starting with a reasonably comprehensive specifications for the new APIs above.
-
C implementation of lyaml.dump has moved to Lua implementation as yaml.dump.
-
C implementation of lyaml.load has moved to Lua implementation as yaml.load.
-
The new Lua implementation of lyaml.load () handles multi-document streams, and returns a table of documents when the new second argument is
true
.
- This release is functionally identical to the last.
-
lyaml builds are now made against Lua 5.1, Lua 5.2 and luajit 2.0.0 automatically, with every commit.
-
move to a cleaner, automated release system.
-
This release is functionally identical to the last.
-
Use correct MIT license attribution, relicensing build files to match Andrew Danforth''s MIT licensed lyaml.c too.
-
A binding for libYAML, by Andrew Danforth: Updated for Lua 5.1 and 5.2, and packaged as a luarock.
-
I spun this out of Specl (http://github.com/gvvaughan/specl) so that other projects may use it, and to simplify the Specl build.
- There's not really any documentation, sorry. Contributions welcome!