nokogiri 1.11.0.rc3-java → 1.11.4-java

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 (187) 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/dependencies.yml +12 -12
  7. data/ext/java/nokogiri/EncodingHandler.java +76 -89
  8. data/ext/java/nokogiri/HtmlDocument.java +135 -144
  9. data/ext/java/nokogiri/HtmlElementDescription.java +102 -117
  10. data/ext/java/nokogiri/HtmlEntityLookup.java +33 -60
  11. data/ext/java/nokogiri/HtmlSaxParserContext.java +218 -222
  12. data/ext/java/nokogiri/HtmlSaxPushParser.java +162 -169
  13. data/ext/java/nokogiri/NokogiriService.java +595 -556
  14. data/ext/java/nokogiri/XmlAttr.java +118 -126
  15. data/ext/java/nokogiri/XmlAttributeDecl.java +95 -106
  16. data/ext/java/nokogiri/XmlCdata.java +35 -58
  17. data/ext/java/nokogiri/XmlComment.java +46 -67
  18. data/ext/java/nokogiri/XmlDocument.java +645 -572
  19. data/ext/java/nokogiri/XmlDocumentFragment.java +125 -137
  20. data/ext/java/nokogiri/XmlDtd.java +448 -414
  21. data/ext/java/nokogiri/XmlElement.java +23 -48
  22. data/ext/java/nokogiri/XmlElementContent.java +343 -316
  23. data/ext/java/nokogiri/XmlElementDecl.java +124 -125
  24. data/ext/java/nokogiri/XmlEntityDecl.java +119 -127
  25. data/ext/java/nokogiri/XmlEntityReference.java +49 -72
  26. data/ext/java/nokogiri/XmlNamespace.java +175 -175
  27. data/ext/java/nokogiri/XmlNode.java +1843 -1622
  28. data/ext/java/nokogiri/XmlNodeSet.java +361 -331
  29. data/ext/java/nokogiri/XmlProcessingInstruction.java +47 -69
  30. data/ext/java/nokogiri/XmlReader.java +513 -450
  31. data/ext/java/nokogiri/XmlRelaxng.java +89 -101
  32. data/ext/java/nokogiri/XmlSaxParserContext.java +328 -310
  33. data/ext/java/nokogiri/XmlSaxPushParser.java +227 -220
  34. data/ext/java/nokogiri/XmlSchema.java +335 -242
  35. data/ext/java/nokogiri/XmlSyntaxError.java +113 -119
  36. data/ext/java/nokogiri/XmlText.java +55 -76
  37. data/ext/java/nokogiri/XmlXpathContext.java +242 -210
  38. data/ext/java/nokogiri/XsltStylesheet.java +280 -269
  39. data/ext/java/nokogiri/internals/ClosedStreamException.java +5 -2
  40. data/ext/java/nokogiri/internals/HtmlDomParserContext.java +201 -190
  41. data/ext/java/nokogiri/internals/IgnoreSchemaErrorsErrorHandler.java +17 -10
  42. data/ext/java/nokogiri/internals/NokogiriBlockingQueueInputStream.java +43 -16
  43. data/ext/java/nokogiri/internals/NokogiriDomParser.java +63 -80
  44. data/ext/java/nokogiri/internals/NokogiriEntityResolver.java +107 -88
  45. data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +27 -52
  46. data/ext/java/nokogiri/internals/NokogiriHandler.java +316 -286
  47. data/ext/java/nokogiri/internals/NokogiriHelpers.java +736 -652
  48. data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +184 -173
  49. data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +79 -89
  50. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +64 -79
  51. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +84 -99
  52. data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +48 -65
  53. data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +119 -78
  54. data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +34 -54
  55. data/ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java +23 -46
  56. data/ext/java/nokogiri/internals/NokogiriXsltErrorListener.java +55 -72
  57. data/ext/java/nokogiri/internals/ParserContext.java +206 -211
  58. data/ext/java/nokogiri/internals/ReaderNode.java +478 -403
  59. data/ext/java/nokogiri/internals/SaveContextVisitor.java +822 -739
  60. data/ext/java/nokogiri/internals/SchemaErrorHandler.java +31 -54
  61. data/ext/java/nokogiri/internals/XalanDTMManagerPatch.java +129 -123
  62. data/ext/java/nokogiri/internals/XmlDeclHandler.java +3 -34
  63. data/ext/java/nokogiri/internals/XmlDomParserContext.java +206 -207
  64. data/ext/java/nokogiri/internals/XmlSaxParser.java +22 -47
  65. data/ext/java/nokogiri/internals/c14n/AttrCompare.java +71 -68
  66. data/ext/java/nokogiri/internals/c14n/C14nHelper.java +137 -118
  67. data/ext/java/nokogiri/internals/c14n/CanonicalFilter.java +27 -21
  68. data/ext/java/nokogiri/internals/c14n/CanonicalizationException.java +74 -61
  69. data/ext/java/nokogiri/internals/c14n/Canonicalizer.java +230 -205
  70. data/ext/java/nokogiri/internals/c14n/Canonicalizer11.java +572 -547
  71. data/ext/java/nokogiri/internals/c14n/Canonicalizer11_OmitComments.java +17 -10
  72. data/ext/java/nokogiri/internals/c14n/Canonicalizer11_WithComments.java +17 -10
  73. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315.java +323 -302
  74. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315Excl.java +232 -219
  75. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclOmitComments.java +22 -15
  76. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclWithComments.java +23 -16
  77. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315OmitComments.java +23 -16
  78. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315WithComments.java +22 -15
  79. data/ext/java/nokogiri/internals/c14n/CanonicalizerBase.java +575 -545
  80. data/ext/java/nokogiri/internals/c14n/CanonicalizerPhysical.java +141 -120
  81. data/ext/java/nokogiri/internals/c14n/CanonicalizerSpi.java +39 -38
  82. data/ext/java/nokogiri/internals/c14n/Constants.java +13 -10
  83. data/ext/java/nokogiri/internals/c14n/ElementProxy.java +279 -247
  84. data/ext/java/nokogiri/internals/c14n/HelperNodeList.java +66 -53
  85. data/ext/java/nokogiri/internals/c14n/IgnoreAllErrorHandler.java +44 -37
  86. data/ext/java/nokogiri/internals/c14n/InclusiveNamespaces.java +135 -120
  87. data/ext/java/nokogiri/internals/c14n/InvalidCanonicalizerException.java +59 -48
  88. data/ext/java/nokogiri/internals/c14n/NameSpaceSymbTable.java +384 -334
  89. data/ext/java/nokogiri/internals/c14n/NodeFilter.java +25 -24
  90. data/ext/java/nokogiri/internals/c14n/UtfHelpper.java +151 -140
  91. data/ext/java/nokogiri/internals/c14n/XMLUtils.java +456 -423
  92. data/ext/java/nokogiri/internals/dom2dtm/DOM2DTM.java +1466 -1500
  93. data/ext/java/nokogiri/internals/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java +626 -574
  94. data/ext/nokogiri/depend +37 -358
  95. data/ext/nokogiri/extconf.rb +581 -374
  96. data/ext/nokogiri/html_document.c +78 -82
  97. data/ext/nokogiri/html_element_description.c +84 -71
  98. data/ext/nokogiri/html_entity_lookup.c +21 -16
  99. data/ext/nokogiri/html_sax_parser_context.c +69 -66
  100. data/ext/nokogiri/html_sax_push_parser.c +42 -34
  101. data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
  102. data/ext/nokogiri/nokogiri.c +192 -93
  103. data/ext/nokogiri/test_global_handlers.c +40 -0
  104. data/ext/nokogiri/xml_attr.c +15 -15
  105. data/ext/nokogiri/xml_attribute_decl.c +18 -18
  106. data/ext/nokogiri/xml_cdata.c +13 -18
  107. data/ext/nokogiri/xml_comment.c +19 -26
  108. data/ext/nokogiri/xml_document.c +246 -188
  109. data/ext/nokogiri/xml_document_fragment.c +13 -15
  110. data/ext/nokogiri/xml_dtd.c +54 -48
  111. data/ext/nokogiri/xml_element_content.c +30 -27
  112. data/ext/nokogiri/xml_element_decl.c +22 -22
  113. data/ext/nokogiri/xml_encoding_handler.c +17 -11
  114. data/ext/nokogiri/xml_entity_decl.c +32 -30
  115. data/ext/nokogiri/xml_entity_reference.c +16 -18
  116. data/ext/nokogiri/xml_namespace.c +56 -49
  117. data/ext/nokogiri/xml_node.c +371 -320
  118. data/ext/nokogiri/xml_node_set.c +168 -156
  119. data/ext/nokogiri/xml_processing_instruction.c +17 -19
  120. data/ext/nokogiri/xml_reader.c +191 -157
  121. data/ext/nokogiri/xml_relax_ng.c +52 -28
  122. data/ext/nokogiri/xml_sax_parser.c +118 -118
  123. data/ext/nokogiri/xml_sax_parser_context.c +103 -86
  124. data/ext/nokogiri/xml_sax_push_parser.c +36 -27
  125. data/ext/nokogiri/xml_schema.c +95 -47
  126. data/ext/nokogiri/xml_syntax_error.c +42 -21
  127. data/ext/nokogiri/xml_text.c +13 -17
  128. data/ext/nokogiri/xml_xpath_context.c +206 -123
  129. data/ext/nokogiri/xslt_stylesheet.c +158 -161
  130. data/lib/nokogiri.rb +3 -7
  131. data/lib/nokogiri/css/parser.rb +3 -3
  132. data/lib/nokogiri/css/parser.y +2 -2
  133. data/lib/nokogiri/css/xpath_visitor.rb +70 -42
  134. data/lib/nokogiri/extension.rb +26 -0
  135. data/lib/nokogiri/html/document.rb +12 -26
  136. data/lib/nokogiri/html/document_fragment.rb +15 -15
  137. data/lib/nokogiri/nokogiri.jar +0 -0
  138. data/lib/nokogiri/version.rb +2 -149
  139. data/lib/nokogiri/version/constant.rb +5 -0
  140. data/lib/nokogiri/version/info.rb +205 -0
  141. data/lib/nokogiri/xml/document.rb +91 -35
  142. data/lib/nokogiri/xml/document_fragment.rb +4 -6
  143. data/lib/nokogiri/xml/node.rb +89 -69
  144. data/lib/nokogiri/xml/parse_options.rb +6 -0
  145. data/lib/nokogiri/xml/reader.rb +2 -9
  146. data/lib/nokogiri/xml/relax_ng.rb +6 -2
  147. data/lib/nokogiri/xml/schema.rb +12 -4
  148. data/lib/nokogiri/xml/searchable.rb +3 -1
  149. data/lib/nokogiri/xml/xpath.rb +1 -3
  150. data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -1
  151. metadata +86 -177
  152. data/ext/nokogiri/html_document.h +0 -10
  153. data/ext/nokogiri/html_element_description.h +0 -10
  154. data/ext/nokogiri/html_entity_lookup.h +0 -8
  155. data/ext/nokogiri/html_sax_parser_context.h +0 -11
  156. data/ext/nokogiri/html_sax_push_parser.h +0 -9
  157. data/ext/nokogiri/nokogiri.h +0 -134
  158. data/ext/nokogiri/xml_attr.h +0 -9
  159. data/ext/nokogiri/xml_attribute_decl.h +0 -9
  160. data/ext/nokogiri/xml_cdata.h +0 -9
  161. data/ext/nokogiri/xml_comment.h +0 -9
  162. data/ext/nokogiri/xml_document.h +0 -23
  163. data/ext/nokogiri/xml_document_fragment.h +0 -10
  164. data/ext/nokogiri/xml_dtd.h +0 -10
  165. data/ext/nokogiri/xml_element_content.h +0 -10
  166. data/ext/nokogiri/xml_element_decl.h +0 -9
  167. data/ext/nokogiri/xml_encoding_handler.h +0 -8
  168. data/ext/nokogiri/xml_entity_decl.h +0 -10
  169. data/ext/nokogiri/xml_entity_reference.h +0 -9
  170. data/ext/nokogiri/xml_io.c +0 -63
  171. data/ext/nokogiri/xml_io.h +0 -11
  172. data/ext/nokogiri/xml_libxml2_hacks.c +0 -112
  173. data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
  174. data/ext/nokogiri/xml_namespace.h +0 -14
  175. data/ext/nokogiri/xml_node.h +0 -13
  176. data/ext/nokogiri/xml_node_set.h +0 -12
  177. data/ext/nokogiri/xml_processing_instruction.h +0 -9
  178. data/ext/nokogiri/xml_reader.h +0 -10
  179. data/ext/nokogiri/xml_relax_ng.h +0 -9
  180. data/ext/nokogiri/xml_sax_parser.h +0 -39
  181. data/ext/nokogiri/xml_sax_parser_context.h +0 -10
  182. data/ext/nokogiri/xml_sax_push_parser.h +0 -9
  183. data/ext/nokogiri/xml_schema.h +0 -9
  184. data/ext/nokogiri/xml_syntax_error.h +0 -13
  185. data/ext/nokogiri/xml_text.h +0 -9
  186. data/ext/nokogiri/xml_xpath_context.h +0 -10
  187. data/ext/nokogiri/xslt_stylesheet.h +0 -14
