nokogiri 1.6.1-java → 1.6.2-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 (137) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +17 -0
  3. data/.travis.yml +6 -6
  4. data/CHANGELOG.ja.rdoc +61 -8
  5. data/CHANGELOG.rdoc +58 -3
  6. data/Gemfile +3 -3
  7. data/Manifest.txt +57 -1
  8. data/README.ja.rdoc +22 -17
  9. data/README.rdoc +23 -18
  10. data/ROADMAP.md +1 -2
  11. data/Rakefile +162 -58
  12. data/build_all +56 -31
  13. data/dependencies.yml +3 -3
  14. data/ext/java/nokogiri/NokogiriService.java +9 -5
  15. data/ext/java/nokogiri/XmlDocument.java +95 -54
  16. data/ext/java/nokogiri/XmlNode.java +93 -42
  17. data/ext/java/nokogiri/XmlReader.java +1 -1
  18. data/ext/java/nokogiri/XmlSaxParserContext.java +33 -0
  19. data/ext/java/nokogiri/XmlSchema.java +4 -2
  20. data/ext/java/nokogiri/XmlXpathContext.java +118 -76
  21. data/ext/java/nokogiri/internals/IgnoreSchemaErrorsErrorHandler.java +20 -0
  22. data/ext/java/nokogiri/internals/NokogiriHandler.java +3 -10
  23. data/ext/java/nokogiri/internals/NokogiriHelpers.java +40 -23
  24. data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +59 -54
  25. data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +1 -1
  26. data/ext/java/nokogiri/internals/ParserContext.java +1 -4
  27. data/ext/java/nokogiri/internals/SaveContextVisitor.java +6 -2
  28. data/ext/java/nokogiri/internals/c14n/AttrCompare.java +119 -0
  29. data/ext/java/nokogiri/internals/c14n/C14nHelper.java +159 -0
  30. data/ext/java/nokogiri/internals/c14n/CanonicalFilter.java +37 -0
  31. data/ext/java/nokogiri/internals/c14n/CanonicalizationException.java +93 -0
  32. data/ext/java/nokogiri/internals/c14n/Canonicalizer.java +252 -0
  33. data/ext/java/nokogiri/internals/c14n/Canonicalizer11.java +639 -0
  34. data/ext/java/nokogiri/internals/c14n/Canonicalizer11_OmitComments.java +38 -0
  35. data/ext/java/nokogiri/internals/c14n/Canonicalizer11_WithComments.java +38 -0
  36. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315.java +368 -0
  37. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315Excl.java +295 -0
  38. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclOmitComments.java +40 -0
  39. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclWithComments.java +44 -0
  40. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315OmitComments.java +44 -0
  41. data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315WithComments.java +43 -0
  42. data/ext/java/nokogiri/internals/c14n/CanonicalizerBase.java +630 -0
  43. data/ext/java/nokogiri/internals/c14n/CanonicalizerPhysical.java +173 -0
  44. data/ext/java/nokogiri/internals/c14n/CanonicalizerSpi.java +76 -0
  45. data/ext/java/nokogiri/internals/c14n/Constants.java +42 -0
  46. data/ext/java/nokogiri/internals/c14n/ElementProxy.java +293 -0
  47. data/ext/java/nokogiri/internals/c14n/HelperNodeList.java +93 -0
  48. data/ext/java/nokogiri/internals/c14n/IgnoreAllErrorHandler.java +79 -0
  49. data/ext/java/nokogiri/internals/c14n/InclusiveNamespaces.java +165 -0
  50. data/ext/java/nokogiri/internals/c14n/InvalidCanonicalizerException.java +76 -0
  51. data/ext/java/nokogiri/internals/c14n/NameSpaceSymbTable.java +402 -0
  52. data/ext/java/nokogiri/internals/c14n/NodeFilter.java +51 -0
  53. data/ext/java/nokogiri/internals/c14n/UtfHelpper.java +179 -0
  54. data/ext/java/nokogiri/internals/c14n/XMLUtils.java +507 -0
  55. data/ext/nokogiri/extconf.rb +429 -128
  56. data/ext/nokogiri/html_document.c +2 -2
  57. data/ext/nokogiri/nokogiri.c +6 -1
  58. data/ext/nokogiri/xml_document.c +5 -4
  59. data/ext/nokogiri/xml_node.c +76 -7
  60. data/ext/nokogiri/xml_reader.c +1 -1
  61. data/ext/nokogiri/xml_sax_parser_context.c +40 -0
  62. data/ext/nokogiri/xml_syntax_error.c +10 -5
  63. data/ext/nokogiri/xml_syntax_error.h +1 -1
  64. data/ext/nokogiri/xml_xpath_context.c +2 -14
  65. data/ext/nokogiri/xslt_stylesheet.c +1 -1
  66. data/lib/nokogiri.rb +31 -22
  67. data/lib/nokogiri/css/node.rb +0 -50
  68. data/lib/nokogiri/css/parser.rb +213 -218
  69. data/lib/nokogiri/css/parser.y +21 -30
  70. data/lib/nokogiri/css/xpath_visitor.rb +62 -14
  71. data/lib/nokogiri/html/document.rb +97 -18
  72. data/lib/nokogiri/html/sax/parser.rb +2 -2
  73. data/lib/nokogiri/nokogiri.jar +0 -0
  74. data/lib/nokogiri/version.rb +1 -1
  75. data/lib/nokogiri/xml/builder.rb +1 -1
  76. data/lib/nokogiri/xml/document.rb +2 -2
  77. data/lib/nokogiri/xml/dtd.rb +10 -0
  78. data/lib/nokogiri/xml/node.rb +26 -1
  79. data/lib/nokogiri/xml/sax/parser.rb +1 -1
  80. data/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch +265 -0
  81. data/ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch +102 -0
  82. data/ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch +26 -0
  83. data/ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch +26 -0
  84. data/ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch +158 -0
  85. data/ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch +78 -0
  86. data/ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch +480 -0
  87. data/ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch +315 -0
  88. data/ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch +37 -0
  89. data/ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch +222 -0
  90. data/ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch +53 -0
  91. data/ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch +60 -0
  92. data/ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch +42 -0
  93. data/ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch +164 -0
  94. data/ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch +587 -0
  95. data/ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch +80 -0
  96. data/ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch +185 -0
  97. data/ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch +126 -0
  98. data/ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch +25 -0
  99. data/ports/patches/libxslt/0014-Fix-for-bug-436589.patch +43 -0
  100. data/ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch +41 -0
  101. data/suppressions/README.txt +1 -0
  102. data/suppressions/nokogiri_ree-1.8.7.358.supp +61 -0
  103. data/suppressions/nokogiri_ruby-1.8.7.370.supp +0 -0
  104. data/suppressions/nokogiri_ruby-1.9.2.320.supp +28 -0
  105. data/suppressions/nokogiri_ruby-1.9.3.327.supp +28 -0
  106. data/test/css/test_nthiness.rb +65 -2
  107. data/test/css/test_parser.rb +27 -10
  108. data/test/css/test_tokenizer.rb +1 -1
  109. data/test/css/test_xpath_visitor.rb +6 -1
  110. data/test/files/atom.xml +344 -0
  111. data/test/files/shift_jis_no_charset.html +9 -0
  112. data/test/helper.rb +10 -0
  113. data/test/html/test_document.rb +74 -7
  114. data/test/html/test_document_encoding.rb +10 -0
  115. data/test/html/test_document_fragment.rb +9 -3
  116. data/test/namespaces/test_namespaces_aliased_default.rb +24 -0
  117. data/test/namespaces/test_namespaces_in_cloned_doc.rb +31 -0
  118. data/test/namespaces/test_namespaces_preservation.rb +31 -0
  119. data/test/test_nokogiri.rb +6 -0
  120. data/test/test_reader.rb +7 -4
  121. data/test/test_xslt_transforms.rb +25 -0
  122. data/test/xml/sax/test_parser.rb +16 -0
  123. data/test/xml/sax/test_parser_context.rb +9 -0
  124. data/test/xml/test_builder.rb +9 -0
  125. data/test/xml/test_c14n.rb +12 -2
  126. data/test/xml/test_document.rb +66 -0
  127. data/test/xml/test_document_fragment.rb +5 -0
  128. data/test/xml/test_dtd.rb +84 -0
  129. data/test/xml/test_entity_reference.rb +3 -3
  130. data/test/xml/test_node.rb +21 -3
  131. data/test/xml/test_node_attributes.rb +17 -0
  132. data/test/xml/test_schema.rb +26 -0
  133. data/test/xml/test_text.rb +15 -0
  134. data/test/xml/test_xpath.rb +87 -0
  135. data/test_all +3 -3
  136. metadata +119 -68
  137. data/tasks/cross_compile.rb +0 -134
