nokogiri 1.5.11-x86-mswin32-60 → 1.6.0-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.

@@ -45,14 +45,17 @@ class TestReader < Nokogiri::TestCase
45
45
  node_out = node
46
46
  break
47
47
  end
48
+ rd.close
48
49
  end
49
50
  sleep(1) # sleep for one second to make sure the reader will actually block for input
50
- wr.puts "<foo>"
51
- wr.puts "<bar/>" * 10000
52
- wr.flush
51
+ begin
52
+ wr.puts "<foo>"
53
+ wr.puts "<bar/>" * 10000
54
+ wr.flush
55
+ rescue Errno::EPIPE
56
+ end
53
57
  res = t.join(5) # wait 5 seconds for the thread to finish
54
58
  wr.close
55
- rd.close
56
59
  refute_nil node_out, "Didn't read any nodes, exclude the trivial case"
57
60
  refute_nil res, "Reader blocks trying to read the entire stream"
58
61
  end
@@ -60,40 +60,6 @@ module Nokogiri
60
60
  assert_equal nil, @xml.root
61
61
  end
62
62
 
63
- def test_million_laugh_attach
64
- doc = Nokogiri::XML '<?xml version="1.0"?>
65
- <!DOCTYPE lolz [
66
- <!ENTITY lol "lol">
67
- <!ENTITY lol2 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;">
68
- <!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;">
69
- <!ENTITY lol4 "&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;">
70
- <!ENTITY lol5 "&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;">
71
- <!ENTITY lol6 "&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;">
72
- <!ENTITY lol7 "&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;">
73
- <!ENTITY lol8 "&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;">
74
- <!ENTITY lol9 "&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;">
75
- ]>
76
- <lolz>&lol9;</lolz>'
77
- assert_not_nil doc
78
- end
79
-
80
- def test_million_laugh_attach_2
81
- doc = Nokogiri::XML '<?xml version="1.0" encoding="UTF-8"?>
82
- <!DOCTYPE member [
83
- <!ENTITY a "&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;">
84
- <!ENTITY b "&c;&c;&c;&c;&c;&c;&c;&c;&c;&c;">
85
- <!ENTITY c "&d;&d;&d;&d;&d;&d;&d;&d;&d;&d;">
86
- <!ENTITY d "&e;&e;&e;&e;&e;&e;&e;&e;&e;&e;">
87
- <!ENTITY e "&f;&f;&f;&f;&f;&f;&f;&f;&f;&f;">
88
- <!ENTITY f "&g;&g;&g;&g;&g;&g;&g;&g;&g;&g;">
89
- <!ENTITY g "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
90
- ]>
91
- <member>
92
- &a;
93
- </member>'
94
- assert_not_nil doc
95
- end
96
-
97
63
  def test_ignore_unknown_namespace
98
64
  doc = Nokogiri::XML(<<-eoxml)
99
65
  <xml>
@@ -553,12 +519,6 @@ module Nokogiri
553
519
  end
554
520
  end
555
521
 
556
- def test_memory_explosion_on_invalid_xml
557
- doc = Nokogiri::XML("<<<")
558
- refute_nil doc
559
- refute_empty doc.errors
560
- end
561
-
562
522
  def test_document_has_errors
563
523
  doc = Nokogiri::XML(<<-eoxml)
564
524
  <foo><bar></foo>
data/test_all CHANGED
@@ -10,7 +10,7 @@
10
10
  # (e.g., 1.9.3's glob_helper). ["rake test:valgrind:suppression"]
11
11
  #
12
12
 
13
- RUBIES="ruby-1.9.3-p327 jruby-1.7.3 jruby-1.6.5.1 jruby-1.6.7.2 ree-1.8.7-2011.12 ruby-1.9.2-p320 ruby-1.8.7-p370"
13
+ RUBIES="ruby-1.9.3-p327 jruby-1.7.3 jruby-1.6.5.1 jruby-1.6.7.2 ruby-1.9.2-p320"
14
14
  TEST_LOG=test.log
15
15
  VALGRIND_LOG=valgrind.log
16
16
 
