nokogiri 1.5.4-x86-mswin32-60 → 1.5.5.rc1-x86-mswin32-60

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.

@@ -1,42 +1,48 @@
1
- == 1.5.4 / unreleased
1
+ == 1.5.5 / unreleased
2
2
 
3
3
  * Features
4
4
 
5
- * The "nokogiri" script now has more verbose output when passed the `--rng` option. #675 (Thanks, Dan Radez!)
6
- * Build support on hardened Debian systems that use `-Werror=format-security`. #680.
7
- * Better build support for systems with pkg-config. #584
8
- * Better build support for systems with multiple iconv installations.
5
+ * Bugfixes
6
+
7
+ * JRuby Nokogiri add_previous_sibling が以前は動いていたのに今は動かない(1.5.0 -> 1.5.1)。 #691 (ありがとう, John Shahid!)
8
+ * JRuby バーションは URL が引数にあたえられると HTML ドキュメントを作れない。 #674 (ありがとう, John Shahid!)
9
+
10
+
11
+ == 1.5.4 / 2012年6月12日
12
+
13
+ * Features
14
+
15
+ * "nokogiri" コマンドに `--rng` オプションが与えられと、より詳しい説明を表示するようになった。 #675 (ありがとう, Dan Radez!)
16
+ * `-Werror=format-security` CFLAGを使っている hardened な Debian 系 Linux でのビルドをサポート #680.
17
+ * pkg-config ありのシステム上でのよりよいビルドをサポート。 #584
18
+ * 複数の iconv がイストールされているシステムでのよりよいビルドをサポート。
9
19
 
10
20
  * Bugfixes
11
21
 
12
- * Segmentation fault when creating a comment node for a DocumentFragment. #677, #678.
13
- * Treat '.' as xpath in at() and search(). #690
22
+ * DocumentFragment をベースにしてコメントノードを作ったときに Segmentation fault する。 #677, #678.
23
+ * at() search() メソッドで '.' をxpathとして扱う。 #690
14
24
 
15
- * [MRI, Security] Default parse options for XML documents were
16
- changed to not make network connections during document parsing,
17
- to avoid XXE vulnerability. #693
25
+ * [MRI, Security] XML パース時のディフォルトのオプションを nonet に変更。これにより、ディフォルトでは
26
+ ドキュメントパース時にネットワーク接続を行わないようにし、XXE 脆弱性に対応した。#693
18
27
 
19
- To re-enable this behavior, the configuration method `nononet` may
20
- be called, like this:
28
+ パース時にネットワークに接続して外部のドキュメントを見にいかせたい場合には、以下のように `nonoet` オプションを設定する:
21
29
 
22
30
  Nokogiri::XML::Document.parse(xml) { |config| config.nononet }
23
31
 
24
- Insert your own joke about double-negatives here.
32
+ ここに、自分ならではの二重否定のジョークをうめこむとなおよし。
25
33
 
26
34
 
27
- == 1.5.3 / 2012-06-01
35
+ == 1.5.3 / 2012年6月1日
28
36
 
29
37
  * Features
30
38
 
31
- * Support for "prefixless" CSS selectors ~, > and + like jQuery
32
- supports. #621, #623. (Thanks, David Lee!)
39
+ * jQuery のような "prefixless" CSS セレクタ, ~ >, + をサポート。#621, #623. (ありがとう, David Lee!)
33
40
  * Attempting to improve installation on homebrew 0.9 (with regards
34
41
  to iconv). Isn't package management convenient?
35
42
 
36
43
  * Bugfixes
37
44
 
38
- * Custom xpath functions with empty nodeset arguments cause a
39
- segfault. #634.
45
+ * カスタム xpath 関数が空の nodeset を引数に含む場合、segfault を起こす。 #634.
40
46
  * Nokogiri::XML::Node#css now works for XML documents with default
41
47
  namespaces when the rule contains attribute selector without
42
48
  namespace.
@@ -1,4 +1,14 @@
1
- == 1.5.4 / unreleased
1
+ == 1.5.5 / unreleased
2
+
3
+ * Features
4
+
5
+ * Bugfixes
6
+
7
+ * Regression in JRuby Nokogiri add_previous_sibling (1.5.0 -> 1.5.1) #691 (Thanks, Shahid!)
8
+ * JRuby unable to create HTML doc if URL arg provided #674 (Thanks, Shahid!)
9
+
10
+
11
+ == 1.5.4 / 2012-06-12
2
12
 
3
13
  * Features
4
14
 
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.5.4'
3
+ VERSION = '1.5.5.rc1'
4
4
 
5
5
  class VersionInfo # :nodoc:
6
6
  def jruby?
@@ -85,6 +85,17 @@ module Nokogiri
85
85
  assert_equal @html.to_s, html.to_s
86
86
  end
87
87
 
88
+ def test_document_parse_method_with_url
89
+ require 'open-uri'
90
+ begin
91
+ html = open('http://google.com').read
92
+ doc = Nokogiri::HTML html ,"/foo/", nil
93
+ refute_empty doc.to_s, "Document should not be empty"
94
+ rescue
95
+ skip("This test needs the internet. Skips if no internet available.")
96
+ end
97
+ end
98
+
88
99
  ###
89
100
  # Nokogiri::HTML returns an empty Document when given a blank string GH#11
90
101
  def test_empty_string_returns_empty_doc
@@ -156,6 +156,7 @@ module Nokogiri
156
156
  @doc.at_xpath("/root/a1/text()").content.must_equal "First nodehello"
157
157
  end
158
158
  end
159
+
159
160
  describe "#replace" do
160
161
  it "merges the Text node with adjacent Text nodes" do
161
162
  @doc.at_xpath("/root/a3/bx").replace Nokogiri::XML::Text.new('hello', @doc)
@@ -247,6 +248,13 @@ module Nokogiri
247
248
  assert_equal "foo <p></p> bartext node", xml.root.children.to_html
248
249
  end
249
250
 
251
+ it 'should remove the child node after the operation' do
252
+ fragment = Nokogiri::HTML::DocumentFragment.parse("a<a>b</a>")
253
+ node = fragment.children.last
254
+ node.add_previous_sibling node.children
255
+ assert_empty node.children, "should have no childrens"
256
+ end
257
+
250
258
  describe "with a text node before" do
251
259
  it "should not defensively dup the 'before' text node" do
252
260
  xml = Nokogiri::XML %Q(<root>before<p></p>after</root>)
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
4
+ hash: -925257406
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 4
10
- version: 1.5.4
9
+ - 5
10
+ - rc
11
+ - 1
12
+ version: 1.5.5.rc1
11
13
  platform: x86-mswin32-60
12
14
  authors:
13
15
  - Aaron Patterson
@@ -18,7 +20,7 @@ autorequire:
18
20
  bindir: bin
19
21
  cert_chain: []
20
22
 
21
- date: 2012-06-11 00:00:00 Z
23
+ date: 2012-06-12 00:00:00 Z
22
24
  dependencies:
23
25
  - !ruby/object:Gem::Dependency
24
26
  name: hoe-bundler
@@ -523,12 +525,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
523
525
  required_rubygems_version: !ruby/object:Gem::Requirement
524
526
  none: false
525
527
  requirements:
526
- - - ">="
528
+ - - ">"
527
529
  - !ruby/object:Gem::Version
528
- hash: 3
530
+ hash: 25
529
531
  segments:
530
- - 0
531
- version: "0"
532
+ - 1
533
+ - 3
534
+ - 1
535
+ version: 1.3.1
532
536
  requirements: []
533
537
 
534
538
  rubyforge_project: nokogiri