nokogiri 1.13.10-java → 1.14.0.rc1-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 (117) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +33 -0
  3. data/LICENSE-DEPENDENCIES.md +830 -509
  4. data/README.md +18 -11
  5. data/dependencies.yml +25 -7
  6. data/ext/java/nokogiri/Html4Document.java +2 -0
  7. data/ext/java/nokogiri/Html4ElementDescription.java +9 -9
  8. data/ext/java/nokogiri/Html4EntityLookup.java +14 -3
  9. data/ext/java/nokogiri/Html4SaxParserContext.java +2 -2
  10. data/ext/java/nokogiri/Html4SaxPushParser.java +3 -0
  11. data/ext/java/nokogiri/NokogiriService.java +1 -24
  12. data/ext/java/nokogiri/XmlAttr.java +1 -1
  13. data/ext/java/nokogiri/XmlAttributeDecl.java +2 -1
  14. data/ext/java/nokogiri/XmlCdata.java +2 -1
  15. data/ext/java/nokogiri/XmlComment.java +2 -1
  16. data/ext/java/nokogiri/XmlDocument.java +5 -6
  17. data/ext/java/nokogiri/XmlDocumentFragment.java +2 -1
  18. data/ext/java/nokogiri/XmlDtd.java +4 -3
  19. data/ext/java/nokogiri/XmlElement.java +1 -0
  20. data/ext/java/nokogiri/XmlElementContent.java +4 -1
  21. data/ext/java/nokogiri/XmlElementDecl.java +3 -1
  22. data/ext/java/nokogiri/XmlEntityDecl.java +2 -0
  23. data/ext/java/nokogiri/XmlEntityReference.java +1 -0
  24. data/ext/java/nokogiri/XmlNamespace.java +2 -0
  25. data/ext/java/nokogiri/XmlNode.java +39 -24
  26. data/ext/java/nokogiri/XmlNodeSet.java +10 -7
  27. data/ext/java/nokogiri/XmlProcessingInstruction.java +1 -0
  28. data/ext/java/nokogiri/XmlReader.java +4 -3
  29. data/ext/java/nokogiri/XmlRelaxng.java +1 -0
  30. data/ext/java/nokogiri/XmlSaxParserContext.java +1 -0
  31. data/ext/java/nokogiri/XmlSaxPushParser.java +3 -0
  32. data/ext/java/nokogiri/XmlSchema.java +4 -2
  33. data/ext/java/nokogiri/XmlSyntaxError.java +1 -0
  34. data/ext/java/nokogiri/XmlText.java +1 -0
  35. data/ext/java/nokogiri/XmlXpathContext.java +2 -0
  36. data/ext/java/nokogiri/XsltStylesheet.java +16 -13
  37. data/ext/java/nokogiri/internals/HtmlDomParserContext.java +3 -2
  38. data/ext/java/nokogiri/internals/NokogiriHandler.java +2 -2
  39. data/ext/java/nokogiri/internals/NokogiriHelpers.java +4 -5
  40. data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +3 -3
  41. data/ext/java/nokogiri/internals/ParserContext.java +2 -0
  42. data/ext/java/nokogiri/internals/ReaderNode.java +1 -1
  43. data/ext/java/nokogiri/internals/SaveContextVisitor.java +4 -2
  44. data/ext/java/nokogiri/internals/SchemaErrorHandler.java +2 -2
  45. data/ext/java/nokogiri/internals/XmlDomParserContext.java +2 -1
  46. data/ext/java/nokogiri/internals/c14n/Canonicalizer.java +1 -0
  47. data/ext/java/nokogiri/internals/dom2dtm/DOM2DTM.java +5 -4
  48. data/ext/nokogiri/extconf.rb +79 -20
  49. data/ext/nokogiri/gumbo.c +19 -9
  50. data/ext/nokogiri/html4_document.c +1 -1
  51. data/ext/nokogiri/html4_entity_lookup.c +1 -1
  52. data/ext/nokogiri/html4_sax_parser_context.c +0 -5
  53. data/ext/nokogiri/nokogiri.c +32 -51
  54. data/ext/nokogiri/xml_attribute_decl.c +1 -1
  55. data/ext/nokogiri/xml_cdata.c +1 -1
  56. data/ext/nokogiri/xml_document.c +16 -11
  57. data/ext/nokogiri/xml_element_content.c +2 -2
  58. data/ext/nokogiri/xml_element_decl.c +1 -1
  59. data/ext/nokogiri/xml_encoding_handler.c +2 -2
  60. data/ext/nokogiri/xml_namespace.c +38 -8
  61. data/ext/nokogiri/xml_node.c +286 -26
  62. data/ext/nokogiri/xml_node_set.c +0 -2
  63. data/ext/nokogiri/xml_reader.c +40 -20
  64. data/ext/nokogiri/xml_relax_ng.c +0 -2
  65. data/ext/nokogiri/xml_sax_parser.c +22 -16
  66. data/ext/nokogiri/xml_sax_parser_context.c +0 -5
  67. data/ext/nokogiri/xml_sax_push_parser.c +0 -2
  68. data/ext/nokogiri/xml_schema.c +0 -2
  69. data/ext/nokogiri/xml_xpath_context.c +87 -83
  70. data/ext/nokogiri/xslt_stylesheet.c +14 -13
  71. data/gumbo-parser/Makefile +10 -0
  72. data/lib/nokogiri/css/node.rb +2 -2
  73. data/lib/nokogiri/css/xpath_visitor.rb +3 -1
  74. data/lib/nokogiri/css.rb +6 -0
  75. data/lib/nokogiri/encoding_handler.rb +57 -0
  76. data/lib/nokogiri/extension.rb +3 -2
  77. data/lib/nokogiri/html4/document.rb +2 -121
  78. data/lib/nokogiri/html4/element_description_defaults.rb +6 -12
  79. data/lib/nokogiri/html4/encoding_reader.rb +121 -0
  80. data/lib/nokogiri/html4.rb +1 -0
  81. data/lib/nokogiri/html5/document.rb +113 -36
  82. data/lib/nokogiri/html5/document_fragment.rb +9 -2
  83. data/lib/nokogiri/html5/node.rb +3 -5
  84. data/lib/nokogiri/html5.rb +127 -216
  85. data/lib/nokogiri/jruby/dependencies.rb +1 -19
  86. data/lib/{isorelax.jar → nokogiri/jruby/isorelax/isorelax/20030108/isorelax-20030108.jar} +0 -0
  87. data/lib/nokogiri/jruby/net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar +0 -0
  88. data/lib/nokogiri/jruby/net/sourceforge/htmlunit/neko-htmlunit/2.63.0/neko-htmlunit-2.63.0.jar +0 -0
  89. data/lib/nokogiri/jruby/nokogiri_jars.rb +43 -0
  90. data/lib/nokogiri/jruby/nu/validator/jing/20200702VNU/jing-20200702VNU.jar +0 -0
  91. data/lib/nokogiri/jruby/org/nokogiri/nekodtd/0.1.11.noko1/nekodtd-0.1.11.noko1.jar +0 -0
  92. data/lib/{serializer.jar → nokogiri/jruby/xalan/serializer/2.7.2/serializer-2.7.2.jar} +0 -0
  93. data/lib/{xalan.jar → nokogiri/jruby/xalan/xalan/2.7.2/xalan-2.7.2.jar} +0 -0
  94. data/lib/{xercesImpl.jar → nokogiri/jruby/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar} +0 -0
  95. data/lib/{xml-apis.jar → nokogiri/jruby/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar} +0 -0
  96. data/lib/nokogiri/nokogiri.jar +0 -0
  97. data/lib/nokogiri/version/constant.rb +1 -1
  98. data/lib/nokogiri/version/info.rb +11 -10
  99. data/lib/nokogiri/xml/attr.rb +49 -0
  100. data/lib/nokogiri/xml/builder.rb +1 -1
  101. data/lib/nokogiri/xml/document.rb +102 -54
  102. data/lib/nokogiri/xml/document_fragment.rb +49 -6
  103. data/lib/nokogiri/xml/namespace.rb +42 -0
  104. data/lib/nokogiri/xml/node/save_options.rb +4 -2
  105. data/lib/nokogiri/xml/node.rb +190 -35
  106. data/lib/nokogiri/xml/node_set.rb +87 -9
  107. data/lib/nokogiri/xml/parse_options.rb +127 -48
  108. data/lib/nokogiri/xml/pp/node.rb +6 -4
  109. data/lib/nokogiri/xml/processing_instruction.rb +2 -1
  110. data/lib/nokogiri/xml/sax/parser.rb +2 -3
  111. data/lib/nokogiri/xslt.rb +1 -1
  112. data/lib/nokogiri.rb +3 -11
  113. metadata +62 -274
  114. data/ext/java/nokogiri/EncodingHandler.java +0 -111
  115. data/lib/jing.jar +0 -0
  116. data/lib/nekodtd.jar +0 -0
  117. data/lib/nekohtml.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d914c82f737a2a2f4bd31081920f50c5f4ae3f66abf67cdb823833328552074
