nokogiri 1.11.0.rc3-x86-linux → 1.11.3-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 (174) 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 +168 -91
  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 +246 -188
  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 +371 -320
  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 +3 -7
  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 +3 -3
  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 -149
  126. data/lib/nokogiri/version/constant.rb +5 -0
  127. data/lib/nokogiri/version/info.rb +205 -0
  128. data/lib/nokogiri/xml/document.rb +91 -35
  129. data/lib/nokogiri/xml/document_fragment.rb +4 -6
  130. data/lib/nokogiri/xml/node.rb +89 -69
  131. data/lib/nokogiri/xml/parse_options.rb +6 -0
  132. data/lib/nokogiri/xml/reader.rb +2 -9
  133. data/lib/nokogiri/xml/relax_ng.rb +6 -2
  134. data/lib/nokogiri/xml/schema.rb +12 -4
  135. data/lib/nokogiri/xml/searchable.rb +3 -1
  136. data/lib/nokogiri/xml/xpath.rb +1 -3
  137. data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -1
  138. metadata +150 -171
  139. data/ext/nokogiri/html_document.h +0 -10
  140. data/ext/nokogiri/html_element_description.h +0 -10
  141. data/ext/nokogiri/html_entity_lookup.h +0 -8
  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 -13
  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/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,125 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0.rc3
4
+ version: 1.11.3
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-09-08 00:00:00.000000000 Z
20
+ date: 2021-04-07 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.34'
26
- type: :development
27
- prerelease: false
28
- version_requirements: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '0.34'
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
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.2'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '1.2'
67
- - !ruby/object:Gem::Dependency
68
- name: hoe-debugging
23
+ name: racc
69
24
  requirement: !ruby/object:Gem::Requirement
70
25
  requirements:
71
26
  - - "~>"
72
27
  - !ruby/object:Gem::Version
73
- version: '2.0'
74
- type: :development
28
+ version: '1.4'
29
+ type: :runtime
75
30
  prerelease: false
76
31
  version_requirements: !ruby/object:Gem::Requirement
77
32
  requirements:
78
33
  - - "~>"
79
34
  - !ruby/object:Gem::Version
80
- version: '2.0'
35
+ version: '1.4'
81
36
  - !ruby/object:Gem::Dependency
82
- name: hoe-gemspec
37
+ name: bundler
83
38
  requirement: !ruby/object:Gem::Requirement
84
39
  requirements:
85
40
  - - "~>"
86
41
  - !ruby/object:Gem::Version
87
- version: '1.0'
42
+ version: '2.2'
88
43
  type: :development
89
44
  prerelease: false
90
45
  version_requirements: !ruby/object:Gem::Requirement
91
46
  requirements:
92
47
  - - "~>"
93
48
  - !ruby/object:Gem::Version
94
- version: '1.0'
49
+ version: '2.2'
95
50
  - !ruby/object:Gem::Dependency
96
- name: hoe-git
51
+ name: concourse
97
52
  requirement: !ruby/object:Gem::Requirement
98
53
  requirements:
99
54
  - - "~>"
100
55
  - !ruby/object:Gem::Version
101
- version: '1.6'
56
+ version: '0.41'
102
57
  type: :development
103
58
  prerelease: false
104
59
  version_requirements: !ruby/object:Gem::Requirement
105
60
  requirements:
106
61
  - - "~>"
107
62
  - !ruby/object:Gem::Version
108
- version: '1.6'
63
+ version: '0.41'
109
64
  - !ruby/object:Gem::Dependency
110
65
  name: hoe-markdown
111
66
  requirement: !ruby/object:Gem::Requirement
112
67
  requirements:
113
68
  - - "~>"
114
69
  - !ruby/object:Gem::Version
115
- version: '1.1'
70
+ version: '1.4'
116
71
  type: :development
117
72
  prerelease: false
118
73
  version_requirements: !ruby/object:Gem::Requirement
119
74
  requirements:
120
75
  - - "~>"
121
76
  - !ruby/object:Gem::Version
122
- version: '1.1'
77
+ version: '1.4'
123
78
  - !ruby/object:Gem::Dependency
124
79
  name: minitest
125
80
  requirement: !ruby/object:Gem::Requirement
@@ -135,19 +90,19 @@ dependencies:
135
90
  - !ruby/object:Gem::Version
136
91
  version: '5.8'
137
92
  - !ruby/object:Gem::Dependency
138
- name: racc
93
+ name: minitest-reporters
139
94
  requirement: !ruby/object:Gem::Requirement
