libxml-ruby 4.1.1-x64-mingw-ucrt → 4.1.2-x64-mingw-ucrt

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6eefbf4cf6f18a76d82973c0c297dd1ef37892a83ec1eea6b2b8a041e51a905
4
- data.tar.gz: 427764544b4ca067c643cb9d504502dc56d22c4a722be2b7248016edd282b098
3
+ metadata.gz: e94d9c3309f05c37ed7365121006aaddeab0c67d48aac5c4e94fa9a015b96fae
4
+ data.tar.gz: 51738495754fd3875fc146065997b60296859e38b105a1c0b2490a09fd338904
5
5
  SHA512:
6
- metadata.gz: 9314838d6d6cbe1f0d87e48d2037ec3ad20eb70371f8022f5244a9a15b3d515bd901e577ebae90a39e7a36667bc5a0505e4ccc210471c3787dbf788adb396ec4
7
- data.tar.gz: f1409c4f6e05cdd89e1596f49760b62ef1a65d22da343913488e74ee9d52c6a7c87019ceb61f958b1217064249d0f9a1ce3ee2fbd776ff234c67543a1ecd1d81
6
+ metadata.gz: 0d5424a7aadd9563e3eb2f0e812b49b702c894abfbdc7db1225e408827daa390f0316d6d3b03344077ebc2dc1fa79fe4c8f0304e68611ada810575e650c72a8f
7
+ data.tar.gz: 9406535bf7629a5272f04aa876ccd1fed324569e0738b50672678d482a05e22de0acc8c5f869929c4461e03423e521e84fbd9c987b0281b39ee8e88ce5eec092
data/HISTORY CHANGED
@@ -1,5 +1,13 @@
1
1
  = Release History
2
2
 
3
+ == 4.1.2 / 2023-11-04
4
+
5
+ * Fix Ruby warnings about undefined allocators (yuuji.yaginuma, Christopher Sahnwaldt)
6
+ * Fix Schema::Element required? and array? (John Andrews)
7
+ * Remove SchemaElement#minOccurs and SchemaElement#maxOccurs since they actually did not work (Charlie Savage)
8
+ * Fix typo: XPatch -> XPath (Christopher Sahnwaldt)
9
+ * Introduce new alternative Homebrew installation search paths to extconf makefile (Pierce Brooks)
10
+
3
11
  == 4.1.1 / 2023-05-01
4
12
 
5
13
  * Fix compile warning (or error) for input_callbacks_register_input_callbacks (Charlie Savage)
