leptris 1.9.432.1-ppc64le-linux → 1.9.433.0-ppc64le-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/leptris/version.rb +1 -1
- data/lib/libleptris.so +0 -0
- data/vendor-src/README.md +1 -1
- data/vendor-src/libleptris/CHANGELOG.md +17 -0
- data/vendor-src/libleptris/CMakeLists.txt +1 -1
- data/vendor-src/libleptris/src/include/leptris.h +2 -2
- data/vendor-src/libleptris/src/leptris/core.c +4 -4
- data/vendor-src/libleptris/test/CMakeLists.txt +5 -0
- data/vendor-src/libleptris/test/abi/test_version_lockstep.cpp +87 -0
- data/vendor-src/libleptris/vcpkg.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c67092265f77a4b0702c158dc8e47460390fa620a1c4d393ab97a1b975ee75f
|
|
4
|
+
data.tar.gz: c711e58393cee2e49f05812a23bf1ae0a297fdcf49faac11450f09058f0b40fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 335eabb5f94ff76fba25da1f39d2eb8798719803072e3315b54ae1ec06278e4adf4a43ad69ee6b3d380915e41b0ba6d4179a81ef5b3fb4e04e20ea61a300cd7c
|
|
7
|
+
data.tar.gz: 75019ab5d87c192cd0095db9600557caa50a58f83971d5728a4d9689890d0683b38ffa76e0ea0d607892e0e72ea5d1ac787260961dfdc87971a30fc82b914eed
|
data/Rakefile
CHANGED
|
@@ -8,7 +8,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
|
8
8
|
# Pin for `rake compile` and the platform-gem builds. Keep in lockstep
|
|
9
9
|
# with .github/workflows/build.yml (which calls `rake compile`) and the
|
|
10
10
|
# CHANGELOG when libleptris releases.
|
|
11
|
-
LIBLEPTRIS_VERSION = "1.9.
|
|
11
|
+
LIBLEPTRIS_VERSION = "1.9.433"
|
|
12
12
|
|
|
13
13
|
# THE SSOT for the per-minor native bundle list (ruby#645): one line,
|
|
14
14
|
# space-separated, consumed by the Rakefile, the per-minor builder's
|
data/lib/leptris/version.rb
CHANGED
data/lib/libleptris.so
CHANGED
|
Binary file
|
data/vendor-src/README.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.9.433] - 2026-11-22
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- release: all four version surfaces move together — the bump script
|
|
8
|
+
updated four files but the release workflow's commit step staged
|
|
9
|
+
three, so `src/include/leptris.h` was silently discarded on every
|
|
10
|
+
train since 1.9.145 (287 releases shipped header macros frozen at
|
|
11
|
+
1.9.145; the non-CMake fallback reported 0.26.8-era strings). The
|
|
12
|
+
commit step now stages every file the script touches, the script
|
|
13
|
+
also syncs the core.c fallback block, and
|
|
14
|
+
`test/abi/test_version_lockstep` pins CMakeLists == leptris.h ==
|
|
15
|
+
core.c == `leptris_version()` so any future drift fails CI with
|
|
16
|
+
the drifted surface named (#2118).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
3
20
|
## [1.9.432] - 2026-11-21
|
|
4
21
|
|
|
5
22
|
### Fixed
|
|
@@ -4207,8 +4207,8 @@ LEPTRIS_API const char* leptris_xinclude_get_encoding(LeptrisElement include_ele
|
|
|
4207
4207
|
* CI's export-surface gate diffs the header against the binary. */
|
|
4208
4208
|
#define LIBLEPTRIS_VERSION_MAJOR 1
|
|
4209
4209
|
#define LIBLEPTRIS_VERSION_MINOR 9
|
|
4210
|
-
#define LIBLEPTRIS_VERSION_PATCH
|
|
4211
|
-
#define LIBLEPTRIS_VERSION_STRING "1.9.
|
|
4210
|
+
#define LIBLEPTRIS_VERSION_PATCH 433
|
|
4211
|
+
#define LIBLEPTRIS_VERSION_STRING "1.9.433"
|
|
4212
4212
|
|
|
4213
4213
|
/**
|
|
4214
4214
|
* Get libleptris version string
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
* reaches here via target_compile_definitions in src/CMakeLists.txt.
|
|
22
22
|
* Fallback keeps hand-built compilers honest. */
|
|
23
23
|
#ifndef LEPTRIS_VERSION
|
|
24
|
-
#define LEPTRIS_VERSION "
|
|
24
|
+
#define LEPTRIS_VERSION "1.9.433"
|
|
25
25
|
#endif
|
|
26
26
|
#ifndef LEPTRIS_VERSION_MAJOR
|
|
27
|
-
#define LEPTRIS_VERSION_MAJOR
|
|
27
|
+
#define LEPTRIS_VERSION_MAJOR 1
|
|
28
28
|
#endif
|
|
29
29
|
#ifndef LEPTRIS_VERSION_MINOR
|
|
30
|
-
#define LEPTRIS_VERSION_MINOR
|
|
30
|
+
#define LEPTRIS_VERSION_MINOR 9
|
|
31
31
|
#endif
|
|
32
32
|
#ifndef LEPTRIS_VERSION_PATCH
|
|
33
|
-
#define LEPTRIS_VERSION_PATCH
|
|
33
|
+
#define LEPTRIS_VERSION_PATCH 433
|
|
34
34
|
#endif
|
|
35
35
|
|
|
36
36
|
/* Thread-local allocator hooks (TODO 27/74).
|
|
@@ -243,6 +243,11 @@ leptris_add_test(test_recorder sax/test_recorder.cpp)
|
|
|
243
243
|
leptris_add_test(test_iterparse sax/test_iterparse.cpp)
|
|
244
244
|
leptris_add_test(test_streaming sax/test_streaming.cpp)
|
|
245
245
|
leptris_add_test(test_abi abi/test_header_hygiene.cpp)
|
|
246
|
+
leptris_add_test(test_version_lockstep abi/test_version_lockstep.cpp)
|
|
247
|
+
# The lockstep spec reads the repo's own version surfaces (CMakeLists,
|
|
248
|
+
# leptris.h, core.c) — hand it the repo root.
|
|
249
|
+
target_compile_definitions(test_version_lockstep PRIVATE
|
|
250
|
+
LEPTRIS_REPO_ROOT="${PROJECT_SOURCE_DIR}")
|
|
246
251
|
leptris_add_test(test_public_surface abi/test_public_surface.cpp)
|
|
247
252
|
leptris_add_test(test_serialize_abi abi/test_serialize_abi.cpp)
|
|
248
253
|
leptris_add_test(test_nokogiri_api abi/test_nokogiri_api.cpp)
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// test/abi/test_version_lockstep.cpp — The four version surfaces agree.
|
|
2
|
+
//
|
|
3
|
+
// The engine's version lives in four hand-reachable places:
|
|
4
|
+
// 1. CMakeLists.txt project(leptris VERSION x.y.z)
|
|
5
|
+
// 2. src/include/leptris.h LIBLEPTRIS_VERSION_{MAJOR,MINOR,PATCH,STRING}
|
|
6
|
+
// 3. src/leptris/core.c the non-CMake fallback block
|
|
7
|
+
// 4. the compiled library leptris_version()
|
|
8
|
+
//
|
|
9
|
+
// Sources 1/2/4 are what release trains and bindings consume; 3 is
|
|
10
|
+
// what hand-built compilers fall back to. The release train's bump
|
|
11
|
+
// script updates 1+2+3, and the release workflow commits them —
|
|
12
|
+
// until the commit step dropped leptris.h (287 releases shipped with
|
|
13
|
+
// the header at 1.9.145, npm 0.1.66/0.1.67 shipped wasm reporting
|
|
14
|
+
// 1.9.390). This spec fails loudly the moment any surface drifts.
|
|
15
|
+
|
|
16
|
+
#include <gtest/gtest.h>
|
|
17
|
+
|
|
18
|
+
#include <cstdio>
|
|
19
|
+
#include <cstdlib>
|
|
20
|
+
#include <fstream>
|
|
21
|
+
#include <regex>
|
|
22
|
+
#include <string>
|
|
23
|
+
|
|
24
|
+
#include "leptris.h"
|
|
25
|
+
|
|
26
|
+
#ifndef LEPTRIS_REPO_ROOT
|
|
27
|
+
#define LEPTRIS_REPO_ROOT "."
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
namespace {
|
|
31
|
+
|
|
32
|
+
std::string read_file(const std::string& path) {
|
|
33
|
+
std::ifstream in(path);
|
|
34
|
+
if (!in) return "";
|
|
35
|
+
return std::string((std::istreambuf_iterator<char>(in)),
|
|
36
|
+
std::istreambuf_iterator<char>());
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
std::string cmake_version() {
|
|
40
|
+
const std::string text = read_file(std::string(LEPTRIS_REPO_ROOT) + "/CMakeLists.txt");
|
|
41
|
+
std::smatch m;
|
|
42
|
+
const std::regex re("VERSION ([0-9]+)\\.([0-9]+)\\.([0-9]+)");
|
|
43
|
+
if (!std::regex_search(text, m, re)) return "";
|
|
44
|
+
return m[1].str() + "." + m[2].str() + "." + m[3].str();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
std::string header_version() {
|
|
48
|
+
const std::string text =
|
|
49
|
+
read_file(std::string(LEPTRIS_REPO_ROOT) + "/src/include/leptris.h");
|
|
50
|
+
std::smatch m;
|
|
51
|
+
const std::regex re("LIBLEPTRIS_VERSION_STRING \"([^\"]+)\"");
|
|
52
|
+
if (!std::regex_search(text, m, re)) return "";
|
|
53
|
+
return m[1].str();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
std::string core_fallback_version() {
|
|
57
|
+
const std::string text =
|
|
58
|
+
read_file(std::string(LEPTRIS_REPO_ROOT) + "/src/leptris/core.c");
|
|
59
|
+
std::smatch m;
|
|
60
|
+
const std::regex re("#define LEPTRIS_VERSION \"([^\"]+)\"");
|
|
61
|
+
if (!std::regex_search(text, m, re)) return "";
|
|
62
|
+
return m[1].str();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
TEST(VersionLockstep, AllFourSurfacesAgree) {
|
|
66
|
+
const std::string cmake = cmake_version();
|
|
67
|
+
const std::string header = header_version();
|
|
68
|
+
const std::string fallback = core_fallback_version();
|
|
69
|
+
const std::string runtime = leptris_version();
|
|
70
|
+
|
|
71
|
+
ASSERT_FALSE(cmake.empty()) << "CMakeLists.txt lost project(... VERSION x.y.z)";
|
|
72
|
+
ASSERT_FALSE(header.empty()) << "leptris.h lost LIBLEPTRIS_VERSION_STRING";
|
|
73
|
+
ASSERT_FALSE(fallback.empty()) << "core.c lost the LEPTRIS_VERSION fallback";
|
|
74
|
+
ASSERT_FALSE(runtime.empty()) << "leptris_version() returned empty";
|
|
75
|
+
|
|
76
|
+
EXPECT_EQ(header, cmake)
|
|
77
|
+
<< "leptris.h macros (" << header << ") drifted from CMakeLists.txt (" << cmake
|
|
78
|
+
<< ") — the release train's commit step must carry src/include/leptris.h";
|
|
79
|
+
EXPECT_EQ(fallback, cmake)
|
|
80
|
+
<< "core.c's non-CMake fallback (" << fallback << ") drifted from CMakeLists.txt ("
|
|
81
|
+
<< cmake << ") — bump-version.sh must sync the fallback block";
|
|
82
|
+
EXPECT_EQ(runtime, cmake)
|
|
83
|
+
<< "the compiled leptris_version() (" << runtime << ") disagrees with CMakeLists.txt ("
|
|
84
|
+
<< cmake << ") — the build injected a different version than the project declares";
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
} // namespace
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
|
3
3
|
"name": "leptris",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.433",
|
|
5
5
|
"description": "High-performance XML parser and XPath 1.0 engine in C (libleptris)",
|
|
6
6
|
"homepage": "https://github.com/leptris/leptris",
|
|
7
7
|
"license": "MIT",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: leptris
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.433.0
|
|
5
5
|
platform: ppc64le-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
@@ -773,6 +773,7 @@ files:
|
|
|
773
773
|
- vendor-src/libleptris/test/abi/test_public_surface.cpp
|
|
774
774
|
- vendor-src/libleptris/test/abi/test_serialize_abi.cpp
|
|
775
775
|
- vendor-src/libleptris/test/abi/test_v0_5_14_bugs.cpp
|
|
776
|
+
- vendor-src/libleptris/test/abi/test_version_lockstep.cpp
|
|
776
777
|
- vendor-src/libleptris/test/abi/test_xpath_custom_fns.cpp
|
|
777
778
|
- vendor-src/libleptris/test/cli/test_cli.cpp
|
|
778
779
|
- vendor-src/libleptris/test/common/test_simd_spans.cpp
|