@@ -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.4
5
5
  platform: java
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-05-14 00:00:00.000000000 Z
18
21
  dependencies:
19
22
  - !ruby/object:Gem::Dependency
20
23
  requirement: !ruby/object:Gem::Requirement
21
24
  requirements:
22
25
  - - "~>"
23
26
  - !ruby/object:Gem::Version
24
- version: '0.34'
25
- name: concourse
27
+ version: '1.4'
28
+ name: racc
29
+ type: :runtime
26
30
  prerelease: false
27
- type: :development
28
31
  version_requirements: !ruby/object:Gem::Requirement
29
32
  requirements:
30
33
  - - "~>"
31
34
  - !ruby/object:Gem::Version
32
- version: '0.34'
35
+ version: '1.4'
33
36
  - !ruby/object:Gem::Dependency
34
37
  requirement: !ruby/object:Gem::Requirement
35
38
  requirements:
36
39
  - - "~>"
37
40
  - !ruby/object:Gem::Version
38
- version: '3.22'
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: 3.22.1
42
- name: hoe
43
- prerelease: false
41
+ version: '2.2'
42
+ name: bundler
44
43
  type: :development
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
- requirement: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - "~>"
57
- - !ruby/object:Gem::Version
58
- version: '1.2'
59
- name: hoe-bundler
60
44
  prerelease: false