140
95
  requirements:
141
96
  - - "~>"
142
97
  - !ruby/object:Gem::Version
143
- version: 1.4.14
98
+ version: '1.4'
144
99
  type: :development
145
100
  prerelease: false
146
101
  version_requirements: !ruby/object:Gem::Requirement
147
102
  requirements:
148
103
  - - "~>"
149
104
  - !ruby/object:Gem::Version
150
- version: 1.4.14
105
+ version: '1.4'
151
106
  - !ruby/object:Gem::Dependency
152
107
  name: rake
153
108
  requirement: !ruby/object:Gem::Requirement
@@ -182,14 +137,14 @@ dependencies:
182
137
  requirements:
183
138
  - - "~>"
184
139
  - !ruby/object:Gem::Version
185
- version: '1.0'
140
+ version: '1.1'
186
141
  type: :development
187
142
  prerelease: false
188
143
  version_requirements: !ruby/object:Gem::Requirement
189
144
  requirements:
190
145
  - - "~>"
191
146
  - !ruby/object:Gem::Version
192
- version: '1.0'
147
+ version: '1.1'
193
148
  - !ruby/object:Gem::Dependency
194
149
  name: rexical
195
150
  requirement: !ruby/object:Gem::Requirement
@@ -210,102 +165,88 @@ dependencies:
210
165
  requirements:
211
166
  - - "~>"
212
167
  - !ruby/object:Gem::Version
213
- version: '0.88'
168
+ version: '1.7'
214
169
  type: :development
215
170
  prerelease: false
216
171
  version_requirements: !ruby/object:Gem::Requirement
217
172
  requirements:
218
173
  - - "~>"
219
174
  - !ruby/object:Gem::Version
220
- version: '0.88'
175
+ version: '1.7'
221
176
  - !ruby/object:Gem::Dependency
222
177
  name: simplecov
223
178
  requirement: !ruby/object:Gem::Requirement
224
179
  requirements:
225
180
  - - "~>"
226
181
  - !ruby/object:Gem::Version
227
- version: 0.17.0
182
+ version: '0.20'
228
183
  type: :development
229
184
  prerelease: false
230
185
  version_requirements: !ruby/object:Gem::Requirement
231
186
  requirements:
232
187
  - - "~>"
233
188
  - !ruby/object:Gem::Version
234
- version: 0.17.0
189
+ version: '0.20'
235
190
  - !ruby/object:Gem::Dependency
236
- name: rdoc
191
+ name: yard
237
192
  requirement: !ruby/object:Gem::Requirement
238
193
  requirements:
239
- - - ">="
240
- - !ruby/object:Gem::Version
241
- version: '4.0'
242
- - - "<"
194
+ - - "~>"
243
195
  - !ruby/object:Gem::Version
244
- version: '7'
196
+ version: '0.9'
245
197
  type: :development
246
198
  prerelease: false
247
199
  version_requirements: !ruby/object:Gem::Requirement
248
200
  requirements:
249
- - - ">="
250
- - !ruby/object:Gem::Version
251
- version: '4.0'
252
- - - "<"
201
+ - - "~>"
253
202
  - !ruby/object:Gem::Version
254
- version: '7'
255
- description: |-
256
- Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
257
- Nokogiri's many features is the ability to search documents via XPath
258
- or CSS3 selectors.
259
- email:
260
- - aaronp@rubyforge.org
261
- - mike.dalessio@gmail.com
262
- - yokolet@gmail.com
263
- - tle@holymonkey.com
264
- - knu@idaemons.org
265
- - jvshahid@gmail.com
266
- - 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
267
209
  executables:
268
210
  - nokogiri
269
211
  extensions: []
270
212
  extra_rdoc_files:
271
- - LICENSE-DEPENDENCIES.md
272
- - LICENSE.md
273
- - README.md
274
- - ext/nokogiri/html_document.c
275
- - ext/nokogiri/html_element_description.c
276
- - ext/nokogiri/html_entity_lookup.c
277
- - ext/nokogiri/html_sax_parser_context.c
278
- - ext/nokogiri/html_sax_push_parser.c
279
- - ext/nokogiri/nokogiri.c
213
+ - ext/nokogiri/xml_dtd.c
214
+ - ext/nokogiri/xml_xpath_context.c
280
215
  - ext/nokogiri/xml_attr.c
281
- - ext/nokogiri/xml_attribute_decl.c
282
- - ext/nokogiri/xml_cdata.c
216
+ - ext/nokogiri/libxml2_backwards_compat.c
283
217
  - ext/nokogiri/xml_comment.c
