nokogiri 1.11.0.rc2-x86-linux → 1.11.2-x86-linux

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 (175) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/LICENSE-DEPENDENCIES.md +1015 -947
  4. data/LICENSE.md +1 -1
  5. data/README.md +171 -94
  6. data/ext/nokogiri/depend +37 -358
  7. data/ext/nokogiri/extconf.rb +581 -374
  8. data/ext/nokogiri/html_document.c +78 -82
  9. data/ext/nokogiri/html_element_description.c +84 -71
  10. data/ext/nokogiri/html_entity_lookup.c +21 -16
  11. data/ext/nokogiri/html_sax_parser_context.c +69 -66
  12. data/ext/nokogiri/html_sax_push_parser.c +42 -34
  13. data/ext/nokogiri/include/libexslt/exslt.h +102 -0
  14. data/ext/nokogiri/include/libexslt/exsltconfig.h +70 -0
  15. data/ext/nokogiri/include/libexslt/exsltexports.h +140 -0
  16. data/ext/nokogiri/include/libxml2/libxml/DOCBparser.h +96 -0
  17. data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +306 -0
  18. data/ext/nokogiri/include/libxml2/libxml/HTMLtree.h +147 -0
  19. data/ext/nokogiri/include/libxml2/libxml/SAX.h +173 -0
  20. data/ext/nokogiri/include/libxml2/libxml/SAX2.h +178 -0
  21. data/ext/nokogiri/include/libxml2/libxml/c14n.h +126 -0
  22. data/ext/nokogiri/include/libxml2/libxml/catalog.h +182 -0
  23. data/ext/nokogiri/include/libxml2/libxml/chvalid.h +230 -0
  24. data/ext/nokogiri/include/libxml2/libxml/debugXML.h +217 -0
  25. data/ext/nokogiri/include/libxml2/libxml/dict.h +79 -0
  26. data/ext/nokogiri/include/libxml2/libxml/encoding.h +245 -0
  27. data/ext/nokogiri/include/libxml2/libxml/entities.h +151 -0
  28. data/ext/nokogiri/include/libxml2/libxml/globals.h +508 -0
  29. data/ext/nokogiri/include/libxml2/libxml/hash.h +236 -0
  30. data/ext/nokogiri/include/libxml2/libxml/list.h +137 -0
  31. data/ext/nokogiri/include/libxml2/libxml/nanoftp.h +163 -0
  32. data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +81 -0
  33. data/ext/nokogiri/include/libxml2/libxml/parser.h +1241 -0
  34. data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +644 -0
  35. data/ext/nokogiri/include/libxml2/libxml/pattern.h +100 -0
  36. data/ext/nokogiri/include/libxml2/libxml/relaxng.h +217 -0
  37. data/ext/nokogiri/include/libxml2/libxml/schemasInternals.h +958 -0
  38. data/ext/nokogiri/include/libxml2/libxml/schematron.h +142 -0
  39. data/ext/nokogiri/include/libxml2/libxml/threads.h +89 -0
  40. data/ext/nokogiri/include/libxml2/libxml/tree.h +1311 -0
  41. data/ext/nokogiri/include/libxml2/libxml/uri.h +94 -0
  42. data/ext/nokogiri/include/libxml2/libxml/valid.h +458 -0
  43. data/ext/nokogiri/include/libxml2/libxml/xinclude.h +129 -0
  44. data/ext/nokogiri/include/libxml2/libxml/xlink.h +189 -0
  45. data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +366 -0
  46. data/ext/nokogiri/include/libxml2/libxml/xmlautomata.h +146 -0
  47. data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +945 -0
  48. data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +153 -0
  49. data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +224 -0
  50. data/ext/nokogiri/include/libxml2/libxml/xmlmodule.h +57 -0
  51. data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +428 -0
  52. data/ext/nokogiri/include/libxml2/libxml/xmlregexp.h +222 -0
  53. data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +88 -0
  54. data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +246 -0
  55. data/ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h +151 -0
  56. data/ext/nokogiri/include/libxml2/libxml/xmlstring.h +140 -0
  57. data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +202 -0
  58. data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +485 -0
  59. data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +488 -0
  60. data/ext/nokogiri/include/libxml2/libxml/xpath.h +566 -0
  61. data/ext/nokogiri/include/libxml2/libxml/xpathInternals.h +632 -0
  62. data/ext/nokogiri/include/libxml2/libxml/xpointer.h +114 -0
  63. data/ext/nokogiri/include/libxslt/attributes.h +38 -0
  64. data/ext/nokogiri/include/libxslt/documents.h +93 -0
  65. data/ext/nokogiri/include/libxslt/extensions.h +262 -0
  66. data/ext/nokogiri/include/libxslt/extra.h +72 -0
  67. data/ext/nokogiri/include/libxslt/functions.h +78 -0
  68. data/ext/nokogiri/include/libxslt/imports.h +75 -0
  69. data/ext/nokogiri/include/libxslt/keys.h +53 -0
  70. data/ext/nokogiri/include/libxslt/namespaces.h +68 -0
  71. data/ext/nokogiri/include/libxslt/numbersInternals.h +73 -0
  72. data/ext/nokogiri/include/libxslt/pattern.h +84 -0
  73. data/ext/nokogiri/include/libxslt/preproc.h +43 -0
  74. data/ext/nokogiri/include/libxslt/security.h +104 -0
  75. data/ext/nokogiri/include/libxslt/templates.h +77 -0
  76. data/ext/nokogiri/include/libxslt/transform.h +207 -0
  77. data/ext/nokogiri/include/libxslt/variables.h +118 -0
  78. data/ext/nokogiri/include/libxslt/xslt.h +110 -0
  79. data/ext/nokogiri/include/libxslt/xsltInternals.h +1978 -0
  80. data/ext/nokogiri/include/libxslt/xsltconfig.h +180 -0
  81. data/ext/nokogiri/include/libxslt/xsltexports.h +142 -0
  82. data/ext/nokogiri/include/libxslt/xsltlocale.h +76 -0
  83. data/ext/nokogiri/include/libxslt/xsltutils.h +313 -0
  84. data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
  85. data/ext/nokogiri/nokogiri.c +192 -93
  86. data/ext/nokogiri/nokogiri.h +177 -98
  87. data/ext/nokogiri/test_global_handlers.c +40 -0
  88. data/ext/nokogiri/xml_attr.c +15 -15
  89. data/ext/nokogiri/xml_attribute_decl.c +18 -18
  90. data/ext/nokogiri/xml_cdata.c +13 -18
  91. data/ext/nokogiri/xml_comment.c +19 -26
  92. data/ext/nokogiri/xml_document.c +225 -163
  93. data/ext/nokogiri/xml_document_fragment.c +13 -15
  94. data/ext/nokogiri/xml_dtd.c +54 -48
  95. data/ext/nokogiri/xml_element_content.c +30 -27
  96. data/ext/nokogiri/xml_element_decl.c +22 -22
  97. data/ext/nokogiri/xml_encoding_handler.c +17 -11
  98. data/ext/nokogiri/xml_entity_decl.c +32 -30
  99. data/ext/nokogiri/xml_entity_reference.c +16 -18
  100. data/ext/nokogiri/xml_namespace.c +56 -49
  101. data/ext/nokogiri/xml_node.c +338 -286
  102. data/ext/nokogiri/xml_node_set.c +168 -156
  103. data/ext/nokogiri/xml_processing_instruction.c +17 -19
  104. data/ext/nokogiri/xml_reader.c +191 -157
  105. data/ext/nokogiri/xml_relax_ng.c +52 -28
  106. data/ext/nokogiri/xml_sax_parser.c +118 -118
  107. data/ext/nokogiri/xml_sax_parser_context.c +103 -86
  108. data/ext/nokogiri/xml_sax_push_parser.c +36 -27
  109. data/ext/nokogiri/xml_schema.c +95 -47
  110. data/ext/nokogiri/xml_syntax_error.c +42 -21
  111. data/ext/nokogiri/xml_text.c +13 -17
  112. data/ext/nokogiri/xml_xpath_context.c +206 -123
  113. data/ext/nokogiri/xslt_stylesheet.c +158 -161
  114. data/lib/nokogiri.rb +4 -8
  115. data/lib/nokogiri/2.5/nokogiri.so +0 -0
  116. data/lib/nokogiri/2.6/nokogiri.so +0 -0
  117. data/lib/nokogiri/2.7/nokogiri.so +0 -0
  118. data/lib/nokogiri/3.0/nokogiri.so +0 -0
  119. data/lib/nokogiri/css/parser.rb +62 -62
  120. data/lib/nokogiri/css/parser.y +2 -2
  121. data/lib/nokogiri/css/xpath_visitor.rb +70 -42
  122. data/lib/nokogiri/extension.rb +26 -0
  123. data/lib/nokogiri/html/document.rb +12 -26
  124. data/lib/nokogiri/html/document_fragment.rb +15 -15
  125. data/lib/nokogiri/version.rb +2 -148
  126. data/lib/nokogiri/version/constant.rb +5 -0
  127. data/lib/nokogiri/version/info.rb +205 -0
  128. data/lib/nokogiri/xml/builder.rb +2 -2
  129. data/lib/nokogiri/xml/document.rb +48 -18
  130. data/lib/nokogiri/xml/document_fragment.rb +4 -6
  131. data/lib/nokogiri/xml/node.rb +88 -69
  132. data/lib/nokogiri/xml/parse_options.rb +6 -0
  133. data/lib/nokogiri/xml/reader.rb +2 -9
  134. data/lib/nokogiri/xml/relax_ng.rb +6 -2
  135. data/lib/nokogiri/xml/schema.rb +12 -4
  136. data/lib/nokogiri/xml/searchable.rb +3 -1
  137. data/lib/nokogiri/xml/xpath.rb +1 -3
  138. data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -1
  139. metadata +151 -158
  140. data/ext/nokogiri/html_document.h +0 -10
  141. data/ext/nokogiri/html_element_description.h +0 -10
  142. data/ext/nokogiri/html_entity_lookup.h +0 -8
  143. data/ext/nokogiri/html_sax_parser_context.h +0 -11
  144. data/ext/nokogiri/html_sax_push_parser.h +0 -9
  145. data/ext/nokogiri/xml_attr.h +0 -9
  146. data/ext/nokogiri/xml_attribute_decl.h +0 -9
  147. data/ext/nokogiri/xml_cdata.h +0 -9
  148. data/ext/nokogiri/xml_comment.h +0 -9
  149. data/ext/nokogiri/xml_document.h +0 -23
  150. data/ext/nokogiri/xml_document_fragment.h +0 -10
  151. data/ext/nokogiri/xml_dtd.h +0 -10
  152. data/ext/nokogiri/xml_element_content.h +0 -10
  153. data/ext/nokogiri/xml_element_decl.h +0 -9
  154. data/ext/nokogiri/xml_encoding_handler.h +0 -8
  155. data/ext/nokogiri/xml_entity_decl.h +0 -10
  156. data/ext/nokogiri/xml_entity_reference.h +0 -9
  157. data/ext/nokogiri/xml_io.c +0 -61
  158. data/ext/nokogiri/xml_io.h +0 -11
  159. data/ext/nokogiri/xml_libxml2_hacks.c +0 -112
  160. data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
  161. data/ext/nokogiri/xml_namespace.h +0 -14
  162. data/ext/nokogiri/xml_node.h +0 -13
  163. data/ext/nokogiri/xml_node_set.h +0 -12
  164. data/ext/nokogiri/xml_processing_instruction.h +0 -9
  165. data/ext/nokogiri/xml_reader.h +0 -10
  166. data/ext/nokogiri/xml_relax_ng.h +0 -9
  167. data/ext/nokogiri/xml_sax_parser.h +0 -39
  168. data/ext/nokogiri/xml_sax_parser_context.h +0 -10
  169. data/ext/nokogiri/xml_sax_push_parser.h +0 -9
  170. data/ext/nokogiri/xml_schema.h +0 -9
  171. data/ext/nokogiri/xml_syntax_error.h +0 -13
  172. data/ext/nokogiri/xml_text.h +0 -9
  173. data/ext/nokogiri/xml_xpath_context.h +0 -10
  174. data/ext/nokogiri/xslt_stylesheet.h +0 -14
  175. data/lib/nokogiri/2.4/nokogiri.so +0 -0
