moxml 0.5.158 → 0.5.159
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/.github/workflows/performance-release.yml +24 -8
- data/lib/moxml/adapter/leptris.rb +34 -0
- data/lib/moxml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 824fc75872bed077049fca259a7b667634c2938e4a22c3899d7c898a0a585c98
|
|
4
|
+
data.tar.gz: f639f83b2c39247bb825ce017932ada226d9fb8b11ad6567893f1cb00babaa7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eca084853becfa0d0dfaa80e88f492f1d4541e32a97aed2480f441db3bd33990d7c0f6ab2879db8aa9fb92216bcc6782afa573384e4126724801f38094a53c99
|
|
7
|
+
data.tar.gz: 6429a255c098e7291fd45b0034d23abbe7a3acc1fccbdb9956f1ac2e3002890415388d3e060b1d20869d3783d38f986917e633597b8e05dcd3b3effffc9e7cf6
|
|
@@ -3,12 +3,23 @@ name: performance-release
|
|
|
3
3
|
# Every release re-measures the scoreboard and appends the table to
|
|
4
4
|
# the release notes (TODO.sota/04). Triggered by the release
|
|
5
5
|
# workflow's completion; idempotent — a re-run replaces the marked
|
|
6
|
-
# section instead of stacking it.
|
|
6
|
+
# section instead of stacking it. Manual dispatch can backfill any
|
|
7
|
+
# release: `ref` pins the measured tree, `tag` pins the notes
|
|
8
|
+
# target (both default to the automatic release-run behavior).
|
|
7
9
|
on:
|
|
8
10
|
workflow_run:
|
|
9
11
|
workflows: ["release"]
|
|
10
12
|
types: [completed]
|
|
11
13
|
workflow_dispatch:
|
|
14
|
+
inputs:
|
|
15
|
+
ref:
|
|
16
|
+
description: "Tree to measure (branch/tag/SHA); default: the released tree"
|
|
17
|
+
required: false
|
|
18
|
+
type: string
|
|
19
|
+
tag:
|
|
20
|
+
description: "Release whose notes receive the section; default: the triggering release"
|
|
21
|
+
required: false
|
|
22
|
+
type: string
|
|
12
23
|
|
|
13
24
|
concurrency:
|
|
14
25
|
group: ${{ github.workflow }}
|
|
@@ -30,8 +41,9 @@ jobs:
|
|
|
30
41
|
with:
|
|
31
42
|
# Pin to the exact tree the release run published, so the
|
|
32
43
|
# measured scoreboard describes the released code even when
|
|
33
|
-
# main moves between the release and this report.
|
|
34
|
-
|
|
44
|
+
# main moves between the release and this report. A manual
|
|
45
|
+
# dispatch may pin any tree (backfills).
|
|
46
|
+
ref: ${{ inputs.ref || github.event.workflow_run.head_sha || 'main' }}
|
|
35
47
|
submodules: "recursive"
|
|
36
48
|
|
|
37
49
|
- name: Set up Ruby
|
|
@@ -99,11 +111,15 @@ jobs:
|
|
|
99
111
|
# run — NOT "latest" (a rerun of an old run would mis-aim)
|
|
100
112
|
# and NOT the gemspec at the pinned tree (the checkout is
|
|
101
113
|
# the pre-bump tree; the bump lands on main during the
|
|
102
|
-
# release run itself).
|
|
103
|
-
|
|
104
|
-
TAG
|
|
105
|
-
|
|
106
|
-
|
|
114
|
+
# release run itself). A manual dispatch may pin the tag
|
|
115
|
+
# directly (backfills).
|
|
116
|
+
TAG="${{ inputs.tag }}"
|
|
117
|
+
if [ -z "$TAG" ]; then
|
|
118
|
+
TRIGGERED_AT="${{ github.event.workflow_run.created_at }}"
|
|
119
|
+
TAG=$(gh api "repos/${GITHUB_REPOSITORY}/releases" \
|
|
120
|
+
--jq "map(select(.created_at >= \"${TRIGGERED_AT}\")) | sort_by(.created_at) | last | .tag_name")
|
|
121
|
+
TAG=${TAG:-$(gh release view --json tagName --jq .tagName)}
|
|
122
|
+
fi
|
|
107
123
|
echo "Reporting against $TAG"
|
|
108
124
|
gh release view "$TAG" --json body --jq .body > /tmp/body.md
|
|
109
125
|
ruby -e '
|
|
@@ -555,6 +555,11 @@ module Moxml
|
|
|
555
555
|
# face is a C method at 50-84ns).
|
|
556
556
|
ELEMENT = Class.new(::Leptris::XML::NativeNode) do
|
|
557
557
|
alias_method :native_name, :name
|
|
558
|
+
# The C nn_document (the BINDING document handle) is
|
|
559
|
+
# captured before Moxml::Node#document shadows it —
|
|
560
|
+
# the construction fast path needs the binding doc,
|
|
561
|
+
# not a facade wrapper (TODO.sota/04 bridge tax).
|
|
562
|
+
alias_method :native_document, :document
|
|
558
563
|
include ::Moxml::Node
|
|
559
564
|
include ::Moxml::Element
|
|
560
565
|
|
|
@@ -2623,6 +2628,35 @@ module Moxml
|
|
|
2623
2628
|
def create_element_with_attrs(parent, name, attrs)
|
|
2624
2629
|
drop_columnar_children(parent)
|
|
2625
2630
|
validate_element_name(name)
|
|
2631
|
+
# NativeNode parents need NO FFI twin (TODO.sota/04 bridge
|
|
2632
|
+
# tax): the bridge existed only to obtain c_address +
|
|
2633
|
+
# document, and the NativeNode answers both natively
|
|
2634
|
+
# (address / document). The twin mint per building parent
|
|
2635
|
+
# (FFI::Pointer + binding Node.wrap + registry insert) is
|
|
2636
|
+
# pure construction overhead.
|
|
2637
|
+
if parent.is_a?(::Leptris::XML::NativeNode)
|
|
2638
|
+
doc = parent.respond_to?(:native_document) &&
|
|
2639
|
+
parent.native_document or return nil
|
|
2640
|
+
return nil unless ::Leptris::XML::Native.respond_to?(:create_element_with_attrs)
|
|
2641
|
+
|
|
2642
|
+
flat = attrs.flatten
|
|
2643
|
+
if NATIVE_C_MINT &&
|
|
2644
|
+
::Leptris::XML::Native.respond_to?(:create_element_with_attrs_wrapped)
|
|
2645
|
+
minted = ::Leptris::XML::Native.create_element_with_attrs_wrapped(
|
|
2646
|
+
doc, parent.address, name.to_s, flat
|
|
2647
|
+
)
|
|
2648
|
+
return minted unless minted.nil?
|
|
2649
|
+
end
|
|
2650
|
+
|
|
2651
|
+
addr = ::Leptris::XML::Native.create_element_with_attrs(
|
|
2652
|
+
doc.c_address, parent.address, name.to_s, flat
|
|
2653
|
+
)
|
|
2654
|
+
return nil if addr.nil? || addr.zero?
|
|
2655
|
+
|
|
2656
|
+
return native_twin(
|
|
2657
|
+
doc, ::Leptris::XML::Node.wrap(::FFI::Pointer.new(addr), doc)
|
|
2658
|
+
)
|
|
2659
|
+
end
|
|
2626
2660
|
binding_parent = to_binding(parent)
|
|
2627
2661
|
doc = binding_parent.document or return nil
|
|
2628
2662
|
return nil unless ::Leptris::XML::Native.respond_to?(:create_element_with_attrs)
|
data/lib/moxml/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.159
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Moxml is a unified XML manipulation library that provides a common API
|