61
- type: :development
62
45
  version_requirements: !ruby/object:Gem::Requirement
63
46
  requirements:
64
47
  - - "~>"
65
48
  - !ruby/object:Gem::Version
66
- version: '1.2'
49
+ version: '2.2'
67
50
  - !ruby/object:Gem::Dependency
68
51
  requirement: !ruby/object:Gem::Requirement
69
52
  requirements:
70
53
  - - "~>"
71
54
  - !ruby/object:Gem::Version
72
- version: '2.0'
73
- name: hoe-debugging
74
- prerelease: false
75
- type: :development
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '2.0'
81
- - !ruby/object:Gem::Dependency
82
- requirement: !ruby/object:Gem::Requirement
83
- requirements:
84
- - - "~>"
85
- - !ruby/object:Gem::Version
86
- version: '1.0'
87
- name: hoe-gemspec
88
- prerelease: false
55
+ version: '0.41'
56
+ name: concourse
89
57
  type: :development
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '1.0'
95
- - !ruby/object:Gem::Dependency
96
- requirement: !ruby/object:Gem::Requirement
97
- requirements:
98
- - - "~>"
99
- - !ruby/object:Gem::Version
100
- version: '1.6'
101
- name: hoe-git
102
58
  prerelease: false
103
- type: :development
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
  requirement: !ruby/object:Gem::Requirement