@@ -73,6 +73,8 @@ module Nokogiri
73
73
  DEFAULT_XML = RECOVER | NONET
74
74
  # the default options used for parsing HTML documents
75
75
  DEFAULT_HTML = RECOVER | NOERROR | NOWARNING | NONET
76
+ # the default options used for parsing XML schemas
77
+ DEFAULT_SCHEMA = NONET
76
78
 
77
79
  attr_accessor :options
78
80
  def initialize options = STRICT
@@ -107,6 +109,10 @@ module Nokogiri
107
109
  @options & RECOVER == STRICT
108
110
  end
109
111
 
112
+ def ==(other)
113
+ other.to_i == to_i
114
+ end
115
+
110
116
  alias :to_i :options
111
117
 
112
118
  def inspect
@@ -86,7 +86,8 @@ module Nokogiri
86
86
  private :initialize
87
87
 
88
88
  ###
89
- # Get a list of attributes for the current node.
89
+ # Get the attributes of the current node as a Hash
90
+ # @return [Hash<String, String>] Attribute names and values
90
91
  def attributes
91
92
  attrs_hash = attribute_nodes.each_with_object({}) do |node, hash|
92
93
  hash[node.name] = node.to_s
@@ -96,14 +97,6 @@ module Nokogiri
96
97
  attrs_hash
