nokogiri 1.6.7.2-java → 1.6.8-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 +4 -4
- data/.cross_rubies +2 -0
- data/.travis.yml +19 -9
- data/CHANGELOG.rdoc +73 -5
- data/CONTRIBUTING.md +42 -0
- data/Gemfile +10 -9
- data/LICENSE.txt +1 -1
- data/Manifest.txt +7 -2
- data/README.md +23 -27
- data/ROADMAP.md +11 -1
- data/Rakefile +36 -17
- data/bin/nokogiri +2 -2
- data/dependencies.yml +29 -4
- data/ext/java/nokogiri/HtmlElementDescription.java +5 -2
- data/ext/java/nokogiri/NokogiriService.java +19 -0
- data/ext/java/nokogiri/XmlAttr.java +3 -1
- data/ext/java/nokogiri/XmlDocumentFragment.java +0 -14
- data/ext/java/nokogiri/XmlNode.java +106 -63
- data/ext/java/nokogiri/XmlXpathContext.java +12 -12
- data/ext/java/nokogiri/XsltStylesheet.java +11 -4
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +8 -1
- data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +1 -2
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +7 -7
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +1 -1
- data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +0 -1
- data/ext/java/nokogiri/internals/NokogiriXsltErrorListener.java +3 -3
- data/ext/java/nokogiri/internals/ParserContext.java +4 -0
- data/ext/java/nokogiri/internals/SaveContextVisitor.java +18 -13
- data/ext/nokogiri/extconf.rb +163 -79
- data/ext/nokogiri/html_document.c +6 -6
- data/ext/nokogiri/html_element_description.c +1 -1
- data/ext/nokogiri/html_entity_lookup.c +1 -1
- data/ext/nokogiri/html_sax_parser_context.c +4 -4
- data/ext/nokogiri/html_sax_push_parser.c +2 -2
- data/ext/nokogiri/nokogiri.c +0 -7
- data/ext/nokogiri/nokogiri.h +1 -34
- data/ext/nokogiri/xml_attr.c +2 -2
- data/ext/nokogiri/xml_comment.c +1 -1
- data/ext/nokogiri/xml_document.c +20 -22
- data/ext/nokogiri/xml_encoding_handler.c +3 -3
- data/ext/nokogiri/xml_entity_reference.c +1 -1
- data/ext/nokogiri/xml_namespace.c +56 -17
- data/ext/nokogiri/xml_node.c +73 -67
- data/ext/nokogiri/xml_node_set.c +164 -146
- data/ext/nokogiri/xml_node_set.h +3 -4
- data/ext/nokogiri/xml_processing_instruction.c +2 -2
- data/ext/nokogiri/xml_reader.c +5 -18
- data/ext/nokogiri/xml_sax_parser.c +9 -12
- data/ext/nokogiri/xml_sax_parser_context.c +1 -1
- data/ext/nokogiri/xml_sax_push_parser.c +1 -1
- data/ext/nokogiri/xml_schema.c +1 -1
- data/ext/nokogiri/xml_syntax_error.c +0 -4
- data/ext/nokogiri/xml_syntax_error.h +0 -1
- data/ext/nokogiri/xml_text.c +1 -1
- data/ext/nokogiri/xml_xpath_context.c +15 -24
- data/ext/nokogiri/xslt_stylesheet.c +6 -6
- data/lib/nekohtml.jar +0 -0
- data/lib/nokogiri.rb +14 -7
- data/lib/nokogiri/css/parser.rb +8 -2
- data/lib/nokogiri/css/parser.y +7 -2
- data/lib/nokogiri/html/document.rb +4 -2
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/version.rb +1 -1
- data/lib/nokogiri/xml/document.rb +7 -1
- data/lib/nokogiri/xml/dtd.rb +4 -4
- data/lib/nokogiri/xml/node.rb +6 -10
- data/lib/nokogiri/xml/node_set.rb +3 -3
- data/lib/nokogiri/xml/parse_options.rb +22 -0
- data/lib/serializer.jar +0 -0
- data/lib/xalan.jar +0 -0
- data/lib/xercesImpl.jar +0 -0
- data/lib/xml-apis.jar +0 -0
- data/tasks/test.rb +5 -0
- data/test/css/test_parser.rb +7 -1
- data/test/files/GH_1042.html +18 -0
- data/test/files/namespace_pressure_test.xml +1684 -0
- data/test/files/tlm.html +2 -1
- data/test/helper.rb +4 -0
- data/test/html/sax/test_parser.rb +2 -2
- data/test/html/test_document.rb +47 -11
- data/test/html/test_document_encoding.rb +55 -58
- data/test/html/test_document_fragment.rb +27 -23
- data/test/html/test_node.rb +16 -0
- data/test/html/test_node_encoding.rb +71 -13
- data/test/namespaces/test_namespaces_in_parsed_doc.rb +14 -0
- data/test/test_css_cache.rb +1 -1
- data/test/test_encoding_handler.rb +2 -0
- data/test/test_xslt_transforms.rb +38 -3
- data/test/xml/sax/test_parser.rb +54 -53
- data/test/xml/test_document.rb +7 -2
- data/test/xml/test_document_encoding.rb +19 -16
- data/test/xml/test_document_fragment.rb +12 -0
- data/test/xml/test_dtd_encoding.rb +0 -2
- data/test/xml/test_namespace.rb +2 -2
- data/test/xml/test_node.rb +15 -4
- data/test/xml/test_node_attributes.rb +6 -0
- data/test/xml/test_node_encoding.rb +49 -87
- data/test/xml/test_node_reparenting.rb +193 -18
- data/test/xml/test_node_set.rb +1 -1
- data/test/xml/test_reader.rb +589 -0
- data/test/xml/test_reader_encoding.rb +100 -102
- data/test/xml/test_unparented_node.rb +14 -1
- data/test/xslt/test_exception_handling.rb +1 -1
- data/test_all +47 -33
- metadata +38 -36
- data/CHANGELOG.ja.rdoc +0 -1057
- data/test/test_reader.rb +0 -558
@@ -3,131 +3,129 @@ require "helper"
|
|
3
3
|
|
4
4
|
module Nokogiri
|
5
5
|
module XML
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
6
|
+
class TestReaderEncoding < Nokogiri::TestCase
|
7
|
+
def setup
|
8
|
+
super
|
9
|
+
@reader = Nokogiri::XML::Reader(
|
10
|
+
File.read(XML_FILE),
|
11
|
+
XML_FILE,
|
12
|
+
'UTF-8'
|
13
|
+
)
|
14
|
+
end
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
16
|
+
def test_attribute_at
|
17
|
+
@reader.each do |node|
|
18
|
+
next unless attribute = node.attribute_at(0)
|
19
|
+
assert_equal @reader.encoding, attribute.encoding.name
|
22
20
|
end
|
21
|
+
end
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
23
|
+
def test_attributes
|
24
|
+
@reader.each do |node|
|
25
|
+
node.attributes.each do |k,v|
|
26
|
+
assert_equal @reader.encoding, k.encoding.name
|
27
|
+
assert_equal @reader.encoding, v.encoding.name
|
30
28
|
end
|
31
29
|
end
|
30
|
+
end
|
32
31
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
end
|
32
|
+
def test_attribute
|
33
|
+
xml = <<-eoxml
|
34
|
+
<x xmlns:tenderlove='http://tenderlovemaking.com/'>
|
35
|
+
<tenderlove:foo awesome='true'>snuggles!</tenderlove:foo>
|
36
|
+
</x>
|
37
|
+
eoxml
|
38
|
+
reader = Nokogiri::XML::Reader(xml, nil, 'UTF-8')
|
39
|
+
reader.each do |node|
|
40
|
+
next unless attribute = node.attribute('awesome')
|
41
|
+
assert_equal reader.encoding, attribute.encoding.name
|
44
42
|
end
|
43
|
+
end
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
end
|
45
|
+
def test_xml_version
|
46
|
+
@reader.each do |node|
|
47
|
+
next unless version = node.xml_version
|
48
|
+
assert_equal @reader.encoding, version.encoding.name
|
51
49
|
end
|
50
|
+
end
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
52
|
+
def test_lang
|
53
|
+
xml = <<-eoxml
|
54
|
+
<awesome>
|
55
|
+
<p xml:lang="en">The quick brown fox jumps over the lazy dog.</p>
|
56
|
+
<p xml:lang="ja">日本語が上手です</p>
|
57
|
+
</awesome>
|
58
|
+
eoxml
|
60
59
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
end
|
60
|
+
reader = Nokogiri::XML::Reader(xml, nil, 'UTF-8')
|
61
|
+
reader.each do |node|
|
62
|
+
next unless lang = node.lang
|
63
|
+
assert_equal reader.encoding, lang.encoding.name
|
66
64
|
end
|
65
|
+
end
|
67
66
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
end
|
75
|
-
assert called
|
67
|
+
def test_value
|
68
|
+
called = false
|
69
|
+
@reader.each do |node|
|
70
|
+
next unless value = node.value
|
71
|
+
assert_equal @reader.encoding, value.encoding.name
|
72
|
+
called = true
|
76
73
|
end
|
74
|
+
assert called
|
75
|
+
end
|
77
76
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
end
|
77
|
+
def test_prefix
|
78
|
+
xml = <<-eoxml
|
79
|
+
<x xmlns:edi='http://ecommerce.example.org/schema'>
|
80
|
+
<edi:foo>hello</edi:foo>
|
81
|
+
</x>
|
82
|
+
eoxml
|
83
|
+
reader = Nokogiri::XML::Reader(xml, nil, 'UTF-8')
|
84
|
+
reader.each do |node|
|
85
|
+
next unless prefix = node.prefix
|
86
|
+
assert_equal reader.encoding, prefix.encoding.name
|
89
87
|
end
|
88
|
+
end
|
90
89
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
end
|
90
|
+
def test_ns_uri
|
91
|
+
xml = <<-eoxml
|
92
|
+
<x xmlns:edi='http://ecommerce.example.org/schema'>
|
93
|
+
<edi:foo>hello</edi:foo>
|
94
|
+
</x>
|
95
|
+
eoxml
|
96
|
+
reader = Nokogiri::XML::Reader(xml, nil, 'UTF-8')
|
97
|
+
reader.each do |node|
|
98
|
+
next unless uri = node.namespace_uri
|
99
|
+
assert_equal reader.encoding, uri.encoding.name
|
102
100
|
end
|
101
|
+
end
|
103
102
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
end
|
103
|
+
def test_local_name
|
104
|
+
xml = <<-eoxml
|
105
|
+
<x xmlns:edi='http://ecommerce.example.org/schema'>
|
106
|
+
<edi:foo>hello</edi:foo>
|
107
|
+
</x>
|
108
|
+
eoxml
|
109
|
+
reader = Nokogiri::XML::Reader(xml, nil, 'UTF-8')
|
110
|
+
reader.each do |node|
|
111
|
+
next unless lname = node.local_name
|
112
|
+
assert_equal reader.encoding, lname.encoding.name
|
115
113
|
end
|
114
|
+
end
|
116
115
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
end
|
116
|
+
def test_name
|
117
|
+
@reader.each do |node|
|
118
|
+
next unless name = node.name
|
119
|
+
assert_equal @reader.encoding, name.encoding.name
|
122
120
|
end
|
121
|
+
end
|
123
122
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
end
|
123
|
+
def test_value_lookup_segfault
|
124
|
+
skip("JRuby doesn't do GC.") if Nokogiri.jruby?
|
125
|
+
stress_memory_while do
|
126
|
+
while node = @reader.read
|
127
|
+
nodes = node.send(:attr_nodes)
|
128
|
+
nodes.first.name if nodes.first
|
131
129
|
end
|
132
130
|
end
|
133
131
|
end
|
@@ -385,7 +385,7 @@ module Nokogiri
|
|
385
385
|
|
386
386
|
def test_whitespace_nodes
|
387
387
|
doc = Nokogiri::XML.parse("<root><b>Foo</b>\n<i>Bar</i> <p>Bazz</p></root>")
|
388
|
-
children = doc.at('.//root').children.collect
|
388
|
+
children = doc.at('.//root').children.collect(&:to_s)
|
389
389
|
assert_equal "\n", children[1]
|
390
390
|
assert_equal " ", children[3]
|
391
391
|
end
|
@@ -422,6 +422,19 @@ module Nokogiri
|
|
422
422
|
old_node = @node.at('.//employee')
|
423
423
|
assert_raises(ArgumentError){ old_node.replace new_node }
|
424
424
|
end
|
425
|
+
|
426
|
+
def test_unlink_on_unlinked_node_1
|
427
|
+
node = Nokogiri::XML::Node.new 'div', Nokogiri::XML::Document.new
|
428
|
+
node.unlink # must_not_raise
|
429
|
+
assert_nil node.parent
|
430
|
+
end
|
431
|
+
|
432
|
+
def test_unlink_on_unlinked_node_2
|
433
|
+
node = Nokogiri::XML('<div>foo</div>').at_css("div")
|
434
|
+
node.unlink
|
435
|
+
node.unlink # must_not_raise
|
436
|
+
assert_nil node.parent
|
437
|
+
end
|
425
438
|
end
|
426
439
|
end
|
427
440
|
end
|
@@ -28,7 +28,7 @@ EOXSL
|
|
28
28
|
xsl.transform xml
|
29
29
|
fail('It should not get here')
|
30
30
|
rescue RuntimeError => e
|
31
|
-
assert_match(/
|
31
|
+
assert_match(/Can't have more than one root/, e.to_s, 'The exception message does not contain the expected information')
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
data/test_all
CHANGED
@@ -12,9 +12,10 @@
|
|
12
12
|
|
13
13
|
# I'd add rubinius, but rvm errors when building it on my machine. :(
|
14
14
|
RUBIES="\
|
15
|
+
ruby-2.3 \
|
15
16
|
ruby-2.2 \
|
16
17
|
ruby-2.1 \
|
17
|
-
ruby-2.0.0-
|
18
|
+
ruby-2.0.0-p648 \
|
18
19
|
ruby-1.9.3-p551 \
|
19
20
|
ruby-1.9.2-p330 \
|
20
21
|
jruby-9.0.4.0 \
|
@@ -24,6 +25,13 @@ RUBIES="\
|
|
24
25
|
TEST_LOG=test.log
|
25
26
|
VALGRIND_LOG=valgrind.log
|
26
27
|
|
28
|
+
# make sure we can test with libxml-ruby installed
|
29
|
+
export BUNDLE_GEMFILE="$(pwd)/Gemfile_test_all"
|
30
|
+
cat > $BUNDLE_GEMFILE <<EOF
|
31
|
+
gem "libxml-ruby", :platform => :mri, :require => false
|
32
|
+
eval_gemfile File.join(File.dirname(ENV['BUNDLE_GEMFILE']),"Gemfile")
|
33
|
+
EOF
|
34
|
+
|
27
35
|
# Load RVM into a shell session *as a function*
|
28
36
|
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
|
29
37
|
source "$HOME/.rvm/scripts/rvm"
|
@@ -42,52 +50,58 @@ function rvm_use {
|
|
42
50
|
rvm use "${1}@nokogiri" --create
|
43
51
|
}
|
44
52
|
|
45
|
-
function generate_parser_and_tokenizer {
|
46
|
-
old_ruby=$current_ruby
|
47
|
-
rvm_use ruby-1.9.3
|
48
|
-
bundle exec rake generate 2>&1 > /dev/null
|
49
|
-
rvm_use $old_ruby
|
50
|
-
}
|
51
|
-
|
52
53
|
function clean {
|
53
54
|
bundle exec rake clean clobber 2>&1 > /dev/null
|
54
55
|
}
|
55
56
|
|
56
57
|
function compile {
|
57
58
|
echo "** compiling ..."
|
58
|
-
# generate_parser_and_tokenizer
|
59
59
|
bundle exec rake compile 2>&1 > /dev/null
|
60
60
|
}
|
61
61
|
|
62
|
+
# quick check that we have All The Rubies
|
62
63
|
for ruby in $RUBIES ; do
|
63
|
-
|
64
|
-
if ! [[ $(bundle -v) =~ "1.10." ]] ; then
|
65
|
-
yes | gem uninstall --force bundler
|
66
|
-
gem install bundler -v 1.10.6
|
67
|
-
bundle -v
|
68
|
-
fi
|
69
|
-
bundle install --quiet --local || bundle install
|
70
|
-
clean
|
64
|
+
rvm_use ${ruby}
|
71
65
|
done
|
72
66
|
|
73
67
|
for ruby in $RUBIES ; do
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
68
|
+
rvm_use ${ruby}
|
69
|
+
if ! [[ $(bundle -v) =~ "1.12." ]] ; then
|
70
|
+
yes | gem uninstall --force bundler
|
71
|
+
gem install bundler -v 1.12.5
|
72
|
+
bundle -v
|
73
|
+
fi
|
74
|
+
bundle install --quiet --local || bundle install
|
75
|
+
clean
|
81
76
|
done
|
82
77
|
|
83
78
|
for ruby in $RUBIES ; do
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
79
|
+
rvm_use ${ruby}
|
80
|
+
echo -e "**\n** testing nokogiri on ${ruby}\n**"
|
81
|
+
clean
|
82
|
+
compile
|
83
|
+
echo "** running tests ..."
|
84
|
+
bundle exec rake test 2>&1
|
85
|
+
if [[ ! $ruby =~ "jruby" ]] ; then
|
86
|
+
echo "** running tests again with libxml-ruby loaded ..."
|
87
|
+
if ! gem list libxml-ruby | fgrep 2.8.0 ; then
|
88
|
+
gem install libxml-ruby
|
92
89
|
fi
|
93
|
-
|
90
|
+
bundle exec rake test:libxml-ruby 2>&1
|
91
|
+
fi
|
92
|
+
clean
|
93
|
+
done | tee -a $TEST_LOG
|
94
|
+
|
95
|
+
for ruby in $RUBIES ; do
|
96
|
+
if [[ ! $ruby =~ "jruby" ]] ; then
|
97
|
+
rvm_use ${ruby}
|
98
|
+
echo -e "**\n** nokogiri prerelease: ${ruby}\n**"
|
99
|
+
clean
|
100
|
+
compile
|
101
|
+
echo "** running valgrind on tests ..."
|
102
|
+
bundle exec rake test:valgrind 2>&1
|
103
|
+
echo "** running valgrind again with libxml-ruby loaded ..."
|
104
|
+
bundle exec rake test:valgrind:libxml-ruby 2>&1
|
105
|
+
clean
|
106
|
+
fi
|
107
|
+
done | tee -a $VALGRIND_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.
|
4
|
+
version: 1.6.8
|
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: 2016-
|
15
|
+
date: 2016-06-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rdoc
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
name: hoe-bundler
|
33
33
|
version_requirements: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 1.2.0
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 1.2.0
|
43
43
|
prerelease: false
|
44
44
|
type: :development
|
45
45
|
- !ruby/object:Gem::Dependency
|
@@ -60,28 +60,28 @@ dependencies:
|
|
60
60
|
name: hoe-gemspec
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - ~>
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 1.0.0
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ~>
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: 1.0.0
|
71
71
|
prerelease: false
|
72
72
|
type: :development
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: hoe-git
|
75
75
|
version_requirements: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- -
|
77
|
+
- - ~>
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
79
|
+
version: 1.6.0
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ~>
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: 1.6.0
|
85
85
|
prerelease: false
|
86
86
|
type: :development
|
87
87
|
- !ruby/object:Gem::Dependency
|
@@ -90,26 +90,26 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 5.8.4
|
94
94
|
requirement: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: 5.8.4
|
99
99
|
prerelease: false
|
100
100
|
type: :development
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: rake
|
103
103
|
version_requirements: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - ~>
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: 10.5.0
|
108
108
|
requirement: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - ~>
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
112
|
+
version: 10.5.0
|
113
113
|
prerelease: false
|
114
114
|
type: :development
|
115
115
|
- !ruby/object:Gem::Dependency
|
@@ -132,38 +132,38 @@ dependencies:
|
|
132
132
|
requirements:
|
133
133
|
- - ~>
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 0.
|
135
|
+
version: 0.5.1
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - ~>
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
140
|
+
version: 0.5.1
|
141
141
|
prerelease: false
|
142
142
|
type: :development
|
143
143
|
- !ruby/object:Gem::Dependency
|
144
144
|
name: racc
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- -
|
147
|
+
- - ~>
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: 1.4.
|
149
|
+
version: 1.4.14
|
150
150
|
requirement: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - ~>
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 1.4.
|
154
|
+
version: 1.4.14
|
155
155
|
prerelease: false
|
156
156
|
type: :development
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: rexical
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- -
|
161
|
+
- - ~>
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: 1.0.5
|
164
164
|
requirement: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
|
-
- -
|
166
|
+
- - ~>
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: 1.0.5
|
169
169
|
prerelease: false
|
@@ -174,21 +174,18 @@ dependencies:
|
|
174
174
|
requirements:
|
175
175
|
- - ~>
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version: '3.
|
177
|
+
version: '3.15'
|
178
178
|
requirement: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
180
|
- - ~>
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: '3.
|
182
|
+
version: '3.15'
|
183
183
|
prerelease: false
|
184
184
|
type: :development
|
185
185
|
description: |-
|
186
186
|
Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
|
187
187
|
Nokogiri's many features is the ability to search documents via XPath
|
188
188
|
or CSS3 selectors.
|
189
|
-
|
190
|
-
XML is like violence - if it doesn’t solve your problems, you are not
|
191
|
-
using enough of it.
|
192
189
|
email:
|
193
190
|
- aaronp@rubyforge.org
|
194
191
|
- mike.dalessio@gmail.com
|
@@ -199,8 +196,8 @@ executables:
|
|
199
196
|
- nokogiri
|
200
197
|
extensions: []
|
201
198
|
extra_rdoc_files:
|
202
|
-
- CHANGELOG.ja.rdoc
|
203
199
|
- CHANGELOG.rdoc
|
200
|
+
- CONTRIBUTING.md
|
204
201
|
- C_CODING_STYLE.rdoc
|
205
202
|
- LICENSE.txt
|
206
203
|
- Manifest.txt
|
@@ -249,8 +246,8 @@ files:
|
|
249
246
|
- .editorconfig
|
250
247
|
- .gemtest
|
251
248
|
- .travis.yml
|
252
|
-
- CHANGELOG.ja.rdoc
|
253
249
|
- CHANGELOG.rdoc
|
250
|
+
- CONTRIBUTING.md
|
254
251
|
- C_CODING_STYLE.rdoc
|
255
252
|
- Gemfile
|
256
253
|
- LICENSE.txt
|
@@ -488,7 +485,10 @@ files:
|
|
488
485
|
- lib/nokogiri/xml/xpath_context.rb
|
489
486
|
- lib/nokogiri/xslt.rb
|
490
487
|
- lib/nokogiri/xslt/stylesheet.rb
|
488
|
+
- lib/serializer.jar
|
489
|
+
- lib/xalan.jar
|
491
490
|
- lib/xercesImpl.jar
|
491
|
+
- lib/xml-apis.jar
|
492
492
|
- lib/xsd/xmlparser/nokogiri.rb
|
493
493
|
- patches/sort-patches-by-date
|
494
494
|
- suppressions/README.txt
|
@@ -503,6 +503,7 @@ files:
|
|
503
503
|
- test/css/test_xpath_visitor.rb
|
504
504
|
- test/decorators/test_slop.rb
|
505
505
|
- test/files/2ch.html
|
506
|
+
- test/files/GH_1042.html
|
506
507
|
- test/files/address_book.rlx
|
507
508
|
- test/files/address_book.xml
|
508
509
|
- test/files/atom.xml
|
@@ -515,6 +516,7 @@ files:
|
|
515
516
|
- test/files/exslt.xslt
|
516
517
|
- test/files/foo/foo.xsd
|
517
518
|
- test/files/metacharset.html
|
519
|
+
- test/files/namespace_pressure_test.xml
|
518
520
|
- test/files/noencoding.html
|
519
521
|
- test/files/po.xml
|
520
522
|
- test/files/po.xsd
|
@@ -561,7 +563,6 @@ files:
|
|
561
563
|
- test/test_encoding_handler.rb
|
562
564
|
- test/test_memory_leak.rb
|
563
565
|
- test/test_nokogiri.rb
|
564
|
-
- test/test_reader.rb
|
565
566
|
- test/test_soap4r_sax.rb
|
566
567
|
- test/test_xslt_transforms.rb
|
567
568
|
- test/xml/node/test_save_options.rb
|
@@ -593,6 +594,7 @@ files:
|
|
593
594
|
- test/xml/test_node_set.rb
|
594
595
|
- test/xml/test_parse_options.rb
|
595
596
|
- test/xml/test_processing_instruction.rb
|
597
|
+
- test/xml/test_reader.rb
|
596
598
|
- test/xml/test_reader_encoding.rb
|
597
599
|
- test/xml/test_relax_ng.rb
|
598
600
|
- test/xml/test_schema.rb
|