nokogiri 1.5.5 → 1.5.6.rc1
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.
- data/CHANGELOG.ja.rdoc +12 -1
- data/CHANGELOG.rdoc +12 -1
- data/Manifest.txt +3 -0
- data/README.rdoc +1 -1
- data/Rakefile +1 -0
- data/build_all +31 -9
- data/ext/nokogiri/xml_document.c +1 -1
- data/lib/nokogiri/version.rb +1 -1
- data/tasks/cross_compile.rb +2 -5
- data/test/files/test_document_url/bar.xml +2 -0
- data/test/files/test_document_url/document.dtd +4 -0
- data/test/files/test_document_url/document.xml +6 -0
- data/test/xml/test_entity_reference.rb +12 -0
- data/test/xml/test_namespace.rb +20 -0
- data/test/xml/test_node.rb +9 -0
- data/test/xml/test_node_attributes.rb +9 -0
- data/test_all +5 -12
- metadata +102 -95
data/CHANGELOG.ja.rdoc
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
== 1.5.
|
1
|
+
== 1.5.6 / unreleased
|
2
|
+
|
3
|
+
* Features
|
4
|
+
|
5
|
+
* Bugfixes
|
6
|
+
|
7
|
+
* JRuby で '#' で始まる文字列を名前とする EntityReference を作ろうとすると INVALID_CHARACTER_ERR という例外がはっせいする。 #719
|
8
|
+
* JRuby では Nodeのサブクラスのnamespaceを正しく文字列に変換しない。 #715
|
9
|
+
|
10
|
+
|
11
|
+
== 1.5.5 / 2012年6月24日
|
2
12
|
|
3
13
|
* Features
|
4
14
|
|
@@ -17,6 +27,7 @@
|
|
17
27
|
* JRuby で Nokogiri::XML::Node を継承したクラスを定義すると、namespace が表示されない。 #695
|
18
28
|
* JRuby で RDF::RDFXML::Writer をインスタンス化しようとすると NAMESPACE_ERR (org.w3c.dom.DOMException) が発生する. #683
|
19
29
|
* JRuby で xpath に namespaces を指定すると例外が発生する. #493
|
30
|
+
* JRuby の Entity 解決は C version の Nokogiri と同じ結果にならないといけない。#704, #647, #703
|
20
31
|
|
21
32
|
|
22
33
|
== 1.5.4 / 2012年6月12日
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
== 1.5.
|
1
|
+
== 1.5.6 / unreleased
|
2
|
+
|
3
|
+
* Features
|
4
|
+
|
5
|
+
* Bugfixes
|
6
|
+
|
7
|
+
* JRuby raises INVALID_CHARACTER_ERR exception when EntityReference name starts with '#'. #719
|
8
|
+
* JRuby doesn't coerce namespaces out of strings on a direct subclass of Node. #715
|
9
|
+
|
10
|
+
|
11
|
+
== 1.5.5 / 2012-06-24
|
2
12
|
|
3
13
|
* Features
|
4
14
|
|
@@ -17,6 +27,7 @@
|
|
17
27
|
* JRuby renders nodes without their namespace when subclassing Node. #695
|
18
28
|
* JRuby raises NAMESPACE_ERR (org.w3c.dom.DOMException) while instantiating RDF::RDFXML::Writer. #683
|
19
29
|
* JRuby is not able to use namespaces in xpath. #493
|
30
|
+
* JRuby's Entity resolving should be consistent with C-Nokogiri #704, #647, #703
|
20
31
|
|
21
32
|
|
22
33
|
== 1.5.4 / 2012-06-12
|
data/Manifest.txt
CHANGED
@@ -234,6 +234,9 @@ test/files/tlm.html
|
|
234
234
|
test/files/to_be_xincluded.xml
|
235
235
|
test/files/valid_bar.xml
|
236
236
|
test/files/xinclude.xml
|
237
|
+
test/files/test_document_url/bar.xml
|
238
|
+
test/files/test_document_url/document.dtd
|
239
|
+
test/files/test_document_url/document.xml
|
237
240
|
test/helper.rb
|
238
241
|
test/html/sax/test_parser.rb
|
239
242
|
test/html/sax/test_parser_context.rb
|
data/README.rdoc
CHANGED
@@ -151,7 +151,7 @@ Then run rake:
|
|
151
151
|
|
152
152
|
Copyright (c) 2008 - 2012:
|
153
153
|
|
154
|
-
* {Aaron Patterson}[http://
|
154
|
+
* {Aaron Patterson}[http://tenderlovemaking.com]
|
155
155
|
* {Mike Dalessio}[http://mike.daless.io]
|
156
156
|
* {Charles Nutter}[http://blog.headius.com]
|
157
157
|
* {Sergio Arbeo}[http://www.serabe.com]
|
data/Rakefile
CHANGED
@@ -162,6 +162,7 @@ end
|
|
162
162
|
|
163
163
|
desc "build a windows gem without all the ceremony."
|
164
164
|
task "gem:windows" => "gem" do
|
165
|
+
# TODO: 1.8.7-p358, 1.9.3-p194
|
165
166
|
cross_rubies = ["1.8.7-p330", "1.9.2-p136"]
|
166
167
|
ruby_cc_version = cross_rubies.collect { |_| _.split("-").first }.join(":") # e.g., "1.8.7:1.9.2"
|
167
168
|
rake_compiler_config_path = "#{ENV['HOME']}/.rake-compiler/config.yml"
|
data/build_all
CHANGED
@@ -9,6 +9,22 @@
|
|
9
9
|
# on ubuntu, `sudo apt-get install mingw32`
|
10
10
|
# for others, read up at https://github.com/luislavena/rake-compiler
|
11
11
|
#
|
12
|
+
# on ubuntus 11 and later, you may have issues with building
|
13
|
+
# rake-compiler's rubies against openssl v2. Just comment the lines
|
14
|
+
# out from ossl_ssl.c and you'll be fine.
|
15
|
+
#
|
16
|
+
# you may have issues with Pathname conversion to String in bundler. Add this to the offending bundler file:
|
17
|
+
#
|
18
|
+
# class Pathname
|
19
|
+
# def to_str
|
20
|
+
# to_s
|
21
|
+
# end
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# you may also have to remove some of the symbol checks in extconf.rb ... crazy.
|
25
|
+
#
|
26
|
+
|
27
|
+
HOST=
|
12
28
|
|
13
29
|
# Load RVM into a shell session *as a function*
|
14
30
|
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
|
@@ -28,28 +44,34 @@ set -o errexit
|
|
28
44
|
|
29
45
|
# initialize
|
30
46
|
rvm_use 1.8.7
|
47
|
+
bundle install --quiet --local || bundle install
|
31
48
|
rm -rf tmp pkg
|
32
|
-
bundle exec rake clean
|
49
|
+
bundle exec rake clean
|
33
50
|
|
34
51
|
# holding pen
|
35
52
|
rm -rf gems
|
36
53
|
mkdir -p gems
|
37
54
|
|
55
|
+
# windows
|
56
|
+
# rvm_use 1.8.7
|
57
|
+
# if [[ ! -a /home/mike/.rake-compiler/ruby/ruby-1.8.7-p330/lib/ruby/1.8.7/x86_64-linux/rbconfig.rb ]] ; then
|
58
|
+
# bundle exec rake-compiler cross-ruby VERSION=1.8.7-p330
|
59
|
+
# fi
|
60
|
+
# if [[ ! -a /home/mike/.rake-compiler/ruby/ruby-1.9.2-p136/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb ]] ; then
|
61
|
+
# bundle exec rake-compiler cross-ruby VERSION=1.9.2-p136
|
62
|
+
# fi
|
63
|
+
# bundle exec rake cross
|
64
|
+
# bundle exec rake gem:windows
|
65
|
+
# cp -v pkg/nokogiri*x86-{mingw32,mswin32}*.gem gems
|
66
|
+
|
38
67
|
# MRI
|
39
68
|
rvm_use 1.8.7
|
40
69
|
bundle exec rake gem
|
41
70
|
cp -v pkg/nokogiri*.gem gems # should only be one at this point in the script
|
42
71
|
|
43
|
-
# windows
|
44
|
-
rvm_use 1.8.7
|
45
|
-
bundle exec rake-compiler cross-ruby VERSION=1.8.7-p330
|
46
|
-
bundle exec rake-compiler cross-ruby VERSION=1.9.2-p136
|
47
|
-
bundle exec rake cross
|
48
|
-
rake gem:windows # don't use bundler here. it blows up. *shrug*
|
49
|
-
cp -v pkg/nokogiri*x86-{mingw32,mswin32}*.gem gems
|
50
|
-
|
51
72
|
# jruby
|
52
73
|
rvm_use jruby-1.6.5
|
74
|
+
bundle install --quiet --local || bundle install
|
53
75
|
bundle exec rake clean clobber
|
54
76
|
rvm_use 1.8.7
|
55
77
|
bundle exec rake generate
|
data/ext/nokogiri/xml_document.c
CHANGED
@@ -156,7 +156,7 @@ static VALUE set_encoding(VALUE self, VALUE encoding)
|
|
156
156
|
Data_Get_Struct(self, xmlDoc, doc);
|
157
157
|
|
158
158
|
if (doc->encoding)
|
159
|
-
free((char *) doc->encoding);
|
159
|
+
free((char *) doc->encoding); /* this may produce a gcc cast warning */
|
160
160
|
|
161
161
|
doc->encoding = xmlStrdup((xmlChar *)StringValuePtr(encoding));
|
162
162
|
|
data/lib/nokogiri/version.rb
CHANGED
data/tasks/cross_compile.rb
CHANGED
@@ -144,10 +144,7 @@ namespace :cross do
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
147
|
-
|
148
|
-
|
149
|
-
"#{CROSS_DIR}/#{HOST}",
|
150
|
-
"tmp/#{HOST}",
|
151
|
-
]
|
147
|
+
require 'rake/clean'
|
148
|
+
CLOBBER.include("#{CROSS_DIR}/*.installed", "#{CROSS_DIR}/#{HOST}", "tmp/#{HOST}")
|
152
149
|
|
153
150
|
task :cross => ["cross:libxslt", "lib/nokogiri/nokogiri.rb", "cross:file_list"]
|
@@ -16,6 +16,18 @@ module Nokogiri
|
|
16
16
|
def test_many_references
|
17
17
|
100.times { EntityReference.new(@xml, 'foo') }
|
18
18
|
end
|
19
|
+
|
20
|
+
def test_newline_node
|
21
|
+
# issue 719
|
22
|
+
xml = <<EOF
|
23
|
+
<?xml version="1.0" ?>
|
24
|
+
<item></item>
|
25
|
+
EOF
|
26
|
+
doc = Nokogiri::XML xml
|
27
|
+
lf_node = Nokogiri::XML::EntityReference.new(doc, "#xa")
|
28
|
+
doc.xpath('/item').first.add_child(lf_node)
|
29
|
+
assert_equal "#xa", doc.xpath('./item').first.child.name
|
30
|
+
end
|
19
31
|
end
|
20
32
|
|
21
33
|
module Common
|
data/test/xml/test_namespace.rb
CHANGED
@@ -70,6 +70,26 @@ module Nokogiri
|
|
70
70
|
s = %q{<?xml version='1.0'?><!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" [<!ENTITY % p ''>]>}
|
71
71
|
Nokogiri::XML(s).remove_namespaces!
|
72
72
|
end
|
73
|
+
|
74
|
+
def test_maintain_element_namespaces
|
75
|
+
doc = Document.new
|
76
|
+
subject = Nokogiri::XML::Node.new 'foo', doc
|
77
|
+
subject << '<foobar xmlns="barfoo"/>'
|
78
|
+
child = subject.children.first
|
79
|
+
assert_equal 'foobar', child.name
|
80
|
+
assert_equal 'barfoo', child.namespace.href
|
81
|
+
assert_empty child.attributes
|
82
|
+
end
|
83
|
+
|
84
|
+
def test_maintain_element_namespaces_in_urn
|
85
|
+
doc = Document.new
|
86
|
+
subject = Nokogiri::XML::Node.new 'foo', doc
|
87
|
+
subject << '<foobar xmlns="urn:xmpp:foospec:barfoo"/>'
|
88
|
+
child = subject.children.first
|
89
|
+
assert_equal 'foobar', child.name
|
90
|
+
assert_equal 'urn:xmpp:foospec:barfoo', child.namespace.href
|
91
|
+
assert_empty child.attributes
|
92
|
+
end
|
73
93
|
end
|
74
94
|
end
|
75
95
|
end
|
data/test/xml/test_node.rb
CHANGED
@@ -1024,6 +1024,15 @@ EOXML
|
|
1024
1024
|
assert_nil ns.prefix
|
1025
1025
|
assert_equal ns.href, "http://bar.com"
|
1026
1026
|
end
|
1027
|
+
|
1028
|
+
# issue 695
|
1029
|
+
def test_namespace_in_rendered_xml
|
1030
|
+
document = Nokogiri::XML::Document.new
|
1031
|
+
subject = Nokogiri::XML::Node.new 'foo', document
|
1032
|
+
ns = subject.add_namespace nil, 'bar'
|
1033
|
+
subject.namespace = ns
|
1034
|
+
assert_match subject.to_xml, /xmlns="bar"/
|
1035
|
+
end
|
1027
1036
|
end
|
1028
1037
|
end
|
1029
1038
|
end
|
@@ -16,6 +16,15 @@ module Nokogiri
|
|
16
16
|
node.attribute_with_ns('foo', 'http://tenderlovemaking.com/').value
|
17
17
|
end
|
18
18
|
|
19
|
+
def test_prefixed_attributes
|
20
|
+
doc = Nokogiri::XML "<root xml:lang='en-GB' />"
|
21
|
+
|
22
|
+
node = doc.root
|
23
|
+
|
24
|
+
assert_equal 'en-GB', node[:'xml:lang']
|
25
|
+
assert_equal nil, node[:lang]
|
26
|
+
end
|
27
|
+
|
19
28
|
def test_namespace_key?
|
20
29
|
doc = Nokogiri::XML <<-eoxml
|
21
30
|
<root xmlns:tlm='http://tenderlovemaking.com/'>
|
data/test_all
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# requires `rvm` to be installed. sorry about that, multiruby dudes.
|
7
7
|
#
|
8
8
|
|
9
|
-
RUBIES="ruby-1.9.3 jruby-1.6.5 ree-1.8.7 ruby-1.9.2 ruby-1.8.7"
|
9
|
+
RUBIES="ruby-1.9.3-p194 jruby-1.6.5.1 jruby-1.6.7.2 ree-1.8.7-2011.12 ruby-1.9.2-p290 ruby-1.8.7-p357"
|
10
10
|
TEST_LOG=test.log
|
11
11
|
VALGRIND_LOG=valgrind.log
|
12
12
|
|
@@ -30,7 +30,7 @@ function rvm_use {
|
|
30
30
|
|
31
31
|
function generate_parser_and_tokenizer {
|
32
32
|
old_ruby=$current_ruby
|
33
|
-
rvm_use ruby-1.8.7
|
33
|
+
rvm_use ruby-1.8.7-p357
|
34
34
|
bundle exec rake generate 2>&1 > /dev/null
|
35
35
|
rvm_use $old_ruby
|
36
36
|
}
|
@@ -41,14 +41,14 @@ function clean {
|
|
41
41
|
|
42
42
|
function compile {
|
43
43
|
echo "** compiling ..."
|
44
|
-
generate_parser_and_tokenizer
|
44
|
+
# generate_parser_and_tokenizer
|
45
45
|
bundle exec rake compile 2>&1 > /dev/null
|
46
46
|
}
|
47
47
|
|
48
48
|
for ruby in $RUBIES ; do
|
49
49
|
rvm_use ${ruby}
|
50
50
|
if gem list bundler | fgrep -v 1.1.rc 2>&1 > /dev/null ; then
|
51
|
-
gem install bundler
|
51
|
+
gem install bundler
|
52
52
|
fi
|
53
53
|
bundle install --quiet --local || bundle install
|
54
54
|
clean
|
@@ -60,14 +60,7 @@ for ruby in $RUBIES ; do
|
|
60
60
|
clean
|
61
61
|
compile
|
62
62
|
echo "** running tests ..."
|
63
|
-
|
64
|
-
# I get:
|
65
|
-
# /usr/lib/jvm/java-7-oracle/bin/java: symbol lookup error: /home/mike/.rvm/gems/jruby-1.6.5@nokogiri/gems/racc-1.4.7/lib/racc/cparse.so: undefined symbol: rb_catch
|
66
|
-
# if I use 'bundle exec' with jruby. Anybody?
|
67
|
-
rake test 2>&1 | tee -a $TEST_LOG
|
68
|
-
else
|
69
|
-
bundle exec rake test 2>&1 | tee -a $TEST_LOG
|
70
|
-
fi
|
63
|
+
bundle exec rake test 2>&1 | tee -a $TEST_LOG
|
71
64
|
clean
|
72
65
|
done
|
73
66
|
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 15424087
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
|
9
|
+
- 6
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 1.5.6.rc1
|
11
13
|
platform: ruby
|
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-
|
23
|
+
date: 2012-07-11 00:00:00 Z
|
22
24
|
dependencies:
|
23
25
|
- !ruby/object:Gem::Dependency
|
24
26
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -33,8 +35,8 @@ dependencies:
|
|
33
35
|
version: "1.1"
|
34
36
|
prerelease: false
|
35
37
|
requirement: *id001
|
36
|
-
name: hoe-bundler
|
37
38
|
type: :development
|
39
|
+
name: hoe-bundler
|
38
40
|
- !ruby/object:Gem::Dependency
|
39
41
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
@@ -49,8 +51,8 @@ dependencies:
|
|
49
51
|
version: 1.0.3
|
50
52
|
prerelease: false
|
51
53
|
requirement: *id002
|
52
|
-
name: hoe-debugging
|
53
54
|
type: :development
|
55
|
+
name: hoe-debugging
|
54
56
|
- !ruby/object:Gem::Dependency
|
55
57
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
58
|
none: false
|
@@ -64,8 +66,8 @@ dependencies:
|
|
64
66
|
version: "1.0"
|
65
67
|
prerelease: false
|
66
68
|
requirement: *id003
|
67
|
-
name: hoe-gemspec
|
68
69
|
type: :development
|
70
|
+
name: hoe-gemspec
|
69
71
|
- !ruby/object:Gem::Dependency
|
70
72
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
71
73
|
none: false
|
@@ -79,8 +81,8 @@ dependencies:
|
|
79
81
|
version: "1.4"
|
80
82
|
prerelease: false
|
81
83
|
requirement: *id004
|
82
|
-
name: hoe-git
|
83
84
|
type: :development
|
85
|
+
name: hoe-git
|
84
86
|
- !ruby/object:Gem::Dependency
|
85
87
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
86
88
|
none: false
|
@@ -95,8 +97,8 @@ dependencies:
|
|
95
97
|
version: 0.2.2
|
96
98
|
prerelease: false
|
97
99
|
requirement: *id005
|
98
|
-
name: mini_portile
|
99
100
|
type: :development
|
101
|
+
name: mini_portile
|
100
102
|
- !ruby/object:Gem::Dependency
|
101
103
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
102
104
|
none: false
|
@@ -111,8 +113,8 @@ dependencies:
|
|
111
113
|
version: 2.2.2
|
112
114
|
prerelease: false
|
113
115
|
requirement: *id006
|
114
|
-
name: minitest
|
115
116
|
type: :development
|
117
|
+
name: minitest
|
116
118
|
- !ruby/object:Gem::Dependency
|
117
119
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
118
120
|
none: false
|
@@ -126,8 +128,8 @@ dependencies:
|
|
126
128
|
version: "0.9"
|
127
129
|
prerelease: false
|
128
130
|
requirement: *id007
|
129
|
-
name: rake
|
130
131
|
type: :development
|
132
|
+
name: rake
|
131
133
|
- !ruby/object:Gem::Dependency
|
132
134
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
133
135
|
none: false
|
@@ -142,8 +144,8 @@ dependencies:
|
|
142
144
|
version: 0.8.0
|
143
145
|
prerelease: false
|
144
146
|
requirement: *id008
|
145
|
-
name: rake-compiler
|
146
147
|
type: :development
|
148
|
+
name: rake-compiler
|
147
149
|
- !ruby/object:Gem::Dependency
|
148
150
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
149
151
|
none: false
|
@@ -158,8 +160,8 @@ dependencies:
|
|
158
160
|
version: 1.4.6
|
159
161
|
prerelease: false
|
160
162
|
requirement: *id009
|
161
|
-
name: racc
|
162
163
|
type: :development
|
164
|
+
name: racc
|
163
165
|
- !ruby/object:Gem::Dependency
|
164
166
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
165
167
|
none: false
|
@@ -174,8 +176,8 @@ dependencies:
|
|
174
176
|
version: 1.0.5
|
175
177
|
prerelease: false
|
176
178
|
requirement: *id010
|
177
|
-
name: rexical
|
178
179
|
type: :development
|
180
|
+
name: rexical
|
179
181
|
- !ruby/object:Gem::Dependency
|
180
182
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
181
183
|
none: false
|
@@ -189,8 +191,8 @@ dependencies:
|
|
189
191
|
version: "3.10"
|
190
192
|
prerelease: false
|
191
193
|
requirement: *id011
|
192
|
-
name: rdoc
|
193
194
|
type: :development
|
195
|
+
name: rdoc
|
194
196
|
- !ruby/object:Gem::Dependency
|
195
197
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
196
198
|
none: false
|
@@ -204,8 +206,8 @@ dependencies:
|
|
204
206
|
version: "2.16"
|
205
207
|
prerelease: false
|
206
208
|
requirement: *id012
|
207
|
-
name: hoe
|
208
209
|
type: :development
|
210
|
+
name: hoe
|
209
211
|
description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
|
210
212
|
many features is the ability to search documents via XPath or CSS3 selectors.\n\n\
|
211
213
|
XML is like violence - if it doesn\xE2\x80\x99t solve your problems, you are not using\n\
|
@@ -226,40 +228,40 @@ extra_rdoc_files:
|
|
226
228
|
- Manifest.txt
|
227
229
|
- README.ja.rdoc
|
228
230
|
- README.rdoc
|
229
|
-
- ext/nokogiri/
|
230
|
-
- ext/nokogiri/html_sax_push_parser.c
|
231
|
-
- ext/nokogiri/xml_processing_instruction.c
|
232
|
-
- ext/nokogiri/xml_text.c
|
233
|
-
- ext/nokogiri/xml_entity_reference.c
|
231
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
234
232
|
- ext/nokogiri/xml_relax_ng.c
|
233
|
+
- ext/nokogiri/html_sax_parser_context.c
|
234
|
+
- ext/nokogiri/html_entity_lookup.c
|
235
|
+
- ext/nokogiri/xml_text.c
|
236
|
+
- ext/nokogiri/html_sax_push_parser.c
|
235
237
|
- ext/nokogiri/nokogiri.c
|
236
|
-
- ext/nokogiri/xml_node.c
|
237
|
-
- ext/nokogiri/xml_attr.c
|
238
|
-
- ext/nokogiri/xml_reader.c
|
239
|
-
- ext/nokogiri/xml_entity_decl.c
|
240
238
|
- ext/nokogiri/xml_element_decl.c
|
241
|
-
- ext/nokogiri/
|
239
|
+
- ext/nokogiri/xml_encoding_handler.c
|
240
|
+
- ext/nokogiri/html_document.c
|
242
241
|
- ext/nokogiri/xslt_stylesheet.c
|
242
|
+
- ext/nokogiri/xml_attribute_decl.c
|
243
|
+
- ext/nokogiri/xml_io.c
|
244
|
+
- ext/nokogiri/xml_document_fragment.c
|
245
|
+
- ext/nokogiri/xml_namespace.c
|
246
|
+
- ext/nokogiri/xml_libxml2_hacks.c
|
247
|
+
- ext/nokogiri/xml_sax_parser_context.c
|
248
|
+
- ext/nokogiri/xml_comment.c
|
249
|
+
- ext/nokogiri/xml_sax_parser.c
|
250
|
+
- ext/nokogiri/html_element_description.c
|
251
|
+
- ext/nokogiri/xml_xpath_context.c
|
243
252
|
- ext/nokogiri/xml_syntax_error.c
|
244
253
|
- ext/nokogiri/xml_document.c
|
245
|
-
- ext/nokogiri/
|
246
|
-
- ext/nokogiri/
|
247
|
-
- ext/nokogiri/xml_sax_parser.c
|
248
|
-
- ext/nokogiri/xml_comment.c
|
254
|
+
- ext/nokogiri/xml_entity_decl.c
|
255
|
+
- ext/nokogiri/xml_node.c
|
249
256
|
- ext/nokogiri/xml_node_set.c
|
250
|
-
- ext/nokogiri/
|
251
|
-
- ext/nokogiri/
|
252
|
-
- ext/nokogiri/xml_sax_push_parser.c
|
253
|
-
- ext/nokogiri/xml_sax_parser_context.c
|
254
|
-
- ext/nokogiri/xml_io.c
|
255
|
-
- ext/nokogiri/xml_libxml2_hacks.c
|
256
|
-
- ext/nokogiri/html_document.c
|
257
|
-
- ext/nokogiri/xml_attribute_decl.c
|
258
|
-
- ext/nokogiri/xml_document_fragment.c
|
259
|
-
- ext/nokogiri/xml_schema.c
|
257
|
+
- ext/nokogiri/xml_reader.c
|
258
|
+
- ext/nokogiri/xml_processing_instruction.c
|
260
259
|
- ext/nokogiri/xml_element_content.c
|
261
|
-
- ext/nokogiri/
|
262
|
-
- ext/nokogiri/
|
260
|
+
- ext/nokogiri/xml_dtd.c
|
261
|
+
- ext/nokogiri/xml_attr.c
|
262
|
+
- ext/nokogiri/xml_schema.c
|
263
|
+
- ext/nokogiri/xml_cdata.c
|
264
|
+
- ext/nokogiri/xml_entity_reference.c
|
263
265
|
files:
|
264
266
|
- .autotest
|
265
267
|
- .gemtest
|
@@ -438,6 +440,9 @@ files:
|
|
438
440
|
- test/files/to_be_xincluded.xml
|
439
441
|
- test/files/valid_bar.xml
|
440
442
|
- test/files/xinclude.xml
|
443
|
+
- test/files/test_document_url/bar.xml
|
444
|
+
- test/files/test_document_url/document.dtd
|
445
|
+
- test/files/test_document_url/document.xml
|
441
446
|
- test/helper.rb
|
442
447
|
- test/html/sax/test_parser.rb
|
443
448
|
- test/html/sax/test_parser_context.rb
|
@@ -520,79 +525,81 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
520
525
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
521
526
|
none: false
|
522
527
|
requirements:
|
523
|
-
- - "
|
528
|
+
- - ">"
|
524
529
|
- !ruby/object:Gem::Version
|
525
|
-
hash:
|
530
|
+
hash: 25
|
526
531
|
segments:
|
527
|
-
-
|
528
|
-
|
532
|
+
- 1
|
533
|
+
- 3
|
534
|
+
- 1
|
535
|
+
version: 1.3.1
|
529
536
|
requirements: []
|
530
537
|
|
531
538
|
rubyforge_project: nokogiri
|
532
|
-
rubygems_version: 1.8.
|
539
|
+
rubygems_version: 1.8.10
|
533
540
|
signing_key:
|
534
541
|
specification_version: 3
|
535
542
|
summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
|
536
543
|
test_files:
|
544
|
+
- test/test_convert_xpath.rb
|
545
|
+
- test/test_soap4r_sax.rb
|
546
|
+
- test/test_memory_leak.rb
|
537
547
|
- test/test_nokogiri.rb
|
538
|
-
- test/
|
539
|
-
- test/css/test_xpath_visitor.rb
|
548
|
+
- test/test_css_cache.rb
|
540
549
|
- test/css/test_nthiness.rb
|
550
|
+
- test/css/test_xpath_visitor.rb
|
541
551
|
- test/css/test_parser.rb
|
542
|
-
- test/
|
543
|
-
- test/
|
544
|
-
- test/
|
545
|
-
- test/
|
546
|
-
- test/
|
547
|
-
- test/
|
548
|
-
- test/
|
549
|
-
- test/
|
550
|
-
- test/
|
551
|
-
- test/
|
552
|
+
- test/css/test_tokenizer.rb
|
553
|
+
- test/decorators/test_slop.rb
|
554
|
+
- test/html/test_document.rb
|
555
|
+
- test/html/test_document_encoding.rb
|
556
|
+
- test/html/test_named_characters.rb
|
557
|
+
- test/html/test_document_fragment.rb
|
558
|
+
- test/html/test_node.rb
|
559
|
+
- test/html/test_builder.rb
|
560
|
+
- test/html/sax/test_parser_context.rb
|
561
|
+
- test/html/sax/test_parser.rb
|
562
|
+
- test/html/test_node_encoding.rb
|
563
|
+
- test/html/test_element_description.rb
|
564
|
+
- test/test_reader.rb
|
565
|
+
- test/xml/test_parse_options.rb
|
566
|
+
- test/xml/test_unparented_node.rb
|
567
|
+
- test/xml/test_element_decl.rb
|
552
568
|
- test/xml/test_document.rb
|
553
|
-
- test/xml/test_node_encoding.rb
|
554
|
-
- test/xml/test_document_fragment.rb
|
555
|
-
- test/xml/test_c14n.rb
|
556
569
|
- test/xml/test_dtd.rb
|
557
|
-
- test/xml/
|
558
|
-
- test/xml/
|
559
|
-
- test/xml/
|
570
|
+
- test/xml/test_document_encoding.rb
|
571
|
+
- test/xml/test_entity_decl.rb
|
572
|
+
- test/xml/test_dtd_encoding.rb
|
560
573
|
- test/xml/node/test_save_options.rb
|
561
574
|
- test/xml/node/test_subclass.rb
|
562
|
-
- test/xml/
|
563
|
-
- test/xml/
|
564
|
-
- test/xml/
|
565
|
-
- test/xml/test_attribute_decl.rb
|
566
|
-
- test/xml/test_xpath.rb
|
567
|
-
- test/xml/test_processing_instruction.rb
|
575
|
+
- test/xml/test_document_fragment.rb
|
576
|
+
- test/xml/test_cdata.rb
|
577
|
+
- test/xml/test_text.rb
|
568
578
|
- test/xml/test_reader_encoding.rb
|
569
|
-
- test/xml/
|
579
|
+
- test/xml/test_xpath.rb
|
580
|
+
- test/xml/test_element_content.rb
|
581
|
+
- test/xml/test_node.rb
|
570
582
|
- test/xml/test_builder.rb
|
583
|
+
- test/xml/sax/test_push_parser.rb
|
584
|
+
- test/xml/sax/test_parser_context.rb
|
585
|
+
- test/xml/sax/test_parser.rb
|
586
|
+
- test/xml/test_schema.rb
|
571
587
|
- test/xml/test_node_set.rb
|
588
|
+
- test/xml/test_attr.rb
|
589
|
+
- test/xml/test_processing_instruction.rb
|
590
|
+
- test/xml/test_node_encoding.rb
|
591
|
+
- test/xml/test_node_inheritance.rb
|
572
592
|
- test/xml/test_syntax_error.rb
|
573
|
-
- test/xml/
|
574
|
-
- test/xml/test_xinclude.rb
|
575
|
-
- test/xml/test_element_content.rb
|
576
|
-
- test/xml/test_unparented_node.rb
|
593
|
+
- test/xml/test_comment.rb
|
577
594
|
- test/xml/test_entity_reference.rb
|
595
|
+
- test/xml/test_node_reparenting.rb
|
596
|
+
- test/xml/test_attribute_decl.rb
|
597
|
+
- test/xml/test_xinclude.rb
|
578
598
|
- test/xml/test_relax_ng.rb
|
599
|
+
- test/xml/test_namespace.rb
|
600
|
+
- test/xml/test_node_attributes.rb
|
601
|
+
- test/xml/test_c14n.rb
|
579
602
|
- test/test_xslt_transforms.rb
|
580
|
-
- test/test_memory_leak.rb
|
581
|
-
- test/test_css_cache.rb
|
582
|
-
- test/decorators/test_slop.rb
|
583
|
-
- test/test_soap4r_sax.rb
|
584
|
-
- test/test_encoding_handler.rb
|
585
|
-
- test/html/test_document_encoding.rb
|
586
|
-
- test/html/test_named_characters.rb
|
587
|
-
- test/html/sax/test_parser_context.rb
|
588
|
-
- test/html/sax/test_parser.rb
|
589
|
-
- test/html/test_document.rb
|
590
|
-
- test/html/test_node_encoding.rb
|
591
|
-
- test/html/test_document_fragment.rb
|
592
|
-
- test/html/test_node.rb
|
593
|
-
- test/html/test_element_description.rb
|
594
|
-
- test/html/test_builder.rb
|
595
|
-
- test/xslt/test_exception_handling.rb
|
596
603
|
- test/xslt/test_custom_functions.rb
|
597
|
-
- test/
|
598
|
-
- test/
|
604
|
+
- test/xslt/test_exception_handling.rb
|
605
|
+
- test/test_encoding_handler.rb
|