nokogiri 1.11.7 → 1.12.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE-DEPENDENCIES.md +243 -22
  3. data/LICENSE.md +1 -1
  4. data/README.md +6 -5
  5. data/ext/nokogiri/depend +35 -34
  6. data/ext/nokogiri/extconf.rb +185 -103
  7. data/ext/nokogiri/gumbo.c +584 -0
  8. data/ext/nokogiri/{html_document.c → html4_document.c} +8 -8
  9. data/ext/nokogiri/{html_element_description.c → html4_element_description.c} +21 -19
  10. data/ext/nokogiri/{html_entity_lookup.c → html4_entity_lookup.c} +7 -7
  11. data/ext/nokogiri/{html_sax_parser_context.c → html4_sax_parser_context.c} +6 -5
  12. data/ext/nokogiri/{html_sax_push_parser.c → html4_sax_push_parser.c} +4 -4
  13. data/ext/nokogiri/libxml2_backwards_compat.c +30 -30
  14. data/ext/nokogiri/nokogiri.c +51 -38
  15. data/ext/nokogiri/nokogiri.h +19 -9
  16. data/ext/nokogiri/xml_document.c +14 -14
  17. data/ext/nokogiri/xml_element_content.c +2 -0
  18. data/ext/nokogiri/xml_encoding_handler.c +11 -6
  19. data/ext/nokogiri/xml_namespace.c +4 -2
  20. data/ext/nokogiri/xml_node.c +107 -100
  21. data/ext/nokogiri/xml_node_set.c +20 -20
  22. data/ext/nokogiri/xml_reader.c +2 -0
  23. data/ext/nokogiri/xml_sax_parser.c +6 -6
  24. data/ext/nokogiri/xml_sax_parser_context.c +2 -0
  25. data/ext/nokogiri/xml_schema.c +2 -0
  26. data/ext/nokogiri/xml_xpath_context.c +67 -65
  27. data/ext/nokogiri/xslt_stylesheet.c +2 -1
  28. data/gumbo-parser/CHANGES.md +63 -0
  29. data/gumbo-parser/Makefile +101 -0
  30. data/gumbo-parser/THANKS +27 -0
  31. data/gumbo-parser/src/Makefile +34 -0
  32. data/gumbo-parser/src/README.md +41 -0
  33. data/gumbo-parser/src/ascii.c +75 -0
  34. data/gumbo-parser/src/ascii.h +115 -0
  35. data/gumbo-parser/src/attribute.c +42 -0
  36. data/gumbo-parser/src/attribute.h +17 -0
  37. data/gumbo-parser/src/char_ref.c +22225 -0
  38. data/gumbo-parser/src/char_ref.h +29 -0
  39. data/gumbo-parser/src/char_ref.rl +2154 -0
  40. data/gumbo-parser/src/error.c +626 -0
  41. data/gumbo-parser/src/error.h +148 -0
  42. data/gumbo-parser/src/foreign_attrs.c +104 -0
  43. data/gumbo-parser/src/foreign_attrs.gperf +27 -0
  44. data/gumbo-parser/src/gumbo.h +943 -0
  45. data/gumbo-parser/src/insertion_mode.h +33 -0
  46. data/gumbo-parser/src/macros.h +91 -0
  47. data/gumbo-parser/src/parser.c +4886 -0
  48. data/gumbo-parser/src/parser.h +41 -0
  49. data/gumbo-parser/src/replacement.h +33 -0
  50. data/gumbo-parser/src/string_buffer.c +103 -0
  51. data/gumbo-parser/src/string_buffer.h +68 -0
  52. data/gumbo-parser/src/string_piece.c +48 -0
  53. data/gumbo-parser/src/svg_attrs.c +174 -0
  54. data/gumbo-parser/src/svg_attrs.gperf +77 -0
  55. data/gumbo-parser/src/svg_tags.c +137 -0
  56. data/gumbo-parser/src/svg_tags.gperf +55 -0
  57. data/gumbo-parser/src/tag.c +222 -0
  58. data/gumbo-parser/src/tag_lookup.c +382 -0
  59. data/gumbo-parser/src/tag_lookup.gperf +169 -0
  60. data/gumbo-parser/src/tag_lookup.h +13 -0
  61. data/gumbo-parser/src/token_buffer.c +79 -0
  62. data/gumbo-parser/src/token_buffer.h +71 -0
  63. data/gumbo-parser/src/token_type.h +17 -0
  64. data/gumbo-parser/src/tokenizer.c +3463 -0
  65. data/gumbo-parser/src/tokenizer.h +112 -0
  66. data/gumbo-parser/src/tokenizer_states.h +339 -0
  67. data/gumbo-parser/src/utf8.c +245 -0
  68. data/gumbo-parser/src/utf8.h +164 -0
  69. data/gumbo-parser/src/util.c +68 -0
  70. data/gumbo-parser/src/util.h +30 -0
  71. data/gumbo-parser/src/vector.c +111 -0
  72. data/gumbo-parser/src/vector.h +45 -0
  73. data/lib/nokogiri/css/parser.rb +1 -1
  74. data/lib/nokogiri/css/parser.y +1 -1
  75. data/lib/nokogiri/css/syntax_error.rb +1 -1
  76. data/lib/nokogiri/css.rb +14 -14
  77. data/lib/nokogiri/extension.rb +7 -2
  78. data/lib/nokogiri/gumbo.rb +14 -0
  79. data/lib/nokogiri/html.rb +31 -27
  80. data/lib/nokogiri/{html → html4}/builder.rb +2 -2
  81. data/lib/nokogiri/{html → html4}/document.rb +4 -4
  82. data/lib/nokogiri/{html → html4}/document_fragment.rb +3 -3
  83. data/lib/nokogiri/{html → html4}/element_description.rb +1 -1
  84. data/lib/nokogiri/{html → html4}/element_description_defaults.rb +1 -1
  85. data/lib/nokogiri/{html → html4}/entity_lookup.rb +1 -1
  86. data/lib/nokogiri/{html → html4}/sax/parser.rb +11 -14
  87. data/lib/nokogiri/html4/sax/parser_context.rb +19 -0
  88. data/lib/nokogiri/{html → html4}/sax/push_parser.rb +5 -5
  89. data/lib/nokogiri/html4.rb +40 -0
  90. data/lib/nokogiri/html5/document.rb +74 -0
  91. data/lib/nokogiri/html5/document_fragment.rb +80 -0
  92. data/lib/nokogiri/html5/node.rb +93 -0
  93. data/lib/nokogiri/html5.rb +473 -0
  94. data/lib/nokogiri/version/constant.rb +1 -1
  95. data/lib/nokogiri/version/info.rb +11 -2
  96. data/lib/nokogiri/xml/builder.rb +38 -0
  97. data/lib/nokogiri/xml/document.rb +46 -0
  98. data/lib/nokogiri/xml/node/save_options.rb +1 -1
  99. data/lib/nokogiri/xml/node.rb +6 -5
  100. data/lib/nokogiri/xml/parse_options.rb +2 -0
  101. data/lib/nokogiri/xml/pp.rb +2 -2
  102. data/lib/nokogiri/xml/sax/document.rb +24 -30
  103. data/lib/nokogiri/xml/sax.rb +4 -4
  104. data/lib/nokogiri/xml/xpath.rb +2 -2
  105. data/lib/nokogiri/xml.rb +35 -36
  106. data/lib/nokogiri/xslt/stylesheet.rb +1 -1
  107. data/lib/nokogiri/xslt.rb +16 -16
  108. data/lib/nokogiri.rb +31 -29
  109. metadata +100 -58
  110. data/lib/nokogiri/html/sax/parser_context.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a73d0d0bba6227291bb1780b081dd2620881949ec0621e51d83457da13a98717
