nokogiri 1.5.11-java → 1.6.0-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.

@@ -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,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.11
4
+ prerelease:
5
+ version: 1.6.0
5
6
  platform: java
6
7
  authors:
7
8
  - Aaron Patterson
@@ -11,174 +12,198 @@ authors:
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2013-12-14 00:00:00.000000000 Z
15
+ date: 2013-06-08 00:00:00.000000000 Z
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
17
- name: rdoc
18
+ name: mini_portile
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
- - - ~>
21
+ - - "~>"
21
22
  - !ruby/object:Gem::Version
22
- version: '4.0'
23
+ version: 0.5.0
24
+ none: false
23
25
  requirement: !ruby/object:Gem::Requirement
24
26
  requirements:
25
- - - ~>
27
+ - - "~>"
26
28
  - !ruby/object:Gem::Version
27
- version: '4.0'
29
+ version: 0.5.0
30
+ none: false
28
31
  prerelease: false
29
- type: :development
32
+ type: :runtime
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: hoe-bundler
32
35
  version_requirements: !ruby/object:Gem::Requirement
33
36
  requirements:
34
- - - '>='
37
+ - - ">="
35
38
  - !ruby/object:Gem::Version
36
39
  version: '1.1'
40
+ none: false
37
41
  requirement: !ruby/object:Gem::Requirement
38
42
  requirements:
39
- - - '>='
43
+ - - ">="
40
44
  - !ruby/object:Gem::Version
41
45
  version: '1.1'
46
+ none: false
42
47
  prerelease: false
43
48
  type: :development
44
49
  - !ruby/object:Gem::Dependency
45
50
  name: hoe-debugging
46
51
  version_requirements: !ruby/object:Gem::Requirement
47
52
  requirements:
48
- - - '>='
53
+ - - ">="
49
54
  - !ruby/object:Gem::Version
50
55
  version: 1.0.3
56
+ none: false
51
57
  requirement: !ruby/object:Gem::Requirement
52
58
  requirements:
53
- - - '>='
59
+ - - ">="
54
60
  - !ruby/object:Gem::Version
55
61
  version: 1.0.3
62
+ none: false
56
63
  prerelease: false
57
64
  type: :development
58
65
  - !ruby/object:Gem::Dependency
59
66
  name: hoe-gemspec
60
67
  version_requirements: !ruby/object:Gem::Requirement
61
68
  requirements:
62
- - - '>='
69
+ - - ">="
63
70
  - !ruby/object:Gem::Version
64
71
  version: '1.0'
72
+ none: false
65
73
  requirement: !ruby/object:Gem::Requirement
66
74
  requirements:
67
- - - '>='
75
+ - - ">="
68
76
  - !ruby/object:Gem::Version
69
77
  version: '1.0'
78
+ none: false
70
79
  prerelease: false
71
80
  type: :development
72
81
  - !ruby/object:Gem::Dependency
73
82
  name: hoe-git
74
83
  version_requirements: !ruby/object:Gem::Requirement
75
84
  requirements:
76
- - - '>='
85
+ - - ">="
77
86
  - !ruby/object:Gem::Version
78
87
  version: '1.4'
88
+ none: false
79
89
  requirement: !ruby/object:Gem::Requirement
80
90
  requirements:
81
- - - '>='
91
+ - - ">="
82
92
  - !ruby/object:Gem::Version
83
93
  version: '1.4'
84
- prerelease: false
85
- type: :development
86
- - !ruby/object:Gem::Dependency
87
- name: mini_portile
88
- version_requirements: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - '>='
91
- - !ruby/object:Gem::Version
92
- version: 0.2.2
93
- requirement: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - '>='
96
- - !ruby/object:Gem::Version
97
- version: 0.2.2
94
+ none: false
98
95
  prerelease: false
99
96
  type: :development
100
97
  - !ruby/object:Gem::Dependency
101
98
  name: minitest
102
99
  version_requirements: !ruby/object:Gem::Requirement
103
100
  requirements:
104
- - - ~>
101
+ - - "~>"
105
102
  - !ruby/object:Gem::Version
106
103
  version: 2.2.2
104
+ none: false
107
105
  requirement: !ruby/object:Gem::Requirement
108
106
  requirements:
109
- - - ~>
107
+ - - "~>"
110
108
  - !ruby/object:Gem::Version
111
109
  version: 2.2.2
110
+ none: false
112
111
  prerelease: false
113
112
  type: :development
114
113
  - !ruby/object:Gem::Dependency
115
114
  name: rake
116
115
  version_requirements: !ruby/object:Gem::Requirement