284
- - ext/nokogiri/xml_document.c
285
- - ext/nokogiri/xml_document_fragment.c
286
- - 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
287
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
288
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
289
235
  - ext/nokogiri/xml_encoding_handler.c
236
+ - ext/nokogiri/html_sax_push_parser.c
237
+ - ext/nokogiri/xml_relax_ng.c
290
238
  - ext/nokogiri/xml_entity_decl.c
291
- - ext/nokogiri/xml_entity_reference.c
292
- - ext/nokogiri/xml_io.c
293
- - ext/nokogiri/xml_libxml2_hacks.c
294
- - ext/nokogiri/xml_namespace.c
239
+ - ext/nokogiri/test_global_handlers.c
295
240
  - ext/nokogiri/xml_node.c
296
- - ext/nokogiri/xml_node_set.c
297
- - ext/nokogiri/xml_processing_instruction.c
298
- - ext/nokogiri/xml_reader.c
299
- - ext/nokogiri/xml_relax_ng.c
300
- - ext/nokogiri/xml_sax_parser.c
301
- - ext/nokogiri/xml_sax_parser_context.c
302
- - ext/nokogiri/xml_sax_push_parser.c
303
- - ext/nokogiri/xml_schema.c
304
- - ext/nokogiri/xml_syntax_error.c
305
- - ext/nokogiri/xml_text.c
306
- - ext/nokogiri/xml_xpath_context.c
241
+ - ext/nokogiri/xml_entity_reference.c
307
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
308
248
  files:
249
+ - Gemfile
309
250
  - LICENSE-DEPENDENCIES.md
310
251
  - LICENSE.md
311
252
  - README.md
@@ -314,78 +255,116 @@ files:
314
255
  - ext/nokogiri/depend
315
256
  - ext/nokogiri/extconf.rb
316
257
  - ext/nokogiri/html_document.c
317
- - ext/nokogiri/html_document.h
318
258
  - ext/nokogiri/html_element_description.c
319
- - ext/nokogiri/html_element_description.h
320
259
  - ext/nokogiri/html_entity_lookup.c
321
- - ext/nokogiri/html_entity_lookup.h
322
260
  - ext/nokogiri/html_sax_parser_context.c
323
- - ext/nokogiri/html_sax_parser_context.h
324
261
  - ext/nokogiri/html_sax_push_parser.c
325
- - 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
326
334
  - ext/nokogiri/nokogiri.c
327
335
  - ext/nokogiri/nokogiri.h
336
+ - ext/nokogiri/test_global_handlers.c
328
337
  - ext/nokogiri/xml_attr.c
329
- - ext/nokogiri/xml_attr.h
330
338
  - ext/nokogiri/xml_attribute_decl.c
331
- - ext/nokogiri/xml_attribute_decl.h
332
339
  - ext/nokogiri/xml_cdata.c
333
- - ext/nokogiri/xml_cdata.h
334
340
  - ext/nokogiri/xml_comment.c
335
- - ext/nokogiri/xml_comment.h
336
341
  - ext/nokogiri/xml_document.c
337
- - ext/nokogiri/xml_document.h
338
342
  - ext/nokogiri/xml_document_fragment.c
339
- - ext/nokogiri/xml_document_fragment.h
340
343
  - ext/nokogiri/xml_dtd.c
341
- - ext/nokogiri/xml_dtd.h
342
344
  - ext/nokogiri/xml_element_content.c
343
- - ext/nokogiri/xml_element_content.h
344
345
  - ext/nokogiri/xml_element_decl.c
345
- - ext/nokogiri/xml_element_decl.h
346
346
  - ext/nokogiri/xml_encoding_handler.c
347
- - ext/nokogiri/xml_encoding_handler.h
348
347
  - ext/nokogiri/xml_entity_decl.c
349
- - ext/nokogiri/xml_entity_decl.h
350
348
  - ext/nokogiri/xml_entity_reference.c
351
- - ext/nokogiri/xml_entity_reference.h
352
- - ext/nokogiri/xml_io.c
353
- - ext/nokogiri/xml_io.h
354
- - ext/nokogiri/xml_libxml2_hacks.c
355
- - ext/nokogiri/xml_libxml2_hacks.h
356
349
  - ext/nokogiri/xml_namespace.c
357
- - ext/nokogiri/xml_namespace.h
358
350
  - ext/nokogiri/xml_node.c
