nokogiri 1.8.5 → 1.9.1

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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/ext/nokogiri/extconf.rb +10 -6
  4. data/ext/nokogiri/xml_attr.c +26 -21
  5. data/ext/nokogiri/xml_document.c +4 -1
  6. data/ext/nokogiri/xml_namespace.c +3 -3
  7. data/ext/nokogiri/xml_namespace.h +1 -2
  8. data/ext/nokogiri/xml_node.c +55 -15
  9. data/lib/nokogiri/css/parser.rb +61 -61
  10. data/lib/nokogiri/version.rb +1 -1
  11. data/lib/nokogiri/xml/document_fragment.rb +11 -0
  12. data/lib/nokogiri/xml/node.rb +12 -0
  13. data/lib/nokogiri/xml/node_set.rb +4 -8
  14. metadata +17 -153
  15. data/.autotest +0 -22
  16. data/.cross_rubies +0 -8
  17. data/.editorconfig +0 -17
  18. data/.gemtest +0 -0
  19. data/.travis.yml +0 -63
  20. data/CHANGELOG.md +0 -1368
  21. data/CONTRIBUTING.md +0 -42
  22. data/C_CODING_STYLE.rdoc +0 -33
  23. data/Gemfile +0 -23
  24. data/Gemfile-libxml-ruby +0 -3
  25. data/Manifest.txt +0 -370
  26. data/ROADMAP.md +0 -111
  27. data/Rakefile +0 -348
  28. data/SECURITY.md +0 -19
  29. data/STANDARD_RESPONSES.md +0 -47
  30. data/Y_U_NO_GEMSPEC.md +0 -155
  31. data/appveyor.yml +0 -29
  32. data/build_all +0 -44
  33. data/patches/sort-patches-by-date +0 -25
  34. data/suppressions/README.txt +0 -1
  35. data/suppressions/nokogiri_ruby-2.supp +0 -10
  36. data/tasks/test.rb +0 -100
  37. data/test/css/test_nthiness.rb +0 -226
  38. data/test/css/test_parser.rb +0 -386
  39. data/test/css/test_tokenizer.rb +0 -215
  40. data/test/css/test_xpath_visitor.rb +0 -96
  41. data/test/decorators/test_slop.rb +0 -23
  42. data/test/files/2ch.html +0 -108
  43. data/test/files/GH_1042.html +0 -18
  44. data/test/files/address_book.rlx +0 -12
  45. data/test/files/address_book.xml +0 -10
  46. data/test/files/atom.xml +0 -344
  47. data/test/files/bar/bar.xsd +0 -4
  48. data/test/files/bogus.xml +0 -0
  49. data/test/files/dont_hurt_em_why.xml +0 -422
  50. data/test/files/encoding.html +0 -82
  51. data/test/files/encoding.xhtml +0 -84
  52. data/test/files/exslt.xml +0 -8
  53. data/test/files/exslt.xslt +0 -35
  54. data/test/files/foo/foo.xsd +0 -4
  55. data/test/files/metacharset.html +0 -10
  56. data/test/files/namespace_pressure_test.xml +0 -1684
  57. data/test/files/noencoding.html +0 -47
  58. data/test/files/po.xml +0 -32
  59. data/test/files/po.xsd +0 -66
  60. data/test/files/saml/saml20assertion_schema.xsd +0 -283
  61. data/test/files/saml/saml20protocol_schema.xsd +0 -302
  62. data/test/files/saml/xenc_schema.xsd +0 -146
  63. data/test/files/saml/xmldsig_schema.xsd +0 -318
  64. data/test/files/shift_jis.html +0 -10
  65. data/test/files/shift_jis.xml +0 -5
  66. data/test/files/shift_jis_no_charset.html +0 -9
  67. data/test/files/slow-xpath.xml +0 -25509
  68. data/test/files/snuggles.xml +0 -3
  69. data/test/files/staff.dtd +0 -10
  70. data/test/files/staff.xml +0 -59
  71. data/test/files/staff.xslt +0 -32
  72. data/test/files/test_document_url/bar.xml +0 -2
  73. data/test/files/test_document_url/document.dtd +0 -4
  74. data/test/files/test_document_url/document.xml +0 -6
  75. data/test/files/tlm.html +0 -851
  76. data/test/files/to_be_xincluded.xml +0 -2
  77. data/test/files/valid_bar.xml +0 -2
  78. data/test/files/xinclude.xml +0 -4
  79. data/test/helper.rb +0 -271
  80. data/test/html/sax/test_parser.rb +0 -168
  81. data/test/html/sax/test_parser_context.rb +0 -46
  82. data/test/html/sax/test_parser_text.rb +0 -163
  83. data/test/html/sax/test_push_parser.rb +0 -87
  84. data/test/html/test_attributes.rb +0 -85
  85. data/test/html/test_builder.rb +0 -164
  86. data/test/html/test_document.rb +0 -712
  87. data/test/html/test_document_encoding.rb +0 -143
  88. data/test/html/test_document_fragment.rb +0 -310
  89. data/test/html/test_element_description.rb +0 -105
  90. data/test/html/test_named_characters.rb +0 -14
  91. data/test/html/test_node.rb +0 -212
  92. data/test/html/test_node_encoding.rb +0 -91
  93. data/test/namespaces/test_additional_namespaces_in_builder_doc.rb +0 -14
  94. data/test/namespaces/test_namespaces_aliased_default.rb +0 -24
  95. data/test/namespaces/test_namespaces_in_builder_doc.rb +0 -75
  96. data/test/namespaces/test_namespaces_in_cloned_doc.rb +0 -31
  97. data/test/namespaces/test_namespaces_in_created_doc.rb +0 -75
  98. data/test/namespaces/test_namespaces_in_parsed_doc.rb +0 -80
  99. data/test/namespaces/test_namespaces_preservation.rb +0 -31
  100. data/test/test_convert_xpath.rb +0 -135
  101. data/test/test_css_cache.rb +0 -47
  102. data/test/test_encoding_handler.rb +0 -48
  103. data/test/test_memory_leak.rb +0 -156
  104. data/test/test_nokogiri.rb +0 -138
  105. data/test/test_soap4r_sax.rb +0 -52
  106. data/test/test_xslt_transforms.rb +0 -314
  107. data/test/xml/node/test_save_options.rb +0 -28
  108. data/test/xml/node/test_subclass.rb +0 -44
  109. data/test/xml/sax/test_parser.rb +0 -402
  110. data/test/xml/sax/test_parser_context.rb +0 -115
  111. data/test/xml/sax/test_parser_text.rb +0 -202
  112. data/test/xml/sax/test_push_parser.rb +0 -265
  113. data/test/xml/test_attr.rb +0 -74
  114. data/test/xml/test_attribute_decl.rb +0 -86
  115. data/test/xml/test_builder.rb +0 -341
  116. data/test/xml/test_c14n.rb +0 -180
  117. data/test/xml/test_cdata.rb +0 -54
  118. data/test/xml/test_comment.rb +0 -40
  119. data/test/xml/test_document.rb +0 -982
  120. data/test/xml/test_document_encoding.rb +0 -31
  121. data/test/xml/test_document_fragment.rb +0 -298
  122. data/test/xml/test_dtd.rb +0 -187
  123. data/test/xml/test_dtd_encoding.rb +0 -31
  124. data/test/xml/test_element_content.rb +0 -56
  125. data/test/xml/test_element_decl.rb +0 -73
  126. data/test/xml/test_entity_decl.rb +0 -122
  127. data/test/xml/test_entity_reference.rb +0 -262
  128. data/test/xml/test_namespace.rb +0 -96
  129. data/test/xml/test_node.rb +0 -1325
  130. data/test/xml/test_node_attributes.rb +0 -115
  131. data/test/xml/test_node_encoding.rb +0 -75
  132. data/test/xml/test_node_inheritance.rb +0 -32
  133. data/test/xml/test_node_reparenting.rb +0 -592
  134. data/test/xml/test_node_set.rb +0 -809
  135. data/test/xml/test_parse_options.rb +0 -64
  136. data/test/xml/test_processing_instruction.rb +0 -30
  137. data/test/xml/test_reader.rb +0 -620
  138. data/test/xml/test_reader_encoding.rb +0 -134
  139. data/test/xml/test_relax_ng.rb +0 -60
  140. data/test/xml/test_schema.rb +0 -142
  141. data/test/xml/test_syntax_error.rb +0 -36
  142. data/test/xml/test_text.rb +0 -60
  143. data/test/xml/test_unparented_node.rb +0 -483
  144. data/test/xml/test_xinclude.rb +0 -83
  145. data/test/xml/test_xpath.rb +0 -470
  146. data/test/xslt/test_custom_functions.rb +0 -133
  147. data/test/xslt/test_exception_handling.rb +0 -37
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.5
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-10-05 00:00:00.000000000 Z
17
+ date: 2018-12-18 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: mini_portile2
@@ -22,14 +22,14 @@ dependencies:
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 2.3.0
25
+ version: 2.4.0
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 2.3.0
32
+ version: 2.4.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: hoe-bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.4'
53
+ version: '2.0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.4'
60
+ version: '2.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: hoe-gemspec
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -188,30 +188,36 @@ dependencies:
188
188
  name: rdoc
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - "~>"
191
+ - - ">="
192
192
  - !ruby/object:Gem::Version