97
98
  end
98
99
 
99
- ###
100
- # Get a list of attributes for the current node
101
- def attribute_nodes
102
- nodes = attr_nodes
103
- nodes.each { |v| v.instance_variable_set(:@_r, self) }
104
- nodes
105
- end
106
-
107
100
  ###
108
101
  # Move the cursor through the document yielding the cursor to the block
109
102
  def each
@@ -5,8 +5,8 @@ module Nokogiri
5
5
  ###
6
6
  # Create a new Nokogiri::XML::RelaxNG document from +string_or_io+.
7
7
  # See Nokogiri::XML::RelaxNG for an example.
8
- def RelaxNG string_or_io
9
- RelaxNG.new(string_or_io)
8
+ def RelaxNG(string_or_io, options = ParseOptions::DEFAULT_SCHEMA)
9
+ RelaxNG.new(string_or_io, options)
10
10
  end
11
11
  end
12
12
 
@@ -27,6 +27,10 @@ module Nokogiri
27
27
  # end
28
28
  #
29
29
  # The list of errors are Nokogiri::XML::SyntaxError objects.
30
+ #
31
+ # NOTE: RelaxNG input is always treated as TRUSTED documents, meaning that they will cause the
32
+ # underlying parsing libraries to access network resources. This is counter to Nokogiri's
33
+ # "untrusted by default" security policy, but is a limitation of the underlying libraries.
30
34
  class RelaxNG < Nokogiri::XML::Schema
31
35
  end
32
36
  end
@@ -5,8 +5,8 @@ module Nokogiri
5
5
  ###
6
6
  # Create a new Nokogiri::XML::Schema object using a +string_or_io+
7
7
  # object.
8
- def Schema string_or_io
9
- Schema.new(string_or_io)
8
+ def Schema(string_or_io, options = ParseOptions::DEFAULT_SCHEMA)
9
+ Schema.new(string_or_io, options)
10
10
  end
11
11
  end
12
12
 
@@ -27,15 +27,23 @@ module Nokogiri
27
27
  # end
28
28
  #
29
29
  # The list of errors are Nokogiri::XML::SyntaxError objects.
