nokogiri 1.6.4-java → 1.6.4.1-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66cb83c6a888ca7f5f5ea610f98dc4f7c6c369a5
4
- data.tar.gz: fa10b56f90fde40081b0ab25e26df2d77ed16422
3
+ metadata.gz: 8353cac07237f5e65173ea5c626e1a18caf5a6a2
4
+ data.tar.gz: 1cf345611b8685978c8c0f8b7090d1e79d046a50
5
5
  SHA512:
6
- metadata.gz: e8aacd7d8230779be66d1c9ade57b8cd885884069c70af50ac149080356cf30b97420753c3256d6afd9ea08d0ee3c8489c1b5eecd9bdeb0ffb60a8c0d1f7dcb5
7
- data.tar.gz: e00cc9905f6dd766ddea6cd9506aa3b672af0fdc68d1f986d2cec301fcc4d2635f04b16e40765250e62af51e0d3fd1768de25107c3bc690f950f0f93694039cc
6
+ metadata.gz: b48fcad3ebed969d2117353f7e0fa474c67f6de83877fc77ffd56722798f11d66d75fe92cb8c269472f9a0ab2b14a88ef514cecc60607fd09be484a63f3ab5c8
7
+ data.tar.gz: cde24f8b555391062500989f99a0e4186a175dc17e6d866f27470d29f15a6d6c3dc6e4a9b39de090b25eb4de2d92f3202a45ab5afd3a580248aa7c7c22ffe04b
@@ -1,66 +1,74 @@
1
- === 1.6.4 / 2014-11-04
1
+ === 1.6.4.1 / 201411月5日
2
+
3
+ ==== Bug fixes
4
+
5
+ * (MRI) 渡したCFLAGSが反映されないバグを修正 (#1188)
6
+ * CSSセレクタの :nth(n) が動かなかったのを修正 (#1187)
7
+
8
+
9
+ === 1.6.4 / 2014年11月4日
2
10
 
3
11
  ==== 機能
4
12
 
5
- * (MRI) Bundled Libxml2 is upgraded to 2.9.2.
6
- * (MRI) `nokogiri --version` will include a list of applied patches.
7
- * (MRI) Nokogiri no longer prints messages directly to TTY while building the extension.
8
- * (MRI) Detect and help user fix a missing /usr/include/iconv.h on OS X. (#1111)
9
- * (MRI) Improve the iconv detection for building libxml2.
13
+ * (MRI) 同梱の libxml2 2.9.2 に更新
14
+ * (MRI) `nokogiri --version` の出力にパッチ一覧を追加
15
+ * (MRI) ビルド中に端末に直接注意書きを出力していたのを廃止
16
+ * (MRI) OS Xで /usr/include/iconv.h が存在しないのを検出し、警告するように (#1111)
17
+ * (MRI) iconvの検出を libxml2 と同一の手順で行うようにした
10
18
 
11
19
  ==== バグ修正
12
20
 
13
- * (MRI) Fix DocumentFragment#element_children (#1138).
14
- * Fix a bug with CSS attribute selector without any prefix where "foo [bar]" was treated as "foo[bar]". (#1174)
21
+ * (MRI) DocumentFragment#element_children を修正 (#1138)
22
+ * CSSの属性セレクタが先行トークンを伴わない場合 "foo [bar]" "foo[bar]" のように解釈されていたバグを修正 (#1174)
15
23
 
16
24
 
17
25
  === 1.6.3.1 / 2014年7月21日
18
26
 
19
27
  ==== バグ修正
20
28
 
21
- * Addressing an Apple Macintosh installation problem for GCC users. #1130 (Thanks, @zenspider!)
29
+ * MacでGCCを使うとエラーになる問題に対処 #1130 (@zenspiderに感謝!)
22
30
 
23
31
 
24
32
  === 1.6.3 / 2014年7月20日
25
33
 
26
34
  ==== 機能
27
35
 
28
- * Added Node#document? and Node#processing_instruction?
36
+ * Node#document? Node#processing_instruction? を追加
29
37
 
30
38
 
31
39
  ==== バグ修正
32
40
 
33
- * [JRuby] Fix Ruby memory exhaustion vulnerability. #1087 (Thanks, @ocher)
34
- * [MRI] Fix segfault during GC when using `libxml-ruby` and `nokogiri` together in multi-threaded environment. #895 (Thanks, @ender672!)
35
- * Building on OSX 10.9 stock ruby 2.0.0 now works. #1101 (Thanks, @zenspider!)
36
- * Node#parse now works again for HTML document nodes (broken in 1.6.2+).
37
- * Processing instructions can now be added via Node#add_next_sibling.
41
+ * [JRuby] メモリを使い果たす脆弱性の修正 #1087 (@ocherに感謝)
42
+ * [MRI] `libxml-ruby` `nokogiri` とをマルチスレッド環境で同時に使うとGC中にsegfaultする問題を修正 #895 (@ender672に感謝!)
43
+ * OS X 10.9 同梱の ruby 2.0.0 でビルド可能に #1101 (@zenspiderに感謝!)
44
+ * 1.6.2以降 Node#parse HTML文書ノードに対して動かなかった問題を修正
45
+ * XML処理命令(PI)を Node#add_next_sibling で挿入可能に
38
46
 
39
47
 
40
48
  === 1.6.2.1 / 2014年5月13日
41
49
 
42
50
  ==== バグ修正
43
51
 
44
- * Fix statically-linked libxml2 installation when using universal builds of Ruby. #1104
45
- * Patching `mini_portile` to address the git dependency detailed in #1102.
46
- * Library load fix to address segfault reported on some systems. #1097
52
+ * ユニバーサルバイナリ版 ruby における libxml2 の静的リンクを修正 #1104
53
+ * `mini_portile` Git への依存をパッチによって除去 #1102
54
+ * 一部プラットフォームにおけるライブラリロードにまつわるsegfaultを修正 #1097
47
55
 
48
56
 
49
57
  === 1.6.2 / 2014年5月12日
50
58
 
51
- ==== Security 註
59
+ ==== セキュリティ
52
60
 
53
- 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:
61
+ 同梱の libxml2 (2.8.0) libxslt に各レポジトリからセキュリティ修正が移植された. 以下の脆弱性対応を含む.
54
62
 
55
63
  * https://git.gnome.org/browse/libxml2/commit/?id=4629ee02ac649c27f9c0cf98ba017c6b5526070f
56
64
  * CVE-2013-2877 https://git.gnome.org/browse/libxml2/commit/?id=e50ba8164eee06461c73cd8abb9b46aa0be81869
57
65
  * CVE-2014-0191 https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df
58
66
 
59
- It is recommended that you upgrade from 1.6.x to this version as soon as possible.
67
+ 1.6.x のユーザは早急にアップグレードされたい.
60
68
 
61
- ==== Compatibility 註
69
+ ==== 互換性
62
70
 
63
- Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
71
+ libxml2 2.6.21 以上が必要に. (従前は 2.6.17 以上)
64
72
 
65
73
  ==== 機能
66
74
 
@@ -87,12 +95,12 @@ Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
87
95
  * 同梱のライブラリを使う場合にはextconf.rbでpkg_configを呼ばなくなった #931 (Shota Fukumoriに感謝!)
88
96
  * Nokogiri.parse()がRSS文書などをHTML文書として誤認する問題を修正 #932 (Yamagishi Kazutoshiに感謝!)
89
97
  * (MRI) ノードに対して子ノードを追加する際、ノードタイプをチェックするようにした。従来はテキストノードに別のテキストノードを追加する操作によりSEGVが発生していた。 #1092
90
- * (JRuby) XSD validation crashes in Java version. #373
91
- * (JRuby) Document already has a root node error while using Builder. #646
92
- * (JRuby) c14n tests are all passing on JRuby. #226
93
- * Parsing empty documents raise SyntaxError in strict mode. #1005
94
- * (JRuby) Make xpath faster by caching the xpath context. #741
95
- * (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998
98
+ * (JRuby) XSDのバリデーションがJava版でクラッシュする問題 #373
99
+ * (JRuby) Builder使用時の「Document already has a root node」エラー #646
100
+ * (JRuby) c14nテストがすべて通るように #226
101
+ * 厳格(strict)モードで空の文書をパースするとSyntaxErrorが起きる問題 #1005
102
+ * (JRuby) XPathコンテクストをキャッシュするようにして高速化 #741
103
+ * (JRuby) XML SAXプッシュパーサーのメモリリーク #998
96
104
  * (JRUby) JRubyによるディフォルトネームスペースエイリアスの振る舞いがCRubyと同じではない。#940
97
105
  * (JRuby) JRubyによるネームスペースのパースと追加の振る舞いが一致していない。 #943
98
106
  * (JRuby) Builderで作ったドキュメントとクローンしたドキュメントではXpathの結果が違う。#1034
@@ -105,8 +113,8 @@ Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
105
113
 
106
114
  * Bugfixes
107
115
 
108
- * (JRuby) Fix out of memory bug when certain invalid documents are parsed.
109
- * (JRuby) Fix regression of billion-laughs vulnerability. #586
116
+ * (JRuby) 不正なドキュメントをパースするときにメモリ不足に陥るバグを修正
117
+ * (JRuby) Billion-laughs攻撃対策のリグレッションを修正 #586
110
118
 
111
119
 
112
120
  === 1.6.0 / 2013年6月8日
@@ -145,8 +153,8 @@ Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
145
153
 
146
154
  * Bugfixes
147
155
 
148
- * (JRuby) Fix out of memory bug when certain invalid documents are parsed.
149
- * (JRuby) Fix regression of billion-laughs vulnerability. #586
156
+ * (JRuby) 不正なドキュメントをパースするときにメモリ不足に陥るバグを修正
157
+ * (JRuby) Billion-laughs攻撃対策のリグレッションを修正 #586
150
158
 
151
159
 
152
160
  === 1.5.10 / 2013年6月7日
@@ -1,3 +1,11 @@
1
+ === 1.6.4.1 / 2014-11-05
2
+
3
+ ==== Bug fixes
4
+
5
+ * (MRI) Fix a bug where CFLAGS passed in are dropped. (#1188)
6
+ * Fix a bug where CSS selector :nth(n) did not work. (#1187)
7
+
8
+
1
9
  === 1.6.4 / 2014-11-04
2
10
 
3
11
  ==== Features
@@ -74,7 +74,7 @@ end
74
74
  def add_cflags(flags)
75
75
  print "checking if the C compiler accepts #{flags}... "
76
76
  with_cflags("#{$CFLAGS} #{flags}") do
77
- if try_compile("int main() {return 0;}", werror: true)
77
+ if try_compile("int main() {return 0;}", '', werror: true)
78
78
  puts 'yes'
79
79
  true
80
80
  else
@@ -530,12 +530,13 @@ end
530
530
  # reduce 39 omitted
531
531
 
532
532
  def _reduce_40(val, _values, result)
533
- if val[0] == 'even'
534
- val = ["2","n","+","0"]
535
- result = Node.new(:NTH, val)
536
- elsif val[0] == 'odd'
537
- val = ["2","n","+","1"]
538
- result = Node.new(:NTH, val)
533
+ case val[0]
534
+ when 'even'
535
+ result = Node.new(:NTH, ['2','n','+','0'])
536
+ when 'odd'
537
+ result = Node.new(:NTH, ['2','n','+','1'])
538
+ when 'n'
539
+ result = Node.new(:NTH, ['1','n','+','0'])
539
540
  else
540
541
  # This is not CSS standard. It allows us to support this:
541
542
  # assert_xpath("//a[foo(., @href)]", @parser.parse('a:foo(@href)'))
@@ -131,12 +131,13 @@ rule
131
131
  | STRING
132
132
  | IDENT # even, odd
133
133
  {
134
- if val[0] == 'even'
135
- val = ["2","n","+","0"]
136
- result = Node.new(:NTH, val)
137
- elsif val[0] == 'odd'
138
- val = ["2","n","+","1"]
139
- result = Node.new(:NTH, val)
134
+ case val[0]
135
+ when 'even'
136
+ result = Node.new(:NTH, ['2','n','+','0'])
137
+ when 'odd'
138
+ result = Node.new(:NTH, ['2','n','+','1'])
139
+ when 'n'
140
+ result = Node.new(:NTH, ['1','n','+','0'])
140
141
  else
141
142
  # This is not CSS standard. It allows us to support this:
142
143
  # assert_xpath("//a[foo(., @href)]", @parser.parse('a:foo(@href)'))
Binary file
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.6.4'
3
+ VERSION = '1.6.4.1'
4
4
 
5
5
  class VersionInfo # :nodoc:
6
6
  def jruby?
@@ -78,6 +78,10 @@ EOF
78
78
  assert_result_rows [1,3,5,7,9,11,13], @parser.search("table/tr:nth(odd)")
79
79
  end
80
80
 
81
+ def test_n
82
+ assert_result_rows (1..14).to_a, @parser.search("table/tr:nth(n)")
83
+ end
84
+
81
85
  def test_2n
82
86
  assert_equal @parser.search("table/tr:nth(even)").inner_text, @parser.search("table/tr:nth(2n)").inner_text
83
87
  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.6.4
4
+ version: 1.6.4.1
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-11-05 00:00:00.000000000 Z
15
+ date: 2014-11-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rdoc
@@ -625,72 +625,72 @@ signing_key:
625
625
  specification_version: 4
626
626
  summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
627
627
  test_files:
628
- - test/test_nokogiri.rb
628
+ - test/test_reader.rb
629
629
  - test/test_memory_leak.rb
630
- - test/test_convert_xpath.rb
631
- - test/test_css_cache.rb
630
+ - test/test_soap4r_sax.rb
631
+ - test/test_nokogiri.rb
632
632
  - test/test_xslt_transforms.rb
633
+ - test/test_convert_xpath.rb
633
634
  - test/test_encoding_handler.rb
634
- - test/test_soap4r_sax.rb
635
- - test/test_reader.rb
636
- - test/xml/test_element_content.rb
635
+ - test/test_css_cache.rb
636
+ - test/xml/test_processing_instruction.rb
637
+ - test/xml/test_c14n.rb
637
638
  - test/xml/test_builder.rb
638
- - test/xml/test_element_decl.rb
639
- - test/xml/test_parse_options.rb
640
- - test/xml/test_dtd_encoding.rb
641
- - test/xml/test_attribute_decl.rb
642
- - test/xml/test_cdata.rb
643
639
  - test/xml/test_document_fragment.rb
644
- - test/xml/test_dtd.rb
640
+ - test/xml/test_comment.rb
641
+ - test/xml/test_unparented_node.rb
645
642
  - test/xml/test_node_reparenting.rb
646
- - test/xml/test_c14n.rb
647
- - test/xml/test_node_inheritance.rb
643
+ - test/xml/test_syntax_error.rb
644
+ - test/xml/test_cdata.rb
645
+ - test/xml/test_entity_reference.rb
648
646
  - test/xml/test_schema.rb
649
- - test/xml/test_processing_instruction.rb
650
- - test/xml/test_attr.rb
651
- - test/xml/test_namespace.rb
652
- - test/xml/test_relax_ng.rb
647
+ - test/xml/test_xinclude.rb
648
+ - test/xml/test_document.rb
649
+ - test/xml/test_node_inheritance.rb
650
+ - test/xml/test_text.rb
653
651
  - test/xml/test_xpath.rb
654
- - test/xml/test_reader_encoding.rb
655
- - test/xml/test_node_encoding.rb
652
+ - test/xml/test_element_decl.rb
656
653
  - test/xml/test_node_attributes.rb
657
- - test/xml/test_text.rb
658
- - test/xml/test_document.rb
659
- - test/xml/test_entity_reference.rb
654
+ - test/xml/test_attribute_decl.rb
660
655
  - test/xml/test_node.rb
656
+ - test/xml/test_reader_encoding.rb
657
+ - test/xml/test_parse_options.rb
658
+ - test/xml/test_node_set.rb
659
+ - test/xml/test_dtd.rb
661
660
  - test/xml/test_document_encoding.rb
662
- - test/xml/test_unparented_node.rb
663
- - test/xml/test_syntax_error.rb
664
661
  - test/xml/test_entity_decl.rb
665
- - test/xml/test_comment.rb
666
- - test/xml/test_node_set.rb
667
- - test/xml/test_xinclude.rb
668
- - test/xml/node/test_save_options.rb
669
- - test/xml/node/test_subclass.rb
670
- - test/xml/sax/test_parser.rb
662
+ - test/xml/test_node_encoding.rb
663
+ - test/xml/test_attr.rb
664
+ - test/xml/test_relax_ng.rb
665
+ - test/xml/test_namespace.rb
666
+ - test/xml/test_element_content.rb
667
+ - test/xml/test_dtd_encoding.rb
671
668
  - test/xml/sax/test_parser_context.rb
669
+ - test/xml/sax/test_parser.rb
672
670
  - test/xml/sax/test_push_parser.rb
673
- - test/xslt/test_exception_handling.rb
674
- - test/xslt/test_custom_functions.rb
675
- - test/decorators/test_slop.rb
671
+ - test/xml/node/test_subclass.rb
672
+ - test/xml/node/test_save_options.rb
673
+ - test/css/test_tokenizer.rb
674
+ - test/css/test_xpath_visitor.rb
675
+ - test/css/test_nthiness.rb
676
+ - test/css/test_parser.rb
676
677
  - test/html/test_builder.rb
677
678
  - test/html/test_document_fragment.rb
678
- - test/html/test_named_characters.rb
679
679
  - test/html/test_element_description.rb
680
- - test/html/test_node_encoding.rb
681
680
  - test/html/test_document.rb
681
+ - test/html/test_named_characters.rb
682
682
  - test/html/test_node.rb
683
683
  - test/html/test_document_encoding.rb
684
- - test/html/sax/test_parser.rb
684
+ - test/html/test_node_encoding.rb
685
685
  - test/html/sax/test_parser_context.rb
686
- - test/css/test_tokenizer.rb
687
- - test/css/test_parser.rb
688
- - test/css/test_nthiness.rb
689
- - test/css/test_xpath_visitor.rb
686
+ - test/html/sax/test_parser.rb
687
+ - test/xslt/test_custom_functions.rb
688
+ - test/xslt/test_exception_handling.rb
689
+ - test/decorators/test_slop.rb
690
+ - test/namespaces/test_namespaces_in_cloned_doc.rb
691
+ - test/namespaces/test_additional_namespaces_in_builder_doc.rb
690
692
  - test/namespaces/test_namespaces_in_parsed_doc.rb
691
693
  - test/namespaces/test_namespaces_aliased_default.rb
692
- - test/namespaces/test_namespaces_in_cloned_doc.rb
693
694
  - test/namespaces/test_namespaces_preservation.rb
694
695
  - test/namespaces/test_namespaces_in_created_doc.rb
695
- - test/namespaces/test_additional_namespaces_in_builder_doc.rb
696
696
  - test/namespaces/test_namespaces_in_builder_doc.rb