From 64492f515b92bf3c446c94d005da6753d1a516cd Mon Sep 17 00:00:00 2001 From: julixian Date: Mon, 16 Nov 2026 21:20:54 +0800 Subject: [PATCH] feat(pkg): update julixian.tomlkitpp to 1.0.2 --- pkgs/j/julixian.tomlkitpp.lua | 24 +++++++++++++++++++ tests/examples/julixian.tomlkitpp/mcpp.toml | 2 +- .../tests/parse_edit_roundtrip.cpp | 8 +++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/pkgs/j/julixian.tomlkitpp.lua b/pkgs/j/julixian.tomlkitpp.lua index 762c20b5..4435cd90 100644 --- a/pkgs/j/julixian.tomlkitpp.lua +++ b/pkgs/j/julixian.tomlkitpp.lua @@ -29,18 +29,42 @@ package = { url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.0.tar.gz", sha256 = "0a242d7eed2bf1fc785b6becf45b78f948c07c4e36097f4b898e300239691979", }, + ["1.0.1"] = { + url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.1.tar.gz", + sha256 = "f6060d839c32562ffc9fa279d4e57a0436de017b6d12ee6432049f05e054a899", + }, + ["1.0.2"] = { + url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.2.tar.gz", + sha256 = "7f7fca227005acab339ee08a1d5e321e7d5c48c83380100274a840d570913deb", + }, }, macosx = { ["1.0.0"] = { url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.0.tar.gz", sha256 = "0a242d7eed2bf1fc785b6becf45b78f948c07c4e36097f4b898e300239691979", }, + ["1.0.1"] = { + url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.1.tar.gz", + sha256 = "f6060d839c32562ffc9fa279d4e57a0436de017b6d12ee6432049f05e054a899", + }, + ["1.0.2"] = { + url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.2.tar.gz", + sha256 = "7f7fca227005acab339ee08a1d5e321e7d5c48c83380100274a840d570913deb", + }, }, windows = { ["1.0.0"] = { url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.0.tar.gz", sha256 = "0a242d7eed2bf1fc785b6becf45b78f948c07c4e36097f4b898e300239691979", }, + ["1.0.1"] = { + url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.1.tar.gz", + sha256 = "f6060d839c32562ffc9fa279d4e57a0436de017b6d12ee6432049f05e054a899", + }, + ["1.0.2"] = { + url = "https://github.com/julixian/tomlkitpp/archive/refs/tags/v1.0.2.tar.gz", + sha256 = "7f7fca227005acab339ee08a1d5e321e7d5c48c83380100274a840d570913deb", + }, }, }, diff --git a/tests/examples/julixian.tomlkitpp/mcpp.toml b/tests/examples/julixian.tomlkitpp/mcpp.toml index 0923a552..5f9e3ccb 100644 --- a/tests/examples/julixian.tomlkitpp/mcpp.toml +++ b/tests/examples/julixian.tomlkitpp/mcpp.toml @@ -12,4 +12,4 @@ name = "julixian-tomlkitpp-tests" version = "0.1.0" [dependencies.julixian] -tomlkitpp = "1.0.0" +tomlkitpp = "1.0.2" diff --git a/tests/examples/julixian.tomlkitpp/tests/parse_edit_roundtrip.cpp b/tests/examples/julixian.tomlkitpp/tests/parse_edit_roundtrip.cpp index 1dc250cb..dc3804e5 100644 --- a/tests/examples/julixian.tomlkitpp/tests/parse_edit_roundtrip.cpp +++ b/tests/examples/julixian.tomlkitpp/tests/parse_edit_roundtrip.cpp @@ -38,5 +38,13 @@ int main() { if (!reparsed) return 11; if ((*reparsed)["server", "endpoint", "port"].get() != 9090) return 12; + if (tomlkit::kLibraryVersion != "1.0.2") return 13; + + // 1.0.2 regression: dotted key inside [a] traversing an earlier ImplicitSuper [a.b]. + constexpr std::string_view dottedInput = "[a.b]\nx = 1\n\n[a]\nc.y = 2\n"; + auto dottedDoc = tomlkit::tryParse(dottedInput); + if (!dottedDoc) return 14; + if (tomlkit::format(*dottedDoc) != dottedInput) return 15; + return 0; }