30
+ #
31
+ # NOTE: As of v1.11.0, Schema treats inputs as UNTRUSTED by default, and so external entities
32
+ # are not resolved from the network (`http://` or `ftp://`). Previously, parsing treated
33
+ # documents as "trusted" by default which was counter to Nokogiri's "untrusted by default"
34
+ # security policy. If a document is trusted, then the caller may turn off the NONET option via
35
+ # the ParseOptions to re-enable external entity resolution over a network connection.
30
36
  class Schema
31
37
  # Errors while parsing the schema file
32
38
  attr_accessor :errors
39
+ # The Nokogiri::XML::ParseOptions used to parse the schema
40
+ attr_accessor :parse_options
33
41
 
34
42
  ###
35
43
  # Create a new Nokogiri::XML::Schema object using a +string_or_io+
36
44
  # object.
37
- def self.new string_or_io
38
- from_document Nokogiri::XML(string_or_io)
45
+ def self.new string_or_io, options = ParseOptions::DEFAULT_SCHEMA
46
+ from_document(Nokogiri::XML(string_or_io), options)
39
47
  end
40
48
 
41
49
  ###
@@ -210,8 +210,10 @@ module Nokogiri
210
210
  end
211
211
 
212
212
  def xpath_query_from_css_rule(rule, ns)
213
+ visitor = Nokogiri::CSS::XPathVisitorOptimallyUseBuiltins.new
213
214
  self.class::IMPLIED_XPATH_CONTEXTS.map do |implied_xpath_context|
214
- CSS.xpath_for(rule.to_s, :prefix => implied_xpath_context, :ns => ns)
215
+ CSS.xpath_for(rule.to_s, {:prefix => implied_xpath_context, :ns => ns,
216
+ :visitor => visitor})
215
217
  end.join(" | ")
216
218
  end
217
219
 
@@ -3,9 +3,7 @@ require 'nokogiri/xml/xpath/syntax_error'
3
3
 
4
4
  module Nokogiri
5
5
  module XML
6
- class XPath
7
- # The Nokogiri::XML::Document tied to this XPath instance
8
- attr_accessor :document
6
+ module XPath
9
7
  end
10
8
  end
11
9
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  module Nokogiri
3
3
  module XML
4
- class XPath
4
+ module XPath
5
5
  class SyntaxError < XML::SyntaxError
6
6
  def to_s
7
7
  [super.chomp, str1].compact.join(': ')
metadata CHANGED
@@ -1,111 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0.rc2
4
+ version: 1.11.2
5
5
  platform: x86-linux
6
6
  authors:
7
- - Aaron Patterson
8
7
  - Mike Dalessio
8
+ - Aaron Patterson
9
9
  - Yoko Harada
10
- - Tim Elliott
11
10
  - Akinori MUSHA
12
11
  - John Shahid
12
+ - Karol Bucek
13
13
  - Lars Kanis
14
+ - Sergio Arbeo
15
+ - Timothy Elliott
16
+ - Nobuyoshi Nakada
14
17
  autorequire:
15
18
  bindir: bin
16
19
  cert_chain: []
17
- date: 2020-04-01 00:00:00.000000000 Z
20
+ date: 2021-03-11 00:00:00.000000000 Z
18
21
  dependencies:
19
22
  - !ruby/object:Gem::Dependency
20
- name: concourse
21
- requirement: !ruby/object:Gem::Requirement
22
- requirements:
23
- - - "~>"
24
- - !ruby/object:Gem::Version
25
- version: '0.32'
26
- type: :development
27
- prerelease: false
28
- version_requirements: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '0.32'
33
- - !ruby/object:Gem::Dependency
34
- name: hoe
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.22'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 3.22.1
43
- type: :development
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '3.22'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 3.22.1
53
- - !ruby/object:Gem::Dependency
54
- name: hoe-bundler
23
+ name: racc
55
24
  requirement: !ruby/object:Gem::Requirement
56
25
  requirements:
57
26
  - - "~>"
58
27
  - !ruby/object:Gem::Version
59
- version: '1.2'
60
- type: :development
28
+ version: '1.4'
29
+ type: :runtime
61
30
  prerelease: false
62
31
  version_requirements: !ruby/object:Gem::Requirement
63
32
  requirements:
64
33
  - - "~>"
65
34
  - !ruby/object:Gem::Version
66
- version: '1.2'
35
+ version: '1.4'
67
36
  - !ruby/object:Gem::Dependency
68
- name: hoe-debugging
37
+ name: bundler
69
38
  requirement: !ruby/object:Gem::Requirement
70
39
  requirements:
71
40
  - - "~>"
72
41
  - !ruby/object:Gem::Version
73
- version: '2.0'
42
+ version: '2.2'
74
43
  type: :development
75
44
  prerelease: false
76
45
  version_requirements: !ruby/object:Gem::Requirement
77
46
  requirements:
78
47
  - - "~>"
79
48
  - !ruby/object:Gem::Version
80
- version: '2.0'
49
+ version: '2.2'
81
50
  - !ruby/object:Gem::Dependency
82
- name: hoe-gemspec
51
+ name: concourse
83
52
  requirement: !ruby/object:Gem::Requirement
84
53
  requirements:
85
54
  - - "~>"
86
55
  - !ruby/object:Gem::Version
87
- version: '1.0'
56
+ version: '0.41'
88
57
  type: :development
89
58
  prerelease: false
90
59
  version_requirements: !ruby/object:Gem::Requirement
91
60
  requirements:
92
61
  - - "~>"
93
62
  - !ruby/object:Gem::Version
