nokogiri 1.3.2-x86-mingw32 → 1.3.3-x86-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 (68) hide show
  1. data/CHANGELOG.ja.rdoc +25 -4
  2. data/CHANGELOG.rdoc +20 -0
  3. data/Manifest.txt +2 -0
  4. data/Rakefile +67 -24
  5. data/ext/nokogiri/extconf.rb +16 -9
  6. data/ext/nokogiri/html_document.c +0 -2
  7. data/ext/nokogiri/nokogiri.c +2 -0
  8. data/ext/nokogiri/nokogiri.h +3 -4
  9. data/ext/nokogiri/xml_document.c +30 -23
  10. data/ext/nokogiri/xml_document.h +3 -2
  11. data/ext/nokogiri/xml_dtd.c +4 -0
  12. data/ext/nokogiri/xml_dtd.h +2 -0
  13. data/ext/nokogiri/xml_node.c +28 -9
  14. data/ext/nokogiri/xml_reader.c +0 -7
  15. data/ext/nokogiri/xml_relax_ng.c +7 -1
  16. data/ext/nokogiri/xml_sax_parser.c +2 -0
  17. data/lib/action-nokogiri.rb +2 -0
  18. data/lib/nokogiri.rb +9 -3
  19. data/lib/nokogiri/1.8/nokogiri.so +0 -0
  20. data/lib/nokogiri/1.9/nokogiri.so +0 -0
  21. data/lib/nokogiri/css/generated_tokenizer.rb +80 -82
  22. data/lib/nokogiri/css/tokenizer.rb +1 -5
  23. data/lib/nokogiri/decorators/hpricot/node_set.rb +1 -1
  24. data/lib/nokogiri/ffi/structs/common_node.rb +1 -1
  25. data/lib/nokogiri/ffi/structs/xml_document.rb +1 -1
  26. data/lib/nokogiri/ffi/xml/document.rb +15 -4
  27. data/lib/nokogiri/ffi/xml/node.rb +85 -63
  28. data/lib/nokogiri/ffi/xml/reader.rb +4 -15
  29. data/lib/nokogiri/ffi/xml/relax_ng.rb +3 -1
  30. data/lib/nokogiri/hpricot.rb +30 -0
  31. data/lib/nokogiri/html/document.rb +3 -1
  32. data/lib/nokogiri/html/document_fragment.rb +1 -1
  33. data/lib/nokogiri/html/sax/parser.rb +2 -1
  34. data/lib/nokogiri/version.rb +1 -1
  35. data/lib/nokogiri/xml/builder.rb +44 -1
  36. data/lib/nokogiri/xml/document.rb +8 -1
  37. data/lib/nokogiri/xml/document_fragment.rb +1 -1
  38. data/lib/nokogiri/xml/fragment_handler.rb +4 -7
  39. data/lib/nokogiri/xml/node.rb +9 -6
  40. data/lib/nokogiri/xml/node_set.rb +7 -0
  41. data/lib/nokogiri/xml/parse_options.rb +1 -1
  42. data/test/css/test_nthiness.rb +2 -3
  43. data/test/ffi/test_document.rb +6 -6
  44. data/test/files/2ch.html +108 -0
  45. data/test/files/shift_jis.xml +5 -0
  46. data/test/helper.rb +3 -0
  47. data/test/hpricot/test_alter.rb +9 -9
  48. data/test/hpricot/test_builder.rb +2 -2
  49. data/test/hpricot/test_parser.rb +70 -146
  50. data/test/hpricot/test_paths.rb +2 -2
  51. data/test/hpricot/test_preserved.rb +2 -2
  52. data/test/hpricot/test_xml.rb +3 -3
  53. data/test/html/sax/test_parser.rb +12 -0
  54. data/test/html/test_builder.rb +6 -4
  55. data/test/html/test_document.rb +7 -0
  56. data/test/html/test_document_encoding.rb +17 -0
  57. data/test/html/test_document_fragment.rb +12 -0
  58. data/test/html/test_node.rb +5 -2
  59. data/test/test_convert_xpath.rb +1 -50
  60. data/test/test_css_cache.rb +1 -12
  61. data/test/test_nokogiri.rb +7 -0
  62. data/test/test_reader.rb +14 -0
  63. data/test/xml/test_document.rb +44 -0
  64. data/test/xml/test_document_fragment.rb +12 -0
  65. data/test/xml/test_node.rb +10 -2
  66. data/test/xml/test_node_encoding.rb +23 -0
  67. data/test/xml/test_node_set.rb +10 -0
  68. metadata +48 -46