@@ -1,61 +1,67 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'mkmf'
4
-
5
- def crash(str)
6
- printf(" extconf failure: %s\n", str)
7
- exit 1
8
- end
9
-
10
- xc = with_config('xml2-config')
11
- if xc
12
- cflags = `#{xc} --cflags`.chomp
13
- if $? != 0
14
- cflags = nil
15
- else
16
- libs = `#{xc} --libs`.chomp
17
- if $? != 0
18
- libs = nil
19
- else
20
- $CFLAGS += ' ' + cflags
21
- $libs = libs + " " + $libs
22
- end
23
- end
24
- else
25
- dir_config('xml2')
26
- end
27
-
28
- found_header = find_header('libxml/xmlversion.h',
29
- '/opt/include/libxml2',
30
- '/opt/local/include/libxml2',
31
- '/usr/local/include/libxml2',
32
- '/usr/include/libxml2',
33
- '/usr/local/include')
34
-
35
- found_lib = find_library('xml2', 'xmlParseDoc',
36
- '/opt/lib',
37
- '/opt/local/lib',
38
- '/usr/local/lib',
39
- '/usr/lib')
40
-
41
- found_lib ||= find_library('libxml2', 'xmlParseDoc',
42
- '/opt/lib',
43
- '/opt/local/lib',
44
- '/usr/local/lib',
45
- '/usr/lib')
46
-
47
- if !found_header || !found_lib
48
- crash(<<~EOL)
49
- Cannot find libxml2.
50
-
51
- Install the library or try one of the following options to extconf.rb:
52
-
53
- --with-xml2-config=/path/to/xml2-config
54
- --with-xml2-dir=/path/to/libxml2
55
- --with-xml2-lib=/path/to/libxml2/lib
56
- --with-xml2-include=/path/to/libxml2/include
57
- EOL
58
- end
59
-
60
- create_header()
61
- create_makefile('libxml_ruby')
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'mkmf'
4
+
5
+ def crash(str)
6
+ printf(" extconf failure: %s\n", str)
7
+ exit 1
8
+ end
9
+
10
+ xc = with_config('xml2-config')
11
+ if xc
12
+ cflags = `#{xc} --cflags`.chomp
13
+ if $? != 0
14
+ cflags = nil
15
+ else
16
+ libs = `#{xc} --libs`.chomp
17
+ if $? != 0
18
+ libs = nil
19
+ else
20
+ $CFLAGS += ' ' + cflags
21
+ $libs = libs + " " + $libs
22
+ end
23
+ end
24
+ else
25
+ dir_config('xml2')
26
+ end
27
+
28
+ found_header = find_header('libxml/xmlversion.h',
29
+ '/opt/include/libxml2',
30
+ '/opt/local/include/libxml2',
31
+ '/opt/homebrew/opt/libxml2/include/libxml2',
32
+ '/usr/local/include/libxml2',
33
+ '/usr/include/libxml2',
34
+ '/usr/local/include',
35
+ '/usr/local/opt/libxml2/include/libxml2')
36
+
37
+ found_lib = find_library('xml2', 'xmlParseDoc',
38
+ '/opt/lib',
39
+ '/opt/local/lib',
40
+ '/opt/homebrew/opt/libxml2/lib',
41
+ '/usr/lib',
42
+ '/usr/local/lib',
43
+ '/usr/local/opt/libxml2/lib')
44
+
45
+ found_lib ||= find_library('libxml2', 'xmlParseDoc',
46
+ '/opt/lib',
47
+ '/opt/local/lib',
48
+ '/opt/homebrew/opt/libxml2/lib',
49
+ '/usr/lib',
50
+ '/usr/local/lib',
51
+ '/usr/local/opt/libxml2/lib')
52
+
53
+ if !found_header || !found_lib
54
+ crash(<<~EOL)
55
+ Cannot find libxml2.
56
+
57
+ Install the library or try one of the following options to extconf.rb:
58
+
59
+ --with-xml2-config=/path/to/xml2-config
60
+ --with-xml2-dir=/path/to/libxml2
61
+ --with-xml2-lib=/path/to/libxml2/lib
62
+ --with-xml2-include=/path/to/libxml2/include
63
+ EOL
64
+ end
65
+
66
+ create_header()
67
+ create_makefile('libxml_ruby')
@@ -1,153 +1,154 @@
1
- /* Please see the LICENSE file for copyright and distribution information */
2
-
3
- /*
4
- * Document-class: LibXML::XML::AttrDecl
5
- *
6
- * At attribute declaration is used in XML::Dtds to define
7
- * what attributes are allowed on an element. An attribute
8
- * declaration defines an attribues name, data type and default
9
- * value (if any).
10
- */
11
-
12
- #include "ruby_libxml.h"
13
-
14
- VALUE cXMLAttrDecl;
15
-
16
- void rxml_attr_decl_mark(xmlAttributePtr xattr)
17
- {
18
- rxml_node_mark((xmlNodePtr) xattr);
19
- }
20
-
21
- VALUE rxml_attr_decl_wrap(xmlAttributePtr xattr)
22
- {
23
- return Data_Wrap_Struct(cXMLAttrDecl, rxml_attr_decl_mark, NULL, xattr);
24
- }
25
-
26
- /*
27
- * call-seq:
28
- * attr_decl.doc -> XML::Document
29
- *
30
- * Returns this attribute declaration's document.
31
- */
32
- static VALUE rxml_attr_decl_doc_get(VALUE self)
33
- {
34
- xmlAttributePtr xattr;
35
- Data_Get_Struct(self, xmlAttribute, xattr);
36
- if (xattr->doc == NULL)
37
- return Qnil;
38
- else
39
- return rxml_document_wrap(xattr->doc);
40
- }
41
-
42
-
43
- /*
44
- * call-seq:
45
- * attr_decl.name -> "name"
46
- *
47
- * Obtain this attribute declaration's name.
48
- */
49
- static VALUE rxml_attr_decl_name_get(VALUE self)
50
- {
51
- xmlAttributePtr xattr;
52
- Data_Get_Struct(self, xmlAttribute, xattr);
53
-
54
- if (xattr->name == NULL)
55
- return Qnil;
56
- else
57
- return rxml_new_cstr( xattr->name, xattr->doc->encoding);
58
- }
59
-
60
- /*
61
- * call-seq:
62
- * attr_decl.next -> XML::AttrDecl
63
- *
64
- * Obtain the next attribute declaration.
65
- */
66
- static VALUE rxml_attr_decl_next_get(VALUE self)
67
- {
68
- xmlAttributePtr xattr;
69
- Data_Get_Struct(self, xmlAttribute, xattr);
70
- if (xattr->next == NULL)
71
- return Qnil;
72
- else
73
- return rxml_attr_decl_wrap((xmlAttributePtr)xattr->next);
74
- }
75
-
76
- /*
77
- * call-seq:
78
- * attr_decl.type -> num
79
- *
80
- * Obtain this attribute declaration's type node type.
81
- */
82
- static VALUE rxml_attr_decl_node_type(VALUE self)
83
- {
84
- xmlAttrPtr xattr;
85
- Data_Get_Struct(self, xmlAttr, xattr);
86
- return INT2NUM(xattr->type);
87
- }
88
-
89
- /*
90
- * call-seq:
91
- * attr_decl.parent -> XML::Dtd
92
- *
93
- * Obtain this attribute declaration's parent which
94
- * is an instance of a XML::DTD.
95
- */
96
- static VALUE rxml_attr_decl_parent_get(VALUE self)
97
- {
98
- xmlAttributePtr xattr;
99
- Data_Get_Struct(self, xmlAttribute, xattr);
100
-
101
- if (xattr->parent == NULL)
102
- return Qnil;
103
- else
104
- return rxml_dtd_wrap(xattr->parent);
105
- }
106
-
107
- /*
108
- * call-seq:
109
- * attr_decl.prev -> (XML::AttrDecl | XML::ElementDecl)
110
- *
111
- * Obtain the previous attribute declaration or the owning
112
- * element declration (not implemented).
113
- */
114
- static VALUE rxml_attr_decl_prev_get(VALUE self)
115
- {
116
- xmlAttributePtr xattr;
117
- Data_Get_Struct(self, xmlAttribute, xattr);
118
-
119
- if (xattr->prev == NULL)
120
- return Qnil;
121
- else
122
- return rxml_attr_decl_wrap((xmlAttributePtr)xattr->prev);
123
- }
124
-
125
- /*
126
- * call-seq:
127
- * attr_decl.value -> "value"
128
- *
129
- * Obtain the default value of this attribute declaration.
130
- */
131
- VALUE rxml_attr_decl_value_get(VALUE self)
132
- {
133
- xmlAttributePtr xattr;
134
-
135
- Data_Get_Struct(self, xmlAttribute, xattr);
136
-
137
- if (xattr->defaultValue)
138
- return rxml_new_cstr(xattr->defaultValue, NULL);
139
- else
140
- return Qnil;
141
- }
142
-
143
- void rxml_init_attr_decl(void)
144
- {
145
- cXMLAttrDecl = rb_define_class_under(mXML, "AttrDecl", rb_cObject);
146
- rb_define_method(cXMLAttrDecl, "doc", rxml_attr_decl_doc_get, 0);
147
- rb_define_method(cXMLAttrDecl, "name", rxml_attr_decl_name_get, 0);
148
- rb_define_method(cXMLAttrDecl, "next", rxml_attr_decl_next_get, 0);
149
- rb_define_method(cXMLAttrDecl, "node_type", rxml_attr_decl_node_type, 0);
150
- rb_define_method(cXMLAttrDecl, "parent", rxml_attr_decl_parent_get, 0);
151
- rb_define_method(cXMLAttrDecl, "prev", rxml_attr_decl_prev_get, 0);
152
- rb_define_method(cXMLAttrDecl, "value", rxml_attr_decl_value_get, 0);
153
- }
1
+ /* Please see the LICENSE file for copyright and distribution information */
2
+
3
+ /*
4
+ * Document-class: LibXML::XML::AttrDecl
5
+ *
6
+ * At attribute declaration is used in XML::Dtds to define
7
+ * what attributes are allowed on an element. An attribute
8
+ * declaration defines an attribues name, data type and default
9
+ * value (if any).
10
+ */
11
+
12
+ #include "ruby_libxml.h"
13
+
14
+ VALUE cXMLAttrDecl;
15
+
16
+ void rxml_attr_decl_mark(xmlAttributePtr xattr)
17
+ {
18
+ rxml_node_mark((xmlNodePtr) xattr);
19
+ }
20
+
21
+ VALUE rxml_attr_decl_wrap(xmlAttributePtr xattr)
22
+ {
23
+ return Data_Wrap_Struct(cXMLAttrDecl, rxml_attr_decl_mark, NULL, xattr);
24
+ }
25
+
26
+ /*
27
+ * call-seq:
28
+ * attr_decl.doc -> XML::Document
29
+ *
30
+ * Returns this attribute declaration's document.
31
+ */
32
+ static VALUE rxml_attr_decl_doc_get(VALUE self)
33
+ {
34
+ xmlAttributePtr xattr;
35
+ Data_Get_Struct(self, xmlAttribute, xattr);
36
+ if (xattr->doc == NULL)
37
+ return Qnil;
38
+ else
39
+ return rxml_document_wrap(xattr->doc);
40
+ }
41
+
42
+
43
+ /*
44
+ * call-seq:
45
+ * attr_decl.name -> "name"
46
+ *
47
+ * Obtain this attribute declaration's name.
48
+ */
49
+ static VALUE rxml_attr_decl_name_get(VALUE self)
50
+ {
51
+ xmlAttributePtr xattr;
52
+ Data_Get_Struct(self, xmlAttribute, xattr);
53
+
54
+ if (xattr->name == NULL)
55
+ return Qnil;
56
+ else
57
+ return rxml_new_cstr( xattr->name, xattr->doc->encoding);
58
+ }
59
+
60
+ /*
61
+ * call-seq:
62
+ * attr_decl.next -> XML::AttrDecl
63
+ *
64
+ * Obtain the next attribute declaration.
65
+ */
66
+ static VALUE rxml_attr_decl_next_get(VALUE self)
67
+ {
68
+ xmlAttributePtr xattr;
69
+ Data_Get_Struct(self, xmlAttribute, xattr);
70
+ if (xattr->next == NULL)
71
+ return Qnil;
72
+ else
73
+ return rxml_attr_decl_wrap((xmlAttributePtr)xattr->next);
74
+ }
75
+
76
+ /*
77
+ * call-seq:
78
+ * attr_decl.type -> num
79
+ *
80
+ * Obtain this attribute declaration's type node type.
81
+ */
82
+ static VALUE rxml_attr_decl_node_type(VALUE self)
83
+ {
84
+ xmlAttrPtr xattr;
85
+ Data_Get_Struct(self, xmlAttr, xattr);
86
+ return INT2NUM(xattr->type);
87
+ }
88
+
89
+ /*
90
+ * call-seq:
91
+ * attr_decl.parent -> XML::Dtd
92
+ *
93
+ * Obtain this attribute declaration's parent which
94
+ * is an instance of a XML::DTD.
95
+ */
96
+ static VALUE rxml_attr_decl_parent_get(VALUE self)
97
+ {
98
+ xmlAttributePtr xattr;
99
+ Data_Get_Struct(self, xmlAttribute, xattr);
100
+
101
+ if (xattr->parent == NULL)
102
+ return Qnil;
103
+ else
104
+ return rxml_dtd_wrap(xattr->parent);
105
+ }
106
+
107
+ /*
108
+ * call-seq:
109
+ * attr_decl.prev -> (XML::AttrDecl | XML::ElementDecl)
110
+ *
111
+ * Obtain the previous attribute declaration or the owning
112
+ * element declration (not implemented).
113
+ */
114
+ static VALUE rxml_attr_decl_prev_get(VALUE self)
115
+ {
116
+ xmlAttributePtr xattr;
117
+ Data_Get_Struct(self, xmlAttribute, xattr);
118
+
119
+ if (xattr->prev == NULL)
120
+ return Qnil;
121
+ else
122
+ return rxml_attr_decl_wrap((xmlAttributePtr)xattr->prev);
123
+ }
124
+
125
+ /*
126
+ * call-seq:
127
+ * attr_decl.value -> "value"
128
+ *
129
+ * Obtain the default value of this attribute declaration.
130
+ */
131
+ VALUE rxml_attr_decl_value_get(VALUE self)
132
+ {
133
+ xmlAttributePtr xattr;
134
+
135
+ Data_Get_Struct(self, xmlAttribute, xattr);
136
+
137
+ if (xattr->defaultValue)
138
+ return rxml_new_cstr(xattr->defaultValue, NULL);
139
+ else
140
+ return Qnil;
141
+ }
142
+
143
+ void rxml_init_attr_decl(void)
144
+ {
145
+ cXMLAttrDecl = rb_define_class_under(mXML, "AttrDecl", rb_cObject);
146
+ rb_undef_alloc_func(cXMLAttrDecl);
147
+ rb_define_method(cXMLAttrDecl, "doc", rxml_attr_decl_doc_get, 0);
148
+ rb_define_method(cXMLAttrDecl, "name", rxml_attr_decl_name_get, 0);
149
+ rb_define_method(cXMLAttrDecl, "next", rxml_attr_decl_next_get, 0);
150
+ rb_define_method(cXMLAttrDecl, "node_type", rxml_attr_decl_node_type, 0);
151
+ rb_define_method(cXMLAttrDecl, "parent", rxml_attr_decl_parent_get, 0);
152
+ rb_define_method(cXMLAttrDecl, "prev", rxml_attr_decl_prev_get, 0);
153
+ rb_define_method(cXMLAttrDecl, "value", rxml_attr_decl_value_get, 0);
154
+ }