94
- version: '1.0'
63
+ version: '0.41'
95
64
  - !ruby/object:Gem::Dependency
96
- name: hoe-git
65
+ name: hoe-markdown
97
66
  requirement: !ruby/object:Gem::Requirement
98
67
  requirements:
99
68
  - - "~>"
100
69
  - !ruby/object:Gem::Version
101
- version: '1.6'
70
+ version: '1.4'
102
71
  type: :development
103
72
  prerelease: false
104
73
  version_requirements: !ruby/object:Gem::Requirement
105
74
  requirements:
106
75
  - - "~>"
107
76
  - !ruby/object:Gem::Version
108
- version: '1.6'
77
+ version: '1.4'
109
78
  - !ruby/object:Gem::Dependency
110
79
  name: minitest
111
80
  requirement: !ruby/object:Gem::Requirement
@@ -121,19 +90,19 @@ dependencies:
121
90
  - !ruby/object:Gem::Version
122
91
  version: '5.8'
123
92
  - !ruby/object:Gem::Dependency
124
- name: racc
93
+ name: minitest-reporters
125
94
  requirement: !ruby/object:Gem::Requirement
126
95
  requirements:
127
96
  - - "~>"
128
97
  - !ruby/object:Gem::Version
129
- version: 1.4.14
98
+ version: '1.4'
130
99
  type: :development
131
100
  prerelease: false
132
101
  version_requirements: !ruby/object:Gem::Requirement
133
102
  requirements:
134
103
  - - "~>"
135
104
  - !ruby/object:Gem::Version
136
- version: 1.4.14
105
+ version: '1.4'
137
106
  - !ruby/object:Gem::Dependency
138
107
  name: rake
139
108
  requirement: !ruby/object:Gem::Requirement
@@ -168,14 +137,14 @@ dependencies:
168
137
  requirements:
169
138
  - - "~>"
170
139
  - !ruby/object:Gem::Version
171
- version: '1.0'
140
+ version: '1.1'
172
141
  type: :development
173
142
  prerelease: false
174
143
  version_requirements: !ruby/object:Gem::Requirement
175
144
  requirements:
176
145
  - - "~>"
177
146
  - !ruby/object:Gem::Version
178
- version: '1.0'
147
+ version: '1.1'
179
148
  - !ruby/object:Gem::Dependency
180
149
  name: rexical
181
150
  requirement: !ruby/object:Gem::Requirement
@@ -196,102 +165,88 @@ dependencies:
196
165
  requirements:
197
166
  - - "~>"
198
167
  - !ruby/object:Gem::Version
199
- version: '0.73'
168
+ version: '1.7'
200
169
  type: :development
201
170
  prerelease: false
202
171
  version_requirements: !ruby/object:Gem::Requirement
203
172
  requirements:
204
173
  - - "~>"
205
174
  - !ruby/object:Gem::Version
206
- version: '0.73'
175
+ version: '1.7'
207
176
  - !ruby/object:Gem::Dependency
208
177
  name: simplecov
209
178
  requirement: !ruby/object:Gem::Requirement
210
179
  requirements:
211
180
  - - "~>"
212
181
  - !ruby/object:Gem::Version
213
- version: '0.16'
182
+ version: '0.20'
214
183
  type: :development
215
184
  prerelease: false
216
185
  version_requirements: !ruby/object:Gem::Requirement
217
186
  requirements:
218
187
  - - "~>"
219
188
  - !ruby/object:Gem::Version
220
- version: '0.16'
189
+ version: '0.20'
221
190
  - !ruby/object:Gem::Dependency
222
- name: rdoc
191
+ name: yard
223
192
  requirement: !ruby/object:Gem::Requirement
224
193
  requirements:
225
- - - ">="
226
- - !ruby/object:Gem::Version
227
- version: '4.0'
228
- - - "<"
194
+ - - "~>"
229
195
  - !ruby/object:Gem::Version
230
- version: '7'
196
+ version: '0.9'
231
197
  type: :development
232
198
  prerelease: false
233
199
  version_requirements: !ruby/object:Gem::Requirement
234
200
  requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- version: '4.0'
238
- - - "<"
201
+ - - "~>"
239
202
  - !ruby/object:Gem::Version
240
- version: '7'
241
- description: |-
242
- Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
243
- Nokogiri's many features is the ability to search documents via XPath
244
- or CSS3 selectors.
245
- email:
246
- - aaronp@rubyforge.org
247
- - mike.dalessio@gmail.com
248
- - yokolet@gmail.com
249
- - tle@holymonkey.com
250
- - knu@idaemons.org
251
- - jvshahid@gmail.com
252
- - lars@greiz-reinsdorf.de
203
+ version: '0.9'
204
+ description: |
205
+ Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
206
+ sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is
207
+ fast and standards-compliant by relying on native parsers like libxml2 (C) and xerces (Java).
208
+ email: nokogiri-talk@googlegroups.com
253
209
  executables:
254
210
  - nokogiri
255
211
  extensions: []
256
212
  extra_rdoc_files:
257
- - LICENSE-DEPENDENCIES.md
258
- - LICENSE.md
259
- - README.md
260
- - ext/nokogiri/html_document.c
261
- - ext/nokogiri/html_element_description.c
262
- - ext/nokogiri/html_entity_lookup.c
263
- - ext/nokogiri/html_sax_parser_context.c
264
- - ext/nokogiri/html_sax_push_parser.c
265
- - ext/nokogiri/nokogiri.c
213
+ - ext/nokogiri/xml_dtd.c
214
+ - ext/nokogiri/xml_xpath_context.c
266
215
  - ext/nokogiri/xml_attr.c
