leptris 1.9.420.2-ppc64le-linux → 1.9.420.3-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/ext/leptris/native/native.c +18 -5
- data/lib/leptris/version.rb +1 -1
- data/lib/leptris/xml/native.so +0 -0
- data/lib/leptris/xml/native_3_3.so +0 -0
- 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: 6a0be22fabf2224e6bb045d9bb8b48fd917dcc85b496e721ef546f9e305bea81
|
|
4
|
+
data.tar.gz: 8f881a58dbfc8f9bb4b12acdc76ad676f3900599f76e13e9b3cfbc5284db7db9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 971da3f3d7d2984b1d86f24b292211c83f1e1bf8dc4129dae76d70cdd85c70039715da48e0786bc7dae480ece7fd2595c0e347cbfcbe7bf4e2c48471334d852d
|
|
7
|
+
data.tar.gz: 3b15fe4965bf261e3cad07848d0c63eecf2e049a13751b2db996e55b2a06a5471f7dc2d276d7c0730774fa9554f65e54e0f693d528344db83ac0b838cef187bf
|
data/ext/leptris/native/native.c
CHANGED
|
@@ -83,6 +83,7 @@ static attr_first_fn f_attr_first;
|
|
|
83
83
|
static attr_next_fn f_attr_next;
|
|
84
84
|
static attr_name_fn f_attr_name;
|
|
85
85
|
static attr_value_fn f_attr_value;
|
|
86
|
+
static const char *(*e_attr_ns_uri)(void *);
|
|
86
87
|
static attr_pairs_fn f_attr_pairs;
|
|
87
88
|
static node_line_fn f_node_line;
|
|
88
89
|
static node_offset_fn f_node_offset;
|
|
@@ -323,6 +324,7 @@ static void resolve_symbols(const char *lib_path)
|
|
|
323
324
|
f_attr_next = (attr_next_fn)lib_sym(h, "leptris_attribute_next");
|
|
324
325
|
f_attr_name = (attr_name_fn)lib_sym(h, "leptris_attribute_get_name");
|
|
325
326
|
f_attr_value = (attr_value_fn)lib_sym(h, "leptris_attribute_get_value");
|
|
327
|
+
e_attr_ns_uri = (const char *(*)(void *))lib_sym(h, "leptris_attribute_namespace_uri");
|
|
326
328
|
f_attr_pairs = (attr_pairs_fn)lib_sym(h, "leptris_element_attribute_pairs");
|
|
327
329
|
f_node_line = (node_line_fn)lib_sym(h, "leptris_node_line");
|
|
328
330
|
f_node_offset = (node_offset_fn)lib_sym(h, "leptris_node_byte_offset");
|
|
@@ -1737,11 +1739,22 @@ static VALUE cc_attribute(VALUE self, VALUE name)
|
|
|
1737
1739
|
TypedData_Get_Struct(self, struct native_node, &nn_type, n);
|
|
1738
1740
|
VALUE factory = rb_attr_get(rb_obj_class(self), id_af_factory);
|
|
1739
1741
|
if (NIL_P(factory)) return Qnil;
|
|
1740
|
-
const char *
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1742
|
+
const char *needle = StringValueCStr(name);
|
|
1743
|
+
/* Walk to the ATTRIBUTE pointer: the value comes from the
|
|
1744
|
+
* decode-authoritative getter and the namespace URI from the
|
|
1745
|
+
* attr-level face - both need the attr pointer, not the node. */
|
|
1746
|
+
for (void *a = f_attr_first(n->ptr); a; a = f_attr_next(a)) {
|
|
1747
|
+
const char *an = f_attr_name(a);
|
|
1748
|
+
if (!an || strcmp(an, needle) != 0) continue;
|
|
1749
|
+
const char *v = f_attr_value(n->ptr, a);
|
|
1750
|
+
if (!v) return Qnil;
|
|
1751
|
+
const char *uri = e_attr_ns_uri ? e_attr_ns_uri(a) : NULL;
|
|
1752
|
+
return rb_funcall(factory, rb_intern("new"), 4,
|
|
1753
|
+
rb_utf8_str_new_cstr(an),
|
|
1754
|
+
rb_utf8_str_new_cstr(v), self,
|
|
1755
|
+
uri ? rb_utf8_str_new_cstr(uri) : Qnil);
|
|
1756
|
+
}
|
|
1757
|
+
return Qnil;
|
|
1745
1758
|
}
|
|
1746
1759
|
|
|
1747
1760
|
static VALUE nf_bind_consumer_contract(VALUE self, VALUE klass,
|
data/lib/leptris/version.rb
CHANGED
data/lib/leptris/xml/native.so
CHANGED
|
Binary file
|
|
Binary file
|
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.420.
|
|
4
|
+
version: 1.9.420.3
|
|
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-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|