nokogiri 1.13.10 → 1.14.0.rc1

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 (86) 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/nokogiri/extconf.rb +79 -20
  7. data/ext/nokogiri/gumbo.c +19 -9
  8. data/ext/nokogiri/html4_document.c +1 -1
  9. data/ext/nokogiri/html4_entity_lookup.c +1 -1
  10. data/ext/nokogiri/html4_sax_parser_context.c +0 -5
  11. data/ext/nokogiri/nokogiri.c +32 -51
  12. data/ext/nokogiri/nokogiri.h +17 -14
  13. data/ext/nokogiri/xml_attribute_decl.c +1 -1
  14. data/ext/nokogiri/xml_cdata.c +1 -1
  15. data/ext/nokogiri/xml_document.c +16 -11
  16. data/ext/nokogiri/xml_element_content.c +2 -2
  17. data/ext/nokogiri/xml_element_decl.c +1 -1
  18. data/ext/nokogiri/xml_encoding_handler.c +2 -2
  19. data/ext/nokogiri/xml_namespace.c +38 -8
  20. data/ext/nokogiri/xml_node.c +286 -26
  21. data/ext/nokogiri/xml_node_set.c +0 -2
  22. data/ext/nokogiri/xml_reader.c +40 -20
  23. data/ext/nokogiri/xml_relax_ng.c +0 -2
  24. data/ext/nokogiri/xml_sax_parser.c +22 -16
  25. data/ext/nokogiri/xml_sax_parser_context.c +0 -5
  26. data/ext/nokogiri/xml_sax_push_parser.c +0 -2
  27. data/ext/nokogiri/xml_schema.c +0 -2
  28. data/ext/nokogiri/xml_xpath_context.c +87 -83
  29. data/ext/nokogiri/xslt_stylesheet.c +14 -13
  30. data/gumbo-parser/Makefile +10 -0
  31. data/gumbo-parser/src/attribute.h +1 -1
  32. data/gumbo-parser/src/error.c +1 -1
  33. data/gumbo-parser/src/error.h +1 -1
  34. data/gumbo-parser/src/foreign_attrs.c +2 -2
  35. data/gumbo-parser/src/{gumbo.h → nokogiri_gumbo.h} +1 -0
  36. data/gumbo-parser/src/parser.c +7 -4
  37. data/gumbo-parser/src/replacement.h +1 -1
  38. data/gumbo-parser/src/string_buffer.h +1 -1
  39. data/gumbo-parser/src/string_piece.c +1 -1
  40. data/gumbo-parser/src/svg_attrs.c +2 -2
  41. data/gumbo-parser/src/svg_tags.c +2 -2
  42. data/gumbo-parser/src/tag.c +2 -1
  43. data/gumbo-parser/src/tag_lookup.c +7 -7
  44. data/gumbo-parser/src/tag_lookup.gperf +1 -0
  45. data/gumbo-parser/src/tag_lookup.h +1 -1
  46. data/gumbo-parser/src/token_buffer.h +1 -1
  47. data/gumbo-parser/src/tokenizer.c +1 -1
  48. data/gumbo-parser/src/tokenizer.h +1 -1
  49. data/gumbo-parser/src/utf8.c +1 -1
  50. data/gumbo-parser/src/utf8.h +1 -1
  51. data/gumbo-parser/src/util.c +1 -3
  52. data/gumbo-parser/src/util.h +4 -0
  53. data/gumbo-parser/src/vector.h +1 -1
  54. data/lib/nokogiri/css/node.rb +2 -2
  55. data/lib/nokogiri/css/xpath_visitor.rb +3 -1
  56. data/lib/nokogiri/css.rb +6 -0
  57. data/lib/nokogiri/encoding_handler.rb +57 -0
  58. data/lib/nokogiri/extension.rb +3 -2
  59. data/lib/nokogiri/html4/document.rb +2 -121
  60. data/lib/nokogiri/html4/element_description_defaults.rb +6 -12
  61. data/lib/nokogiri/html4/encoding_reader.rb +121 -0
  62. data/lib/nokogiri/html4.rb +1 -0
  63. data/lib/nokogiri/html5/document.rb +113 -36
  64. data/lib/nokogiri/html5/document_fragment.rb +9 -2
  65. data/lib/nokogiri/html5/node.rb +3 -5
  66. data/lib/nokogiri/html5.rb +127 -216
  67. data/lib/nokogiri/jruby/dependencies.rb +1 -19
  68. data/lib/nokogiri/jruby/nokogiri_jars.rb +43 -0
  69. data/lib/nokogiri/version/constant.rb +1 -1
  70. data/lib/nokogiri/version/info.rb +11 -10
  71. data/lib/nokogiri/xml/attr.rb +49 -0
  72. data/lib/nokogiri/xml/builder.rb +1 -1
  73. data/lib/nokogiri/xml/document.rb +102 -54
  74. data/lib/nokogiri/xml/document_fragment.rb +49 -6
  75. data/lib/nokogiri/xml/namespace.rb +42 -0
  76. data/lib/nokogiri/xml/node/save_options.rb +4 -2
  77. data/lib/nokogiri/xml/node.rb +190 -35
  78. data/lib/nokogiri/xml/node_set.rb +87 -9
  79. data/lib/nokogiri/xml/parse_options.rb +127 -48
  80. data/lib/nokogiri/xml/pp/node.rb +6 -4
  81. data/lib/nokogiri/xml/processing_instruction.rb +2 -1
  82. data/lib/nokogiri/xml/sax/parser.rb +2 -3
  83. data/lib/nokogiri/xslt.rb +1 -1
  84. data/lib/nokogiri.rb +3 -11
  85. metadata +11 -247
  86. data/patches/libxml2/0005-avoid-isnan-isinf.patch +0 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b12e9ae2469a3499823f032a608dc8a65dbdfcc9a2629027b737e1ca9aeba79
4
- data.tar.gz: b70bcac2319167453437e543615739f5c3479c4a7b9f6d316397c93fdb7a4cef
3
+ metadata.gz: '09873d6e60c63141c0912c6f4ffe9b40d8273015e1d7414392426eb85e4d2d84'
4
+ data.tar.gz: 27239b75e5432b93e6e52b3d16f17bd61e3ca01e127f37814aa76a5e47eadce4
5
5
  SHA512:
6
- metadata.gz: 346846e93af1d6bef801eeef1112bed37aac706ed3e4ee1939fde805a7d4dcefe3a2d9c47406f02467c882a51438c2d1d8408be1dd4aca242ca4001a822d749a
7
- data.tar.gz: 2f997ae7bc5d4e51ea54833fde488b2c0be8d3fca0e314685ac68d9259366fe4d1f783da6cc10da8f143c96f1f1f42be1fd07fd3960a45baa68dfb7059262800
6
+ metadata.gz: becc668fa783bdec0b08de99fe8a11a0f0c48803dc9af3e6e908b438563316da1961462012a438d1533b88baf3272e31cd284fd3bc3c140d9a7ae34d5605069e
7
+ data.tar.gz: 8c750d733ef929fe860fd37b0d8909a16de6092674556e01f3072a2c589453f2b0fd98f57c531f3d882f1533f2d4bb0e71281a8f3347237fa05b2689385c5693
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