nokogiri 1.4.5 → 1.4.6
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 +8 -1
- data/CHANGELOG.rdoc +7 -0
- data/lib/nokogiri/version.rb +2 -2
- data/lib/nokogiri/xml/reader.rb +2 -2
- data/test/html/test_document_fragment.rb +1 -1
- metadata +4 -4
data/CHANGELOG.ja.rdoc
CHANGED
data/CHANGELOG.rdoc
CHANGED
data/lib/nokogiri/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Nokogiri
|
2
2
|
# The version of Nokogiri you are using
|
3
|
-
VERSION = '1.4.
|
3
|
+
VERSION = '1.4.6'
|
4
4
|
|
5
5
|
# More complete version information about libxml
|
6
6
|
VERSION_INFO = {}
|
@@ -9,7 +9,7 @@ module Nokogiri
|
|
9
9
|
VERSION_INFO['ruby'] = {}
|
10
10
|
VERSION_INFO['ruby']['version'] = ::RUBY_VERSION
|
11
11
|
VERSION_INFO['ruby']['platform'] = ::RUBY_PLATFORM
|
12
|
-
VERSION_INFO['ruby']['description'] = ::RUBY_DESCRIPTION
|
12
|
+
VERSION_INFO['ruby']['description'] = ::RUBY_DESCRIPTION if defined? ::RUBY_DESCRIPTION
|
13
13
|
VERSION_INFO['ruby']['engine'] = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'mri'
|
14
14
|
VERSION_INFO['ruby']['jruby'] = ::JRUBY_VERSION if RUBY_PLATFORM == "java"
|
15
15
|
if defined?(LIBXML_VERSION)
|
data/lib/nokogiri/xml/reader.rb
CHANGED
@@ -87,9 +87,9 @@ module Nokogiri
|
|
87
87
|
###
|
88
88
|
# Get a list of attributes for the current node.
|
89
89
|
def attributes
|
90
|
-
Hash[attribute_nodes.map { |node|
|
90
|
+
Hash[*attribute_nodes.map { |node|
|
91
91
|
[node.name, node.to_s]
|
92
|
-
}].merge(namespaces || {})
|
92
|
+
}.flatten].merge(namespaces || {})
|
93
93
|
end
|
94
94
|
|
95
95
|
###
|
@@ -246,7 +246,7 @@ module Nokogiri
|
|
246
246
|
context_node = doc.at_css "div"
|
247
247
|
frag = Nokogiri::HTML::DocumentFragment.new doc, "<hello>oh, hello there.</hello>", context_node
|
248
248
|
assert frag.errors.any?{|err| err.to_s =~ /Tag hello invalid/}, "errors should be on the context node's document"
|
249
|
-
assert frag.errors.
|
249
|
+
assert ! frag.errors.any?{|err| err.to_s =~ /jimmy/}, "errors should not include pre-existing document errors"
|
250
250
|
end
|
251
251
|
end
|
252
252
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 6
|
10
|
+
version: 1.4.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Patterson
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-06-
|
19
|
+
date: 2011-06-19 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|