@@ -34,7 +34,7 @@ function rvm_use {
34
34
 
35
35
  function generate_parser_and_tokenizer {
36
36
  old_ruby=$current_ruby
37
- rvm_use ruby-1.8.7-p357
37
+ rvm_use ruby-1.9.3-p327
38
38
  bundle exec rake generate 2>&1 > /dev/null
39
39
  rvm_use $old_ruby
40
40
  }
metadata CHANGED
@@ -1,9 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
- version: !ruby/object:Gem::Version
4
- version: 1.5.11
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.0
5
+ prerelease:
5
6
  platform: x86-mswin32-60
6
- authors:
7
+ authors:
7
8
  - Aaron Patterson
8
9
  - Mike Dalessio
9
10
  - Yoko Harada
@@ -11,152 +12,223 @@ authors:
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
-
15
- date: 2013-12-14 00:00:00 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
18
- version_requirements: &id001 !ruby/object:Gem::Requirement
19
- requirements:
15
+ date: 2013-06-10 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: mini_portile
19
+ requirement: !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
20
22
  - - ~>
21
- - !ruby/object:Gem::Version
22
- version: "4.0"
23
- type: :development
24
- name: rdoc
23
+ - !ruby/object:Gem::Version
24
+ version: 0.5.0
25
+ type: :runtime
25
26
  prerelease: false
26
- requirement: *id001
27
- - !ruby/object:Gem::Dependency
28
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: "1.1"
33
- type: :development
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 0.5.0
33
+ - !ruby/object:Gem::Dependency
34
34
  name: hoe-bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ type: :development
35
42
  prerelease: false
36
- requirement: *id002
37
- - !ruby/object:Gem::Dependency
38
- version_requirements: &id003 !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '1.1'
49
+ - !ruby/object:Gem::Dependency
50
+ name: hoe-debugging
51
+ requirement: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
42
56
  version: 1.0.3
43
57
  type: :development
44
- name: hoe-debugging
45
58
  prerelease: false
46
- requirement: *id003
47
- - !ruby/object:Gem::Dependency
48
- version_requirements: &id004 !ruby/object:Gem::Requirement
49
- requirements:
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: "1.0"
53
- type: :development
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: 1.0.3
65
+ - !ruby/object:Gem::Dependency
54
66
  name: hoe-gemspec
55
- prerelease: false
56
- requirement: *id004
57
- - !ruby/object:Gem::Dependency
58
- version_requirements: &id005 !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: "1.4"
67
+ requirement: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '1.0'
63
73
  type: :development
64
- name: hoe-git
65
74
  prerelease: false
66
- requirement: *id005
67
- - !ruby/object:Gem::Dependency
68
- version_requirements: &id006 !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 0.2.2
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '1.0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: hoe-git
83
+ requirement: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '1.4'
73
89
  type: :development
74
- name: mini_portile
75
90
  prerelease: false
76
- requirement: *id006
77
- - !ruby/object:Gem::Dependency
78
- version_requirements: &id007 !ruby/object:Gem::Requirement
79
- requirements:
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '1.4'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
80
102
  - - ~>
81
- - !ruby/object:Gem::Version
103
+ - !ruby/object:Gem::Version
82
104
  version: 2.2.2
83
105
  type: :development
84
- name: minitest
85
106
  prerelease: false
86
- requirement: *id007
87
- - !ruby/object:Gem::Dependency
88
- version_requirements: &id008 !ruby/object:Gem::Requirement
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: "0.9"
93
- type: :development
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: 2.2.2
113
+ - !ruby/object:Gem::Dependency
94
114
  name: rake
115
+ requirement: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0.9'
121
+ type: :development
95
122
  prerelease: false
96
- requirement: *id008
97
- - !ruby/object:Gem::Dependency
98
- version_requirements: &id009 !ruby/object:Gem::Requirement
99
- requirements:
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0.9'
129
+ - !ruby/object:Gem::Dependency
130
+ name: rake-compiler
131
+ requirement: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
100
134
  - - ~>
101
- - !ruby/object:Gem::Version
135
+ - !ruby/object:Gem::Version
102
136
  version: 0.8.0
103
137
  type: :development
104
- name: rake-compiler
105
138
  prerelease: false
106
- requirement: *id009
107
- - !ruby/object:Gem::Dependency
108
- version_requirements: &id010 !ruby/object:Gem::Requirement
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: 0.8.0
145
+ - !ruby/object:Gem::Dependency
146
+ name: racc
147
+ requirement: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
112
152
  version: 1.4.6
113
153
  type: :development
114
- name: racc
115
154
  prerelease: false
116
- requirement: *id010
117
- - !ruby/object:Gem::Dependency
118
- version_requirements: &id011 !ruby/object:Gem::Requirement
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: 1.4.6
161
+ - !ruby/object:Gem::Dependency
162
+ name: rexical
163
+ requirement: !ruby/object:Gem::Requirement
164
+ none: false
165
+ requirements:
166
+ - - ! '>='
167
+ - !ruby/object:Gem::Version
122
168
  version: 1.0.5
123
169
  type: :development
124
- name: rexical
125
170
  prerelease: false
126
- requirement: *id011
127
- - !ruby/object:Gem::Dependency
128
- version_requirements: &id012 !ruby/object:Gem::Requirement
129
- requirements:
171
+ version_requirements: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: 1.0.5
177
+ - !ruby/object:Gem::Dependency
178
+ name: rdoc
179
+ requirement: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
130
182
  - - ~>
131
- - !ruby/object:Gem::Version
132
- version: "3.7"
183
+ - !ruby/object:Gem::Version
184
+ version: '3.10'
133
185
  type: :development
186
+ prerelease: false
187
+ version_requirements: !ruby/object:Gem::Requirement
188
+ none: false
189
+ requirements:
190
+ - - ~>
191
+ - !ruby/object:Gem::Version
192
+ version: '3.10'
193
+ - !ruby/object:Gem::Dependency
134
194
  name: hoe
195
+ requirement: !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ~>
199
+ - !ruby/object:Gem::Version
200
+ version: '2.16'
201
+ type: :development
135
202
  prerelease: false
136
- requirement: *id012
137
- description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
138
- many features is the ability to search documents via XPath or CSS3 selectors.\n\n\
139
- XML is like violence - if it doesn\xE2\x80\x99t solve your problems, you are not using\n\
140
- enough of it."
141
- email:
203
+ version_requirements: !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - ~>
207
+ - !ruby/object:Gem::Version
208
+ version: '2.16'
209
+ description: ! 'Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri''s
210
+
211
+ many features is the ability to search documents via XPath or CSS3 selectors.
212
+
213
+
214
+ XML is like violence - if it doesn’t solve your problems, you are not using
215
+
216
+ enough of it.'
217
+ email:
142
218
  - aaronp@rubyforge.org
143
219
  - mike.dalessio@gmail.com
144
220
  - yokolet@gmail.com
145
221
  - tle@holymonkey.com
146
- executables:
222
+ executables:
147
223
  - nokogiri
148
224
  extensions: []
149
-
150
- extra_rdoc_files:
225
+ extra_rdoc_files:
151
226
  - CHANGELOG.ja.rdoc
152
227
  - CHANGELOG.rdoc
153
228
  - C_CODING_STYLE.rdoc
154
229
  - Manifest.txt
155
230
  - README.ja.rdoc
156
231
  - README.rdoc
157
- - ROADMAP.md
158
- - STANDARD_RESPONSES.md
159
- - Y_U_NO_GEMSPEC.md
160
232
  - ext/nokogiri/html_document.c
161
233
  - ext/nokogiri/html_element_description.c
162
234
  - ext/nokogiri/html_entity_lookup.c
@@ -191,12 +263,14 @@ extra_rdoc_files:
191
263
  - ext/nokogiri/xml_text.c
192
264
  - ext/nokogiri/xml_xpath_context.c
193
265
  - ext/nokogiri/xslt_stylesheet.c
194
- files:
266
+ files:
195
267
  - .autotest
196
268
  - .gemtest
269
+ - .travis.yml
197
270
  - CHANGELOG.ja.rdoc
198
271
  - CHANGELOG.rdoc
199
272
  - C_CODING_STYLE.rdoc
273
+ - Gemfile
200
274
  - Manifest.txt
201
275
  - README.ja.rdoc
202
276
  - README.rdoc
@@ -206,6 +280,7 @@ files:
206
280
  - Y_U_NO_GEMSPEC.md
207
281
  - bin/nokogiri
208
282
  - build_all
283
+ - dependencies.yml
209
284
  - ext/nokogiri/depend
210
285
  - ext/nokogiri/extconf.rb
211
286
  - ext/nokogiri/html_document.c
@@ -349,6 +424,7 @@ files:
349
424
  - test/files/address_book.rlx
350
425
  - test/files/address_book.xml
351
426
  - test/files/bar/bar.xsd
427
+ - test/files/bogus.xml
352
428
  - test/files/dont_hurt_em_why.xml
353
429
  - test/files/encoding.html
354
430
  - test/files/encoding.xhtml
@@ -359,6 +435,10 @@ files:
359
435
  - test/files/noencoding.html
360
436
  - test/files/po.xml
361
437
  - test/files/po.xsd
438
+ - test/files/saml/saml20assertion_schema.xsd
439
+ - test/files/saml/saml20protocol_schema.xsd
440
+ - test/files/saml/xenc_schema.xsd
441
+ - test/files/saml/xmldsig_schema.xsd
362
442
  - test/files/shift_jis.html
363
443
  - test/files/shift_jis.xml
364
444
  - test/files/snuggles.xml
@@ -383,6 +463,10 @@ files:
383
463
  - test/html/test_named_characters.rb
384
464
  - test/html/test_node.rb
385
465
  - test/html/test_node_encoding.rb
466
+ - test/namespaces/test_additional_namespaces_in_builder_doc.rb
467
+ - test/namespaces/test_namespaces_in_builder_doc.rb
468
+ - test/namespaces/test_namespaces_in_created_doc.rb
469
+ - test/namespaces/test_namespaces_in_parsed_doc.rb
386
470
  - test/test_convert_xpath.rb
387
471
  - test/test_css_cache.rb
388
472
  - test/test_encoding_handler.rb
@@ -431,43 +515,36 @@ files:
431
515
  - test/xslt/test_custom_functions.rb
432
516
  - test/xslt/test_exception_handling.rb
433
517
  - test_all
434
- - test/namespaces/test_namespaces_in_builder_doc.rb
435
- - test/namespaces/test_namespaces_in_created_doc.rb
436
- - test/namespaces/test_additional_namespaces_in_builder_doc.rb
437
- - test/namespaces/test_namespaces_in_parsed_doc.rb
438
518
  - lib/nokogiri/nokogiri.rb
439
- - lib/nokogiri/1.8/nokogiri.so
440
519
  - lib/nokogiri/1.9/nokogiri.so
441
520
  - lib/nokogiri/2.0/nokogiri.so
442
521
  homepage: http://nokogiri.org
443
- licenses:
444
- - MIT
445
- metadata: {}
446
-
522
+ licenses: []
447
523
  post_install_message:
448
- rdoc_options:
524
+ rdoc_options:
449
525
  - --main
450
526
  - README.rdoc
451
- require_paths:
527
+ require_paths:
452
528
  - lib
453
- required_ruby_version: !ruby/object:Gem::Requirement
454
- requirements:
455
- - - ">="
456
- - !ruby/object:Gem::Version
457
- version: 1.8.7
458
- required_rubygems_version: !ruby/object:Gem::Requirement
459
- requirements:
460
- - - ">="
461
- - !ruby/object:Gem::Version
462
- version: "0"
529
+ required_ruby_version: !ruby/object:Gem::Requirement
530
+ none: false
531
+ requirements:
532
+ - - ! '>='
533
+ - !ruby/object:Gem::Version
534
+ version: 1.9.2
535
+ required_rubygems_version: !ruby/object:Gem::Requirement
536
+ none: false
537
+ requirements:
538
+ - - ! '>='
539
+ - !ruby/object:Gem::Version
540
+ version: '0'
463
541
  requirements: []
464
-
465
542
  rubyforge_project: nokogiri
466
- rubygems_version: 2.0.13
543
+ rubygems_version: 1.8.25
467
544
  signing_key:
468
- specification_version: 4
469
- summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
470
- test_files:
545
+ specification_version: 3
546
+ summary: Nokogiri () is an HTML, XML, SAX, and Reader parser
547
+ test_files:
471
548
  - test/decorators/test_slop.rb
472
549
  - test/test_encoding_handler.rb
473
550
  - test/css/test_parser.rb