metadata CHANGED
@@ -1,32 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson
8
8
  - Mike Dalessio
9
9
  - Yoko Harada
10
10
  - Tim Elliott
11
+ - Akinori MUSHA
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2013-12-14 00:00:00.000000000 Z
15
+ date: 2014-05-12 00:00:00.000000000 Z
15
16
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: mini_portile
18
- version_requirements: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: 0.5.0
23
- requirement: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- version: 0.5.0
28
- prerelease: false
29
- type: :runtime
30
17
  - !ruby/object:Gem::Dependency
31
18
  name: rdoc
32
19
  version_requirements: !ruby/object:Gem::Requirement
@@ -131,12 +118,12 @@ dependencies:
131
118
  requirements:
132
119
  - - ~>
133
120
  - !ruby/object:Gem::Version
134
- version: 0.8.0
121
+ version: 0.9.2
135
122
  requirement: !ruby/object:Gem::Requirement
136
123
  requirements:
137
124
  - - ~>
138
125
  - !ruby/object:Gem::Version
139
- version: 0.8.0
126
+ version: 0.9.2
140
127
  prerelease: false
141
128
  type: :development
142
129
  - !ruby/object:Gem::Dependency
@@ -192,6 +179,7 @@ email:
192
179
  - mike.dalessio@gmail.com