111
66
  requirements:
112
67
  - - "~>"
113
68
  - !ruby/object:Gem::Version
114
- version: '1.1'
69
+ version: '1.4'
115
70
  name: hoe-markdown
116
- prerelease: false
117
71
  type: :development
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
  requirement: !ruby/object:Gem::Requirement
125
80
  requirements:
@@ -127,8 +82,8 @@ dependencies:
127
82
  - !ruby/object:Gem::Version
128
83
  version: '5.8'
129
84
  name: minitest
130
- prerelease: false
131
85
  type: :development
86
+ prerelease: false
132
87
  version_requirements: !ruby/object:Gem::Requirement
133
88
  requirements:
134
89
  - - "~>"
@@ -139,15 +94,15 @@ dependencies:
139
94
  requirements:
140
95
  - - "~>"
141
96
  - !ruby/object:Gem::Version
142
- version: 1.4.14
143
- name: racc
144
- prerelease: false
97
+ version: '1.4'
98
+ name: minitest-reporters
145
99
  type: :development
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
  requirement: !ruby/object:Gem::Requirement
153
108
  requirements:
@@ -155,8 +110,8 @@ dependencies:
155
110
  - !ruby/object:Gem::Version
156
111
  version: '13.0'
157
112
  name: rake
158
- prerelease: false
159
113
  type: :development