267
- - ext/nokogiri/xml_attribute_decl.c
268
- - ext/nokogiri/xml_cdata.c
216
+ - ext/nokogiri/libxml2_backwards_compat.c
269
217
  - ext/nokogiri/xml_comment.c
270
- - ext/nokogiri/xml_document.c
271
- - ext/nokogiri/xml_document_fragment.c
272
- - ext/nokogiri/xml_dtd.c
218
+ - ext/nokogiri/nokogiri.c
219
+ - ext/nokogiri/xml_sax_parser_context.c
220
+ - ext/nokogiri/xml_node_set.c
221
+ - ext/nokogiri/xml_reader.c
222
+ - ext/nokogiri/xml_cdata.c
273
223
  - ext/nokogiri/xml_element_content.c
224
+ - ext/nokogiri/html_entity_lookup.c
225
+ - ext/nokogiri/xml_namespace.c
226
+ - ext/nokogiri/xml_document.c
274
227
  - ext/nokogiri/xml_element_decl.c
228
+ - ext/nokogiri/xml_schema.c
229
+ - ext/nokogiri/html_document.c
230
+ - ext/nokogiri/xml_processing_instruction.c
231
+ - ext/nokogiri/xml_text.c
232
+ - ext/nokogiri/xml_syntax_error.c
233
+ - ext/nokogiri/xml_document_fragment.c
234
+ - ext/nokogiri/xml_sax_push_parser.c
275
235
  - ext/nokogiri/xml_encoding_handler.c
236
+ - ext/nokogiri/html_sax_push_parser.c
237
+ - ext/nokogiri/xml_relax_ng.c
276
238
  - ext/nokogiri/xml_entity_decl.c
277
- - ext/nokogiri/xml_entity_reference.c
278
- - ext/nokogiri/xml_io.c
279
- - ext/nokogiri/xml_libxml2_hacks.c
280
- - ext/nokogiri/xml_namespace.c
239
+ - ext/nokogiri/test_global_handlers.c
281
240
  - ext/nokogiri/xml_node.c
282
- - ext/nokogiri/xml_node_set.c
283
- - ext/nokogiri/xml_processing_instruction.c
284
- - ext/nokogiri/xml_reader.c
285
- - ext/nokogiri/xml_relax_ng.c
286
- - ext/nokogiri/xml_sax_parser.c
287
- - ext/nokogiri/xml_sax_parser_context.c
288
- - ext/nokogiri/xml_sax_push_parser.c
289
- - ext/nokogiri/xml_schema.c
290
- - ext/nokogiri/xml_syntax_error.c
291
- - ext/nokogiri/xml_text.c
292
- - ext/nokogiri/xml_xpath_context.c
241
+ - ext/nokogiri/xml_entity_reference.c
293
242
  - ext/nokogiri/xslt_stylesheet.c
243
+ - ext/nokogiri/html_sax_parser_context.c
244
+ - ext/nokogiri/xml_sax_parser.c
245
+ - ext/nokogiri/xml_attribute_decl.c
246
+ - ext/nokogiri/html_element_description.c
247
+ - README.md
294
248
  files:
249
+ - Gemfile
295
250
  - LICENSE-DEPENDENCIES.md
296
251
  - LICENSE.md
297
252
  - README.md
@@ -300,78 +255,116 @@ files:
300
255
  - ext/nokogiri/depend
301
256
  - ext/nokogiri/extconf.rb
302
257
  - ext/nokogiri/html_document.c
303
- - ext/nokogiri/html_document.h
304
258
  - ext/nokogiri/html_element_description.c
305
- - ext/nokogiri/html_element_description.h
306
259
  - ext/nokogiri/html_entity_lookup.c
307
- - ext/nokogiri/html_entity_lookup.h
308
260
  - ext/nokogiri/html_sax_parser_context.c
309
- - ext/nokogiri/html_sax_parser_context.h
310
261
  - ext/nokogiri/html_sax_push_parser.c