193
180
  - yokolet@gmail.com
194
181
  - tle@holymonkey.com
182
+ - knu@idaemons.org
195
183
  executables:
196
184
  - nokogiri
197
185
  extensions: []
@@ -205,6 +193,7 @@ extra_rdoc_files:
205
193
  - ROADMAP.md
206
194
  - STANDARD_RESPONSES.md
207
195
  - Y_U_NO_GEMSPEC.md
196
+ - suppressions/README.txt
208
197
  - ext/nokogiri/html_document.c
209
198
  - ext/nokogiri/html_element_description.c
210
199
  - ext/nokogiri/html_entity_lookup.c
@@ -241,6 +230,7 @@ extra_rdoc_files:
241
230
  - ext/nokogiri/xslt_stylesheet.c
242
231
  files:
243
232
  - .autotest
233
+ - .editorconfig
244
234
  - .gemtest
245
235
  - .travis.yml
246
236
  - CHANGELOG.ja.rdoc
@@ -290,6 +280,7 @@ files:
290
280
  - ext/java/nokogiri/XsltStylesheet.java
291
281
  - ext/java/nokogiri/internals/ClosedStreamException.java
292
282
  - ext/java/nokogiri/internals/HtmlDomParserContext.java
283
+ - ext/java/nokogiri/internals/IgnoreSchemaErrorsErrorHandler.java
293
284
  - ext/java/nokogiri/internals/NokogiriBlockingQueueInputStream.java
294
285
  - ext/java/nokogiri/internals/NokogiriDocumentCache.java
295
286
  - ext/java/nokogiri/internals/NokogiriDomParser.java
@@ -316,6 +307,33 @@ files:
316
307
  - ext/java/nokogiri/internals/XmlDomParserContext.java
317
308
  - ext/java/nokogiri/internals/XmlSaxParser.java
318
309
  - ext/java/nokogiri/internals/XsltExtensionFunction.java