4
- data.tar.gz: 2b6a3899b2368fa153d5de232e0dd7e04bd1a925ddebbfb0fb248956a9de8247
3
+ metadata.gz: 23ffbd6c1e4af09a26b9e6c9f4ecd6afda89115f024bf80e6b908b31e4d03e71
4
+ data.tar.gz: 7dd0bd80a3a48a11e581677e93e4645629260d82b05311d8d62da8185a417e1f
5
5
  SHA512:
6
- metadata.gz: f798c33192a0b25e1d57aa62b6eefbf3ccab6e0563f86357688e0cc75a7a714e83d48b0fc1cceb22f3c740005a61800c908e8e62cf6147663450950976941ca3
7
- data.tar.gz: 0cbb1ab65d2299c10e39ff19b2df63fb7c50daf94ffc4062031239caa5455d1f81c6ac32ea4c3a5ca71a41e49184271fcccc28b8f8b226f64507de98775c71e0
6
+ metadata.gz: e54c3269141d29fa515d2bac02d5c02e2a2d54feb0e336b4d94d4bc32618653812fe308bacb55983293886903baffb14d4eb70032ed6b9b8482bba4530aeb78f
7
+ data.tar.gz: 5d76ebeffb4c1180c03eaf946ee5a2d13d80cc942aba1cae0b04f11a359b5adc5508fe8cbeb58c89cf4cc1d6232f6c6afad38264102282a314693e83fd05426d
@@ -4,81 +4,91 @@ Nokogiri ships with some third party dependencies, which are listed here along w
4
4
 