@@ -382,6 +382,16 @@ module Nokogiri
382
382
  assert ! employees.include?(no)
383
383
  end
384
384
 
385
+ def test_children
386
+ employees = @xml.search("//employee")
387
+ count = 0
388
+ employees.each do |employee|
389
+ count += employee.children.length
390
+ end
391
+ set = employees.children
392
+ assert_equal count, set.length
393
+ end
394
+
385
395
  end
386
396
  end
387
397
  end
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.3.2
4
+ version: 1.3.3
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Aaron Patterson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-22 00:00:00 -07:00
13
+ date: 2009-09-06 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.0
54
+ version: 2.3.3
55
55
  version:
56
56
  description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
57
57
  many features is the ability to search documents via XPath or CSS3 selectors.\n\n\
@@ -66,9 +66,9 @@ extensions: []
66
66
 
67
67
  extra_rdoc_files:
68
68
  - Manifest.txt
69
- - CHANGELOG.ja.rdoc
70
- - CHANGELOG.rdoc
71
69
  - README.ja.rdoc
70
+ - CHANGELOG.rdoc
71
+ - CHANGELOG.ja.rdoc
72
72
  - README.rdoc
73
73
  files:
74
74
  - .autotest
@@ -249,6 +249,7 @@ files:
249
249
  - test/css/test_tokenizer.rb
250
250
  - test/css/test_xpath_visitor.rb
251
251
  - test/ffi/test_document.rb
252
+ - test/files/2ch.html
252
253
  - test/files/address_book.rlx
253
254
  - test/files/address_book.xml
254
255
  - test/files/bar/bar.xsd
@@ -258,6 +259,7 @@ files:
258
259
  - test/files/foo/foo.xsd
259
260
  - test/files/po.xml
260
261
  - test/files/po.xsd
262
+ - test/files/shift_jis.xml
261
263
  - test/files/snuggles.xml
262
264
  - test/files/staff.xml
263
265
  - test/files/staff.xslt
@@ -326,11 +328,11 @@ files:
326
328
  - lib/nokogiri/nokogiri.rb
327
329
  - lib/nokogiri/1.8/nokogiri.so
328
330
  - lib/nokogiri/1.9/nokogiri.so
331
+ - ext/nokogiri/zlib1.dll
329
332
  - ext/nokogiri/iconv.dll
330
- - ext/nokogiri/libexslt.dll
331
333
  - ext/nokogiri/libxml2.dll
334
+ - ext/nokogiri/libexslt.dll
332
335
  - ext/nokogiri/libxslt.dll
333
- - ext/nokogiri/zlib1.dll
334
336
  has_rdoc: true
335
337
  homepage: http://nokogiri.org/
336
338
  licenses: []
@@ -357,61 +359,61 @@ required_rubygems_version: !ruby/object:Gem::Requirement
357
359
  requirements: []
358
360
 
359
361
  rubyforge_project: nokogiri
360
- rubygems_version: 1.3.4
362
+ rubygems_version: 1.3.5
361
363
  signing_key:
362
364
  specification_version: 3
363
365
  summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
364
366
  test_files:
365
- - test/css/test_nthiness.rb
366
- - test/css/test_parser.rb
367
- - test/css/test_tokenizer.rb
368
- - test/css/test_xpath_visitor.rb
369
- - test/ffi/test_document.rb
367
+ - test/test_nokogiri.rb
368
+ - test/test_convert_xpath.rb
369
+ - test/hpricot/test_xml.rb
370
370
  - test/hpricot/test_alter.rb