311
- - ext/nokogiri/html_sax_push_parser.h
262
+ - ext/nokogiri/include/libexslt/exslt.h
263
+ - ext/nokogiri/include/libexslt/exsltconfig.h
264
+ - ext/nokogiri/include/libexslt/exsltexports.h
265
+ - ext/nokogiri/include/libxml2/libxml/DOCBparser.h
266
+ - ext/nokogiri/include/libxml2/libxml/HTMLparser.h
267
+ - ext/nokogiri/include/libxml2/libxml/HTMLtree.h
268
+ - ext/nokogiri/include/libxml2/libxml/SAX.h
269
+ - ext/nokogiri/include/libxml2/libxml/SAX2.h
270
+ - ext/nokogiri/include/libxml2/libxml/c14n.h
271
+ - ext/nokogiri/include/libxml2/libxml/catalog.h
272
+ - ext/nokogiri/include/libxml2/libxml/chvalid.h
273
+ - ext/nokogiri/include/libxml2/libxml/debugXML.h
274
+ - ext/nokogiri/include/libxml2/libxml/dict.h
275
+ - ext/nokogiri/include/libxml2/libxml/encoding.h
276
+ - ext/nokogiri/include/libxml2/libxml/entities.h
277
+ - ext/nokogiri/include/libxml2/libxml/globals.h
278
+ - ext/nokogiri/include/libxml2/libxml/hash.h
279
+ - ext/nokogiri/include/libxml2/libxml/list.h
280
+ - ext/nokogiri/include/libxml2/libxml/nanoftp.h
281
+ - ext/nokogiri/include/libxml2/libxml/nanohttp.h
282
+ - ext/nokogiri/include/libxml2/libxml/parser.h
283
+ - ext/nokogiri/include/libxml2/libxml/parserInternals.h
284
+ - ext/nokogiri/include/libxml2/libxml/pattern.h
285
+ - ext/nokogiri/include/libxml2/libxml/relaxng.h
286
+ - ext/nokogiri/include/libxml2/libxml/schemasInternals.h
287
+ - ext/nokogiri/include/libxml2/libxml/schematron.h
288
+ - ext/nokogiri/include/libxml2/libxml/threads.h
289
+ - ext/nokogiri/include/libxml2/libxml/tree.h
290
+ - ext/nokogiri/include/libxml2/libxml/uri.h
291
+ - ext/nokogiri/include/libxml2/libxml/valid.h
292
+ - ext/nokogiri/include/libxml2/libxml/xinclude.h
293
+ - ext/nokogiri/include/libxml2/libxml/xlink.h
294
+ - ext/nokogiri/include/libxml2/libxml/xmlIO.h
295
+ - ext/nokogiri/include/libxml2/libxml/xmlautomata.h
296
+ - ext/nokogiri/include/libxml2/libxml/xmlerror.h
297
+ - ext/nokogiri/include/libxml2/libxml/xmlexports.h
298
+ - ext/nokogiri/include/libxml2/libxml/xmlmemory.h
299
+ - ext/nokogiri/include/libxml2/libxml/xmlmodule.h
300
+ - ext/nokogiri/include/libxml2/libxml/xmlreader.h
301
+ - ext/nokogiri/include/libxml2/libxml/xmlregexp.h
302
+ - ext/nokogiri/include/libxml2/libxml/xmlsave.h
303
+ - ext/nokogiri/include/libxml2/libxml/xmlschemas.h
304
+ - ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h
305
+ - ext/nokogiri/include/libxml2/libxml/xmlstring.h
306
+ - ext/nokogiri/include/libxml2/libxml/xmlunicode.h
307
+ - ext/nokogiri/include/libxml2/libxml/xmlversion.h
308
+ - ext/nokogiri/include/libxml2/libxml/xmlwriter.h
309
+ - ext/nokogiri/include/libxml2/libxml/xpath.h
310
+ - ext/nokogiri/include/libxml2/libxml/xpathInternals.h
311
+ - ext/nokogiri/include/libxml2/libxml/xpointer.h
312
+ - ext/nokogiri/include/libxslt/attributes.h
313
+ - ext/nokogiri/include/libxslt/documents.h
314
+ - ext/nokogiri/include/libxslt/extensions.h
315
+ - ext/nokogiri/include/libxslt/extra.h
316
+ - ext/nokogiri/include/libxslt/functions.h
317
+ - ext/nokogiri/include/libxslt/imports.h
318
+ - ext/nokogiri/include/libxslt/keys.h
319
+ - ext/nokogiri/include/libxslt/namespaces.h
320
+ - ext/nokogiri/include/libxslt/numbersInternals.h
321
+ - ext/nokogiri/include/libxslt/pattern.h
322
+ - ext/nokogiri/include/libxslt/preproc.h
323
+ - ext/nokogiri/include/libxslt/security.h
324
+ - ext/nokogiri/include/libxslt/templates.h
325
+ - ext/nokogiri/include/libxslt/transform.h
326
+ - ext/nokogiri/include/libxslt/variables.h
327
+ - ext/nokogiri/include/libxslt/xslt.h
328
+ - ext/nokogiri/include/libxslt/xsltInternals.h
329
+ - ext/nokogiri/include/libxslt/xsltconfig.h
330
+ - ext/nokogiri/include/libxslt/xsltexports.h
331
+ - ext/nokogiri/include/libxslt/xsltlocale.h
332
+ - ext/nokogiri/include/libxslt/xsltutils.h
333
+ - ext/nokogiri/libxml2_backwards_compat.c
312
334
  - ext/nokogiri/nokogiri.c
313
335
  - ext/nokogiri/nokogiri.h
336
+ - ext/nokogiri/test_global_handlers.c
314
337
  - ext/nokogiri/xml_attr.c
315
- - ext/nokogiri/xml_attr.h
316
338
  - ext/nokogiri/xml_attribute_decl.c
317
- - ext/nokogiri/xml_attribute_decl.h
318
339
  - ext/nokogiri/xml_cdata.c
319
- - ext/nokogiri/xml_cdata.h
320
340
  - ext/nokogiri/xml_comment.c
321
- - ext/nokogiri/xml_comment.h
322
341
  - ext/nokogiri/xml_document.c
323
- - ext/nokogiri/xml_document.h
324
342
  - ext/nokogiri/xml_document_fragment.c
325
- - ext/nokogiri/xml_document_fragment.h
326
343
  - ext/nokogiri/xml_dtd.c
327
- - ext/nokogiri/xml_dtd.h
328
344
  - ext/nokogiri/xml_element_content.c
