leptris 1.9.255.0-aarch64-linux → 1.9.255.1-aarch64-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/lib/leptris/version.rb +1 -1
- data/lib/leptris/xml/plan_value.rb +12 -15
- 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: 2efd375773deeb8f143c4963f6626ba293c00340a36f82e5fdcd0d96a1d17775
|
|
4
|
+
data.tar.gz: 493e70329997dca3961969ce7fd427766771d30701a4a72cfd54c6bbbdeb95bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdb05dfbc6b2985e86d7b36b79848122d8f4fa9a07d742e521ebda42bca3d7c7f426dea6f0b08a0829ecaf7cb8637b28420ac635a6aaca13fd190bbcd5d459d3
|
|
7
|
+
data.tar.gz: 7e52337d90dbe79e0102d023db14c05017acaef34519a491482e1c5192c5232f5e71b35cdcd90babcb6229e928b70d09b8d02cda5696d481a0bba878d194654c
|
data/lib/leptris/version.rb
CHANGED
|
@@ -31,33 +31,33 @@ class Leptris::XML::PlanValue
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def kind
|
|
34
|
-
|
|
34
|
+
@counter[0] += 1
|
|
35
35
|
VALUE_KINDS.fetch(Leptris::XML::FFI.leptris_plan_value_kind(@ptr))
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# wire_name of the plan row that produced this value.
|
|
39
39
|
def name
|
|
40
|
-
|
|
40
|
+
@counter[0] += 1
|
|
41
41
|
Leptris::XML::FFI.leptris_plan_value_name(@ptr)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
# Host type_tag echoed verbatim (0 when the row had none).
|
|
45
45
|
def type_tag
|
|
46
|
-
|
|
46
|
+
@counter[0] += 1
|
|
47
47
|
Leptris::XML::FFI.leptris_plan_value_type_tag(@ptr)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
# #1273: LEPTRIS_NODE_TYPE_* of this value's source node (0 for
|
|
51
51
|
# ELEMENT/COLLECTION wrappers and synthesized text).
|
|
52
52
|
def node_kind
|
|
53
|
-
|
|
53
|
+
@counter[0] += 1
|
|
54
54
|
Leptris::XML::FFI.leptris_plan_value_node_kind(@ptr)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
# #1273: dense sibling rank inside the producing element (0 if
|
|
58
58
|
# unranked) — document-order identity without byte offsets.
|
|
59
59
|
def order_index
|
|
60
|
-
|
|
60
|
+
@counter[0] += 1
|
|
61
61
|
Leptris::XML::FFI.leptris_plan_value_order_index(@ptr)
|
|
62
62
|
end
|
|
63
63
|
|
|
@@ -85,26 +85,26 @@ class Leptris::XML::PlanValue
|
|
|
85
85
|
|
|
86
86
|
# SCALAR / RAW / CALLBACK string value.
|
|
87
87
|
def string_value
|
|
88
|
-
|
|
88
|
+
@counter[0] += 1
|
|
89
89
|
Leptris::XML::FFI.leptris_plan_value_string(@ptr)
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# CALLBACK: document byte offset of the source node (0 unknown).
|
|
93
93
|
def position
|
|
94
|
-
|
|
94
|
+
@counter[0] += 1
|
|
95
95
|
Leptris::XML::FFI.leptris_plan_value_position(@ptr)
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# ELEMENT: child-value count. COLLECTION: item count.
|
|
99
99
|
def count
|
|
100
|
-
|
|
100
|
+
@counter[0] += 1
|
|
101
101
|
Leptris::XML::FFI.leptris_plan_value_count(@ptr)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
# ELEMENT child value / COLLECTION item at +i+ (nil out of
|
|
105
105
|
# range). Borrowed: the owning root must stay alive.
|
|
106
106
|
def at(i)
|
|
107
|
-
|
|
107
|
+
@counter[0] += 1
|
|
108
108
|
ptr = Leptris::XML::FFI.leptris_plan_value_at(@ptr, i)
|
|
109
109
|
return nil if ptr.null?
|
|
110
110
|
child_plan = child_plan_for_position(ptr)
|
|
@@ -114,7 +114,7 @@ class Leptris::XML::PlanValue
|
|
|
114
114
|
|
|
115
115
|
# ELEMENT: attribute value by wire_name (nil when absent).
|
|
116
116
|
def attribute(wire_name)
|
|
117
|
-
|
|
117
|
+
@counter[0] += 1
|
|
118
118
|
Leptris::XML::FFI.leptris_plan_value_attribute(@ptr, wire_name.to_s)
|
|
119
119
|
end
|
|
120
120
|
|
|
@@ -149,7 +149,7 @@ class Leptris::XML::PlanValue
|
|
|
149
149
|
# (0 when absent). Collection rows appear as Arrays; callbacks
|
|
150
150
|
# are emitted as +{value:, position:, type_tag:}+ like #to_ruby.
|
|
151
151
|
def as_kwarg_hash
|
|
152
|
-
|
|
152
|
+
@counter[0] += 1 # the kind probe + name + type_tag are one logical fetch
|
|
153
153
|
case kind
|
|
154
154
|
when :element
|
|
155
155
|
{
|
|
@@ -194,9 +194,6 @@ class Leptris::XML::PlanValue
|
|
|
194
194
|
|
|
195
195
|
private
|
|
196
196
|
|
|
197
|
-
def inc_crossing
|
|
198
|
-
@counter[0] += 1
|
|
199
|
-
end
|
|
200
197
|
|
|
201
198
|
def kwarg_attributes
|
|
202
199
|
((@plan && @plan[:attributes]) || []).each_with_object({}) do |row, result|
|
|
@@ -290,7 +287,7 @@ class Leptris::XML::PlanValue
|
|
|
290
287
|
rows = @plan[:children] || []
|
|
291
288
|
row = rows.size == 1 ? rows.first : nil
|
|
292
289
|
unless row
|
|
293
|
-
|
|
290
|
+
@counter[0] += 1
|
|
294
291
|
child_name = Leptris::XML::FFI.leptris_plan_value_name(ptr)
|
|
295
292
|
row = rows.find { |r| r[:name] == child_name }
|
|
296
293
|
end
|
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.255.
|
|
4
|
+
version: 1.9.255.1
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|