193
193
  version: '4.0'
194
+ - - "<"
195
+ - !ruby/object:Gem::Version
196
+ version: '7'
194
197
  type: :development
195
198
  prerelease: false
196
199
  version_requirements: !ruby/object:Gem::Requirement
197
200
  requirements:
198
- - - "~>"
201
+ - - ">="
199
202
  - !ruby/object:Gem::Version
200
203
  version: '4.0'
204
+ - - "<"
205
+ - !ruby/object:Gem::Version
206
+ version: '7'
201
207
  - !ruby/object:Gem::Dependency
202
208
  name: hoe
203
209
  requirement: !ruby/object:Gem::Requirement
204
210
  requirements:
205
211
  - - "~>"
206
212
  - !ruby/object:Gem::Version
207
- version: '3.16'
213
+ version: '3.17'
208
214
  type: :development
209
215
  prerelease: false
210
216
  version_requirements: !ruby/object:Gem::Requirement
211
217
  requirements:
212
218
  - - "~>"
213
219
  - !ruby/object:Gem::Version
214
- version: '3.16'
220
+ version: '3.17'
215
221
  description: |-
216
222
  Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
217
223
  Nokogiri's many features is the ability to search documents via XPath
@@ -229,18 +235,9 @@ executables:
229
235
  extensions:
230
236
  - ext/nokogiri/extconf.rb
231
237
  extra_rdoc_files:
232
- - CHANGELOG.md
233
- - CONTRIBUTING.md
234
- - C_CODING_STYLE.rdoc
235
238
  - LICENSE-DEPENDENCIES.md
236
239
  - LICENSE.md
237
- - Manifest.txt
238
240
  - README.md
239
- - ROADMAP.md
240
- - SECURITY.md
241
- - STANDARD_RESPONSES.md
242
- - Y_U_NO_GEMSPEC.md
243
- - suppressions/README.txt
244
241
  - ext/nokogiri/html_document.c
245
242
  - ext/nokogiri/html_element_description.c
246
243
  - ext/nokogiri/html_entity_lookup.c
@@ -276,28 +273,10 @@ extra_rdoc_files:
276
273
  - ext/nokogiri/xml_xpath_context.c
277
274
  - ext/nokogiri/xslt_stylesheet.c
278
275
  files:
279
- - ".autotest"
280
- - ".cross_rubies"
281
- - ".editorconfig"
282
- - ".gemtest"
283
- - ".travis.yml"
284
- - CHANGELOG.md
285
- - CONTRIBUTING.md
286
- - C_CODING_STYLE.rdoc
287
- - Gemfile
288
- - Gemfile-libxml-ruby
289
276
  - LICENSE-DEPENDENCIES.md
290
277
  - LICENSE.md
291
- - Manifest.txt
292
278
  - README.md
293
- - ROADMAP.md
294
- - Rakefile
295
- - SECURITY.md
296
- - STANDARD_RESPONSES.md
297
- - Y_U_NO_GEMSPEC.md
298
- - appveyor.yml
299
279
  - bin/nokogiri
300
- - build_all
301
280
  - dependencies.yml
302
281
  - ext/nokogiri/depend
303
282
  - ext/nokogiri/extconf.rb
@@ -435,123 +414,8 @@ files:
435
414
  - patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
436
415
  - patches/libxml2/0002-Fix-nullptr-deref-with-XPath-logic-ops.patch
437
416
  - patches/libxml2/0003-Fix-infinite-loop-in-LZMA-decompression.patch
438
- - patches/sort-patches-by-date
439
417
  - ports/archives/libxml2-2.9.8.tar.gz
440
418
  - ports/archives/libxslt-1.1.32.tar.gz