359
- - ext/nokogiri/xml_node.h
360
351
  - ext/nokogiri/xml_node_set.c
361
- - ext/nokogiri/xml_node_set.h
362
352
  - ext/nokogiri/xml_processing_instruction.c
363
- - ext/nokogiri/xml_processing_instruction.h
364
353
  - ext/nokogiri/xml_reader.c
365
- - ext/nokogiri/xml_reader.h
366
354
  - ext/nokogiri/xml_relax_ng.c
367
- - ext/nokogiri/xml_relax_ng.h
368
355
  - ext/nokogiri/xml_sax_parser.c
369
- - ext/nokogiri/xml_sax_parser.h
370
356
  - ext/nokogiri/xml_sax_parser_context.c
371
- - ext/nokogiri/xml_sax_parser_context.h
372
357
  - ext/nokogiri/xml_sax_push_parser.c
373
- - ext/nokogiri/xml_sax_push_parser.h
374
358
  - ext/nokogiri/xml_schema.c
375
- - ext/nokogiri/xml_schema.h
376
359
  - ext/nokogiri/xml_syntax_error.c
377
- - ext/nokogiri/xml_syntax_error.h
378
360
  - ext/nokogiri/xml_text.c
379
- - ext/nokogiri/xml_text.h
380
361
  - ext/nokogiri/xml_xpath_context.c
381
- - ext/nokogiri/xml_xpath_context.h
382
362
  - ext/nokogiri/xslt_stylesheet.c
383
- - ext/nokogiri/xslt_stylesheet.h
384
363
  - lib/nokogiri.rb
385
- - lib/nokogiri/2.4/nokogiri.so
386
364
  - lib/nokogiri/2.5/nokogiri.so
387
365
  - lib/nokogiri/2.6/nokogiri.so
388
366
  - lib/nokogiri/2.7/nokogiri.so
367
+ - lib/nokogiri/3.0/nokogiri.so
389
368
  - lib/nokogiri/css.rb
390
369
  - lib/nokogiri/css/node.rb
391
370
  - lib/nokogiri/css/parser.rb
@@ -396,6 +375,7 @@ files:
396
375
  - lib/nokogiri/css/tokenizer.rex
397
376
  - lib/nokogiri/css/xpath_visitor.rb
398
377
  - lib/nokogiri/decorators/slop.rb
378
+ - lib/nokogiri/extension.rb
399
379
  - lib/nokogiri/html.rb
400
380
  - lib/nokogiri/html/builder.rb
401
381
  - lib/nokogiri/html/document.rb
@@ -409,6 +389,8 @@ files:
409
389
  - lib/nokogiri/jruby/dependencies.rb
410
390
  - lib/nokogiri/syntax_error.rb
411
391
  - lib/nokogiri/version.rb
392
+ - lib/nokogiri/version/constant.rb
393
+ - lib/nokogiri/version/info.rb
412
394
  - lib/nokogiri/xml.rb
413
395
  - lib/nokogiri/xml/attr.rb
414
396
  - lib/nokogiri/xml/attribute_decl.rb
@@ -458,10 +440,7 @@ metadata:
458
440
  documentation_uri: https://nokogiri.org/rdoc/index.html
459
441
  changelog_uri: https://nokogiri.org/CHANGELOG.html
460
442
  source_code_uri: https://github.com/sparklemotion/nokogiri
461
- post_install_message: 'Nokogiri is built with the packaged libraries: libxml2-2.9.10,
462
- libxslt-1.1.34, zlib-1.2.11, libiconv-1.15.
463
-
464
- '
443
+ post_install_message:
465
444
  rdoc_options:
466
445
  - "--main"
467
446
  - README.md
@@ -471,18 +450,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
471
450
  requirements:
472
451
  - - ">="
473
452
  - !ruby/object:Gem::Version
474
- version: '2.4'
453
+ version: '2.5'
475
454
  - - "<"
476
455
  - !ruby/object:Gem::Version
477
- version: 2.8.dev
456
+ version: 3.1.dev
478
457
  required_rubygems_version: !ruby/object:Gem::Requirement
479
458
  requirements:
480
- - - ">"
459
+ - - ">="
481
460
  - !ruby/object:Gem::Version
482
- version: 1.3.1
461
+ version: '0'
483
462
  requirements: []
484
- rubygems_version: 3.1.2
463
+ rubygems_version: 3.2.3
485
464
  signing_key:
486
465
  specification_version: 4
487
- 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.
488
467
  test_files: []