117
116
  requirements:
118
- - - '>='
117
+ - - ">="
119
118
  - !ruby/object:Gem::Version
120
119
  version: '0.9'
120
+ none: false
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0.9'
126
+ none: false
126
127
  prerelease: false
127
128
  type: :development
128
129
  - !ruby/object:Gem::Dependency
129
130
  name: rake-compiler
130
131
  version_requirements: !ruby/object:Gem::Requirement
131
132
  requirements:
132
- - - ~>
133
+ - - "~>"
133
134
  - !ruby/object:Gem::Version
134
135
  version: 0.8.0
136
+ none: false
135
137
  requirement: !ruby/object:Gem::Requirement
136
138
  requirements:
137
- - - ~>
139
+ - - "~>"
138
140
  - !ruby/object:Gem::Version
139
141
  version: 0.8.0
142
+ none: false
140
143
  prerelease: false
141
144
  type: :development
142
145
  - !ruby/object:Gem::Dependency
143
146
  name: racc
144
147
  version_requirements: !ruby/object:Gem::Requirement
145
148
  requirements:
146
- - - '>='
149
+ - - ">="
147
150
  - !ruby/object:Gem::Version
148
151
  version: 1.4.6
152
+ none: false
149
153
  requirement: !ruby/object:Gem::Requirement
150
154
  requirements:
151
- - - '>='
155
+ - - ">="
152
156
  - !ruby/object:Gem::Version
153
157
  version: 1.4.6
158
+ none: false
154
159
  prerelease: false
155
160
  type: :development
156
161
  - !ruby/object:Gem::Dependency
157
162
  name: rexical
158
163
  version_requirements: !ruby/object:Gem::Requirement
159
164
  requirements:
160
- - - '>='
165
+ - - ">="
161
166
  - !ruby/object:Gem::Version
162
167
  version: 1.0.5
168
+ none: false
163
169
  requirement: !ruby/object:Gem::Requirement
164
170
  requirements:
165
- - - '>='
171
+ - - ">="
166
172
  - !ruby/object:Gem::Version
167
173
  version: 1.0.5
174
+ none: false
175
+ prerelease: false
176
+ type: :development
177
+ - !ruby/object:Gem::Dependency
178
+ name: rdoc
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: '3.10'
184
+ none: false
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: '3.10'
190
+ none: false
168
191
  prerelease: false
169
192
  type: :development
170
193
  - !ruby/object:Gem::Dependency
171
194
  name: hoe
172
195
  version_requirements: !ruby/object:Gem::Requirement
173
196
  requirements:
174
- - - ~>
197
+ - - "~>"
175
198
  - !ruby/object:Gem::Version
176
- version: '3.7'
199
+ version: '2.16'
200
+ none: false
177
201
  requirement: !ruby/object:Gem::Requirement
178
202
  requirements:
179
- - - ~>
203
+ - - "~>"
180
204
  - !ruby/object:Gem::Version
181
- version: '3.7'
205
+ version: '2.16'
206
+ none: false
182
207
  prerelease: false
183
208
  type: :development
184
209
  description: |-
@@ -202,9 +227,6 @@ extra_rdoc_files:
202
227
  - Manifest.txt
203
228
  - README.ja.rdoc
204
229
  - README.rdoc
205
- - ROADMAP.md
206
- - STANDARD_RESPONSES.md
207
- - Y_U_NO_GEMSPEC.md
208
230
  - ext/nokogiri/html_document.c
209
231
  - ext/nokogiri/html_element_description.c
210
232
  - ext/nokogiri/html_entity_lookup.c
@@ -240,11 +262,13 @@ extra_rdoc_files:
240
262
  - ext/nokogiri/xml_xpath_context.c
241
263
  - ext/nokogiri/xslt_stylesheet.c
242
264
  files:
243
- - .autotest
244
- - .gemtest
265
+ - ".autotest"
266
+ - ".gemtest"
267
+ - ".travis.yml"
245
268
  - CHANGELOG.ja.rdoc
246
269
  - CHANGELOG.rdoc
247
270
  - C_CODING_STYLE.rdoc
271
+ - Gemfile
248
272
  - Manifest.txt
249
273
  - README.ja.rdoc
250
274
  - README.rdoc
@@ -254,6 +278,7 @@ files:
254
278
  - Y_U_NO_GEMSPEC.md
255
279
  - bin/nokogiri
256
280
  - build_all
281
+ - dependencies.yml
257
282
  - ext/java/nokogiri/EncodingHandler.java
258
283
  - ext/java/nokogiri/HtmlDocument.java