441
- - suppressions/README.txt
442
- - suppressions/nokogiri_ruby-2.supp
443
- - tasks/test.rb
444
- - test/css/test_nthiness.rb
445
- - test/css/test_parser.rb
446
- - test/css/test_tokenizer.rb
447
- - test/css/test_xpath_visitor.rb
448
- - test/decorators/test_slop.rb
449
- - test/files/2ch.html
450
- - test/files/GH_1042.html
451
- - test/files/address_book.rlx
452
- - test/files/address_book.xml
453
- - test/files/atom.xml
454
- - test/files/bar/bar.xsd
455
- - test/files/bogus.xml
456
- - test/files/dont_hurt_em_why.xml
457
- - test/files/encoding.html
458
- - test/files/encoding.xhtml
459
- - test/files/exslt.xml
460
- - test/files/exslt.xslt
461
- - test/files/foo/foo.xsd
462
- - test/files/metacharset.html
463
- - test/files/namespace_pressure_test.xml
464
- - test/files/noencoding.html
465
- - test/files/po.xml
466
- - test/files/po.xsd
467
- - test/files/saml/saml20assertion_schema.xsd
468
- - test/files/saml/saml20protocol_schema.xsd
469
- - test/files/saml/xenc_schema.xsd
470
- - test/files/saml/xmldsig_schema.xsd
471
- - test/files/shift_jis.html
472
- - test/files/shift_jis.xml
473
- - test/files/shift_jis_no_charset.html
474
- - test/files/slow-xpath.xml
475
- - test/files/snuggles.xml
476
- - test/files/staff.dtd
477
- - test/files/staff.xml
478
- - test/files/staff.xslt
479
- - test/files/test_document_url/bar.xml
480
- - test/files/test_document_url/document.dtd
481
- - test/files/test_document_url/document.xml
482
- - test/files/tlm.html
483
- - test/files/to_be_xincluded.xml
484
- - test/files/valid_bar.xml
485
- - test/files/xinclude.xml
486
- - test/helper.rb
487
- - test/html/sax/test_parser.rb
488
- - test/html/sax/test_parser_context.rb
489
- - test/html/sax/test_parser_text.rb
490
- - test/html/sax/test_push_parser.rb
491
- - test/html/test_attributes.rb
492
- - test/html/test_builder.rb
493
- - test/html/test_document.rb
494
- - test/html/test_document_encoding.rb
495
- - test/html/test_document_fragment.rb
496
- - test/html/test_element_description.rb
497
- - test/html/test_named_characters.rb
498
- - test/html/test_node.rb
499
- - test/html/test_node_encoding.rb
500
- - test/namespaces/test_additional_namespaces_in_builder_doc.rb
501
- - test/namespaces/test_namespaces_aliased_default.rb
502
- - test/namespaces/test_namespaces_in_builder_doc.rb
503
- - test/namespaces/test_namespaces_in_cloned_doc.rb
504
- - test/namespaces/test_namespaces_in_created_doc.rb
505
- - test/namespaces/test_namespaces_in_parsed_doc.rb
506
- - test/namespaces/test_namespaces_preservation.rb
507
- - test/test_convert_xpath.rb
508
- - test/test_css_cache.rb
509
- - test/test_encoding_handler.rb
510
- - test/test_memory_leak.rb
511
- - test/test_nokogiri.rb
512
- - test/test_soap4r_sax.rb
513
- - test/test_xslt_transforms.rb
514
- - test/xml/node/test_save_options.rb
515
- - test/xml/node/test_subclass.rb
516
- - test/xml/sax/test_parser.rb
517
- - test/xml/sax/test_parser_context.rb
518
- - test/xml/sax/test_parser_text.rb
519
- - test/xml/sax/test_push_parser.rb
520
- - test/xml/test_attr.rb
521
- - test/xml/test_attribute_decl.rb
522
- - test/xml/test_builder.rb
523
- - test/xml/test_c14n.rb
524
- - test/xml/test_cdata.rb
525
- - test/xml/test_comment.rb
526
- - test/xml/test_document.rb
527
- - test/xml/test_document_encoding.rb
528
- - test/xml/test_document_fragment.rb
529
- - test/xml/test_dtd.rb
530
- - test/xml/test_dtd_encoding.rb
531
- - test/xml/test_element_content.rb
532
- - test/xml/test_element_decl.rb
533
- - test/xml/test_entity_decl.rb
534
- - test/xml/test_entity_reference.rb
535
- - test/xml/test_namespace.rb
536
- - test/xml/test_node.rb
537
- - test/xml/test_node_attributes.rb
538
- - test/xml/test_node_encoding.rb
539
- - test/xml/test_node_inheritance.rb
540
- - test/xml/test_node_reparenting.rb
541
- - test/xml/test_node_set.rb
542
- - test/xml/test_parse_options.rb
543
- - test/xml/test_processing_instruction.rb
544
- - test/xml/test_reader.rb
545
- - test/xml/test_reader_encoding.rb
546
- - test/xml/test_relax_ng.rb
547
- - test/xml/test_schema.rb
548
- - test/xml/test_syntax_error.rb
549
- - test/xml/test_text.rb
550
- - test/xml/test_unparented_node.rb
551
- - test/xml/test_xinclude.rb
552
- - test/xml/test_xpath.rb
553
- - test/xslt/test_custom_functions.rb
554
- - test/xslt/test_exception_handling.rb
555
419
  homepage:
