nokogiri 1.11.1 → 1.12.0.rc1

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 (179) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE-DEPENDENCIES.md +232 -11
  3. data/LICENSE.md +1 -1
  4. data/README.md +27 -21
  5. data/dependencies.yml +12 -12
  6. data/ext/nokogiri/depend +35 -474
  7. data/ext/nokogiri/extconf.rb +391 -243
  8. data/ext/nokogiri/gumbo.c +611 -0
  9. data/ext/nokogiri/{html_document.c → html4_document.c} +18 -23
  10. data/ext/nokogiri/html4_element_description.c +294 -0
  11. data/ext/nokogiri/html4_entity_lookup.c +37 -0
  12. data/ext/nokogiri/html4_sax_parser_context.c +119 -0
  13. data/ext/nokogiri/{html_sax_push_parser.c → html4_sax_push_parser.c} +29 -27
  14. data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
  15. data/ext/nokogiri/nokogiri.c +206 -66
  16. data/ext/nokogiri/nokogiri.h +166 -76
  17. data/ext/nokogiri/test_global_handlers.c +3 -4
  18. data/ext/nokogiri/xml_attr.c +15 -15
  19. data/ext/nokogiri/xml_attribute_decl.c +18 -18
  20. data/ext/nokogiri/xml_cdata.c +13 -18
  21. data/ext/nokogiri/xml_comment.c +19 -26
  22. data/ext/nokogiri/xml_document.c +258 -200
  23. data/ext/nokogiri/xml_document_fragment.c +13 -15
  24. data/ext/nokogiri/xml_dtd.c +54 -48
  25. data/ext/nokogiri/xml_element_content.c +31 -26
  26. data/ext/nokogiri/xml_element_decl.c +22 -22
  27. data/ext/nokogiri/xml_encoding_handler.c +28 -17
  28. data/ext/nokogiri/xml_entity_decl.c +32 -30
  29. data/ext/nokogiri/xml_entity_reference.c +16 -18
  30. data/ext/nokogiri/xml_namespace.c +58 -49
  31. data/ext/nokogiri/xml_node.c +473 -414
  32. data/ext/nokogiri/xml_node_set.c +174 -162
  33. data/ext/nokogiri/xml_processing_instruction.c +17 -19
  34. data/ext/nokogiri/xml_reader.c +193 -157
  35. data/ext/nokogiri/xml_relax_ng.c +29 -23
  36. data/ext/nokogiri/xml_sax_parser.c +111 -106
  37. data/ext/nokogiri/xml_sax_parser_context.c +102 -85
  38. data/ext/nokogiri/xml_sax_push_parser.c +34 -27
  39. data/ext/nokogiri/xml_schema.c +49 -41
  40. data/ext/nokogiri/xml_syntax_error.c +21 -23
  41. data/ext/nokogiri/xml_text.c +13 -17
  42. data/ext/nokogiri/xml_xpath_context.c +86 -77
  43. data/ext/nokogiri/xslt_stylesheet.c +157 -156
  44. data/gumbo-parser/CHANGES.md +63 -0
  45. data/gumbo-parser/Makefile +101 -0
  46. data/gumbo-parser/THANKS +27 -0
  47. data/gumbo-parser/src/Makefile +17 -0
  48. data/gumbo-parser/src/README.md +41 -0
  49. data/gumbo-parser/src/ascii.c +75 -0
  50. data/gumbo-parser/src/ascii.h +115 -0
  51. data/gumbo-parser/src/attribute.c +42 -0
  52. data/gumbo-parser/src/attribute.h +17 -0
  53. data/gumbo-parser/src/char_ref.c +22225 -0
  54. data/gumbo-parser/src/char_ref.h +29 -0
  55. data/gumbo-parser/src/char_ref.rl +2154 -0
  56. data/gumbo-parser/src/error.c +626 -0
  57. data/gumbo-parser/src/error.h +148 -0
  58. data/gumbo-parser/src/foreign_attrs.c +104 -0
  59. data/gumbo-parser/src/foreign_attrs.gperf +27 -0
  60. data/gumbo-parser/src/gumbo.h +943 -0
  61. data/gumbo-parser/src/insertion_mode.h +33 -0
  62. data/gumbo-parser/src/macros.h +91 -0
  63. data/gumbo-parser/src/parser.c +4886 -0
  64. data/gumbo-parser/src/parser.h +41 -0
  65. data/gumbo-parser/src/replacement.h +33 -0
  66. data/gumbo-parser/src/string_buffer.c +103 -0
  67. data/gumbo-parser/src/string_buffer.h +68 -0
  68. data/gumbo-parser/src/string_piece.c +48 -0
  69. data/gumbo-parser/src/svg_attrs.c +174 -0
  70. data/gumbo-parser/src/svg_attrs.gperf +77 -0
  71. data/gumbo-parser/src/svg_tags.c +137 -0
  72. data/gumbo-parser/src/svg_tags.gperf +55 -0
  73. data/gumbo-parser/src/tag.c +222 -0
  74. data/gumbo-parser/src/tag_lookup.c +382 -0
  75. data/gumbo-parser/src/tag_lookup.gperf +169 -0
  76. data/gumbo-parser/src/tag_lookup.h +13 -0
  77. data/gumbo-parser/src/token_buffer.c +79 -0
  78. data/gumbo-parser/src/token_buffer.h +71 -0
  79. data/gumbo-parser/src/token_type.h +17 -0
  80. data/gumbo-parser/src/tokenizer.c +3463 -0
  81. data/gumbo-parser/src/tokenizer.h +112 -0
  82. data/gumbo-parser/src/tokenizer_states.h +339 -0
  83. data/gumbo-parser/src/utf8.c +245 -0
  84. data/gumbo-parser/src/utf8.h +164 -0
  85. data/gumbo-parser/src/util.c +68 -0
  86. data/gumbo-parser/src/util.h +30 -0
  87. data/gumbo-parser/src/vector.c +111 -0
  88. data/gumbo-parser/src/vector.h +45 -0
  89. data/lib/nokogiri.rb +31 -50
  90. data/lib/nokogiri/css.rb +14 -14
  91. data/lib/nokogiri/css/parser.rb +2 -2
  92. data/lib/nokogiri/css/parser.y +1 -1
  93. data/lib/nokogiri/css/syntax_error.rb +1 -1
  94. data/lib/nokogiri/extension.rb +26 -0
  95. data/lib/nokogiri/gumbo.rb +14 -0
  96. data/lib/nokogiri/html.rb +31 -27
  97. data/lib/nokogiri/html4.rb +40 -0
  98. data/lib/nokogiri/{html → html4}/builder.rb +2 -2
  99. data/lib/nokogiri/{html → html4}/document.rb +4 -4
  100. data/lib/nokogiri/{html → html4}/document_fragment.rb +17 -17
  101. data/lib/nokogiri/{html → html4}/element_description.rb +1 -1
  102. data/lib/nokogiri/{html → html4}/element_description_defaults.rb +1 -1
  103. data/lib/nokogiri/{html → html4}/entity_lookup.rb +1 -1
  104. data/lib/nokogiri/{html → html4}/sax/parser.rb +11 -14
  105. data/lib/nokogiri/html4/sax/parser_context.rb +19 -0
  106. data/lib/nokogiri/{html → html4}/sax/push_parser.rb +5 -5
  107. data/lib/nokogiri/html5.rb +473 -0
  108. data/lib/nokogiri/html5/document.rb +74 -0
  109. data/lib/nokogiri/html5/document_fragment.rb +80 -0
  110. data/lib/nokogiri/html5/node.rb +93 -0
  111. data/lib/nokogiri/version/constant.rb +1 -1
  112. data/lib/nokogiri/version/info.rb +42 -9
  113. data/lib/nokogiri/xml.rb +35 -36
  114. data/lib/nokogiri/xml/document.rb +74 -28
  115. data/lib/nokogiri/xml/node.rb +45 -47
  116. data/lib/nokogiri/xml/parse_options.rb +2 -0
  117. data/lib/nokogiri/xml/pp.rb +2 -2
  118. data/lib/nokogiri/xml/reader.rb +2 -9
  119. data/lib/nokogiri/xml/sax.rb +4 -4
  120. data/lib/nokogiri/xml/sax/document.rb +24 -30
  121. data/lib/nokogiri/xml/xpath.rb +3 -5
  122. data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -1
  123. data/lib/nokogiri/xslt.rb +16 -16
  124. data/lib/nokogiri/xslt/stylesheet.rb +1 -1
  125. data/patches/libxml2/{0002-Remove-script-macro-support.patch → 0001-Remove-script-macro-support.patch} +0 -0
  126. data/patches/libxml2/{0003-Update-entities-to-remove-handling-of-ssi.patch → 0002-Update-entities-to-remove-handling-of-ssi.patch} +0 -0
  127. data/patches/libxml2/{0004-libxml2.la-is-in-top_builddir.patch → 0003-libxml2.la-is-in-top_builddir.patch} +1 -1
  128. data/patches/libxml2/{0008-use-glibc-strlen.patch → 0004-use-glibc-strlen.patch} +0 -0
  129. data/patches/libxml2/{0009-avoid-isnan-isinf.patch → 0005-avoid-isnan-isinf.patch} +4 -4
  130. data/patches/libxml2/0006-update-automake-files-for-arm64.patch +2511 -0
  131. data/patches/libxml2/0007-Fix-XPath-recursion-limit.patch +31 -0
  132. data/patches/libxslt/0001-update-automake-files-for-arm64.patch +2511 -0
  133. data/patches/libxslt/0002-Fix-xml2-config-check-in-configure-script.patch +19 -0
  134. data/ports/archives/libxml2-2.9.12.tar.gz +0 -0
  135. metadata +117 -109
  136. data/ext/nokogiri/html_document.h +0 -10
  137. data/ext/nokogiri/html_element_description.c +0 -279
  138. data/ext/nokogiri/html_element_description.h +0 -10
  139. data/ext/nokogiri/html_entity_lookup.c +0 -32
  140. data/ext/nokogiri/html_entity_lookup.h +0 -8
  141. data/ext/nokogiri/html_sax_parser_context.c +0 -118
  142. data/ext/nokogiri/html_sax_parser_context.h +0 -11
  143. data/ext/nokogiri/html_sax_push_parser.h +0 -9
  144. data/ext/nokogiri/xml_attr.h +0 -9
  145. data/ext/nokogiri/xml_attribute_decl.h +0 -9
  146. data/ext/nokogiri/xml_cdata.h +0 -9
  147. data/ext/nokogiri/xml_comment.h +0 -9
  148. data/ext/nokogiri/xml_document.h +0 -23
  149. data/ext/nokogiri/xml_document_fragment.h +0 -10
  150. data/ext/nokogiri/xml_dtd.h +0 -10
  151. data/ext/nokogiri/xml_element_content.h +0 -10
  152. data/ext/nokogiri/xml_element_decl.h +0 -9
  153. data/ext/nokogiri/xml_encoding_handler.h +0 -8
  154. data/ext/nokogiri/xml_entity_decl.h +0 -10
  155. data/ext/nokogiri/xml_entity_reference.h +0 -9
  156. data/ext/nokogiri/xml_io.c +0 -63
  157. data/ext/nokogiri/xml_io.h +0 -11
  158. data/ext/nokogiri/xml_libxml2_hacks.c +0 -112
  159. data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
  160. data/ext/nokogiri/xml_namespace.h +0 -14
  161. data/ext/nokogiri/xml_node.h +0 -13
  162. data/ext/nokogiri/xml_node_set.h +0 -12
  163. data/ext/nokogiri/xml_processing_instruction.h +0 -9
  164. data/ext/nokogiri/xml_reader.h +0 -10
  165. data/ext/nokogiri/xml_relax_ng.h +0 -9
  166. data/ext/nokogiri/xml_sax_parser.h +0 -39
  167. data/ext/nokogiri/xml_sax_parser_context.h +0 -10
  168. data/ext/nokogiri/xml_sax_push_parser.h +0 -9
  169. data/ext/nokogiri/xml_schema.h +0 -9
  170. data/ext/nokogiri/xml_syntax_error.h +0 -25
  171. data/ext/nokogiri/xml_text.h +0 -9
  172. data/ext/nokogiri/xml_xpath_context.h +0 -10
  173. data/ext/nokogiri/xslt_stylesheet.h +0 -14
  174. data/lib/nokogiri/html/sax/parser_context.rb +0 -17
  175. data/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch +0 -78
  176. data/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch +0 -32
  177. data/patches/libxml2/0006-htmlParseComment-treat-as-if-it-closed-the-comment.patch +0 -73
  178. data/patches/libxml2/0007-use-new-htmlParseLookupCommentEnd-to-find-comment-en.patch +0 -103
  179. data/ports/archives/libxml2-2.9.10.tar.gz +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e233fa79ef3ba9506ebbb61031908fff5586ec2b6fbb63d612e3d1019407812
