nokogiri 1.11.0.rc1-x64-mingw32 → 1.11.1-x64-mingw32

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 (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/LICENSE-DEPENDENCIES.md +1015 -947
  4. data/README.md +164 -92
  5. data/ext/nokogiri/depend +476 -357
  6. data/ext/nokogiri/extconf.rb +467 -326
  7. data/ext/nokogiri/html_document.c +79 -78
  8. data/ext/nokogiri/html_sax_parser_context.c +4 -2
  9. data/ext/nokogiri/html_sax_push_parser.c +14 -8
  10. data/ext/nokogiri/include/libexslt/exslt.h +102 -0
  11. data/ext/nokogiri/include/libexslt/exsltconfig.h +70 -0
  12. data/ext/nokogiri/include/libexslt/exsltexports.h +140 -0
  13. data/ext/nokogiri/include/libxml2/libxml/DOCBparser.h +96 -0
  14. data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +306 -0
  15. data/ext/nokogiri/include/libxml2/libxml/HTMLtree.h +147 -0
  16. data/ext/nokogiri/include/libxml2/libxml/SAX.h +173 -0
  17. data/ext/nokogiri/include/libxml2/libxml/SAX2.h +178 -0
  18. data/ext/nokogiri/include/libxml2/libxml/c14n.h +126 -0
  19. data/ext/nokogiri/include/libxml2/libxml/catalog.h +182 -0
  20. data/ext/nokogiri/include/libxml2/libxml/chvalid.h +230 -0
  21. data/ext/nokogiri/include/libxml2/libxml/debugXML.h +217 -0
  22. data/ext/nokogiri/include/libxml2/libxml/dict.h +79 -0
  23. data/ext/nokogiri/include/libxml2/libxml/encoding.h +245 -0
  24. data/ext/nokogiri/include/libxml2/libxml/entities.h +151 -0
  25. data/ext/nokogiri/include/libxml2/libxml/globals.h +508 -0
  26. data/ext/nokogiri/include/libxml2/libxml/hash.h +236 -0
  27. data/ext/nokogiri/include/libxml2/libxml/list.h +137 -0
  28. data/ext/nokogiri/include/libxml2/libxml/nanoftp.h +163 -0
  29. data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +81 -0
  30. data/ext/nokogiri/include/libxml2/libxml/parser.h +1241 -0
  31. data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +644 -0
  32. data/ext/nokogiri/include/libxml2/libxml/pattern.h +100 -0
  33. data/ext/nokogiri/include/libxml2/libxml/relaxng.h +217 -0
  34. data/ext/nokogiri/include/libxml2/libxml/schemasInternals.h +958 -0
  35. data/ext/nokogiri/include/libxml2/libxml/schematron.h +142 -0
  36. data/ext/nokogiri/include/libxml2/libxml/threads.h +89 -0
  37. data/ext/nokogiri/include/libxml2/libxml/tree.h +1311 -0
  38. data/ext/nokogiri/include/libxml2/libxml/uri.h +94 -0
  39. data/ext/nokogiri/include/libxml2/libxml/valid.h +458 -0
  40. data/ext/nokogiri/include/libxml2/libxml/xinclude.h +129 -0
  41. data/ext/nokogiri/include/libxml2/libxml/xlink.h +189 -0
  42. data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +366 -0
  43. data/ext/nokogiri/include/libxml2/libxml/xmlautomata.h +146 -0
  44. data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +945 -0
  45. data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +153 -0
  46. data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +224 -0
  47. data/ext/nokogiri/include/libxml2/libxml/xmlmodule.h +57 -0
  48. data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +428 -0
  49. data/ext/nokogiri/include/libxml2/libxml/xmlregexp.h +222 -0
  50. data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +88 -0
  51. data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +246 -0
  52. data/ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h +151 -0
  53. data/ext/nokogiri/include/libxml2/libxml/xmlstring.h +140 -0
  54. data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +202 -0
  55. data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +485 -0
  56. data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +488 -0
  57. data/ext/nokogiri/include/libxml2/libxml/xpath.h +566 -0
  58. data/ext/nokogiri/include/libxml2/libxml/xpathInternals.h +632 -0
  59. data/ext/nokogiri/include/libxml2/libxml/xpointer.h +114 -0
  60. data/ext/nokogiri/include/libxslt/attributes.h +38 -0
  61. data/ext/nokogiri/include/libxslt/documents.h +93 -0
  62. data/ext/nokogiri/include/libxslt/extensions.h +262 -0
  63. data/ext/nokogiri/include/libxslt/extra.h +72 -0
  64. data/ext/nokogiri/include/libxslt/functions.h +78 -0
  65. data/ext/nokogiri/include/libxslt/imports.h +75 -0
  66. data/ext/nokogiri/include/libxslt/keys.h +53 -0
  67. data/ext/nokogiri/include/libxslt/namespaces.h +68 -0
  68. data/ext/nokogiri/include/libxslt/numbersInternals.h +73 -0
  69. data/ext/nokogiri/include/libxslt/pattern.h +84 -0
  70. data/ext/nokogiri/include/libxslt/preproc.h +43 -0
  71. data/ext/nokogiri/include/libxslt/security.h +104 -0
  72. data/ext/nokogiri/include/libxslt/templates.h +77 -0
  73. data/ext/nokogiri/include/libxslt/transform.h +207 -0
  74. data/ext/nokogiri/include/libxslt/variables.h +118 -0
  75. data/ext/nokogiri/include/libxslt/xslt.h +110 -0
  76. data/ext/nokogiri/include/libxslt/xsltInternals.h +1978 -0
  77. data/ext/nokogiri/include/libxslt/xsltconfig.h +180 -0
  78. data/ext/nokogiri/include/libxslt/xsltexports.h +142 -0
  79. data/ext/nokogiri/include/libxslt/xsltlocale.h +76 -0
  80. data/ext/nokogiri/include/libxslt/xsltutils.h +313 -0
  81. data/ext/nokogiri/nokogiri.c +37 -46
  82. data/ext/nokogiri/nokogiri.h +25 -17
  83. data/ext/nokogiri/test_global_handlers.c +41 -0
  84. data/ext/nokogiri/xml_document.c +8 -3
  85. data/ext/nokogiri/xml_io.c +8 -6
  86. data/ext/nokogiri/xml_node.c +1 -1
  87. data/ext/nokogiri/xml_node_set.c +1 -1
  88. data/ext/nokogiri/xml_reader.c +6 -17
  89. data/ext/nokogiri/xml_relax_ng.c +29 -11
  90. data/ext/nokogiri/xml_sax_parser.c +2 -7
  91. data/ext/nokogiri/xml_sax_parser_context.c +4 -2
  92. data/ext/nokogiri/xml_sax_push_parser.c +2 -0
  93. data/ext/nokogiri/xml_schema.c +84 -13
  94. data/ext/nokogiri/xml_syntax_error.c +23 -0
  95. data/ext/nokogiri/xml_syntax_error.h +15 -3
  96. data/ext/nokogiri/xml_xpath_context.c +80 -4
  97. data/ext/nokogiri/xslt_stylesheet.c +1 -4
  98. data/lib/nokogiri.rb +20 -3
  99. data/lib/nokogiri/2.5/nokogiri.so +0 -0
  100. data/lib/nokogiri/2.6/nokogiri.so +0 -0
  101. data/lib/nokogiri/2.7/nokogiri.so +0 -0
  102. data/lib/nokogiri/3.0/nokogiri.so +0 -0
  103. data/lib/nokogiri/css/parser.rb +62 -62
  104. data/lib/nokogiri/css/parser.y +2 -2
  105. data/lib/nokogiri/css/parser_extras.rb +38 -36
  106. data/lib/nokogiri/css/xpath_visitor.rb +70 -42
  107. data/lib/nokogiri/html/document.rb +12 -26
  108. data/lib/nokogiri/version.rb +2 -148
  109. data/lib/nokogiri/version/constant.rb +5 -0
  110. data/lib/nokogiri/version/info.rb +182 -0
  111. data/lib/nokogiri/xml/builder.rb +2 -2
  112. data/lib/nokogiri/xml/document.rb +17 -7
  113. data/lib/nokogiri/xml/document_fragment.rb +4 -6
  114. data/lib/nokogiri/xml/node.rb +562 -238
  115. data/lib/nokogiri/xml/parse_options.rb +6 -0
  116. data/lib/nokogiri/xml/relax_ng.rb +6 -2
  117. data/lib/nokogiri/xml/schema.rb +12 -4
  118. data/lib/nokogiri/xml/searchable.rb +24 -16
  119. metadata +149 -130
  120. 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
@@ -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
  ###
@@ -12,7 +12,9 @@ module Nokogiri
12
12
  # Regular expression used by Searchable#search to determine if a query
13
13
  # string is CSS or XPath
14
14
  LOOKS_LIKE_XPATH = /^(\.\/|\/|\.\.|\.$)/
15
-
15
+
16
+ # @!group Searching via XPath or CSS Queries
17
+
16
18
  ###
17
19
  # call-seq: search *paths, [namespace-bindings, xpath-variable-bindings, custom-handler-class]
18
20
  #
@@ -46,7 +48,7 @@ module Nokogiri
46
48
  # )
47
49
  #
48
50
  # See Searchable#xpath and Searchable#css for further usage help.
49
- def search *args
51
+ def search(*args)
50
52
  paths, handler, ns, binds = extract_params(args)
51
53
 
52
54
  xpaths = paths.map(&:to_s).map do |path|
@@ -55,6 +57,7 @@ module Nokogiri
55
57
 
56
58
  xpath(*(xpaths + [ns, handler, binds].compact))
57
59
  end
60
+
58
61
  alias :/ :search
59
62
 
60
63
  ###
@@ -64,9 +67,10 @@ module Nokogiri
64
67
  # result. +paths+ must be one or more XPath or CSS queries.
65
68
  #
66
69
  # See Searchable#search for more information.
67
- def at *args
70
+ def at(*args)
68
71
  search(*args).first
69
72
  end
73
+
70
74
  alias :% :at
71
75
 
72
76
  ###
@@ -102,7 +106,7 @@ module Nokogiri
102
106
  # found in an XML document, where tags names are case-sensitive
103
107
  # (e.g., "H1" is distinct from "h1").
104
108
  #
105
- def css *args
109
+ def css(*args)
106
110
  rules, handler, ns, _ = extract_params(args)
107
111
 
108
112
  css_internal self, rules, handler, ns
@@ -115,7 +119,7 @@ module Nokogiri
115
119
  # match. +rules+ must be one or more CSS selectors.
116
120
  #
117
121
  # See Searchable#css for more information.
118
- def at_css *args
122
+ def at_css(*args)
119
123
  css(*args).first
120
124
  end
121
125
 
@@ -149,7 +153,7 @@ module Nokogiri
149
153
  # end
150
154
  # }.new)
151
155
  #
152
- def xpath *args
156
+ def xpath(*args)
153
157
  paths, handler, ns, binds = extract_params(args)
154
158
 
155
159
  xpath_internal self, paths, handler, ns, binds
@@ -162,17 +166,19 @@ module Nokogiri
162
166
  # match. +paths+ must be one or more XPath queries.
163
167
  #
164
168
  # See Searchable#xpath for more information.
165
- def at_xpath *args
169
+ def at_xpath(*args)
166
170
  xpath(*args).first
167
171
  end
168
172
 
173
+ # @!endgroup
174
+
169
175
  private
170
176
 
171
- def css_internal node, rules, handler, ns
177
+ def css_internal(node, rules, handler, ns)
172
178
  xpath_internal node, css_rules_to_xpath(rules, ns), handler, ns, nil
173
179
  end
174
180
 
175
- def xpath_internal node, paths, handler, ns, binds
181
+ def xpath_internal(node, paths, handler, ns, binds)
176
182
  document = node.document
177
183
  return NodeSet.new(document) unless document
178
184
 
@@ -187,12 +193,12 @@ module Nokogiri
187
193
  end
188
194
  end
189
195
 
190
- def xpath_impl node, path, handler, ns, binds
196
+ def xpath_impl(node, path, handler, ns, binds)
191
197
  ctx = XPathContext.new(node)
192
198
  ctx.register_namespaces(ns)
193
- path = path.gsub(/xmlns:/, ' :') unless Nokogiri.uses_libxml?
199
+ path = path.gsub(/xmlns:/, " :") unless Nokogiri.uses_libxml?
194
200
 
195
- binds.each do |key,value|
201
+ binds.each do |key, value|
196
202
  ctx.register_variable key.to_s, value
197
203
  end if binds
198
204
 
@@ -203,13 +209,15 @@ module Nokogiri
203
209
  rules.map { |rule| xpath_query_from_css_rule(rule, ns) }
204
210
  end
205
211
 
206
- def xpath_query_from_css_rule rule, ns
212
+ def xpath_query_from_css_rule(rule, ns)
213
+ visitor = Nokogiri::CSS::XPathVisitorOptimallyUseBuiltins.new
207
214
  self.class::IMPLIED_XPATH_CONTEXTS.map do |implied_xpath_context|
208
- CSS.xpath_for(rule.to_s, :prefix => implied_xpath_context, :ns => ns)
209
- end.join(' | ')
215
+ CSS.xpath_for(rule.to_s, {:prefix => implied_xpath_context, :ns => ns,
216
+ :visitor => visitor})
217
+ end.join(" | ")
210
218
  end
211
219
 
212
- def extract_params params # :nodoc:
220
+ def extract_params(params) # :nodoc:
213
221
  handler = params.find do |param|
214
222
  ![Hash, String, Symbol].include?(param.class)
215
223
  end
metadata CHANGED
@@ -1,119 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0.rc1
4
+ version: 1.11.1
5
5
  platform: x64-mingw32
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-02-02 00:00:00.000000000 Z
20
+ date: 2021-01-06 00:00:00.000000000 Z
18
21
  dependencies:
19
22
  - !ruby/object:Gem::Dependency
20
- name: mini_portile2
23
+ name: racc
21
24
  requirement: !ruby/object:Gem::Requirement
22
25
  requirements:
23
26
  - - "~>"
24
27
  - !ruby/object:Gem::Version
25
- version: 2.4.0
28
+ version: '1.4'
26
29
  type: :runtime
27
30
  prerelease: false
28
31
  version_requirements: !ruby/object:Gem::Requirement
29
32
  requirements:
30
33
  - - "~>"
31
34
  - !ruby/object:Gem::Version
32
- version: 2.4.0
33
- - !ruby/object:Gem::Dependency
34
- name: concourse
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '0.30'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '0.30'
47
- - !ruby/object:Gem::Dependency
48
- name: hoe
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '3.18'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '3.18'
35
+ version: '1.4'
61
36
  - !ruby/object:Gem::Dependency
62
- name: hoe-bundler
37
+ name: bundler
63
38
  requirement: !ruby/object:Gem::Requirement
64
39
  requirements:
65
40
  - - "~>"
66
41
  - !ruby/object:Gem::Version
67
- version: '1.2'
42
+ version: '2.2'
68
43
  type: :development
69
44
  prerelease: false
70
45
  version_requirements: !ruby/object:Gem::Requirement
71
46
  requirements:
72
47
  - - "~>"
73
48
  - !ruby/object:Gem::Version
74
- version: '1.2'
49
+ version: '2.2'
75
50
  - !ruby/object:Gem::Dependency
76
- name: hoe-debugging
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '2.0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '2.0'
89
- - !ruby/object:Gem::Dependency
90
- name: hoe-gemspec
51
+ name: concourse
91
52
  requirement: !ruby/object:Gem::Requirement
92
53
  requirements:
93
54
  - - "~>"
94
55
  - !ruby/object:Gem::Version
95
- version: '1.0'
56
+ version: '0.41'
96
57
  type: :development
97
58
  prerelease: false
98
59
  version_requirements: !ruby/object:Gem::Requirement
99
60
  requirements:
100
61
  - - "~>"
101
62
  - !ruby/object:Gem::Version
102
- version: '1.0'
63
+ version: '0.41'
103
64
  - !ruby/object:Gem::Dependency
104
- name: hoe-git
65
+ name: hoe-markdown
105
66
  requirement: !ruby/object:Gem::Requirement
106
67
  requirements:
107
68
  - - "~>"
108
69
  - !ruby/object:Gem::Version
109
- version: '1.6'
70
+ version: '1.1'
110
71
  type: :development
111
72
  prerelease: false
112
73
  version_requirements: !ruby/object:Gem::Requirement
113
74
  requirements:
114
75
  - - "~>"
115
76
  - !ruby/object:Gem::Version
116
- version: '1.6'
77
+ version: '1.1'
117
78
  - !ruby/object:Gem::Dependency
118
79
  name: minitest
119
80
  requirement: !ruby/object:Gem::Requirement
@@ -129,19 +90,19 @@ dependencies:
129
90
  - !ruby/object:Gem::Version
130
91
  version: '5.8'
131
92
  - !ruby/object:Gem::Dependency
132
- name: racc
93
+ name: minitest-reporters
133
94
  requirement: !ruby/object:Gem::Requirement
134
95
  requirements:
135
96
  - - "~>"
136
97
  - !ruby/object:Gem::Version
137
- version: 1.4.14
98
+ version: '1.4'
138
99
  type: :development
139
100
  prerelease: false
140
101
  version_requirements: !ruby/object:Gem::Requirement
141
102
  requirements:
142
103
  - - "~>"
143
104
  - !ruby/object:Gem::Version
144
- version: 1.4.14
105
+ version: '1.4'
145
106
  - !ruby/object:Gem::Dependency
146
107
  name: rake
147
108
  requirement: !ruby/object:Gem::Requirement
@@ -176,14 +137,14 @@ dependencies:
176
137
  requirements:
177
138
  - - "~>"
178
139
  - !ruby/object:Gem::Version
179
- version: '1.0'
140
+ version: '1.1'
180
141
  type: :development
181
142
  prerelease: false
182
143
  version_requirements: !ruby/object:Gem::Requirement
183
144
  requirements:
184
145
  - - "~>"
185
146
  - !ruby/object:Gem::Version
186
- version: '1.0'
147
+ version: '1.1'
187
148
  - !ruby/object:Gem::Dependency
188
149
  name: rexical
189
150
  requirement: !ruby/object:Gem::Requirement
@@ -204,102 +165,89 @@ dependencies:
204
165
  requirements:
205
166
  - - "~>"
206
167
  - !ruby/object:Gem::Version
207
- version: '0.73'
168
+ version: '1.7'
208
169
  type: :development
209
170
  prerelease: false
210
171
  version_requirements: !ruby/object:Gem::Requirement
211
172
  requirements:
212
173
  - - "~>"
213
174
  - !ruby/object:Gem::Version
214
- version: '0.73'
175
+ version: '1.7'
215
176
  - !ruby/object:Gem::Dependency
216
177
  name: simplecov
217
178
  requirement: !ruby/object:Gem::Requirement
218
179
  requirements:
219
180
  - - "~>"
220
181
  - !ruby/object:Gem::Version
221
- version: '0.16'
182
+ version: '0.20'
222
183
  type: :development
223
184
  prerelease: false
224
185
  version_requirements: !ruby/object:Gem::Requirement
225
186
  requirements:
226
187
  - - "~>"
227
188
  - !ruby/object:Gem::Version
228
- version: '0.16'
189
+ version: '0.20'
229
190
  - !ruby/object:Gem::Dependency
230
- name: rdoc
191
+ name: yard
231
192
  requirement: !ruby/object:Gem::Requirement
232
193
  requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- version: '4.0'
236
- - - "<"
194
+ - - "~>"
237
195
  - !ruby/object:Gem::Version
238
- version: '7'
196
+ version: '0.9'
239
197
  type: :development
240
198
  prerelease: false
241
199
  version_requirements: !ruby/object:Gem::Requirement
242
200
  requirements:
243
- - - ">="
244
- - !ruby/object:Gem::Version
245
- version: '4.0'
246
- - - "<"
201
+ - - "~>"
247
202
  - !ruby/object:Gem::Version
248
- version: '7'
249
- description: |-
250
- Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
251
- Nokogiri's many features is the ability to search documents via XPath
252
- or CSS3 selectors.
253
- email:
254
- - aaronp@rubyforge.org
255
- - mike.dalessio@gmail.com
256
- - yokolet@gmail.com
257
- - tle@holymonkey.com
258
- - knu@idaemons.org
259
- - jvshahid@gmail.com
260
- - 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
261
209
  executables:
262
210
  - nokogiri
263
211
  extensions: []
264
212
  extra_rdoc_files:
265
- - LICENSE-DEPENDENCIES.md
266
- - LICENSE.md
267
- - README.md
268
- - ext/nokogiri/html_document.c
269
- - ext/nokogiri/html_element_description.c
270
- - ext/nokogiri/html_entity_lookup.c
271
- - ext/nokogiri/html_sax_parser_context.c
272
- - ext/nokogiri/html_sax_push_parser.c
273
- - ext/nokogiri/nokogiri.c
213
+ - ext/nokogiri/xml_dtd.c
214
+ - ext/nokogiri/xml_xpath_context.c
274
215
  - ext/nokogiri/xml_attr.c
275
- - ext/nokogiri/xml_attribute_decl.c
276
- - ext/nokogiri/xml_cdata.c
277
216
  - ext/nokogiri/xml_comment.c
278
- - ext/nokogiri/xml_document.c
279
- - ext/nokogiri/xml_document_fragment.c
280
- - ext/nokogiri/xml_dtd.c
217
+ - ext/nokogiri/nokogiri.c
218
+ - ext/nokogiri/xml_sax_parser_context.c
219
+ - ext/nokogiri/xml_node_set.c
220
+ - ext/nokogiri/xml_reader.c
221
+ - ext/nokogiri/xml_libxml2_hacks.c
222
+ - ext/nokogiri/xml_cdata.c
281
223
  - ext/nokogiri/xml_element_content.c
224
+ - ext/nokogiri/html_entity_lookup.c
225
+ - ext/nokogiri/xml_namespace.c
226
+ - ext/nokogiri/xml_io.c
227
+ - ext/nokogiri/xml_document.c
282
228
  - ext/nokogiri/xml_element_decl.c
229
+ - ext/nokogiri/xml_schema.c
230
+ - ext/nokogiri/html_document.c
231
+ - ext/nokogiri/xml_processing_instruction.c
232
+ - ext/nokogiri/xml_text.c
233
+ - ext/nokogiri/xml_syntax_error.c
234
+ - ext/nokogiri/xml_document_fragment.c
235
+ - ext/nokogiri/xml_sax_push_parser.c
283
236
  - ext/nokogiri/xml_encoding_handler.c
237
+ - ext/nokogiri/html_sax_push_parser.c
238
+ - ext/nokogiri/xml_relax_ng.c
284
239
  - ext/nokogiri/xml_entity_decl.c
285
- - ext/nokogiri/xml_entity_reference.c
286
- - ext/nokogiri/xml_io.c
287
- - ext/nokogiri/xml_libxml2_hacks.c
288
- - ext/nokogiri/xml_namespace.c
240
+ - ext/nokogiri/test_global_handlers.c
289
241
  - ext/nokogiri/xml_node.c
290
- - ext/nokogiri/xml_node_set.c
291
- - ext/nokogiri/xml_processing_instruction.c
292
- - ext/nokogiri/xml_reader.c
293
- - ext/nokogiri/xml_relax_ng.c
294
- - ext/nokogiri/xml_sax_parser.c
295
- - ext/nokogiri/xml_sax_parser_context.c
296
- - ext/nokogiri/xml_sax_push_parser.c
297
- - ext/nokogiri/xml_schema.c
298
- - ext/nokogiri/xml_syntax_error.c
299
- - ext/nokogiri/xml_text.c
300
- - ext/nokogiri/xml_xpath_context.c
242
+ - ext/nokogiri/xml_entity_reference.c
301
243
  - ext/nokogiri/xslt_stylesheet.c
244
+ - ext/nokogiri/html_sax_parser_context.c
245
+ - ext/nokogiri/xml_sax_parser.c
246
+ - ext/nokogiri/xml_attribute_decl.c
247
+ - ext/nokogiri/html_element_description.c
248
+ - README.md
302
249
  files:
250
+ - Gemfile
303
251
  - LICENSE-DEPENDENCIES.md
304
252
  - LICENSE.md
305
253
  - README.md
@@ -317,8 +265,80 @@ files:
317
265
  - ext/nokogiri/html_sax_parser_context.h
318
266
  - ext/nokogiri/html_sax_push_parser.c
319
267
  - ext/nokogiri/html_sax_push_parser.h
268
+ - ext/nokogiri/include/libexslt/exslt.h
269
+ - ext/nokogiri/include/libexslt/exsltconfig.h
270
+ - ext/nokogiri/include/libexslt/exsltexports.h
271
+ - ext/nokogiri/include/libxml2/libxml/DOCBparser.h
272
+ - ext/nokogiri/include/libxml2/libxml/HTMLparser.h
273
+ - ext/nokogiri/include/libxml2/libxml/HTMLtree.h
274
+ - ext/nokogiri/include/libxml2/libxml/SAX.h
275
+ - ext/nokogiri/include/libxml2/libxml/SAX2.h
276
+ - ext/nokogiri/include/libxml2/libxml/c14n.h
277
+ - ext/nokogiri/include/libxml2/libxml/catalog.h
278
+ - ext/nokogiri/include/libxml2/libxml/chvalid.h
279
+ - ext/nokogiri/include/libxml2/libxml/debugXML.h
280
+ - ext/nokogiri/include/libxml2/libxml/dict.h
281
+ - ext/nokogiri/include/libxml2/libxml/encoding.h
282
+ - ext/nokogiri/include/libxml2/libxml/entities.h
283
+ - ext/nokogiri/include/libxml2/libxml/globals.h
284
+ - ext/nokogiri/include/libxml2/libxml/hash.h
285
+ - ext/nokogiri/include/libxml2/libxml/list.h
286
+ - ext/nokogiri/include/libxml2/libxml/nanoftp.h
287
+ - ext/nokogiri/include/libxml2/libxml/nanohttp.h
288
+ - ext/nokogiri/include/libxml2/libxml/parser.h
289
+ - ext/nokogiri/include/libxml2/libxml/parserInternals.h
290
+ - ext/nokogiri/include/libxml2/libxml/pattern.h
291
+ - ext/nokogiri/include/libxml2/libxml/relaxng.h
292
+ - ext/nokogiri/include/libxml2/libxml/schemasInternals.h
293
+ - ext/nokogiri/include/libxml2/libxml/schematron.h
294
+ - ext/nokogiri/include/libxml2/libxml/threads.h
295
+ - ext/nokogiri/include/libxml2/libxml/tree.h
296
+ - ext/nokogiri/include/libxml2/libxml/uri.h
297
+ - ext/nokogiri/include/libxml2/libxml/valid.h
298
+ - ext/nokogiri/include/libxml2/libxml/xinclude.h
299
+ - ext/nokogiri/include/libxml2/libxml/xlink.h
300
+ - ext/nokogiri/include/libxml2/libxml/xmlIO.h
301
+ - ext/nokogiri/include/libxml2/libxml/xmlautomata.h
302
+ - ext/nokogiri/include/libxml2/libxml/xmlerror.h
303
+ - ext/nokogiri/include/libxml2/libxml/xmlexports.h
304
+ - ext/nokogiri/include/libxml2/libxml/xmlmemory.h
305
+ - ext/nokogiri/include/libxml2/libxml/xmlmodule.h
306
+ - ext/nokogiri/include/libxml2/libxml/xmlreader.h
307
+ - ext/nokogiri/include/libxml2/libxml/xmlregexp.h
308
+ - ext/nokogiri/include/libxml2/libxml/xmlsave.h
309
+ - ext/nokogiri/include/libxml2/libxml/xmlschemas.h
310
+ - ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h
311
+ - ext/nokogiri/include/libxml2/libxml/xmlstring.h
312
+ - ext/nokogiri/include/libxml2/libxml/xmlunicode.h
313
+ - ext/nokogiri/include/libxml2/libxml/xmlversion.h
314
+ - ext/nokogiri/include/libxml2/libxml/xmlwriter.h
315
+ - ext/nokogiri/include/libxml2/libxml/xpath.h
316
+ - ext/nokogiri/include/libxml2/libxml/xpathInternals.h
317
+ - ext/nokogiri/include/libxml2/libxml/xpointer.h
318
+ - ext/nokogiri/include/libxslt/attributes.h
319
+ - ext/nokogiri/include/libxslt/documents.h
320
+ - ext/nokogiri/include/libxslt/extensions.h
321
+ - ext/nokogiri/include/libxslt/extra.h
322
+ - ext/nokogiri/include/libxslt/functions.h
323
+ - ext/nokogiri/include/libxslt/imports.h
324
+ - ext/nokogiri/include/libxslt/keys.h
325
+ - ext/nokogiri/include/libxslt/namespaces.h
326
+ - ext/nokogiri/include/libxslt/numbersInternals.h
327
+ - ext/nokogiri/include/libxslt/pattern.h
328
+ - ext/nokogiri/include/libxslt/preproc.h
329
+ - ext/nokogiri/include/libxslt/security.h
330
+ - ext/nokogiri/include/libxslt/templates.h
331
+ - ext/nokogiri/include/libxslt/transform.h
332
+ - ext/nokogiri/include/libxslt/variables.h
333
+ - ext/nokogiri/include/libxslt/xslt.h
334
+ - ext/nokogiri/include/libxslt/xsltInternals.h
335
+ - ext/nokogiri/include/libxslt/xsltconfig.h
336
+ - ext/nokogiri/include/libxslt/xsltexports.h
337
+ - ext/nokogiri/include/libxslt/xsltlocale.h
338
+ - ext/nokogiri/include/libxslt/xsltutils.h
320
339
  - ext/nokogiri/nokogiri.c
321
340
  - ext/nokogiri/nokogiri.h
341
+ - ext/nokogiri/test_global_handlers.c
322
342
  - ext/nokogiri/xml_attr.c
323
343
  - ext/nokogiri/xml_attr.h
324
344
  - ext/nokogiri/xml_attribute_decl.c
@@ -376,10 +396,10 @@ files:
376
396
  - ext/nokogiri/xslt_stylesheet.c
377
397
  - ext/nokogiri/xslt_stylesheet.h
378
398
  - lib/nokogiri.rb
379
- - lib/nokogiri/2.4/nokogiri.so
380
399
  - lib/nokogiri/2.5/nokogiri.so
381
400
  - lib/nokogiri/2.6/nokogiri.so
382
401
  - lib/nokogiri/2.7/nokogiri.so
402
+ - lib/nokogiri/3.0/nokogiri.so
383
403
  - lib/nokogiri/css.rb
384
404
  - lib/nokogiri/css/node.rb
385
405
  - lib/nokogiri/css/parser.rb
@@ -403,6 +423,8 @@ files:
403
423
  - lib/nokogiri/jruby/dependencies.rb
404
424
  - lib/nokogiri/syntax_error.rb
405
425
  - lib/nokogiri/version.rb
426
+ - lib/nokogiri/version/constant.rb
427
+ - lib/nokogiri/version/info.rb
406
428
  - lib/nokogiri/xml.rb
407
429
  - lib/nokogiri/xml/attr.rb
408
430
  - lib/nokogiri/xml/attribute_decl.rb
@@ -452,10 +474,7 @@ metadata:
452
474
  documentation_uri: https://nokogiri.org/rdoc/index.html
453
475
  changelog_uri: https://nokogiri.org/CHANGELOG.html
454
476
  source_code_uri: https://github.com/sparklemotion/nokogiri
455
- post_install_message: 'Nokogiri is built with the packaged libraries: libxml2-2.9.10,
456
- libxslt-1.1.34, zlib-1.2.11, libiconv-1.15.
457
-
458
- '
477
+ post_install_message:
459
478
  rdoc_options:
460
479
  - "--main"
461
480
  - README.md
@@ -465,18 +484,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
465
484
  requirements:
466
485
  - - ">="
467
486
  - !ruby/object:Gem::Version
468
- version: '2.4'
487
+ version: '2.5'
469
488
  - - "<"
470
489
  - !ruby/object:Gem::Version
471
- version: 2.8.dev
490
+ version: 3.1.dev
472
491
  required_rubygems_version: !ruby/object:Gem::Requirement
473
492
  requirements:
474
- - - ">"
493
+ - - ">="
475
494
  - !ruby/object:Gem::Version
476
- version: 1.3.1
495
+ version: '0'
477
496
  requirements: []
478
- rubygems_version: 3.1.2
497
+ rubygems_version: 3.2.3
479
498
  signing_key:
480
499
  specification_version: 4
481
- summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
500
+ summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
482
501
  test_files: []