259
284
  - ext/java/nokogiri/HtmlElementDescription.java
@@ -461,6 +486,7 @@ files:
461
486
  - test/files/address_book.rlx
462
487
  - test/files/address_book.xml
463
488
  - test/files/bar/bar.xsd
489
+ - test/files/bogus.xml
464
490
  - test/files/dont_hurt_em_why.xml
465
491
  - test/files/encoding.html
466
492
  - test/files/encoding.xhtml
@@ -471,6 +497,10 @@ files:
471
497
  - test/files/noencoding.html
472
498
  - test/files/po.xml
473
499
  - test/files/po.xsd
500
+ - test/files/saml/saml20assertion_schema.xsd
501
+ - test/files/saml/saml20protocol_schema.xsd
502
+ - test/files/saml/xenc_schema.xsd
503
+ - test/files/saml/xmldsig_schema.xsd
474
504
  - test/files/shift_jis.html
475
505
  - test/files/shift_jis.xml
476
506
  - test/files/snuggles.xml
@@ -495,6 +525,10 @@ files:
495
525
  - test/html/test_named_characters.rb
496
526
  - test/html/test_node.rb
497
527
  - test/html/test_node_encoding.rb
528
+ - test/namespaces/test_additional_namespaces_in_builder_doc.rb
529
+ - test/namespaces/test_namespaces_in_builder_doc.rb
530
+ - test/namespaces/test_namespaces_in_created_doc.rb
531
+ - test/namespaces/test_namespaces_in_parsed_doc.rb
498
532
  - test/test_convert_xpath.rb
499
533
  - test/test_css_cache.rb
500
534
  - test/test_encoding_handler.rb
@@ -543,101 +577,102 @@ files:
543
577
  - test/xslt/test_custom_functions.rb
544
578
  - test/xslt/test_exception_handling.rb
545
579
  - test_all
546
- - test/namespaces/test_namespaces_in_builder_doc.rb
547
- - test/namespaces/test_namespaces_in_created_doc.rb
548
- - test/namespaces/test_additional_namespaces_in_builder_doc.rb
549
- - test/namespaces/test_namespaces_in_parsed_doc.rb
550
580
  - lib/nokogiri/nokogiri.jar
551
581
  homepage: http://nokogiri.org
552
- licenses:
553
- - MIT
554
- metadata: {}
582
+ licenses: []
555
583
  post_install_message:
556
584
  rdoc_options:
557
- - --main
585
+ - "--main"
558
586
  - README.rdoc
559
587
  require_paths:
560
588
  - lib
561
589
  required_ruby_version: !ruby/object:Gem::Requirement
562
590
  requirements:
563
- - - '>='
591
+ - - ">="
564
592
  - !ruby/object:Gem::Version
565
- version: '0'
593
+ segments:
594
+ - 0
595
+ hash: 2
596
+ version: !binary |-
597
+ MA==
598
+ none: false
566
599
  required_rubygems_version: !ruby/object:Gem::Requirement
567
600
  requirements:
568
- - - '>='
601
+ - - ">="
569
602
  - !ruby/object:Gem::Version
570
- version: '0'
603
+ version: !binary |-
604
+ MA==
605
+ none: false
571
606
  requirements: []
572
607
  rubyforge_project: nokogiri
573
- rubygems_version: 2.1.9
608
+ rubygems_version: 1.8.24
574
609
  signing_key:
575
- specification_version: 4
610
+ specification_version: 3
576
611
  summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
577
612
  test_files:
578
- - test/test_encoding_handler.rb
579
- - test/test_reader.rb
580
- - test/test_css_cache.rb
581
- - test/test_soap4r_sax.rb
613
+ - test/test_nokogiri.rb
582
614
  - test/test_memory_leak.rb
583
615
  - test/test_convert_xpath.rb
616
+ - test/test_css_cache.rb
584
617
  - test/test_xslt_transforms.rb
585
- - test/test_nokogiri.rb
586
- - test/decorators/test_slop.rb
587
- - test/css/test_parser.rb
588
- - test/css/test_nthiness.rb
589
- - test/css/test_tokenizer.rb
590
- - test/css/test_xpath_visitor.rb
591
- - test/xslt/test_exception_handling.rb
592
- - test/xslt/test_custom_functions.rb
593
- - test/xml/test_comment.rb
594
- - test/xml/test_unparented_node.rb
595
- - test/xml/test_processing_instruction.rb
596
- - test/xml/test_node_attributes.rb
597
- - test/xml/test_xpath.rb
598
- - test/xml/test_node_encoding.rb
618
+ - test/test_encoding_handler.rb
619
+ - test/test_soap4r_sax.rb
620
+ - test/test_reader.rb
621
+ - test/xml/test_element_content.rb
622
+ - test/xml/test_builder.rb
599
623
  - test/xml/test_element_decl.rb