5
5
  Note that this document is broken into multiple sections, each of which describes the dependencies of a different "platform release" of Nokogiri.
6
6
 
7
+ <!-- regenerate TOC with `markdown-toc -i` -->
8
+
7
9
  <!-- toc -->
8
10
 
9
- - [Default platform release ("ruby")](#default-platform-release-ruby)
10
- - [Native LinuxⓇ platform releases ("x86_64-linux" and "arm64-linux")](#native-linux%E2%93%A1-platform-releases-x86_64-linux-and-arm64-linux)
11
- - [Native Darwin (macOS) platform releases ("x86_64-darwin" and "arm64-darwin")](#native-darwin-macos%E2%93%A1-platform-releases-x86_64-darwin-and-arm64-darwin)
12
- - [Native WindowsⓇ platform releases ("x86-mingw32" and "x64-mingw32")](#native-windows%E2%93%A1-platform-releases-x86-mingw32-and-x64-mingw32)
13
- - [Java(JRuby) platform release ("java")](#java%E2%93%A1-jruby-platform-release-java)
11
+ - [Platform Releases](#platform-releases)
12
+ * [Default platform release ("ruby")](#default-platform-release-ruby)
13
+ * [Native LinuxⓇ platform releases ("x86_64-linux" and "arm64-linux")](#native-linux%E2%93%A1-platform-releases-x86_64-linux-and-arm64-linux)
14
+ * [Native Darwin (macOS) platform releases ("x86_64-darwin" and "arm64-darwin")](#native-darwin-macos%E2%93%A1-platform-releases-x86_64-darwin-and-arm64-darwin)
15
+ * [Native WindowsⓇ platform releases ("x86-mingw32" and "x64-mingw32")](#native-windows%E2%93%A1-platform-releases-x86-mingw32-and-x64-mingw32)
16
+ * [JavaⓇ (JRuby) platform release ("java")](#java%E2%93%A1-jruby-platform-release-java)
14
17
  - [Appendix: Dependencies' License Texts](#appendix-dependencies-license-texts)
15
- * [libxml2](#libxml2)
16
- * [libxslt](#libxslt)
17
- * [zlib](#zlib)
18
- * [libiconv](#libiconv)
19
- * [isorelax](#isorelax)
20
- * [jing](#jing)
21
- * [nekodtd](#nekodtd)
22
- * [nekohtml](#nekohtml)
23
- * [xalan](#xalan)
24
- * [xerces](#xerces)
25
- * [xml-apis](#xml-apis)
18
+ * [libgumbo and nokogumbo](#libgumbo-and-nokogumbo)
19
+ * [libxml2](#libxml2)
20
+ * [libxslt](#libxslt)
21
+ * [zlib](#zlib)
22
+ * [libiconv](#libiconv)
23
+ * [isorelax](#isorelax)
24
+ * [jing](#jing)
25
+ * [nekodtd](#nekodtd)
26
+ * [nekohtml](#nekohtml)
27
+ * [xalan](#xalan)
28
+ * [xerces](#xerces)
29
+ * [xml-apis](#xml-apis)
26
30
 
27
31
  <!-- tocstop -->
28
32
 
29
- It's encouraged for anyone consuming this file via license-tracking software to understand which gem file you're downloading and using, so as not to misinterpret the contents of this file and the licenses of the software being distributed.
33
+ Anyone consuming this file via license-tracking software should endeavor to understand which gem file you're downloading and using, so as not to misinterpret the contents of this file and the licenses of the software being distributed.
30
34
 
31
35
  You can double-check the dependencies in your gem file by examining the output of `nokogiri -v` after installation, which will emit the complete set of libraries in use (for versions `>= 1.11.0.rc4`).
32
36
 
33
37
  In particular, I'm sure somebody's lawyer, somewhere, is going to freak out that the LGPL appears in this file; and so I'd like to take special note that the dependency covered by LGPL, `libiconv`, is only being redistributed in the native Windows and native Darwin platform releases. It's not present in default, JavaⓇ, or native LinuxⓇ releases.
34
38
 
35
39
 
36
- ## Default platform release ("ruby")
40
+ ## Platform Releases
41
+
42
+ ### Default platform release ("ruby")
37
43
 
38
44
  The default platform release distributes the following dependencies in source form:
39
45
 
40
46
  - [libxml2](#libxml2)
41
47
  - [libxslt](#libxslt)
48
+ - [libgumbo and nokogumbo](#libgumbo-and-nokogumbo)
42
49
 
43
50
  This distribution can be identified by inspecting the included Gem::Specification, which will have the value "ruby" for its "platform" attribute.
44
51
 
45
52
 
46
- ## Native LinuxⓇ platform releases ("x86_64-linux" and "arm64-linux")
53
+ ### Native LinuxⓇ platform releases ("x86_64-linux" and "arm64-linux")
47
54
 
48
55
  The native LinuxⓇ platform release distributes the following dependencies in source form:
49
56
 
50
57
  - [libxml2](#libxml2)
51
58
  - [libxslt](#libxslt)
59
+ - [libgumbo and nokogumbo](#libgumbo-and-nokogumbo)
52
60
  - [zlib](#zlib)
53
61
 
54
62
  This distribution can be identified by inspecting the included Gem::Specification, which will have a value similar to "x86_64-linux" or "x86-linux" for its "platform.cpu" attribute.
55
63
 
56
64
 
57
- ## Native Darwin (macOSⓇ) platform releases ("x86_64-darwin" and "arm64-darwin")
65
+ ### Native Darwin (macOSⓇ) platform releases ("x86_64-darwin" and "arm64-darwin")
58
66
 
59
67
  The native Darwin platform release distributes the following dependencies in source form:
60
68
 
61
69
  - [libxml2](#libxml2)
62
70
  - [libxslt](#libxslt)
71
+ - [libgumbo and nokogumbo](#libgumbo-and-nokogumbo)
63
72
  - [zlib](#zlib)
64
73
  - [libiconv](#libiconv)
65
74
 
66
75
  This distribution can be identified by inspecting the included Gem::Specification, which will have a value similar to "x86_64-darwin" or "arm64-darwin" for its "platform.cpu" attribute. Darwin is also known more familiarly as "OSX" or "macOSⓇ" and is the operating system for many AppleⓇ computers.
67
76
 
68
77
 
69
- ## Native WindowsⓇ platform releases ("x86-mingw32" and "x64-mingw32")
78
+ ### Native WindowsⓇ platform releases ("x86-mingw32" and "x64-mingw32")
70
79
 
71
80
  The native WindowsⓇ platform release distributes the following dependencies in source form:
72
81
 
73
82
  - [libxml2](#libxml2)
74
83
  - [libxslt](#libxslt)
84
+ - [libgumbo and nokogumbo](#libgumbo-and-nokogumbo)
75
85
  - [zlib](#zlib)
76
86
  - [libiconv](#libiconv)
77
87
 
78
88
  This distribution can be identified by inspecting the included Gem::Specification, which will have a value similar to "x64-mingw32" or "x86-mingw32" for its "platform.cpu" attribute.
79
89
 
80
90
 
81
- ## JavaⓇ (JRuby) platform release ("java")
91
+ ### JavaⓇ (JRuby) platform release ("java")
82
92
 
83
93
  The Java platform release distributes the following dependencies as compiled jar files:
84
94
 
@@ -99,6 +109,217 @@ This section contains a subsection for each potentially-distributed dependency,
99
109
 
100
110
  Please see previous sections to understand which of these potential dependencies is actually distributed in the gem file you're downloading and using.
101
111
 
112
+
113
+ ### libgumbo and nokogumbo
114
+
115
+ Apache 2.0
116
+
117
+ https://github.com/rubys/nokogumbo/blob/f6a7412/LICENSE.txt
118
+
119
+
120
+ Apache License
121
+ Version 2.0, January 2004
122
+ http://www.apache.org/licenses/
123
+
124
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
125
+
126
+ 1. Definitions.
127
+
128
+ "License" shall mean the terms and conditions for use, reproduction,
129
+ and distribution as defined by Sections 1 through 9 of this document.
130
+
131
+ "Licensor" shall mean the copyright owner or entity authorized by
132
+ the copyright owner that is granting the License.
133
+
134
+ "Legal Entity" shall mean the union of the acting entity and all
135
+ other entities that control, are controlled by, or are under common
136
+ control with that entity. For the purposes of this definition,
137
+ "control" means (i) the power, direct or indirect, to cause the
138
+ direction or management of such entity, whether by contract or
139
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
140
+ outstanding shares, or (iii) beneficial ownership of such entity.
141
+
142
+ "You" (or "Your") shall mean an individual or Legal Entity
143
+ exercising permissions granted by this License.
144
+
145
+ "Source" form shall mean the preferred form for making modifications,
146
+ including but not limited to software source code, documentation
147
+ source, and configuration files.
148
+
149
+ "Object" form shall mean any form resulting from mechanical
150
+ transformation or translation of a Source form, including but
151
+ not limited to compiled object code, generated documentation,
152
+ and conversions to other media types.
153
+
154
+ "Work" shall mean the work of authorship, whether in Source or
155
+ Object form, made available under the License, as indicated by a
156
+ copyright notice that is included in or attached to the work
157
+ (an example is provided in the Appendix below).
158
+
159
+ "Derivative Works" shall mean any work, whether in Source or Object
160
+ form, that is based on (or derived from) the Work and for which the
161
+ editorial revisions, annotations, elaborations, or other modifications
162
+ represent, as a whole, an original work of authorship. For the purposes
163
+ of this License, Derivative Works shall not include works that remain
164
+ separable from, or merely link (or bind by name) to the interfaces of,
165
+ the Work and Derivative Works thereof.
166
+
167
+ "Contribution" shall mean any work of authorship, including
168
+ the original version of the Work and any modifications or additions
169
+ to that Work or Derivative Works thereof, that is intentionally
170
+ submitted to Licensor for inclusion in the Work by the copyright owner
171
+ or by an individual or Legal Entity authorized to submit on behalf of
172
+ the copyright owner. For the purposes of this definition, "submitted"
173
+ means any form of electronic, verbal, or written communication sent
174
+ to the Licensor or its representatives, including but not limited to
175
+ communication on electronic mailing lists, source code control systems,
176
+ and issue tracking systems that are managed by, or on behalf of, the
177
+ Licensor for the purpose of discussing and improving the Work, but
178
+ excluding communication that is conspicuously marked or otherwise
179
+ designated in writing by the copyright owner as "Not a Contribution."
180
+
181
+ "Contributor" shall mean Licensor and any individual or Legal Entity
182
+ on behalf of whom a Contribution has been received by Licensor and
183
+ subsequently incorporated within the Work.
184
+
185
+ 2. Grant of Copyright License. Subject to the terms and conditions of
186
+ this License, each Contributor hereby grants to You a perpetual,
187
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
188
+ copyright license to reproduce, prepare Derivative Works of,
189
+ publicly display, publicly perform, sublicense, and distribute the
190
+ Work and such Derivative Works in Source or Object form.
191
+
192
+ 3. Grant of Patent License. Subject to the terms and conditions of
193
+ this License, each Contributor hereby grants to You a perpetual,
194
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
195
+ (except as stated in this section) patent license to make, have made,
196
+ use, offer to sell, sell, import, and otherwise transfer the Work,
197
+ where such license applies only to those patent claims licensable
198
+ by such Contributor that are necessarily infringed by their
199
+ Contribution(s) alone or by combination of their Contribution(s)
200
+ with the Work to which such Contribution(s) was submitted. If You
201
+ institute patent litigation against any entity (including a
202
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
203
+ or a Contribution incorporated within the Work constitutes direct
204
+ or contributory patent infringement, then any patent licenses
205
+ granted to You under this License for that Work shall terminate
206
+ as of the date such litigation is filed.
207
+
208
+ 4. Redistribution. You may reproduce and distribute copies of the
209
+ Work or Derivative Works thereof in any medium, with or without
210
+ modifications, and in Source or Object form, provided that You
211
+ meet the following conditions:
212
+
213
+ (a) You must give any other recipients of the Work or
214
+ Derivative Works a copy of this License; and
215
+
216
+ (b) You must cause any modified files to carry prominent notices
217
+ stating that You changed the files; and
218
+
219
+ (c) You must retain, in the Source form of any Derivative Works
220
+ that You distribute, all copyright, patent, trademark, and
221
+ attribution notices from the Source form of the Work,
222
+ excluding those notices that do not pertain to any part of
223
+ the Derivative Works; and
224
+
225
+ (d) If the Work includes a "NOTICE" text file as part of its
226
+ distribution, then any Derivative Works that You distribute must
227
+ include a readable copy of the attribution notices contained
228
+ within such NOTICE file, excluding those notices that do not
229
+ pertain to any part of the Derivative Works, in at least one
230
+ of the following places: within a NOTICE text file distributed
231
+ as part of the Derivative Works; within the Source form or
232
+ documentation, if provided along with the Derivative Works; or,
233
+ within a display generated by the Derivative Works, if and
234
+ wherever such third-party notices normally appear. The contents
235
+ of the NOTICE file are for informational purposes only and
236
+ do not modify the License. You may add Your own attribution
237
+ notices within Derivative Works that You distribute, alongside
238
+ or as an addendum to the NOTICE text from the Work, provided
239
+ that such additional attribution notices cannot be construed
240
+ as modifying the License.
241
+
242
+ You may add Your own copyright statement to Your modifications and
243
+ may provide additional or different license terms and conditions
244
+ for use, reproduction, or distribution of Your modifications, or
245
+ for any such Derivative Works as a whole, provided Your use,
246
+ reproduction, and distribution of the Work otherwise complies with
247
+ the conditions stated in this License.
248
+
249
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
250
+ any Contribution intentionally submitted for inclusion in the Work
251
+ by You to the Licensor shall be under the terms and conditions of
252
+ this License, without any additional terms or conditions.
253
+ Notwithstanding the above, nothing herein shall supersede or modify
254
+ the terms of any separate license agreement you may have executed
255
+ with Licensor regarding such Contributions.
256
+
257
+ 6. Trademarks. This License does not grant permission to use the trade
258
+ names, trademarks, service marks, or product names of the Licensor,
259
+ except as required for reasonable and customary use in describing the
260
+ origin of the Work and reproducing the content of the NOTICE file.
261
+
262
+ 7. Disclaimer of Warranty. Unless required by applicable law or
263
+ agreed to in writing, Licensor provides the Work (and each
264
+ Contributor provides its Contributions) on an "AS IS" BASIS,
265
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
266
+ implied, including, without limitation, any warranties or conditions
267
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
268
+ PARTICULAR PURPOSE. You are solely responsible for determining the
269
+ appropriateness of using or redistributing the Work and assume any
270
+ risks associated with Your exercise of permissions under this License.
271
+
272
+ 8. Limitation of Liability. In no event and under no legal theory,
273
+ whether in tort (including negligence), contract, or otherwise,
274
+ unless required by applicable law (such as deliberate and grossly
275
+ negligent acts) or agreed to in writing, shall any Contributor be
276
+ liable to You for damages, including any direct, indirect, special,
277
+ incidental, or consequential damages of any character arising as a
278
+ result of this License or out of the use or inability to use the
279
+ Work (including but not limited to damages for loss of goodwill,
280
+ work stoppage, computer failure or malfunction, or any and all
281
+ other commercial damages or losses), even if such Contributor
282
+ has been advised of the possibility of such damages.
283
+
284
+ 9. Accepting Warranty or Additional Liability. While redistributing
285
+ the Work or Derivative Works thereof, You may choose to offer,
286
+ and charge a fee for, acceptance of support, warranty, indemnity,
287
+ or other liability obligations and/or rights consistent with this
288
+ License. However, in accepting such obligations, You may act only
289
+ on Your own behalf and on Your sole responsibility, not on behalf
290
+ of any other Contributor, and only if You agree to indemnify,
291
+ defend, and hold each Contributor harmless for any liability
292
+ incurred by, or claims asserted against, such Contributor by reason
293
+ of your accepting any such warranty or additional liability.
294
+
295
+ END OF TERMS AND CONDITIONS
296
+
297
+ APPENDIX: How to apply the Apache License to your work.
298
+
299
+ To apply the Apache License to your work, attach the following
300
+ boilerplate notice, with the fields enclosed by brackets "[]"
301
+ replaced with your own identifying information. (Don't include
302
+ the brackets!) The text should be enclosed in the appropriate
303
+ comment syntax for the file format. We also recommend that a
304
+ file or class name and description of purpose be included on the
305
+ same "printed page" as the copyright notice for easier
306
+ identification within third-party archives.
307
+
308
+ Copyright [yyyy] [name of copyright owner]
309
+
310
+ Licensed under the Apache License, Version 2.0 (the "License");
311
+ you may not use this file except in compliance with the License.
312
+ You may obtain a copy of the License at
313
+
314
+ http://www.apache.org/licenses/LICENSE-2.0
315
+
316
+ Unless required by applicable law or agreed to in writing, software
317
+ distributed under the License is distributed on an "AS IS" BASIS,
318
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
319
+ See the License for the specific language governing permissions and
320
+ limitations under the License.
321
+
322
+
102
323
  ### libxml2
103
324
 
104
325
  MIT
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright 2008 -- 2021 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid, Karol Bucek, Lars Kanis, Sergio Arbeo, Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick Mahoney.
3
+ Copyright 2008 -- 2021 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid, Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo, Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick Mahoney.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Nokogiri
4
4
 
5
- Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is fast and standards-compliant by relying on native parsers like libxml2 (C) and xerces (Java).
5
+ Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a sensible, easy-to-understand API for [reading](https://nokogiri.org/tutorials/parsing_an_html_xml_document.html), writing, [modifying](https://nokogiri.org/tutorials/modifying_an_html_xml_document.html), and [querying](https://nokogiri.org/tutorials/searching_a_xml_html_document.html) documents. It is fast and standards-compliant by relying on native parsers like libxml2 (C) and xerces (Java).
6
6
 
7
7
  ## Guiding Principles
8
8
 
@@ -14,7 +14,7 @@ Some guiding principles Nokogiri tries to follow:
14
14
 
15
15
  ## Features Overview
16
16
 
17
- - DOM Parser for XML and HTML4
17
+ - DOM Parser for XML, HTML4, and HTML5
18
18
  - SAX Parser for XML and HTML4
19
19
  - Push Parser for XML and HTML4
20
20
  - Document search via XPath 1.0
@@ -26,10 +26,8 @@ Some guiding principles Nokogiri tries to follow:
26
26
 
27
27
  ## Status
28
28
 
29
- [![Concourse CI](https://ci.nokogiri.org/api/v1/teams/nokogiri-core/pipelines/nokogiri/jobs/cruby-2.7/badge)](https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri)
29
+ [![Github Actions CI](https://github.com/sparklemotion/nokogiri/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/sparklemotion/nokogiri/actions/workflows/ci.yml)
30
30
  [![Appveyor CI](https://ci.appveyor.com/api/projects/status/xj2pqwvlxwuwgr06/branch/main?svg=true)](https://ci.appveyor.com/project/flavorjones/nokogiri/branch/main)
31
- [![Code Climate](https://codeclimate.com/github/sparklemotion/nokogiri.svg)](https://codeclimate.com/github/sparklemotion/nokogiri)
32
- [![Test Coverage](https://api.codeclimate.com/v1/badges/59c67b0e8976027a45ad/test_coverage)](https://codeclimate.com/github/sparklemotion/nokogiri/test_coverage)
33
31
 
34
32
  [![Gem Version](https://badge.fury.io/rb/nokogiri.svg)](https://rubygems.org/gems/nokogiri)
35
33
  [![SemVer compatibility](https://api.dependabot.com/badges/compatibility_score?dependency-name=nokogiri&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score/?dependency-name=nokogiri&package-manager=bundler)
@@ -271,6 +269,9 @@ Some additional libraries may be distributed with your version of Nokogiri. Plea
271
269
  - Akinori MUSHA
272
270
  - John Shahid
273
271
  - Karol Bucek
272
+ - Sam Ruby
273
+ - Craig Barnes
274
+ - Stephen Checkoway
274
275
  - Lars Kanis
275
276
  - Sergio Arbeo
276
277
  - Timothy Elliott
data/ext/nokogiri/depend CHANGED
@@ -1,37 +1,38 @@
1
1
  # -*-makefile-*-
2
2
  # DO NOT DELETE
3
3
 
4
- html_document.o: ./nokogiri.h
5
- html_element_description.o: ./nokogiri.h
6
- html_entity_lookup.o: ./nokogiri.h
7
- html_sax_parser_context.o: ./nokogiri.h
8
- html_sax_push_parser.o: ./nokogiri.h
9
- libxml2_backwards_compat.o: ./nokogiri.h
10
- nokogiri.o: ./nokogiri.h
11
- test_global_handlers.o: ./nokogiri.h
12
- xml_attr.o: ./nokogiri.h
13
- xml_attribute_decl.o: ./nokogiri.h
14
- xml_cdata.o: ./nokogiri.h
15
- xml_comment.o: ./nokogiri.h
16
- xml_document.o: ./nokogiri.h
17
- xml_document_fragment.o: ./nokogiri.h
18
- xml_dtd.o: ./nokogiri.h
19
- xml_element_content.o: ./nokogiri.h
20
- xml_element_decl.o: ./nokogiri.h
21
- xml_encoding_handler.o: ./nokogiri.h
22
- xml_entity_decl.o: ./nokogiri.h
23
- xml_entity_reference.o: ./nokogiri.h
24
- xml_namespace.o: ./nokogiri.h
25
- xml_node.o: ./nokogiri.h
26
- xml_node_set.o: ./nokogiri.h
27
- xml_processing_instruction.o: ./nokogiri.h
28
- xml_reader.o: ./nokogiri.h
29
- xml_relax_ng.o: ./nokogiri.h
30
- xml_sax_parser.o: ./nokogiri.h
31
- xml_sax_parser_context.o: ./nokogiri.h
32
- xml_sax_push_parser.o: ./nokogiri.h
33
- xml_schema.o: ./nokogiri.h
34
- xml_syntax_error.o: ./nokogiri.h
35
- xml_text.o: ./nokogiri.h
36
- xml_xpath_context.o: ./nokogiri.h
37
- xslt_stylesheet.o: ./nokogiri.h
4
+ gumbo.o: $(srcdir)/nokogiri.h
5
+ html_document.o: $(srcdir)/nokogiri.h
6
+ html_element_description.o: $(srcdir)/nokogiri.h
7
+ html_entity_lookup.o: $(srcdir)/nokogiri.h
8
+ html_sax_parser_context.o: $(srcdir)/nokogiri.h
9
+ html_sax_push_parser.o: $(srcdir)/nokogiri.h
10
+ libxml2_backwards_compat.o: $(srcdir)/nokogiri.h
11
+ nokogiri.o: $(srcdir)/nokogiri.h
12
+ test_global_handlers.o: $(srcdir)/nokogiri.h
13
+ xml_attr.o: $(srcdir)/nokogiri.h
14
+ xml_attribute_decl.o: $(srcdir)/nokogiri.h
15
+ xml_cdata.o: $(srcdir)/nokogiri.h
16
+ xml_comment.o: $(srcdir)/nokogiri.h
17
+ xml_document.o: $(srcdir)/nokogiri.h
18
+ xml_document_fragment.o: $(srcdir)/nokogiri.h
19
+ xml_dtd.o: $(srcdir)/nokogiri.h
20
+ xml_element_content.o: $(srcdir)/nokogiri.h
21
+ xml_element_decl.o: $(srcdir)/nokogiri.h
22
+ xml_encoding_handler.o: $(srcdir)/nokogiri.h
23
+ xml_entity_decl.o: $(srcdir)/nokogiri.h
24
+ xml_entity_reference.o: $(srcdir)/nokogiri.h
25
+ xml_namespace.o: $(srcdir)/nokogiri.h
26
+ xml_node.o: $(srcdir)/nokogiri.h
27
+ xml_node_set.o: $(srcdir)/nokogiri.h
28
+ xml_processing_instruction.o: $(srcdir)/nokogiri.h
29
+ xml_reader.o: $(srcdir)/nokogiri.h
30
+ xml_relax_ng.o: $(srcdir)/nokogiri.h
31
+ xml_sax_parser.o: $(srcdir)/nokogiri.h
32
+ xml_sax_parser_context.o: $(srcdir)/nokogiri.h
33
+ xml_sax_push_parser.o: $(srcdir)/nokogiri.h
34
+ xml_schema.o: $(srcdir)/nokogiri.h
35
+ xml_syntax_error.o: $(srcdir)/nokogiri.h
36
+ xml_text.o: $(srcdir)/nokogiri.h
37
+ xml_xpath_context.o: $(srcdir)/nokogiri.h
38
+ xslt_stylesheet.o: $(srcdir)/nokogiri.h