114
+ prerelease: false
160
115
  version_requirements: !ruby/object:Gem::Requirement
161
116
  requirements:
162
117
  - - "~>"
@@ -169,8 +124,8 @@ dependencies:
169
124
  - !ruby/object:Gem::Version
170
125
  version: '1.1'
171
126
  name: rake-compiler
172
- prerelease: false
173
127
  type: :development
128
+ prerelease: false
174
129
  version_requirements: !ruby/object:Gem::Requirement
175
130
  requirements:
176
131
  - - "~>"
@@ -181,15 +136,15 @@ dependencies:
181
136
  requirements:
182
137
  - - "~>"
183
138
  - !ruby/object:Gem::Version
184
- version: '1.0'
139
+ version: '1.1'
185
140
  name: rake-compiler-dock
186
- prerelease: false
187
141
  type: :development
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
  requirement: !ruby/object:Gem::Requirement
195
150
  requirements:
@@ -197,8 +152,8 @@ dependencies:
197
152
  - !ruby/object:Gem::Version
198
153
  version: 1.0.5
199
154
  name: rexical
200
- prerelease: false
201
155
  type: :development
156
+ prerelease: false
202
157
  version_requirements: !ruby/object:Gem::Requirement
203
158
  requirements:
204
159
  - - "~>"
@@ -209,103 +164,89 @@ dependencies:
209
164
  requirements:
210
165
  - - "~>"
211
166
  - !ruby/object:Gem::Version
212
- version: '0.88'
167
+ version: '1.7'
213
168
  name: rubocop
214
- prerelease: false
215
169
  type: :development
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
  requirement: !ruby/object:Gem::Requirement
223
178
  requirements:
224
179
  - - "~>"
225
180
  - !ruby/object:Gem::Version
226
- version: 0.17.0
181
+ version: '0.20'
227
182
  name: simplecov
228
- prerelease: false
229
183
  type: :development
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
191
  requirement: !ruby/object:Gem::Requirement
237
192
  requirements:
238
- - - ">="
239
- - !ruby/object:Gem::Version
240
- version: '4.0'
241
- - - "<"
193
+ - - "~>"
242
194
  - !ruby/object:Gem::Version
243
- version: '7'
244
- name: rdoc
245
- prerelease: false
195
+ version: '0.9'
196
+ name: yard
246
197
  type: :development
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
@@ -401,73 +342,39 @@ files:
401
342
  - ext/nokogiri/depend
402
343
  - ext/nokogiri/extconf.rb
403
344
  - ext/nokogiri/html_document.c
404
- - ext/nokogiri/html_document.h
405
345
  - ext/nokogiri/html_element_description.c
406
- - ext/nokogiri/html_element_description.h
407
346
  - ext/nokogiri/html_entity_lookup.c
408
- - ext/nokogiri/html_entity_lookup.h
409
347
  - ext/nokogiri/html_sax_parser_context.c
410
- - ext/nokogiri/html_sax_parser_context.h
411
348
  - ext/nokogiri/html_sax_push_parser.c
412
- - ext/nokogiri/html_sax_push_parser.h
349
+ - ext/nokogiri/libxml2_backwards_compat.c
413
350
  - ext/nokogiri/nokogiri.c
414
- - ext/nokogiri/nokogiri.h
351
+ - ext/nokogiri/test_global_handlers.c
415
352
  - ext/nokogiri/xml_attr.c
416
- - ext/nokogiri/xml_attr.h
417
353
  - ext/nokogiri/xml_attribute_decl.c
418
- - ext/nokogiri/xml_attribute_decl.h
419
354
  - ext/nokogiri/xml_cdata.c
420
- - ext/nokogiri/xml_cdata.h
421
355
  - ext/nokogiri/xml_comment.c
422
- - ext/nokogiri/xml_comment.h
423
356
  - ext/nokogiri/xml_document.c
424
- - ext/nokogiri/xml_document.h
425
357
  - ext/nokogiri/xml_document_fragment.c
426
- - ext/nokogiri/xml_document_fragment.h
427
358
  - ext/nokogiri/xml_dtd.c
428
- - ext/nokogiri/xml_dtd.h
429
359
  - ext/nokogiri/xml_element_content.c