4
- data.tar.gz: 0ed7dc9ba120c20c9722cfbc81f4768cf964f0bb5d0eea7bd5bb506bf1cefa1d
3
+ metadata.gz: 9d646eae0714e2ec344de67415635d6f9618e2d89ac7e835ab53315a1e275050
4
+ data.tar.gz: 02a5276cb008f8ee313f9f0a1ebb7447d127e49df6c97905f0ddc4eafc66dffc
5
5
  SHA512:
6
- metadata.gz: 23d0646f82b243b6147e05b834a0f6dcb35a21eb6d6856de1057cecc7c5d8c3ad05e82dc092091d00935237f12ff0042073dc3c0e8897edf412cbdc0fcedb118
7
- data.tar.gz: affd615796c9b2b21e20ee4c30252a07bac9cceded51451acefa5c9665c8ca8927c74d27ddf801999ab48351300a0c2760a9792c10faca24ff0235ef5958363b
6
+ metadata.gz: 6bee880b45b5a4d00914254eeeae19bd46992ed292ef7de88c9f76cdf862c58d8215689edb1283d8e5bae673577c7d4cfdcbe522786dad00a11c7caa2b579831
7
+ data.tar.gz: '0950ea654a06377679a491eca39d46e9e326b780fd7212a08ef94d4e7b80d21a727db6b502ca2320bd814adb85f1ea797187daf900d1847f1a33e719d1428e42'
data/Gemfile CHANGED
@@ -3,3 +3,36 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
+
7
+ group :development do
8
+ # bootstrapping
9
+ gem "bundler", "~> 2.3"
10
+ gem "rake", "= 13.0.6"
11
+
12
+ # building extensions
13
+ gem "rake-compiler", "= 1.2.1"
14
+ gem "rake-compiler-dock", "= 1.2.2"
15
+
16
+ # documentation
17
+ gem "hoe-markdown", "= 1.4.0"
18
+ gem "rdoc", "6.5.0"
19
+ gem "psych", "~> 4.0" # psych 5 isn't building in places yet https://github.com/ruby/setup-ruby/issues/409
20
+
21
+ # parser generator
22
+ gem "rexical", "= 1.0.7"
23
+
24
+ # tests
25
+ gem "minitest", "= 5.16.3"
26
+ gem "minitest-reporters", "= 1.5.0"
27
+ gem "ruby_memcheck", "1.2.0" unless RUBY_PLATFORM == "java"
28
+ gem "simplecov", "= 0.21.2"
29
+
30
+ # rubocop
31
+ if Gem::Requirement.new("~> 3.0").satisfied_by?(Gem::Version.new(RUBY_VERSION))
32
+ gem "rubocop", "1.40.0"
33
+ gem "rubocop-minitest", "0.25.0"
34
+ gem "rubocop-performance", "1.15.1"
35
+ gem "rubocop-rake", "= 0.6.0"
36
+ gem "rubocop-shopify", "= 2.9.0"
37
+ end
38
+ end