310
+ - ext/java/nokogiri/internals/c14n/AttrCompare.java
311
+ - ext/java/nokogiri/internals/c14n/C14nHelper.java
312
+ - ext/java/nokogiri/internals/c14n/CanonicalFilter.java
313
+ - ext/java/nokogiri/internals/c14n/CanonicalizationException.java
314
+ - ext/java/nokogiri/internals/c14n/Canonicalizer.java
315
+ - ext/java/nokogiri/internals/c14n/Canonicalizer11.java
316
+ - ext/java/nokogiri/internals/c14n/Canonicalizer11_OmitComments.java
317
+ - ext/java/nokogiri/internals/c14n/Canonicalizer11_WithComments.java
318
+ - ext/java/nokogiri/internals/c14n/Canonicalizer20010315.java
319
+ - ext/java/nokogiri/internals/c14n/Canonicalizer20010315Excl.java
320
+ - ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclOmitComments.java
321
+ - ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclWithComments.java
322
+ - ext/java/nokogiri/internals/c14n/Canonicalizer20010315OmitComments.java
323
+ - ext/java/nokogiri/internals/c14n/Canonicalizer20010315WithComments.java
324
+ - ext/java/nokogiri/internals/c14n/CanonicalizerBase.java
325
+ - ext/java/nokogiri/internals/c14n/CanonicalizerPhysical.java
326
+ - ext/java/nokogiri/internals/c14n/CanonicalizerSpi.java
327
+ - ext/java/nokogiri/internals/c14n/Constants.java
328
+ - ext/java/nokogiri/internals/c14n/ElementProxy.java
329
+ - ext/java/nokogiri/internals/c14n/HelperNodeList.java
330
+ - ext/java/nokogiri/internals/c14n/IgnoreAllErrorHandler.java
331
+ - ext/java/nokogiri/internals/c14n/InclusiveNamespaces.java
332
+ - ext/java/nokogiri/internals/c14n/InvalidCanonicalizerException.java
333
+ - ext/java/nokogiri/internals/c14n/NameSpaceSymbTable.java
334
+ - ext/java/nokogiri/internals/c14n/NodeFilter.java
335
+ - ext/java/nokogiri/internals/c14n/UtfHelpper.java
336
+ - ext/java/nokogiri/internals/c14n/XMLUtils.java
319
337
  - ext/nokogiri/depend
320
338
  - ext/nokogiri/extconf.rb
321
339
  - ext/nokogiri/html_document.c
@@ -411,6 +429,7 @@ files:
411
429
  - lib/nokogiri/html/sax/parser.rb
412
430
  - lib/nokogiri/html/sax/parser_context.rb
413
431
  - lib/nokogiri/html/sax/push_parser.rb
432
+ - lib/nokogiri/nokogiri.jar
414
433
  - lib/nokogiri/syntax_error.rb
415
434
  - lib/nokogiri/version.rb
416
435
  - lib/nokogiri/xml.rb
@@ -452,7 +471,32 @@ files:
452
471
  - lib/nokogiri/xslt/stylesheet.rb
453
472
  - lib/xercesImpl.jar
454
473
  - lib/xsd/xmlparser/nokogiri.rb
455
- - tasks/cross_compile.rb
474
+ - ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch
475
+ - ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch
476
+ - ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch
477
+ - ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch
478
+ - ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch
479
+ - ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch
480
+ - ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
481
+ - ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch
482
+ - ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch
483
+ - ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch
484
+ - ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
485
+ - ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch
486
+ - ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch
487
+ - ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
488
+ - ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch
489
+ - ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch
490
+ - ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch
491
+ - ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
492
+ - ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
493
+ - ports/patches/libxslt/0014-Fix-for-bug-436589.patch
494
+ - ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch
495
+ - suppressions/README.txt
496
+ - suppressions/nokogiri_ree-1.8.7.358.supp
497
+ - suppressions/nokogiri_ruby-1.8.7.370.supp
498
+ - suppressions/nokogiri_ruby-1.9.2.320.supp
499
+ - suppressions/nokogiri_ruby-1.9.3.327.supp
456
500
  - tasks/nokogiri.org.rb
457
501
  - tasks/test.rb
458
502
  - test/css/test_nthiness.rb
@@ -463,6 +507,7 @@ files:
463
507
  - test/files/2ch.html
464
508
  - test/files/address_book.rlx
465
509
  - test/files/address_book.xml
510
+ - test/files/atom.xml
466
511
  - test/files/bar/bar.xsd
467
512
  - test/files/bogus.xml
468
513
  - test/files/dont_hurt_em_why.xml
@@ -481,6 +526,7 @@ files:
481
526
  - test/files/saml/xmldsig_schema.xsd
482
527
  - test/files/shift_jis.html
483
528
  - test/files/shift_jis.xml
529
+ - test/files/shift_jis_no_charset.html
484
530
  - test/files/snuggles.xml
485
531
  - test/files/staff.dtd
486
532
  - test/files/staff.xml
@@ -504,9 +550,12 @@ files:
504
550
  - test/html/test_node.rb
505
551
  - test/html/test_node_encoding.rb
506
552
  - test/namespaces/test_additional_namespaces_in_builder_doc.rb