430
- - ext/nokogiri/xml_element_content.h
431
360
  - ext/nokogiri/xml_element_decl.c
432
- - ext/nokogiri/xml_element_decl.h
433
361
  - ext/nokogiri/xml_encoding_handler.c
434
- - ext/nokogiri/xml_encoding_handler.h
435
362
  - ext/nokogiri/xml_entity_decl.c
436
- - ext/nokogiri/xml_entity_decl.h
437
363
  - ext/nokogiri/xml_entity_reference.c
438
- - ext/nokogiri/xml_entity_reference.h
439
- - ext/nokogiri/xml_io.c
440
- - ext/nokogiri/xml_io.h
441
- - ext/nokogiri/xml_libxml2_hacks.c
442
- - ext/nokogiri/xml_libxml2_hacks.h
443
364
  - ext/nokogiri/xml_namespace.c
444
- - ext/nokogiri/xml_namespace.h
445
365
  - ext/nokogiri/xml_node.c
446
- - ext/nokogiri/xml_node.h
447
366
  - ext/nokogiri/xml_node_set.c
448
- - ext/nokogiri/xml_node_set.h
449
367
  - ext/nokogiri/xml_processing_instruction.c
450
- - ext/nokogiri/xml_processing_instruction.h
451
368
  - ext/nokogiri/xml_reader.c
452
- - ext/nokogiri/xml_reader.h
453
369
  - ext/nokogiri/xml_relax_ng.c
454
- - ext/nokogiri/xml_relax_ng.h
455
370
  - ext/nokogiri/xml_sax_parser.c
456
- - ext/nokogiri/xml_sax_parser.h
457
371
  - ext/nokogiri/xml_sax_parser_context.c
458
- - ext/nokogiri/xml_sax_parser_context.h
459
372
  - ext/nokogiri/xml_sax_push_parser.c
460
- - ext/nokogiri/xml_sax_push_parser.h
461
373
  - ext/nokogiri/xml_schema.c
462
- - ext/nokogiri/xml_schema.h
463
374
  - ext/nokogiri/xml_syntax_error.c
464
- - ext/nokogiri/xml_syntax_error.h
465
375
  - ext/nokogiri/xml_text.c
466
- - ext/nokogiri/xml_text.h
467
376
  - ext/nokogiri/xml_xpath_context.c
468
- - ext/nokogiri/xml_xpath_context.h
469
377
  - ext/nokogiri/xslt_stylesheet.c
470
- - ext/nokogiri/xslt_stylesheet.h
471
378
  - lib/isorelax.jar
472
379
  - lib/jing.jar
473
380
  - lib/nekodtd.jar
@@ -483,6 +390,7 @@ files:
483
390
  - lib/nokogiri/css/tokenizer.rex
484
391
  - lib/nokogiri/css/xpath_visitor.rb
485
392
  - lib/nokogiri/decorators/slop.rb
393
+ - lib/nokogiri/extension.rb
486
394
  - lib/nokogiri/html.rb
487
395
  - lib/nokogiri/html/builder.rb
488
396
  - lib/nokogiri/html/document.rb
@@ -497,6 +405,8 @@ files:
497
405
  - lib/nokogiri/nokogiri.jar
498
406
  - lib/nokogiri/syntax_error.rb
499
407
  - lib/nokogiri/version.rb
408
+ - lib/nokogiri/version/constant.rb
409
+ - lib/nokogiri/version/info.rb
500
410
  - lib/nokogiri/xml.rb
501
411
  - lib/nokogiri/xml/attr.rb
502
412
  - lib/nokogiri/xml/attribute_decl.rb
@@ -560,16 +470,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
560
470
  requirements:
561
471
  - - ">="
562
472
  - !ruby/object:Gem::Version
563
- version: 2.4.0
473
+ version: 2.5.0
564
474
  required_rubygems_version: !ruby/object:Gem::Requirement
565
475
  requirements:
566
- - - ">"
476
+ - - ">="
567
477
  - !ruby/object:Gem::Version
568
- version: 1.3.1
478
+ version: '0'
569
479
  requirements: []
570
- rubyforge_project:
571
- rubygems_version: 2.7.10
480
+ rubygems_version: 3.0.6
572
481
  signing_key:
573
482
  specification_version: 4
574
- summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
483
+ summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
575
484
  test_files: []