600
- - test/xml/test_entity_decl.rb
601
- - test/xml/test_namespace.rb
624
+ - test/xml/test_parse_options.rb
625
+ - test/xml/test_dtd_encoding.rb
626
+ - test/xml/test_attribute_decl.rb
602
627
  - test/xml/test_cdata.rb
603
- - test/xml/test_node_inheritance.rb
604
- - test/xml/test_entity_reference.rb
605
- - test/xml/test_text.rb
606
- - test/xml/test_reader_encoding.rb
628
+ - test/xml/test_document_fragment.rb
607
629
  - test/xml/test_dtd.rb
608
- - test/xml/test_xinclude.rb
609
- - test/xml/test_parse_options.rb
630
+ - test/xml/test_node_reparenting.rb
631
+ - test/xml/test_c14n.rb
632
+ - test/xml/test_node_inheritance.rb
610
633
  - test/xml/test_schema.rb
611
- - test/xml/test_element_content.rb
612
- - test/xml/test_document.rb
634
+ - test/xml/test_processing_instruction.rb
635
+ - test/xml/test_attr.rb
636
+ - test/xml/test_namespace.rb
613
637
  - test/xml/test_relax_ng.rb
614
- - test/xml/test_c14n.rb
615
- - test/xml/test_dtd_encoding.rb
638
+ - test/xml/test_xpath.rb
639
+ - test/xml/test_reader_encoding.rb
640
+ - test/xml/test_node_encoding.rb
641
+ - test/xml/test_node_attributes.rb
642
+ - test/xml/test_text.rb
643
+ - test/xml/test_document.rb
644
+ - test/xml/test_entity_reference.rb
645
+ - test/xml/test_node.rb
646
+ - test/xml/test_document_encoding.rb
647
+ - test/xml/test_unparented_node.rb
616
648
  - test/xml/test_syntax_error.rb
617
- - test/xml/test_attribute_decl.rb
649
+ - test/xml/test_entity_decl.rb
650
+ - test/xml/test_comment.rb
618
651
  - test/xml/test_node_set.rb
619
- - test/xml/test_builder.rb
620
- - test/xml/test_document_encoding.rb
621
- - test/xml/test_attr.rb
622
- - test/xml/test_document_fragment.rb
623
- - test/xml/test_node.rb
624
- - test/xml/test_node_reparenting.rb
625
- - test/xml/sax/test_parser.rb
626
- - test/xml/sax/test_push_parser.rb
627
- - test/xml/sax/test_parser_context.rb
652
+ - test/xml/test_xinclude.rb
628
653
  - test/xml/node/test_save_options.rb
629
654
  - test/xml/node/test_subclass.rb
630
- - test/html/test_node_encoding.rb
631
- - test/html/test_document.rb
632
- - test/html/test_named_characters.rb
655
+ - test/xml/sax/test_parser.rb
656
+ - test/xml/sax/test_parser_context.rb
657
+ - test/xml/sax/test_push_parser.rb
658
+ - test/xslt/test_exception_handling.rb
659
+ - test/xslt/test_custom_functions.rb
660
+ - test/decorators/test_slop.rb
633
661
  - test/html/test_builder.rb
634
- - test/html/test_document_encoding.rb
635
- - test/html/test_element_description.rb
636
662
  - test/html/test_document_fragment.rb
663
+ - test/html/test_named_characters.rb
664
+ - test/html/test_element_description.rb
665
+ - test/html/test_node_encoding.rb
666
+ - test/html/test_document.rb
637
667
  - test/html/test_node.rb
668
+ - test/html/test_document_encoding.rb
638
669
  - test/html/sax/test_parser.rb
639
670
  - test/html/sax/test_parser_context.rb
640
- - test/namespaces/test_namespaces_in_builder_doc.rb
671
+ - test/css/test_tokenizer.rb
672
+ - test/css/test_parser.rb
673
+ - test/css/test_nthiness.rb
674
+ - test/css/test_xpath_visitor.rb
675
+ - test/namespaces/test_namespaces_in_parsed_doc.rb
641
676
  - test/namespaces/test_namespaces_in_created_doc.rb
642
677
  - test/namespaces/test_additional_namespaces_in_builder_doc.rb
643
- - test/namespaces/test_namespaces_in_parsed_doc.rb
678
+ - test/namespaces/test_namespaces_in_builder_doc.rb