553
+ - test/namespaces/test_namespaces_aliased_default.rb
507
554
  - test/namespaces/test_namespaces_in_builder_doc.rb
555
+ - test/namespaces/test_namespaces_in_cloned_doc.rb
508
556
  - test/namespaces/test_namespaces_in_created_doc.rb
509
557
  - test/namespaces/test_namespaces_in_parsed_doc.rb
558
+ - test/namespaces/test_namespaces_preservation.rb
510
559
  - test/test_convert_xpath.rb
511
560
  - test/test_css_cache.rb
512
561
  - test/test_encoding_handler.rb
@@ -555,7 +604,6 @@ files:
555
604
  - test/xslt/test_custom_functions.rb
556
605
  - test/xslt/test_exception_handling.rb
557
606
  - test_all
558
- - lib/nokogiri/nokogiri.jar
559
607
  homepage: http://nokogiri.org
560
608
  licenses:
561
609
  - MIT
@@ -578,74 +626,77 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
626
  version: '0'
579
627
  requirements: []
580
628
  rubyforge_project: nokogiri
581
- rubygems_version: 2.1.9
629
+ rubygems_version: 2.2.2
582
630
  signing_key:
583
631
  specification_version: 4
584
632
  summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
585
633
  test_files:
586
- - test/test_encoding_handler.rb
587
- - test/test_reader.rb
588
- - test/test_css_cache.rb
589
- - test/test_soap4r_sax.rb
634
+ - test/test_nokogiri.rb
590
635
  - test/test_memory_leak.rb
591
636
  - test/test_convert_xpath.rb
637
+ - test/test_css_cache.rb
592
638
  - test/test_xslt_transforms.rb
593
- - test/test_nokogiri.rb
594
- - test/decorators/test_slop.rb
595
- - test/css/test_parser.rb
596
- - test/css/test_nthiness.rb
597
- - test/css/test_tokenizer.rb
598
- - test/css/test_xpath_visitor.rb
599
- - test/xslt/test_exception_handling.rb
600
- - test/xslt/test_custom_functions.rb
601
- - test/xml/test_comment.rb
602
- - test/xml/test_unparented_node.rb
603
- - test/xml/test_processing_instruction.rb
604
- - test/xml/test_node_attributes.rb
605
- - test/xml/test_xpath.rb
606
- - test/xml/test_node_encoding.rb
639
+ - test/test_encoding_handler.rb
640
+ - test/test_soap4r_sax.rb
641
+ - test/test_reader.rb
642
+ - test/xml/test_element_content.rb
643
+ - test/xml/test_builder.rb
607
644
  - test/xml/test_element_decl.rb
608
- - test/xml/test_entity_decl.rb
609
- - test/xml/test_namespace.rb
645
+ - test/xml/test_parse_options.rb
646
+ - test/xml/test_dtd_encoding.rb
647
+ - test/xml/test_attribute_decl.rb
610
648
  - test/xml/test_cdata.rb
611
- - test/xml/test_node_inheritance.rb
612
- - test/xml/test_entity_reference.rb
613
- - test/xml/test_text.rb
614
- - test/xml/test_reader_encoding.rb
649
+ - test/xml/test_document_fragment.rb
615
650
  - test/xml/test_dtd.rb
616
- - test/xml/test_xinclude.rb
617
- - test/xml/test_parse_options.rb
651
+ - test/xml/test_node_reparenting.rb
652
+ - test/xml/test_c14n.rb
653
+ - test/xml/test_node_inheritance.rb
618
654
  - test/xml/test_schema.rb
619
- - test/xml/test_element_content.rb
620
- - test/xml/test_document.rb
655
+ - test/xml/test_processing_instruction.rb
656
+ - test/xml/test_attr.rb
657
+ - test/xml/test_namespace.rb
621
658
  - test/xml/test_relax_ng.rb
622
- - test/xml/test_c14n.rb
623
- - test/xml/test_dtd_encoding.rb
659
+ - test/xml/test_xpath.rb
660
+ - test/xml/test_reader_encoding.rb
661
+ - test/xml/test_node_encoding.rb
662
+ - test/xml/test_node_attributes.rb
663
+ - test/xml/test_text.rb
664
+ - test/xml/test_document.rb
665
+ - test/xml/test_entity_reference.rb
666
+ - test/xml/test_node.rb
667
+ - test/xml/test_document_encoding.rb
668
+ - test/xml/test_unparented_node.rb
624
669
  - test/xml/test_syntax_error.rb