329
- - ext/nokogiri/xml_element_content.h
330
345
  - ext/nokogiri/xml_element_decl.c
331
- - ext/nokogiri/xml_element_decl.h
332
346
  - ext/nokogiri/xml_encoding_handler.c
333
- - ext/nokogiri/xml_encoding_handler.h
334
347
  - ext/nokogiri/xml_entity_decl.c
335
- - ext/nokogiri/xml_entity_decl.h
336
348
  - ext/nokogiri/xml_entity_reference.c
337
- - ext/nokogiri/xml_entity_reference.h
338
- - ext/nokogiri/xml_io.c
339
- - ext/nokogiri/xml_io.h
340
- - ext/nokogiri/xml_libxml2_hacks.c
341
- - ext/nokogiri/xml_libxml2_hacks.h
342
349
  - ext/nokogiri/xml_namespace.c
343
- - ext/nokogiri/xml_namespace.h
344
350
  - ext/nokogiri/xml_node.c
345
- - ext/nokogiri/xml_node.h
346
351
  - ext/nokogiri/xml_node_set.c
347
- - ext/nokogiri/xml_node_set.h
348
352
  - ext/nokogiri/xml_processing_instruction.c
349
- - ext/nokogiri/xml_processing_instruction.h
350
353
  - ext/nokogiri/xml_reader.c
351
- - ext/nokogiri/xml_reader.h
352
354
  - ext/nokogiri/xml_relax_ng.c
353
- - ext/nokogiri/xml_relax_ng.h
354
355
  - ext/nokogiri/xml_sax_parser.c
355
- - ext/nokogiri/xml_sax_parser.h
356
356
  - ext/nokogiri/xml_sax_parser_context.c
357
- - ext/nokogiri/xml_sax_parser_context.h
358
357
  - ext/nokogiri/xml_sax_push_parser.c
359
- - ext/nokogiri/xml_sax_push_parser.h
360
358
  - ext/nokogiri/xml_schema.c
361
- - ext/nokogiri/xml_schema.h
362
359
  - ext/nokogiri/xml_syntax_error.c
363
- - ext/nokogiri/xml_syntax_error.h
364
360
  - ext/nokogiri/xml_text.c
365
- - ext/nokogiri/xml_text.h
366
361
  - ext/nokogiri/xml_xpath_context.c
367
- - ext/nokogiri/xml_xpath_context.h
368
362
  - ext/nokogiri/xslt_stylesheet.c
369
- - ext/nokogiri/xslt_stylesheet.h
370
363
  - lib/nokogiri.rb
371
- - lib/nokogiri/2.4/nokogiri.so
372
364
  - lib/nokogiri/2.5/nokogiri.so
373
365
  - lib/nokogiri/2.6/nokogiri.so
374
366
  - lib/nokogiri/2.7/nokogiri.so
367
+ - lib/nokogiri/3.0/nokogiri.so
375
368
  - lib/nokogiri/css.rb
376
369
  - lib/nokogiri/css/node.rb
377
370
  - lib/nokogiri/css/parser.rb
@@ -382,6 +375,7 @@ files:
382
375
  - lib/nokogiri/css/tokenizer.rex
383
376
  - lib/nokogiri/css/xpath_visitor.rb
384
377
  - lib/nokogiri/decorators/slop.rb
378
+ - lib/nokogiri/extension.rb
385
379
  - lib/nokogiri/html.rb
386
380
  - lib/nokogiri/html/builder.rb
387
381
  - lib/nokogiri/html/document.rb
@@ -395,6 +389,8 @@ files:
395
389
  - lib/nokogiri/jruby/dependencies.rb
396
390
  - lib/nokogiri/syntax_error.rb
397
391
  - lib/nokogiri/version.rb
392
+ - lib/nokogiri/version/constant.rb
393
+ - lib/nokogiri/version/info.rb
398
394
  - lib/nokogiri/xml.rb
399
395
  - lib/nokogiri/xml/attr.rb
400
396
  - lib/nokogiri/xml/attribute_decl.rb
@@ -444,10 +440,7 @@ metadata:
444
440
  documentation_uri: https://nokogiri.org/rdoc/index.html
445
441
  changelog_uri: https://nokogiri.org/CHANGELOG.html
446
442
  source_code_uri: https://github.com/sparklemotion/nokogiri
447
- post_install_message: 'Nokogiri is built with the packaged libraries: libxml2-2.9.10,
448
- libxslt-1.1.34, zlib-1.2.11, libiconv-1.15.
449
-
450
- '
443
+ post_install_message:
451
444
  rdoc_options:
452
445
  - "--main"
453
446
  - README.md
@@ -457,18 +450,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
457
450
  requirements:
458
451
  - - ">="
459
452
  - !ruby/object:Gem::Version
460
- version: '2.4'
453
+ version: '2.5'
461
454
  - - "<"
462
455
  - !ruby/object:Gem::Version
463
- version: 2.8.dev
456
+ version: 3.1.dev
464
457
  required_rubygems_version: !ruby/object:Gem::Requirement
465
458
  requirements:
466
- - - ">"
459
+ - - ">="
467
460
  - !ruby/object:Gem::Version
468
- version: 1.3.1
461
+ version: '0'
469
462
  requirements: []
470
- rubygems_version: 3.1.2
463
+ rubygems_version: 3.2.3
471
464
  signing_key:
472
465
  specification_version: 4
473
- summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
466
+ summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
474
467
  test_files: []