371
371
  - test/hpricot/test_builder.rb
372
- - test/hpricot/test_parser.rb
373
372
  - test/hpricot/test_paths.rb
373
+ - test/hpricot/test_parser.rb
374
374
  - test/hpricot/test_preserved.rb
375
- - test/hpricot/test_xml.rb
376
- - test/html/sax/test_parser.rb
375
+ - test/test_memory_leak.rb
376
+ - test/html/test_document_fragment.rb
377
+ - test/html/test_named_characters.rb
377
378
  - test/html/test_builder.rb
379
+ - test/html/test_node.rb
378
380
  - test/html/test_document.rb
381
+ - test/html/sax/test_parser.rb
379
382
  - test/html/test_document_encoding.rb
380
- - test/html/test_document_fragment.rb
381
383
  - test/html/test_element_description.rb
382
- - test/html/test_named_characters.rb
383
- - test/html/test_node.rb
384
- - test/test_convert_xpath.rb
385
- - test/test_css_cache.rb
386
- - test/test_gc.rb
387
- - test/test_memory_leak.rb
388
- - test/test_nokogiri.rb
389
- - test/test_reader.rb
390
- - test/test_xslt_transforms.rb
384
+ - test/xml/test_unparented_node.rb
385
+ - test/xml/test_document_fragment.rb
386
+ - test/xml/test_node_set.rb
387
+ - test/xml/test_dtd.rb
388
+ - test/xml/test_schema.rb
389
+ - test/xml/test_builder.rb
390
+ - test/xml/test_attr.rb
391
+ - test/xml/test_processing_instruction.rb
392
+ - test/xml/test_text.rb
393
+ - test/xml/test_node_attributes.rb
394
+ - test/xml/test_node.rb
395
+ - test/xml/test_reader_encoding.rb
396
+ - test/xml/test_comment.rb
391
397
  - test/xml/node/test_save_options.rb
392
398
  - test/xml/node/test_subclass.rb
393
- - test/xml/sax/test_parser.rb
394
- - test/xml/sax/test_push_parser.rb
395
- - test/xml/test_attr.rb
396
- - test/xml/test_builder.rb
399
+ - test/xml/test_xpath.rb
397
400
  - test/xml/test_cdata.rb
398
- - test/xml/test_comment.rb
401
+ - test/xml/test_dtd_encoding.rb
399
402
  - test/xml/test_document.rb
403
+ - test/xml/test_node_encoding.rb
404
+ - test/xml/test_relax_ng.rb
405
+ - test/xml/sax/test_push_parser.rb
406
+ - test/xml/sax/test_parser.rb
407
+ - test/xml/test_namespace.rb
400
408
  - test/xml/test_document_encoding.rb
401
- - test/xml/test_document_fragment.rb
402
- - test/xml/test_dtd.rb
403
- - test/xml/test_dtd_encoding.rb
404
409
  - test/xml/test_entity_reference.rb
405
- - test/xml/test_namespace.rb
406
- - test/xml/test_node.rb
407
- - test/xml/test_node_attributes.rb
408
- - test/xml/test_node_encoding.rb
409
- - test/xml/test_node_set.rb
410
410
  - test/xml/test_parse_options.rb
411
- - test/xml/test_processing_instruction.rb
412
- - test/xml/test_reader_encoding.rb
413
- - test/xml/test_relax_ng.rb
414
- - test/xml/test_schema.rb
415
- - test/xml/test_text.rb
416
- - test/xml/test_unparented_node.rb
417
- - test/xml/test_xpath.rb
411
+ - test/test_xslt_transforms.rb
412
+ - test/test_reader.rb
413
+ - test/ffi/test_document.rb
414
+ - test/css/test_xpath_visitor.rb
415
+ - test/css/test_nthiness.rb
416
+ - test/css/test_parser.rb
417
+ - test/css/test_tokenizer.rb
418
+ - test/test_css_cache.rb
419
+ - test/test_gc.rb