625
- - test/xml/test_attribute_decl.rb
670
+ - test/xml/test_entity_decl.rb
671
+ - test/xml/test_comment.rb
626
672
  - test/xml/test_node_set.rb
627
- - test/xml/test_builder.rb
628
- - test/xml/test_document_encoding.rb
629
- - test/xml/test_attr.rb
630
- - test/xml/test_document_fragment.rb
631
- - test/xml/test_node.rb
632
- - test/xml/test_node_reparenting.rb
633
- - test/xml/sax/test_parser.rb
634
- - test/xml/sax/test_push_parser.rb
635
- - test/xml/sax/test_parser_context.rb
673
+ - test/xml/test_xinclude.rb
636
674
  - test/xml/node/test_save_options.rb
637
675
  - test/xml/node/test_subclass.rb
638
- - test/html/test_node_encoding.rb
639
- - test/html/test_document.rb
640
- - test/html/test_named_characters.rb
676
+ - test/xml/sax/test_parser.rb
677
+ - test/xml/sax/test_parser_context.rb
678
+ - test/xml/sax/test_push_parser.rb
679
+ - test/xslt/test_exception_handling.rb
680
+ - test/xslt/test_custom_functions.rb
681
+ - test/decorators/test_slop.rb
641
682
  - test/html/test_builder.rb
642
- - test/html/test_document_encoding.rb
643
- - test/html/test_element_description.rb
644
683
  - test/html/test_document_fragment.rb
684
+ - test/html/test_named_characters.rb
685
+ - test/html/test_element_description.rb
686
+ - test/html/test_node_encoding.rb
687
+ - test/html/test_document.rb
645
688
  - test/html/test_node.rb
689
+ - test/html/test_document_encoding.rb
646
690
  - test/html/sax/test_parser.rb
647
691
  - test/html/sax/test_parser_context.rb
648
- - test/namespaces/test_namespaces_in_builder_doc.rb
692
+ - test/css/test_tokenizer.rb
693
+ - test/css/test_parser.rb
694
+ - test/css/test_nthiness.rb
695
+ - test/css/test_xpath_visitor.rb
696
+ - test/namespaces/test_namespaces_in_parsed_doc.rb
697
+ - test/namespaces/test_namespaces_aliased_default.rb
698
+ - test/namespaces/test_namespaces_in_cloned_doc.rb
699
+ - test/namespaces/test_namespaces_preservation.rb
649
700
  - test/namespaces/test_namespaces_in_created_doc.rb
650
701
  - test/namespaces/test_additional_namespaces_in_builder_doc.rb
