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.
- checksums.yaml +4 -4
- data/.editorconfig +17 -0
- data/.travis.yml +6 -6
- data/CHANGELOG.ja.rdoc +61 -8
- data/CHANGELOG.rdoc +58 -3
- data/Gemfile +3 -3
- data/Manifest.txt +57 -1
- data/README.ja.rdoc +22 -17
- data/README.rdoc +23 -18
- data/ROADMAP.md +1 -2
- data/Rakefile +162 -58
- data/build_all +56 -31
- data/dependencies.yml +3 -3
- data/ext/java/nokogiri/NokogiriService.java +9 -5
- data/ext/java/nokogiri/XmlDocument.java +95 -54
- data/ext/java/nokogiri/XmlNode.java +93 -42
- data/ext/java/nokogiri/XmlReader.java +1 -1
- data/ext/java/nokogiri/XmlSaxParserContext.java +33 -0
- data/ext/java/nokogiri/XmlSchema.java +4 -2
- data/ext/java/nokogiri/XmlXpathContext.java +118 -76
- data/ext/java/nokogiri/internals/IgnoreSchemaErrorsErrorHandler.java +20 -0
- data/ext/java/nokogiri/internals/NokogiriHandler.java +3 -10
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +40 -23
- data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +59 -54
- data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +1 -1
- data/ext/java/nokogiri/internals/ParserContext.java +1 -4
- data/ext/java/nokogiri/internals/SaveContextVisitor.java +6 -2
- data/ext/java/nokogiri/internals/c14n/AttrCompare.java +119 -0
- data/ext/java/nokogiri/internals/c14n/C14nHelper.java +159 -0
- data/ext/java/nokogiri/internals/c14n/CanonicalFilter.java +37 -0
- data/ext/java/nokogiri/internals/c14n/CanonicalizationException.java +93 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer.java +252 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer11.java +639 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer11_OmitComments.java +38 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer11_WithComments.java +38 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315.java +368 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315Excl.java +295 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclOmitComments.java +40 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclWithComments.java +44 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315OmitComments.java +44 -0
- data/ext/java/nokogiri/internals/c14n/Canonicalizer20010315WithComments.java +43 -0
- data/ext/java/nokogiri/internals/c14n/CanonicalizerBase.java +630 -0
- data/ext/java/nokogiri/internals/c14n/CanonicalizerPhysical.java +173 -0
- data/ext/java/nokogiri/internals/c14n/CanonicalizerSpi.java +76 -0
- data/ext/java/nokogiri/internals/c14n/Constants.java +42 -0
- data/ext/java/nokogiri/internals/c14n/ElementProxy.java +293 -0
- data/ext/java/nokogiri/internals/c14n/HelperNodeList.java +93 -0
- data/ext/java/nokogiri/internals/c14n/IgnoreAllErrorHandler.java +79 -0
- data/ext/java/nokogiri/internals/c14n/InclusiveNamespaces.java +165 -0
- data/ext/java/nokogiri/internals/c14n/InvalidCanonicalizerException.java +76 -0
- data/ext/java/nokogiri/internals/c14n/NameSpaceSymbTable.java +402 -0
- data/ext/java/nokogiri/internals/c14n/NodeFilter.java +51 -0
- data/ext/java/nokogiri/internals/c14n/UtfHelpper.java +179 -0
- data/ext/java/nokogiri/internals/c14n/XMLUtils.java +507 -0
- data/ext/nokogiri/extconf.rb +429 -128
- data/ext/nokogiri/html_document.c +2 -2
- data/ext/nokogiri/nokogiri.c +6 -1
- data/ext/nokogiri/xml_document.c +5 -4
- data/ext/nokogiri/xml_node.c +76 -7
- data/ext/nokogiri/xml_reader.c +1 -1
- data/ext/nokogiri/xml_sax_parser_context.c +40 -0
- data/ext/nokogiri/xml_syntax_error.c +10 -5
- data/ext/nokogiri/xml_syntax_error.h +1 -1
- data/ext/nokogiri/xml_xpath_context.c +2 -14
- data/ext/nokogiri/xslt_stylesheet.c +1 -1
- data/lib/nokogiri.rb +31 -22
- data/lib/nokogiri/css/node.rb +0 -50
- data/lib/nokogiri/css/parser.rb +213 -218
- data/lib/nokogiri/css/parser.y +21 -30
- data/lib/nokogiri/css/xpath_visitor.rb +62 -14
- data/lib/nokogiri/html/document.rb +97 -18
- data/lib/nokogiri/html/sax/parser.rb +2 -2
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/version.rb +1 -1
- data/lib/nokogiri/xml/builder.rb +1 -1
- data/lib/nokogiri/xml/document.rb +2 -2
- data/lib/nokogiri/xml/dtd.rb +10 -0
- data/lib/nokogiri/xml/node.rb +26 -1
- data/lib/nokogiri/xml/sax/parser.rb +1 -1
- data/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch +265 -0
- data/ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch +102 -0
- data/ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch +26 -0
- data/ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch +26 -0
- data/ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch +158 -0
- data/ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch +78 -0
- data/ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch +480 -0
- data/ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch +315 -0
- data/ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch +37 -0
- data/ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch +222 -0
- data/ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch +53 -0
- data/ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch +60 -0
- data/ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch +42 -0
- data/ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch +164 -0
- data/ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch +587 -0
- data/ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch +80 -0
- data/ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch +185 -0
- data/ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch +126 -0
- data/ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch +25 -0
- data/ports/patches/libxslt/0014-Fix-for-bug-436589.patch +43 -0
- data/ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch +41 -0
- data/suppressions/README.txt +1 -0
- data/suppressions/nokogiri_ree-1.8.7.358.supp +61 -0
- data/suppressions/nokogiri_ruby-1.8.7.370.supp +0 -0
- data/suppressions/nokogiri_ruby-1.9.2.320.supp +28 -0
- data/suppressions/nokogiri_ruby-1.9.3.327.supp +28 -0
- data/test/css/test_nthiness.rb +65 -2
- data/test/css/test_parser.rb +27 -10
- data/test/css/test_tokenizer.rb +1 -1
- data/test/css/test_xpath_visitor.rb +6 -1
- data/test/files/atom.xml +344 -0
- data/test/files/shift_jis_no_charset.html +9 -0
- data/test/helper.rb +10 -0
- data/test/html/test_document.rb +74 -7
- data/test/html/test_document_encoding.rb +10 -0
- data/test/html/test_document_fragment.rb +9 -3
- data/test/namespaces/test_namespaces_aliased_default.rb +24 -0
- data/test/namespaces/test_namespaces_in_cloned_doc.rb +31 -0
- data/test/namespaces/test_namespaces_preservation.rb +31 -0
- data/test/test_nokogiri.rb +6 -0
- data/test/test_reader.rb +7 -4
- data/test/test_xslt_transforms.rb +25 -0
- data/test/xml/sax/test_parser.rb +16 -0
- data/test/xml/sax/test_parser_context.rb +9 -0
- data/test/xml/test_builder.rb +9 -0
- data/test/xml/test_c14n.rb +12 -2
- data/test/xml/test_document.rb +66 -0
- data/test/xml/test_document_fragment.rb +5 -0
- data/test/xml/test_dtd.rb +84 -0
- data/test/xml/test_entity_reference.rb +3 -3
- data/test/xml/test_node.rb +21 -3
- data/test/xml/test_node_attributes.rb +17 -0
- data/test/xml/test_schema.rb +26 -0
- data/test/xml/test_text.rb +15 -0
- data/test/xml/test_xpath.rb +87 -0
- data/test_all +3 -3
- metadata +119 -68
- data/tasks/cross_compile.rb +0 -134
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bf6aa9f84fcff48431e460eef5c599b7eb29f0a
|
4
|
+
data.tar.gz: 49721bdff19c8e85d4d3865ba6554b18b6cb760c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5f0802b3f96675c79502397156e9c66b925fe9b3e259e937897223f4b3a4b6c1991d1e75a0e51dd58bbc5be329743121916f416d2c3f3426097fd1e50a97a3
|
7
|
+
data.tar.gz: 65e0d60a8d601e0de85554598427cc014f951df836b2d44d585389850c891dd9d87803879eaf82c4c8c70757b3f3deb6bd0dd8ce77b3eaae6a22d36d3fd123d1
|
data/.editorconfig
ADDED
data/.travis.yml
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.2
|
4
3
|
- 1.9.3
|
4
|
+
- 2.0.0
|
5
5
|
- ruby-head
|
6
|
-
- ree
|
7
6
|
- jruby-19mode
|
7
|
+
- jruby-20mode
|
8
8
|
- rbx-19mode
|
9
9
|
|
10
10
|
jdk:
|
@@ -14,14 +14,14 @@ jdk:
|
|
14
14
|
matrix:
|
15
15
|
allow_failures:
|
16
16
|
- rvm: rbx-19mode
|
17
|
+
# currently broken on Travis CI
|
18
|
+
- rvm: jruby-20mode
|
17
19
|
exclude:
|
18
|
-
- rvm: 1.9.2
|
19
|
-
jdk: openjdk7
|
20
20
|
- rvm: 1.9.3
|
21
21
|
jdk: openjdk7
|
22
|
-
- rvm:
|
22
|
+
- rvm: 2.0.0
|
23
23
|
jdk: openjdk7
|
24
|
-
- rvm:
|
24
|
+
- rvm: ruby-head
|
25
25
|
jdk: openjdk7
|
26
26
|
- rvm: rbx-19mode
|
27
27
|
jdk: openjdk7
|
data/CHANGELOG.ja.rdoc
CHANGED
@@ -1,3 +1,58 @@
|
|
1
|
+
=== 1.6.2 / 2014年5月12日
|
2
|
+
|
3
|
+
==== Security 註
|
4
|
+
|
5
|
+
A set of security and bugfix patches have been backported from the libxml2 and libxslt repositories onto the version of 2.8.0 packaged with Nokogiri, including these notable security fixes:
|
6
|
+
|
7
|
+
* https://git.gnome.org/browse/libxml2/commit/?id=4629ee02ac649c27f9c0cf98ba017c6b5526070f
|
8
|
+
* CVE-2013-2877 https://git.gnome.org/browse/libxml2/commit/?id=e50ba8164eee06461c73cd8abb9b46aa0be81869
|
9
|
+
* CVE-2014-0191 https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df
|
10
|
+
|
11
|
+
It is recommended that you upgrade from 1.6.x to this version as soon as possible.
|
12
|
+
|
13
|
+
==== Compatibility 註
|
14
|
+
|
15
|
+
Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
|
16
|
+
|
17
|
+
==== 機能
|
18
|
+
|
19
|
+
* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32)
|
20
|
+
and add support for native builds on Windows. #864, #989, #1072
|
21
|
+
* (MRI) iconvが Windows-31J をサポートしていない場合は CP932 のエイリアスとして扱うようにした #836
|
22
|
+
* (MRI) 同梱ライブラリを静的にリンクするようになった (静的リンクをオフにするにはextconf.rbに --disable-static を渡す) #923
|
23
|
+
* (MRI) CRubyのバグ #9760 に起因するライブラリパス(LIBPATH)の優先順位問題に対応した
|
24
|
+
* (MRI) 同梱ライブラリのビルド後に不要になったディレクトリ群を自動的に削除するようになった (デバッグ等の目的で残すようにするにはextconf.rbに --disable-clean を渡す) #952
|
25
|
+
* (MRI) FreeBSDなど、libiconvがシステム標準ディレクトリ外にある環境でlibxml2がiconvサポート付きで正しくビルドされるようになった
|
26
|
+
* nthセレクタにおいてan-bを認識するようになった #886 (Magnus Bergmarkに感謝!)
|
27
|
+
* :not疑似クラスが、先行セレクタがない場合や複数重ねられた場合にも対応した #887 (Magnus Bergmarkに感謝!)
|
28
|
+
* (MRI) extconf.rb のオプション --use-system-libraries を追加
|
29
|
+
環境変数 NOKOGIRI_USE_SYSTEM_LIBRARIES を設定する代わりに使える
|
30
|
+
* (MRI) 同梱の libxslt を 1.1.28 に、 zlib を 1.2.8 に、 libiconv を 1.14 にそれぞれ更新した
|
31
|
+
* Nokogiri::HTML::Document#title= 及び #meta_encoding= は、head要素がない場合でも常に、最適な場所を探しつつ要素を追加するようになった
|
32
|
+
* Nokogiri::XML::DTD#html_dtd? と #html5_dtd? を追加
|
33
|
+
* Nokogiri::XML::Node#prepend_child を追加 #664
|
34
|
+
* Nokogiri::XML::SAX::ParserContext#recovery is added. #453
|
35
|
+
|
36
|
+
==== バグ修正
|
37
|
+
|
38
|
+
* :only-child疑似クラスが:not疑似クラスの中にある場合に正常な動作が行われるようになった #858 (Yamagishi Kazutoshiに感謝!)
|
39
|
+
* 同梱のライブラリを使う場合にはextconf.rbでpkg_configを呼ばなくなった #931 (Shota Fukumoriに感謝!)
|
40
|
+
* Nokogiri.parse()がRSS文書などをHTML文書として誤認する問題を修正 #932 (Yamagishi Kazutoshiに感謝!)
|
41
|
+
* (MRI) ノードに対して子ノードを追加する際、ノードタイプをチェックするようにした。従来はテキストノードに別のテキストノードを追加する操作によりSEGVが発生していた。 #1092
|
42
|
+
* (JRuby) XSD validation crashes in Java version. #373
|
43
|
+
* (JRuby) Document already has a root node error while using Builder. #646
|
44
|
+
* (JRuby) c14n tests are all passing on JRuby. #226
|
45
|
+
* Parsing empty documents raise SyntaxError in strict mode. #1005
|
46
|
+
* (JRuby) Make xpath faster by caching the xpath context. #741
|
47
|
+
* (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998
|
48
|
+
* (JRUby) JRubyによるディフォルトネームスペースエイリアスの振る舞いがCRubyと同じではない。#940
|
49
|
+
* (JRuby) JRubyによるネームスペースのパースと追加の振る舞いが一致していない。 #943
|
50
|
+
* (JRuby) Builderで作ったドキュメントとクローンしたドキュメントではXpathの結果が違う。#1034
|
51
|
+
* (JRuby) Javaの実装はネームスペースを忘れることがある。 #902
|
52
|
+
* (JRuby) JRuby-Nokogiriはネームスペーススコープ内のアトリビュートを正しく認識しない。#1081
|
53
|
+
* (JRuby) JRuby-Nokogiriはコメントノードの名前が違う。#1080
|
54
|
+
* (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processingに問題がある。 #1070
|
55
|
+
|
1
56
|
=== 1.6.1 / 2013年12月14日
|
2
57
|
|
3
58
|
* Bugfixes
|
@@ -8,18 +63,16 @@
|
|
8
63
|
|
9
64
|
=== 1.6.0 / 2013年6月8日
|
10
65
|
|
11
|
-
|
12
|
-
mentioned in both.
|
66
|
+
本リリースは1.5.10および1.6.0.rc1を元にしているため、両リリースの改善点を含む
|
13
67
|
|
14
68
|
* 廃止
|
15
69
|
|
16
|
-
*
|
70
|
+
* TravisのCI対象からRuby 1.8を外した
|
17
71
|
|
18
72
|
|
19
73
|
=== 1.6.0.rc1 / 2013年4月14日
|
20
74
|
|
21
|
-
|
22
|
-
mentioned in the notes for v1.5.10.
|
75
|
+
本リリースは1.5.9を元にしているため、1.5.10の変更点は含まない
|
23
76
|
|
24
77
|
* 註
|
25
78
|
|
@@ -31,7 +84,7 @@ mentioned in the notes for v1.5.10.
|
|
31
84
|
|
32
85
|
* (MRI) libxml 2.8.0 と libxslt 1.2.26 を同梱。
|
33
86
|
環境変数 NOKOGIRI_USE_SYSTEM_LIBRARIES を設定しない限り、 gem のインストール時にコンパイルして使われる。
|
34
|
-
VERSION_INFO (および `nokogiri -v`) には、同梱の libxml またはシステムの libxml
|
87
|
+
VERSION_INFO (および `nokogiri -v`) には、同梱の libxml またはシステムの libxml のいずれが使われているかの情報が含まれる
|
35
88
|
* (Windows) libxml 2.8.0 に更新
|
36
89
|
|
37
90
|
|
@@ -40,12 +93,12 @@ mentioned in the notes for v1.5.10.
|
|
40
93
|
* Ruby 1.8.7以下のサポートを終了
|
41
94
|
|
42
95
|
|
43
|
-
=== 1.5.11 / 2013
|
96
|
+
=== 1.5.11 / 2013年12月14日
|
44
97
|
|
45
98
|
* Bugfixes
|
46
99
|
|
47
100
|
* (JRuby) Fix out of memory bug when certain invalid documents are parsed.
|
48
|
-
* (JRuby) Fix regression of billion-laughs vulnerability. #
|
101
|
+
* (JRuby) Fix regression of billion-laughs vulnerability. #586
|
49
102
|
|
50
103
|
|
51
104
|
=== 1.5.10 / 2013年6月7日
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,58 @@
|
|
1
|
+
=== 1.6.2 / 2014-05-12
|
2
|
+
|
3
|
+
==== Security Note
|
4
|
+
|
5
|
+
A set of security and bugfix patches have been backported from the libxml2 and libxslt repositories onto the version of 2.8.0 packaged with Nokogiri, including these notable security fixes:
|
6
|
+
|
7
|
+
* https://git.gnome.org/browse/libxml2/commit/?id=4629ee02ac649c27f9c0cf98ba017c6b5526070f
|
8
|
+
* CVE-2013-2877 https://git.gnome.org/browse/libxml2/commit/?id=e50ba8164eee06461c73cd8abb9b46aa0be81869
|
9
|
+
* CVE-2014-0191 https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df
|
10
|
+
|
11
|
+
It is recommended that you upgrade from 1.6.x to this version as soon as possible.
|
12
|
+
|
13
|
+
==== Compatibility Note
|
14
|
+
|
15
|
+
Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
|
16
|
+
|
17
|
+
==== Features
|
18
|
+
|
19
|
+
* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32) and add support for native builds on Windows. #864, #989, #1072
|
20
|
+
* (MRI) Alias CP932 to Windows-31J if iconv does not support Windows-31J.
|
21
|
+
* (MRI) Nokogiri now links packaged libraries statically. To disable static linking, pass --disable-static to extconf.rb. #923
|
22
|
+
* (MRI) Fix a library path (LIBPATH) precedence problem caused by CRuby bug #9760.
|
23
|
+
* (MRI) Nokogiri automatically deletes directories of packaged libraries only used during build. To keep them for debugging purposes, pass --disable-clean to extconf.rb. #952
|
24
|
+
* (MRI) Nokogiri now builds libxml2 properly with iconv support on platforms where libiconv is installed outside the system default directories, such as FreeBSD.
|
25
|
+
* Add support for an-b in nth selectors. #886 (Thanks, Magnus Bergmark!)
|
26
|
+
* Add support for bare and multiple :not() functions in selectors. #887 (Thanks, Magnus Bergmark!)
|
27
|
+
* (MRI) Add an extconf.rb option --use-system-libraries, alternative to setting the environment variable NOKOGIRI_USE_SYSTEM_LIBRARIES.
|
28
|
+
* (MRI) Update packaged libraries: libxslt to 1.1.28, zlib to 1.2.8, and libiconv to 1.14, respectively.
|
29
|
+
* Nokogiri::HTML::Document#title= and #meta_encoding= now always add an element if not present, trying hard to find the best place to put it.
|
30
|
+
* Nokogiri::XML::DTD#html_dtd? and #html5_dtd? are added.
|
31
|
+
* Nokogiri::XML::Node#prepend_child is added. #664
|
32
|
+
* Nokogiri::XML::SAX::ParserContext#recovery is added. #453
|
33
|
+
* Fix documentation for XML::Node#namespace. #803 #802 (Thanks, Hoylen Sue)
|
34
|
+
* Allow Nokogiri::XML::Node#parse from unparented non-element nodes. #407
|
35
|
+
|
36
|
+
==== Bugfixes
|
37
|
+
|
38
|
+
* Ensure :only-child pseudo class works within :not pseudo class. #858 (Thanks, Yamagishi Kazutoshi!)
|
39
|
+
* Don't call pkg_config when using bundled libraries in extconf.rb #931 (Thanks, Shota Fukumori!)
|
40
|
+
* Nokogiri.parse() does not mistake a non-HTML document like a RSS document as HTML document. #932 (Thanks, Yamagishi Kazutoshi!)
|
41
|
+
* (MRI) Perform a node type check before adding a child node to another. Previously adding a text node to another as a child could cause a SEGV. #1092
|
42
|
+
* (JRuby) XSD validation crashes in Java version. #373
|
43
|
+
* (JRuby) Document already has a root node error while using Builder. #646
|
44
|
+
* (JRuby) c14n tests are all passing on JRuby. #226
|
45
|
+
* Parsing empty documents raise SyntaxError in strict mode. #1005
|
46
|
+
* (JRuby) Make xpath faster by caching the xpath context. #741
|
47
|
+
* (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998
|
48
|
+
* (JRuby) Inconsistent behavior aliasing the default namespace. #940
|
49
|
+
* (JRuby) Inconsistent behavior between parsing and adding namespaces. #943
|
50
|
+
* (JRuby) Xpath returns inconsistent result set on cloned document with namespaces and attributes. #1034
|
51
|
+
* (JRuby) Java-Implementation forgets element namespaces #902
|
52
|
+
* (JRuby) JRuby-Nokogiri does not recognise attributes inside namespaces #1081
|
53
|
+
* (JRuby) JRuby-Nokogiri has different comment node name #1080
|
54
|
+
* (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processing #1070
|
55
|
+
|
1
56
|
=== 1.6.1 / 2013-12-14
|
2
57
|
|
3
58
|
* Bugfixes
|
@@ -42,12 +97,12 @@ mentioned in the notes for v1.5.10.
|
|
42
97
|
* Support for Ruby 1.8.7 and prior has been dropped
|
43
98
|
|
44
99
|
|
45
|
-
=== 1.5.11 / 2013-
|
100
|
+
=== 1.5.11 / 2013-12-14
|
46
101
|
|
47
102
|
* Bugfixes
|
48
103
|
|
49
104
|
* (JRuby) Fix out of memory bug when certain invalid documents are parsed.
|
50
|
-
* (JRuby) Fix regression of billion-laughs vulnerability. #
|
105
|
+
* (JRuby) Fix regression of billion-laughs vulnerability. #586
|
51
106
|
|
52
107
|
|
53
108
|
=== 1.5.10 / 2013-06-07
|
@@ -55,7 +110,7 @@ mentioned in the notes for v1.5.10.
|
|
55
110
|
* Bugfixes
|
56
111
|
|
57
112
|
* (JRuby) Fix "null document" error when parsing an empty IO in jruby 1.7.3. #883
|
58
|
-
* (JRuby) Fix schema validation when XSD has DOCTYPE set to DTD. #
|
113
|
+
* (JRuby) Fix schema validation when XSD has DOCTYPE set to DTD. #912 (Thanks, Patrick Cheng!)
|
59
114
|
* (MRI) Fix segfault when there is no default subelement for an HTML node. #917
|
60
115
|
|
61
116
|
|
data/Gemfile
CHANGED
@@ -4,18 +4,18 @@
|
|
4
4
|
|
5
5
|
source "https://rubygems.org/"
|
6
6
|
|
7
|
+
gem "mini_portile", "~>0.5.2"
|
7
8
|
|
9
|
+
gem "rdoc", "~>4.0", :group => [:development, :test]
|
8
10
|
gem "hoe-bundler", ">=1.1", :group => [:development, :test]
|
9
11
|
gem "hoe-debugging", ">=1.0.3", :group => [:development, :test]
|
10
12
|
gem "hoe-gemspec", ">=1.0", :group => [:development, :test]
|
11
13
|
gem "hoe-git", ">=1.4", :group => [:development, :test]
|
12
|
-
gem "mini_portile", ">=0.2.2", :group => [:development, :test]
|
13
14
|
gem "minitest", "~>2.2.2", :group => [:development, :test]
|
14
15
|
gem "rake", ">=0.9", :group => [:development, :test]
|
15
|
-
gem "rake-compiler", "~>0.
|
16
|
+
gem "rake-compiler", "~>0.9.2", :group => [:development, :test]
|
16
17
|
gem "racc", ">=1.4.6", :group => [:development, :test], :platform => :ruby
|
17
18
|
gem "rexical", ">=1.0.5", :group => [:development, :test], :platform => :ruby
|
18
|
-
gem "rdoc", "~>3.10", :group => [:development, :test]
|
19
19
|
gem "hoe", "~>3.7", :group => [:development, :test]
|
20
20
|
|
21
21
|
# vim: syntax=ruby
|
data/Manifest.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
.autotest
|
2
|
+
.editorconfig
|
2
3
|
.gemtest
|
3
4
|
.travis.yml
|
4
5
|
CHANGELOG.ja.rdoc
|
@@ -48,6 +49,7 @@ ext/java/nokogiri/XmlXpathContext.java
|
|
48
49
|
ext/java/nokogiri/XsltStylesheet.java
|
49
50
|
ext/java/nokogiri/internals/ClosedStreamException.java
|
50
51
|
ext/java/nokogiri/internals/HtmlDomParserContext.java
|
52
|
+
ext/java/nokogiri/internals/IgnoreSchemaErrorsErrorHandler.java
|
51
53
|
ext/java/nokogiri/internals/NokogiriBlockingQueueInputStream.java
|
52
54
|
ext/java/nokogiri/internals/NokogiriDocumentCache.java
|
53
55
|
ext/java/nokogiri/internals/NokogiriDomParser.java
|
@@ -74,6 +76,33 @@ ext/java/nokogiri/internals/XmlDeclHandler.java
|
|
74
76
|
ext/java/nokogiri/internals/XmlDomParserContext.java
|
75
77
|
ext/java/nokogiri/internals/XmlSaxParser.java
|
76
78
|
ext/java/nokogiri/internals/XsltExtensionFunction.java
|
79
|
+
ext/java/nokogiri/internals/c14n/AttrCompare.java
|
80
|
+
ext/java/nokogiri/internals/c14n/C14nHelper.java
|
81
|
+
ext/java/nokogiri/internals/c14n/CanonicalFilter.java
|
82
|
+
ext/java/nokogiri/internals/c14n/CanonicalizationException.java
|
83
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer.java
|
84
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer11.java
|
85
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer11_OmitComments.java
|
86
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer11_WithComments.java
|
87
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer20010315.java
|
88
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer20010315Excl.java
|
89
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclOmitComments.java
|
90
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer20010315ExclWithComments.java
|
91
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer20010315OmitComments.java
|
92
|
+
ext/java/nokogiri/internals/c14n/Canonicalizer20010315WithComments.java
|
93
|
+
ext/java/nokogiri/internals/c14n/CanonicalizerBase.java
|
94
|
+
ext/java/nokogiri/internals/c14n/CanonicalizerPhysical.java
|
95
|
+
ext/java/nokogiri/internals/c14n/CanonicalizerSpi.java
|
96
|
+
ext/java/nokogiri/internals/c14n/Constants.java
|
97
|
+
ext/java/nokogiri/internals/c14n/ElementProxy.java
|
98
|
+
ext/java/nokogiri/internals/c14n/HelperNodeList.java
|
99
|
+
ext/java/nokogiri/internals/c14n/IgnoreAllErrorHandler.java
|
100
|
+
ext/java/nokogiri/internals/c14n/InclusiveNamespaces.java
|
101
|
+
ext/java/nokogiri/internals/c14n/InvalidCanonicalizerException.java
|
102
|
+
ext/java/nokogiri/internals/c14n/NameSpaceSymbTable.java
|
103
|
+
ext/java/nokogiri/internals/c14n/NodeFilter.java
|
104
|
+
ext/java/nokogiri/internals/c14n/UtfHelpper.java
|
105
|
+
ext/java/nokogiri/internals/c14n/XMLUtils.java
|
77
106
|
ext/nokogiri/depend
|
78
107
|
ext/nokogiri/extconf.rb
|
79
108
|
ext/nokogiri/html_document.c
|
@@ -210,7 +239,32 @@ lib/nokogiri/xslt.rb
|
|
210
239
|
lib/nokogiri/xslt/stylesheet.rb
|
211
240
|
lib/xercesImpl.jar
|
212
241
|
lib/xsd/xmlparser/nokogiri.rb
|
213
|
-
|
242
|
+
ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch
|
243
|
+
ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch
|
244
|
+
ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch
|
245
|
+
ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch
|
246
|
+
ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch
|
247
|
+
ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch
|
248
|
+
ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
|
249
|
+
ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch
|
250
|
+
ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch
|
251
|
+
ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch
|
252
|
+
ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
|
253
|
+
ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch
|
254
|
+
ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch
|
255
|
+
ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
|
256
|
+
ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch
|
257
|
+
ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch
|
258
|
+
ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch
|
259
|
+
ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
|
260
|
+
ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
|
261
|
+
ports/patches/libxslt/0014-Fix-for-bug-436589.patch
|
262
|
+
ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch
|
263
|
+
suppressions/README.txt
|
264
|
+
suppressions/nokogiri_ree-1.8.7.358.supp
|
265
|
+
suppressions/nokogiri_ruby-1.8.7.370.supp
|
266
|
+
suppressions/nokogiri_ruby-1.9.2.320.supp
|
267
|
+
suppressions/nokogiri_ruby-1.9.3.327.supp
|
214
268
|
tasks/nokogiri.org.rb
|
215
269
|
tasks/test.rb
|
216
270
|
test/css/test_nthiness.rb
|
@@ -221,6 +275,7 @@ test/decorators/test_slop.rb
|
|
221
275
|
test/files/2ch.html
|
222
276
|
test/files/address_book.rlx
|
223
277
|
test/files/address_book.xml
|
278
|
+
test/files/atom.xml
|
224
279
|
test/files/bar/bar.xsd
|
225
280
|
test/files/bogus.xml
|
226
281
|
test/files/dont_hurt_em_why.xml
|
@@ -239,6 +294,7 @@ test/files/saml/xenc_schema.xsd
|
|
239
294
|
test/files/saml/xmldsig_schema.xsd
|
240
295
|
test/files/shift_jis.html
|
241
296
|
test/files/shift_jis.xml
|
297
|
+
test/files/shift_jis_no_charset.html
|
242
298
|
test/files/snuggles.xml
|
243
299
|
test/files/staff.dtd
|
244
300
|
test/files/staff.xml
|
data/README.ja.rdoc
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
= Nokogiri (鋸) {<img src="https://secure.travis-ci.org/sparklemotion/nokogiri.png?rvm=1.9.3" />}[http://travis-ci.org/sparklemotion/nokogiri] {<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/sparklemotion/nokogiri]
|
2
2
|
|
3
|
-
* http://nokogiri.org
|
4
|
-
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* http://github.com/sparklemotion/nokogiri/issues
|
3
|
+
* http://nokogiri.org
|
4
|
+
* https://github.com/sparklemotion/nokogiri
|
5
|
+
* https://groups.google.com/group/nokogiri-talk
|
6
|
+
* https://github.com/sparklemotion/nokogiri/issues
|
8
7
|
|
9
8
|
== DESCRIPTION:
|
10
9
|
|
@@ -16,22 +15,22 @@ XMLは暴力に似ている - XMLが君の問題を解決しないとしたら
|
|
16
15
|
|
17
16
|
== FEATURES:
|
18
17
|
|
19
|
-
* XPath による探索
|
18
|
+
* XPath 1.0による探索
|
20
19
|
* CSS3 のセレクターによる探索
|
21
20
|
* XML/HTMLのビルダー
|
22
21
|
|
23
|
-
XML/HTMLの高速な解析と探索検索、ならびにCSS3セレクタとXPathをサポートしています。
|
22
|
+
XML/HTMLの高速な解析と探索検索、ならびにCSS3セレクタとXPath 1.0をサポートしています。
|
24
23
|
|
25
24
|
== SUPPORT:
|
26
25
|
|
27
26
|
日本語でNokogiriの
|
28
|
-
{メーリングリスト}[
|
27
|
+
{メーリングリスト}[https://groups.google.com/group/nokogiri-list]
|
29
28
|
|
30
|
-
*
|
29
|
+
* https://groups.google.com/group/nokogiri-list
|
31
30
|
|
32
|
-
{バグ報告}[
|
31
|
+
{バグ報告}[https://github.com/sparklemotion/nokogiri/issues]
|
33
32
|
|
34
|
-
*
|
33
|
+
* https://github.com/sparklemotion/nokogiri/issues
|
35
34
|
|
36
35
|
IRCのチャンネルはfreenodeの #nokogiri です。
|
37
36
|
|
@@ -63,11 +62,16 @@ IRCのチャンネルはfreenodeの #nokogiri です。
|
|
63
62
|
|
64
63
|
== REQUIREMENTS:
|
65
64
|
|
66
|
-
* ruby 1.
|
67
|
-
|
68
|
-
* libxml2
|
69
|
-
|
70
|
-
|
65
|
+
* ruby 1.9.3以上
|
66
|
+
|
67
|
+
* Nokogiri 1.6.0以降ではlibxml2とlibxsltは同梱されているが、
|
68
|
+
もしインストール済みのものを使いたい場合:
|
69
|
+
|
70
|
+
* libxml2 2.6.17以上2.9.0未満, iconvサポート付きのもの
|
71
|
+
(libxml2-dev/-develパッケージも必要)
|
72
|
+
|
73
|
+
* libxslt 上記のlibxml2でビルドされ、サポートされているもの
|
74
|
+
(libxslt-dev/-develパッケージも必要)
|
71
75
|
|
72
76
|
== INSTALL:
|
73
77
|
|
@@ -77,7 +81,7 @@ IRCのチャンネルはfreenodeの #nokogiri です。
|
|
77
81
|
|
78
82
|
(The MIT License)
|
79
83
|
|
80
|
-
Copyright (c) 2008 -
|
84
|
+
Copyright (c) 2008 - 2013:
|
81
85
|
|
82
86
|
* {Aaron Patterson}[http://tenderlovemaking.com]
|
83
87
|
* {Mike Dalessio}[http://mike.daless.io]
|
@@ -85,6 +89,7 @@ Copyright (c) 2008 - 2010:
|
|
85
89
|
* {Sergio Arbeo}[http://www.serabe.com]
|
86
90
|
* {Patrick Mahoney}[http://polycrystal.org]
|
87
91
|
* {Yoko Harada}[http://yokolet.blogspot.com]
|
92
|
+
* {Akinori MUSHA}[https://akinori.org]
|
88
93
|
|
89
94
|
Permission is hereby granted, free of charge, to any person obtaining
|
90
95
|
a copy of this software and associated documentation files (the
|