4
- data.tar.gz: 3a365658391d3c678e54264b70828d8423ca383694bc1b97c73f69997901cac9
3
+ metadata.gz: f4718cb6ee4c25a1e22c5ca11e6382decf22afde18093a37c19592604c62ffa1
4
+ data.tar.gz: f4200b6beee4a6c7553c2fd1fa50d63c65fbcaeefff6f2f592b1cad7a766ca86
5
5
  SHA512:
6
- metadata.gz: c0ce873146805ff6f3834182cad276114a2a1b5e91f21be787ba468328a692cb1c58663b23896cb1a851f971d85267593b96472c4c3f7027fa44e2e7718155e3
7
- data.tar.gz: 29ce5dd59f87404aa28e6c2415222c6c30368f0c4e9feb06f66f937231402c6d3201395cc7fb9c45e418577656a4a7f18ec22b0567551c0530d313feee0d4a87
6
+ metadata.gz: 1bbcc0febf8aed6e2733dbbe9377f27d58846e32fad1ce39a26e4f9a0a3c2a342e51d7d1f26720e4f6bd5147938e02d0657095f962afd3e9d8a19a852f92ab33
7
+ data.tar.gz: 62735ca568f331c019431506adedc1774c010b24c5effebc8f288a71fa83a096dff0f5060785ec428c4ebf413dae2f22e1104dad4a5bcceace301b6c9fbb00e0
@@ -4,14 +4,18 @@ 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-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)
18
+ * [libgumbo and nokogumbo](#libgumbo-and-nokogumbo)
15
19
  * [libxml2](#libxml2)
16
20
  * [libxslt](#libxslt)
17
21
  * [zlib](#zlib)
@@ -26,59 +30,65 @@ Note that this document is broken into multiple sections, each of which describe
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 -- 2018 by Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo, Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis
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,41 +26,47 @@ 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)
30
- [![Appveyor CI](https://ci.appveyor.com/api/projects/status/xj2pqwvlxwuwgr06/branch/master?svg=true)](https://ci.appveyor.com/project/flavorjones/nokogiri/branch/master)
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)
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
+ [![Appveyor CI](https://ci.appveyor.com/api/projects/status/xj2pqwvlxwuwgr06/branch/main?svg=true)](https://ci.appveyor.com/project/flavorjones/nokogiri/branch/main)
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)
36
34
  [![Tidelift dependencies](https://tidelift.com/badges/package/rubygems/nokogiri)](https://tidelift.com/subscription/pkg/rubygems-nokogiri?utm_source=rubygems-nokogiri&utm_medium=referral&utm_campaign=readme)
37
35
 
38
36
 
39
- ## Support and Help
37
+ ## Support, Getting Help, and Reporting Issues
40
38
 
41
39
  All official documentation is posted at https://nokogiri.org (the source for which is at https://github.com/sparklemotion/nokogiri.org/, and we welcome contributions).
42
40
 
41
+ Consider subscribing to [Tidelift][tidelift] which provides license assurances and timely security notifications for your open source dependencies, including Nokogiri. [Tidelift][tidelift] subscriptions also help the Nokogiri maintainers fund our [automated testing](https://ci.nokogiri.org) which in turn allows us to ship releases, bugfixes, and security updates more often.
42
+
43
+ [tidelift]: https://tidelift.com/subscription/pkg/rubygems-nokogiri?utm_source=rubygems-nokogiri&utm_medium=referral&utm_campaign=readme
44
+
43
45
  ### Reading
44
46
 
45
- Your first stops for API documentation should be:
47
+ Your first stops for learning more about Nokogiri should be:
46
48
 
47
- - RDocs: https://nokogiri.org/rdoc/index.html
49
+ - [API Documentation](https://nokogiri.org/rdoc/index.html)
50
+ - [Tutorials](https://nokogiri.org/tutorials/toc.html)
48
51
  - An excellent community-maintained [Cheat Sheet](https://github.com/sparklemotion/nokogiri/wiki/Cheat-sheet)
49
52
 
50
53
 
51
- ### Questions
54
+ ### Ask For Help
52
55
 
53
- If you'd like to talk to a human:
56
+ There are a few ways to ask exploratory questions:
54
57
 
55
- - The Discord chat channel is `#nokogiri-💎` at https://discord.gg/UyQnKrT
56
- - The Gitter chat channel is https://gitter.im/sparklemotion/nokogiri
57
- - The IRC chat channel is `#nokogiri` on freenode.
58
+ - The Ruby Discord chat server is active at https://discord.gg/UyQnKrT
58
59
  - The Nokogiri mailing list is active at https://groups.google.com/group/nokogiri-talk
59
- - The Nokogiri bug tracker is at https://github.com/sparklemotion/nokogiri/issues
60
+ - Open an issue using the "Help Request" template at https://github.com/sparklemotion/nokogiri/issues
60
61
 
61
- Consider subscribing to [Tidelift][tidelift] which provides license assurances and timely security notifications for your open source dependencies, including Nokogiri. [Tidelift][tidelift] subscriptions also help the Nokogiri maintainers fund our [automated testing](https://ci.nokogiri.org) which in turn allows us to ship releases, bugfixes, and security updates more often.
62
+ Please do not mail the maintainers at their personal addresses.
62
63
 
63
- [tidelift]: https://tidelift.com/subscription/pkg/rubygems-nokogiri?utm_source=rubygems-nokogiri&utm_medium=referral&utm_campaign=readme
64
+
65
+ ### Report A Bug
66
+
67
+ The Nokogiri bug tracker is at https://github.com/sparklemotion/nokogiri/issues
68
+
69
+ Please use the "Bug Report" or "Installation Difficulties" templates.
64
70
 
65
71
 
66
72
  ### Security and Vulnerability Reporting
@@ -235,10 +241,7 @@ See [`LICENSE-DEPENDENCIES.md`](LICENSE-DEPENDENCIES.md) for more information on
235
241
 
236
242
  ## Contributing
237
243
 
238
- ```bash
239
- bundle install
240
- bundle exec rake compile test
241
- ```
244
+ See [`CONTRIBUTING.md`](CONTRIBUTING.md) for an intro guide to developing Nokogiri.
242
245
 
243
246
 
244
247
  ## Code of Conduct
@@ -266,6 +269,9 @@ Some additional libraries may be distributed with your version of Nokogiri. Plea
266
269
  - Akinori MUSHA
267
270
  - John Shahid
268
271
  - Karol Bucek
272
+ - Sam Ruby
273
+ - Craig Barnes
274
+ - Stephen Checkoway
269
275
  - Lars Kanis
270
276
  - Sergio Arbeo
271
277
  - Timothy Elliott
data/dependencies.yml CHANGED
@@ -1,10 +1,10 @@
1
1
  libxml2:
2
- version: "2.9.10"
3
- sha256: "aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f"
2
+ version: "2.9.12"
3
+ sha256: "c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92"
4
4
  # manually verified checksum:
5
5
  #
6
- # $ gpg --verify libxml2-2.9.10.tar.gz.asc ports/archives/libxml2-2.9.10.tar.gz
7
- # gpg: Signature made Wed 30 Oct 2019 03:15:42 PM EDT
6
+ # $ gpg --verify libxml2-2.9.12.tar.gz.asc ports/archives/libxml2-2.9.12.tar.gz
7
+ # gpg: Signature made Thu 13 May 2021 02:59:16 PM EDT
8
8
  # gpg: using RSA key DB46681BB91ADCEA170FA2D415588B26596BEA5D
9
9
  # gpg: Good signature from "Daniel Veillard (Red Hat work email) <veillard@redhat.com>" [unknown]
10
10
  # gpg: aka "Daniel Veillard <Daniel.Veillard@w3.org>" [unknown]
@@ -17,14 +17,14 @@ libxml2:
17
17
  #
18
18
  # -----BEGIN PGP SIGNATURE-----
19
19
  #
20
- # iQEzBAABCAAdFiEE20ZoG7ka3OoXD6LUFViLJllr6l0FAl254V4ACgkQFViLJllr
21
- # 6l0ldAf6Azt4/oKDfMKRd+xaykUrb+34dr2ZRsjRDS1cnelAtL9TCWhE5lOkLI3c
22
- # 3FyNRaLhOEOOluZmKTJYyzS42JSSHDhxGj14gIeyafOjvRhHG3h1m5GvMmvgKWkd
23
- # qzxFrVFSG26iWJxMvxIA88t7M+QHb7ff7xR29ETJscewEmAd3LmZITglK02lWeGz
24
- # LfxfLuakM6RnCUu0dzacJKO0nMOKju+RL/N9bciI/UOhNYEkWqPnzC0GzbvFLqDu
25
- # rM+OvCSewSTziiejpdrUwYXkY5Ui2+cxUbacLauEr8iRLg7xXKqv27NORE4yeQcS
26
- # LgIhxG/qSNfihMS6E1ZO5bK2DbGCZQ==
27
- # =ZNuc
20
+ # iQEzBAABCAAdFiEE20ZoG7ka3OoXD6LUFViLJllr6l0FAmCddwQACgkQFViLJllr
21
+ # 6l11LQgAioRTdfmcC+uK/7+6HPtF/3c5zkX6j8VGYuvFBwZ0jayqMRBAl++fcpjE
22
+ # JUU/JKebSZ/KCYjzyeOWK/i3Gq77iqm3UbZFB85rqu4a5P3gmj/4STWVyAx0KU3z
23
+ # G3jKqDhJOt7c0acXb5lh2DngfDa1dn/VGcQcIXsqplNxNr4ET7MnSJjZ3nlxYfW2
24
+ # E5vWBdPCMUeXDBl6MjYvw9XnGGBLUAaEJWoFToG6jKmVf4GAd9nza20jj5dtbcJq
25
+ # QEOaSDKDr+f9h2NS8haOhJ9vOpy52PdeGzaFlbRkXarGXuAr8kITgATVs8FAqcgv
26
+ # MoVhmrO5r2hJf0dCM9fZoYqzpMfmNA==
27
+ # =KfJ9
28
28
  # -----END PGP SIGNATURE-----
29
29
  #
30
30