651
- - test/namespaces/test_namespaces_in_parsed_doc.rb
702
+ - test/namespaces/test_namespaces_in_builder_doc.rb
@@ -1,134 +0,0 @@
1
- gem 'rake-compiler'
2
- require 'rake/extensioncompiler'
3
- HOST = Rake::ExtensionCompiler.mingw_host
4
-
5
- require 'resolv'
6
-
7
- require 'mini_portile'
8
- dependencies = YAML.load_file("dependencies.yml")
9
- $recipes = {}
10
- %w[zlib libiconv libxml2 libxslt].each do |lib|
11
- $recipes[lib] = MiniPortile.new lib, dependencies[lib]
12
- end
13
- $recipes.each { |_, recipe| recipe.host = HOST }
14
-
15
- file "lib/nokogiri/nokogiri.rb" do
16
- File.open("lib/nokogiri/nokogiri.rb", 'wb') do |f|
17
- f.write %Q{require "nokogiri/\#{RUBY_VERSION.sub(/\\.\\d+$/, '')}/nokogiri"\n}
18
- end
19
- end
20
-
21
- namespace :cross do
22
- task :zlib do
23
- recipe = $recipes["zlib"]
24
- recipe.files = ["http://zlib.net/#{recipe.name}-#{recipe.version}.tar.gz"]
25
- class << recipe
26
- def configure
27
- Dir.chdir work_path do
28
- mk = File.read 'win32/Makefile.gcc'
29
- File.open 'win32/Makefile.gcc', 'wb' do |f|
30
- f.puts "BINARY_PATH = #{CROSS_DIR}/bin"
31
- f.puts "LIBRARY_PATH = #{CROSS_DIR}/lib"
32
- f.puts "INCLUDE_PATH = #{CROSS_DIR}/include"
33
- f.puts mk.sub(/^PREFIX\s*=\s*$/, "PREFIX = #{HOST}-")
34
- end
35
- end
36
- end
37
-
38
- def configured?
39
- Dir.chdir work_path do
40
- !! (File.read('win32/Makefile.gcc') =~ /^BINARY_PATH/)
41
- end
42
- end
43
-
44
- def compile
45
- execute "compile", "make -f win32/Makefile.gcc"
46
- end
47
-
48
- def install
49
- execute "install", "make -f win32/Makefile.gcc install"
50
- end
51
- end
52
-
53
- checkpoint = "#{CROSS_DIR}/#{recipe.name}-#{recipe.version}-#{recipe.host}.installed"
54
- unless File.exist?(checkpoint)
55
- recipe.cook
56
- touch checkpoint
57
- end
58
- recipe.activate
59
- end
60
-
61
- task :libiconv do
62
- recipe = $recipes["libiconv"]
63
- recipe.files = ["http://ftp.gnu.org/pub/gnu/libiconv/#{recipe.name}-#{recipe.version}.tar.gz"]
64
- recipe.configure_options = [
65
- "--host=#{HOST}",
66
- "--enable-static",
67
- "--disable-shared",
68
- "CPPFLAGS='-mno-cygwin -Wall'",
69
- "CFLAGS='-mno-cygwin -O2 -g'",
70
- "CXXFLAGS='-mno-cygwin -O2 -g'",
71
- "LDFLAGS=-mno-cygwin"
72
- ]
73
-
74
- checkpoint = "#{CROSS_DIR}/#{recipe.name}-#{recipe.version}-#{recipe.host}.installed"
75
- unless File.exist?(checkpoint)
76
- recipe.cook
77
- touch checkpoint
78
- end
79
- recipe.activate
80
- end
81
-
82
- task :libxml2 => ["cross:zlib", "cross:libiconv"] do
83
- recipe = $recipes["libxml2"]
84
- recipe.files = ["ftp://ftp.xmlsoft.org/libxml2/#{recipe.name}-#{recipe.version}.tar.gz"]
85
- recipe.configure_options = [
86
- "--host=#{HOST}",
87
- "--enable-static",
88
- "--disable-shared",
89
- "--with-zlib=#{CROSS_DIR}",
90
- "--with-iconv=#{$recipes["libiconv"].path}",
91
- "--without-python",
92
- "--without-readline",
93
- "CFLAGS='-DIN_LIBXML'"
94
- ]
95
-
96
- checkpoint = "#{CROSS_DIR}/#{recipe.name}-#{recipe.version}-#{recipe.host}.installed"
97
- unless File.exist?(checkpoint)
98
- recipe.cook
99
- touch checkpoint
100
- end
101
- recipe.activate
102
- end
103
-
104
- task :libxslt => ['cross:libxml2'] do
105
- recipe = $recipes["libxslt"]
106
- recipe.files = ["ftp://ftp.xmlsoft.org/libxml2/#{recipe.name}-#{recipe.version}.tar.gz"]
107
- recipe.configure_options = [
108
- "--host=#{HOST}",
109
- "--enable-static",
110
- "--disable-shared",
111
- "--with-libxml-prefix=#{$recipes["libxml2"].path}",
112
- "--without-python",
113
- "--without-crypto",
114
- "CFLAGS='-DIN_LIBXML'"
115
- ]
116
-
117
- checkpoint = "#{CROSS_DIR}/#{recipe.name}-#{recipe.version}-#{recipe.host}.installed"
118
- unless File.exist?(checkpoint)
119
- recipe.cook
120
- touch checkpoint
121
- end
122
- recipe.activate
123
- end
124
-
125
- task :file_list do
126
- HOE.spec.files += Dir["lib/nokogiri/nokogiri.rb"]
127
- HOE.spec.files += Dir["lib/nokogiri/{1.9,2.0}/nokogiri.so"]
128
- end
129
- end
130
-
131
- require 'rake/clean'
132
- CLOBBER.include("#{CROSS_DIR}/*.installed", "#{CROSS_DIR}/#{HOST}", "tmp/#{HOST}")
133
-
134
- task :cross => ["cross:libxslt", "lib/nokogiri/nokogiri.rb", "cross:file_list"]