556
420
  licenses:
557
421
  - MIT
@@ -574,7 +438,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
574
438
  version: '0'
575
439
  requirements: []
576
440
  rubyforge_project:
577
- rubygems_version: 2.7.7
441
+ rubygems_version: 2.7.8
578
442
  signing_key:
579
443
  specification_version: 4
580
444
  summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
data/.autotest DELETED
@@ -1,22 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- begin
4
- require 'autotest/fsevent'
5
- rescue LoadError
6
- end
7
-
8
- Autotest.add_hook :initialize do |at|
9
- at.add_exception /bundle$/
10
- at.add_exception /\.git/
11
- end
12
-
13
- Autotest.add_hook :run_command do |at|
14
- at.unit_diff = 'cat'
15
- system "rake compile"
16
- end
17
-
18
- Autotest.add_hook :ran_command do |at|
19
- File.open('/tmp/autotest.txt', 'wb') { |f|
20
- f.write(at.results.join)
21
- }
22
- end
data/.cross_rubies DELETED
@@ -1,8 +0,0 @@
1
- 2.5.0:i686-w64-mingw32
2
- 2.5.0:x86_64-w64-mingw32
3
- 2.4.0:i686-w64-mingw32
4
- 2.4.0:x86_64-w64-mingw32
5
- 2.3.0:i686-w64-mingw32
6
- 2.3.0:x86_64-w64-mingw32
7
- 2.2.2:i686-w64-mingw32
8
- 2.2.2:x86_64-w64-mingw32
data/.editorconfig DELETED
@@ -1,17 +0,0 @@
1
- root = true
2
-
3
- [**]
4
- end_of_line = lf
5
- insert_final_newline = true
6
-
7
- [**.rb]
8
- indent_style = space
9
- indent_size = 2
10
-
11
- [**.[ch]]
12
- indent_style = space
13
- indent_size = 2
14
-
15
- [**.java]
16
- indent_style = space
17
- indent_size = 4
data/.gemtest DELETED
File without changes
data/.travis.yml DELETED
@@ -1,63 +0,0 @@
1
- language: ruby
2
- dist: trusty
3
- group: beta
4
- sudo: required
5
-
6
- matrix:
7
- include:
8
- - os: linux
9
- rvm: 2.0
10
- - os: osx
11
- rvm: 2.0
12
- - os: linux
13
- rvm: 2.1
14
- - os: osx
15
- rvm: 2.1
16
- - os: linux
17
- rvm: 2.2.5
18
- - os: osx
19
- rvm: 2.2.5
20
- - os: linux
21
- rvm: 2.3.5
22
- - os: osx
23
- rvm: 2.3.5
24
- - os: linux
25
- rvm: 2.4.2
26
- env:
27
- - RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
28
- - os: osx
29
- rvm: 2.4.2
30
- env:
31
- - RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
32
- - os: linux
33
- rvm: ruby-head
34
- env:
35
- - RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
36
- - os: osx
37
- rvm: ruby-head
38
- env:
39
- - RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
40
- - os: linux
41
- rvm: jruby-1.7
42
- - os: linux
43
- rvm: jruby-9.1.15.0
44
- - os: linux
45
- rvm: rbx-3
46
- allow_failures:
47
- - rvm: ruby-head
48
- fast_finish: true
49
-
50
- # notifications:
51
- # irc:
52
- # channels:
53
- # - "chat.freenode.net#nokogiri"
54
- # on_success: always
55
- # on_failure: always
56
- # template:
57
- # - "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
58
- # skip_join: true
59
-
60
- addons:
61
- apt:
62
- packages:
63
- - haveged