nokogiri 1.6.7.rc3-x64-mingw32 → 1.6.7.rc4-x64-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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7510217b17b1d5ed1b9ffcb5faf9d458df8aa3bc
4
- data.tar.gz: 322fb4e98f2c2e19573712c1135019b168cfcc68
3
+ metadata.gz: 1b3b119e4da9d8cc4d06b6f074c1a00de7960c17
4
+ data.tar.gz: 7e3a049b7f4720a173b0a5280e9cadfcceb8c40c
5
5
  SHA512:
6
- metadata.gz: 9f8304bbdb23116b575e135fa5fe69ad4fdb3b7c5f132872a5e9547a37f128772f71346ce57a42868b2b1f9161ad82e07e77d8b1b4716b078a97538d6cce06fd
7
- data.tar.gz: 3f3d9066eae754e60d126e3ec74ef434f77344802dccf4ce633bdc0ed1fc06292e7efe598b3f06f761a006a8d6318491c48336ae3fb73006683dd1f3c1cde784
6
+ metadata.gz: 99010a979b5fd741cd00c571c42b42af9f0489d983544f1ebed2d6bdec1dc4a50d5010be554aae7cd54ab4da45974f840dabfa2362badfbc630b52148ccee2c5
7
+ data.tar.gz: 8c5ca34e55a38651f33f46546ed108a81a1867e669142c98cb64152c30d4b75611378c1a16bc486755e9d0519217b4353227005e0720aa2ae889f850e1bc3976
@@ -1,4 +1,32 @@
1
- === 1.6.7.rc2 / 2015年0831
1
+ === 1.6.7.rc4 / 2015年1122
2
+
3
+ ==== Security patches
4
+
5
+ This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
6
+
7
+ * CVE-2015-1819
8
+ * CVE-2015-7941_1
9
+ * CVE-2015-7941_2
10
+ * CVE-2015-7942
11
+ * CVE-2015-7942-2
12
+ * CVE-2015-8035
13
+ * CVE-2015-7995
14
+ * unclosed comment uninitialized access issue (does not have a CVE assigned)
15
+
16
+ See #1374 and #1376 for details.
17
+
18
+ ==== Features
19
+
20
+ * [MRI] libxml2 and libxslt `config.guess` files brought up to date. (#1326) (Thanks, @hernan-erasmo!)
21
+ * [JRuby] fix error in validating files with jruby (#1355, #1361) (Thanks, @twalpole!)
22
+ * [MRI, OSX] Patch to handle nonstandard location of `iconv.h`. (#1206, #1210, #1218, #1345) (Thanks, @neonichu!)
23
+
24
+ ==== Bug Fixes
25
+
26
+ * [JRuby] reset the namespace cache when replacing the document's innerHtml (#1265) (Thanks, @mkristian!)
27
+
28
+
29
+ === 1.6.7.rc3 / 2015年09月04日 and 1.6.7.rc2 / 2015年08月31日
2
30
 
3
31
  Note that rc1 was not released.
4
32
 
@@ -1,3 +1,31 @@
1
+ === 1.6.7.rc4 / 2015-11-22
2
+
3
+ ==== Security patches
4
+
5
+ This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
6
+
7
+ * CVE-2015-1819
8
+ * CVE-2015-7941_1
9
+ * CVE-2015-7941_2
10
+ * CVE-2015-7942
11
+ * CVE-2015-7942-2
12
+ * CVE-2015-8035
13
+ * CVE-2015-7995
14
+ * unclosed comment uninitialized access issue (does not have a CVE assigned)
15
+
16
+ See #1374 and #1376 for details.
17
+
18
+ ==== Features
19
+
20
+ * [MRI] libxml2 and libxslt `config.guess` files brought up to date. (#1326) (Thanks, @hernan-erasmo!)
21
+ * [JRuby] fix error in validating files with jruby (#1355, #1361) (Thanks, @twalpole!)
22
+ * [MRI, OSX] Patch to handle nonstandard location of `iconv.h`. (#1206, #1210, #1218, #1345) (Thanks, @neonichu!)
23
+
24
+ ==== Bug Fixes
25
+
26
+ * [JRuby] reset the namespace cache when replacing the document's innerHtml (#1265) (Thanks, @mkristian!)
27
+
28
+
1
29
  === 1.6.7.rc3 / 2015-09-04 and 1.6.7.rc2 / 2015-08-31
2
30
 
3
31
  Note that rc1 was not released.
data/Gemfile CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  source "https://rubygems.org/"
6
6
 
7
- gem "mini_portile", "~>0.7.0.rc4"
7
+ gem "mini_portile2", "~>2.0.0.rc2"
8
8
 
9
9
  gem "rdoc", "~>4.0", :group => [:development, :test]
10
10
  gem "hoe-bundler", ">=1.1", :group => [:development, :test]
@@ -17,6 +17,6 @@ gem "rake-compiler", "~>0.9.2", :group => [:development, :test]
17
17
  gem "rake-compiler-dock", "~>0.4.2", :group => [:development, :test]
18
18
  gem "racc", ">=1.4.6", :group => [:development, :test], :platform => :ruby
19
19
  gem "rexical", ">=1.0.5", :group => [:development, :test], :platform => :ruby
20
- gem "hoe", "~>3.13", :group => [:development, :test]
20
+ gem "hoe", "~>3.14", :group => [:development, :test]
21
21
 
22
22
  # vim: syntax=ruby
data/Rakefile CHANGED
@@ -128,7 +128,8 @@ HOE = Hoe.spec 'nokogiri' do
128
128
 
129
129
  unless java?
130
130
  self.extra_deps += [
131
- ["mini_portile", "~> 0.7.0.rc4"],
131
+ # Keep this version in sync with the one in extconf.rb !
132
+ ["mini_portile2", "~> 2.0.0.rc2"],
132
133
  ]
133
134
  end
134
135
 
@@ -391,7 +391,12 @@ when using_system_libraries?
391
391
  else
392
392
  message "Building nokogiri using packaged libraries.\n"
393
393
 
394
- require 'mini_portile'
394
+ # The gem version constraint in the Rakefile is not respected at install time.
395
+ # Keep this version in sync with the one in the Rakefile !
396
+ gem "mini_portile2", "~> 2.0.0.rc2"
397
+ require 'mini_portile2'
398
+ message "Using mini_portile version #{MiniPortile::VERSION}\n"
399
+
395
400
  require 'yaml'
396
401
 
397
402
  static_p = enable_config('static', true) or
@@ -448,10 +453,10 @@ else
448
453
  ]
449
454
  end
450
455
  else
451
- if darwin_p && !File.exist?('/usr/include/iconv.h')
456
+ if darwin_p && !have_header('iconv.h')
452
457
  abort <<'EOM'.chomp
453
458
  -----
454
- The file "/usr/include/iconv.h" is missing in your build environment,
459
+ The file "iconv.h" is missing in your build environment,
455
460
  which means you haven't installed Xcode Command Line Tools properly.
456
461
 
457
462
  To install Command Line Tools, try running `xcode-select --install` on
@@ -206,7 +206,7 @@ static VALUE column(VALUE self)
206
206
  * recovery=(boolean)
207
207
  *
208
208
  * Should this parser recover from structural errors? It will not stop processing
209
- * file on structural errors if if set to true
209
+ * file on structural errors if set to true
210
210
  */
211
211
  static VALUE set_recovery(VALUE self, VALUE value)
212
212
  {
@@ -226,7 +226,7 @@ static VALUE set_recovery(VALUE self, VALUE value)
226
226
  * recovery
227
227
  *
228
228
  * Should this parser recover from structural errors? It will not stop processing
229
- * file on structural errors if if set to true
229
+ * file on structural errors if set to true
230
230
  */
231
231
  static VALUE get_recovery(VALUE self)
232
232
  {
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.6.7.rc3'
3
+ VERSION = '1.6.7.rc4'
4
4
 
5
5
  class VersionInfo # :nodoc:
6
6
  def jruby?
@@ -14,6 +14,11 @@ module Nokogiri
14
14
  assert @html.xpath(nil)
15
15
  end
16
16
 
17
+ def test_does_not_fail_with_illformatted_html
18
+ doc = Nokogiri::HTML('"</html>";'.force_encoding(Encoding::BINARY))
19
+ assert_not_nil doc
20
+ end
21
+
17
22
  def test_exceptions_remove_newlines
18
23
  errors = @html.errors
19
24
  assert errors.length > 0, 'has errors'
@@ -94,9 +94,22 @@ EOF
94
94
  end
95
95
 
96
96
  def test_validate_invalid_document
97
- read_doc = File.read(PO_XML_FILE).gsub(/<city>[^<]*<\/city>/, '')
97
+ doc = Nokogiri::XML File.read(PO_XML_FILE)
98
+ doc.css("city").unlink
98
99
 
99
- assert errors = @xsd.validate(Nokogiri::XML(read_doc))
100
+ assert errors = @xsd.validate(doc)
101
+ assert_equal 2, errors.length
102
+ end
103
+
104
+ def test_validate_invalid_file
105
+ tempfile = Tempfile.new("xml")
106
+
107
+ doc = Nokogiri::XML File.read(PO_XML_FILE)
108
+ doc.css("city").unlink
109
+ tempfile.write doc.to_xml
110
+ tempfile.close
111
+
112
+ assert errors = @xsd.validate(tempfile.path)
100
113
  assert_equal 2, errors.length
101
114
  end
102
115
 
@@ -425,6 +425,21 @@ END
425
425
  assert_equal 1, xml_doc.xpath('//mods:titleInfo',ns_hash).length
426
426
  assert_equal 'finnish', xml_doc.xpath('//mods:titleInfo[1]/@lang',ns_hash).first.value
427
427
  end
428
+
429
+ def test_xpath_after_reset_doc_via_innerhtml
430
+ xml = <<XML
431
+ <?xml version="1.0" encoding="UTF-8"?>
432
+ <document xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
433
+ <text:section name="Section1">[TEXT_INSIDE_SECTION]</text:section>
434
+ </document>
435
+ XML
436
+
437
+ doc = Nokogiri::XML(xml)
438
+ doc.inner_html = doc.inner_html
439
+ sections = doc.xpath(".//text:section[@name='Section1']")
440
+ assert_equal 1, sections.size
441
+ assert_equal "[TEXT_INSIDE_SECTION]", sections.first.text
442
+ end
428
443
  end
429
444
  end
430
445
  end
data/test_all CHANGED
@@ -14,11 +14,11 @@
14
14
  RUBIES="\
15
15
  ruby-2.2 \
16
16
  ruby-2.1 \
17
- ruby-2.0.0-p598 \
17
+ ruby-2.0.0-p647 \
18
18
  ruby-1.9.3-p551 \
19
19
  ruby-1.9.2-p330 \
20
- jruby-9.0.0.0.pre1 \
21
- jruby-1.7.18
20
+ jruby-9.0.4.0 \
21
+ jruby-1.7.19
22
22
  "
23
23
 
24
24
  TEST_LOG=test.log
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.7.rc3
4
+ version: 1.6.7.rc4
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Aaron Patterson
@@ -12,22 +12,22 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-09-04 00:00:00.000000000 Z
15
+ date: 2015-11-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: mini_portile
18
+ name: mini_portile2
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - "~>"
22
22
  - !ruby/object:Gem::Version
23
- version: 0.7.0.rc4
23
+ version: 2.0.0.rc2
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - "~>"
29
29
  - !ruby/object:Gem::Version
30
- version: 0.7.0.rc4
30
+ version: 2.0.0.rc2
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rdoc
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -188,14 +188,14 @@ dependencies:
188
188
  requirements:
189
189
  - - "~>"
190
190
  - !ruby/object:Gem::Version
191
- version: '3.13'
191
+ version: '3.14'
192
192
  type: :development
193
193
  prerelease: false
194
194
  version_requirements: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - "~>"
197
197
  - !ruby/object:Gem::Version
198
- version: '3.13'
198
+ version: '3.14'
199
199
  description: |-
200
200
  Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
201
201
  Nokogiri's many features is the ability to search documents via XPath