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.

@@ -1,4 +1,11 @@
1
- === 1.4.5 / 未リリース
1
+ === 1.4.6 / 2011年6月19日
2
+
3
+ * ノート
4
+
5
+ * このバージョンは、1.4.5と機能的に同じです
6
+ * Rubyの1.8.6のサポートが復元されている
7
+
8
+ === 1.4.5 / 2011年6月15日
2
9
 
3
10
  * 新機能
4
11
 
@@ -1,3 +1,10 @@
1
+ === 1.4.6 / 2011-06-19
2
+
3
+ * Notes
4
+
5
+ * This version is functionally identical to 1.4.5.
6
+ * Ruby 1.8.6 support has been restored.
7
+
1
8
  === 1.4.5 / 2011-06-15
2
9
 
3
10
  * New Features
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.4.5'
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)
@@ -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.none?{|err| err.to_s =~ /jimmy/}, "errors should not include pre-existing document 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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 5
10
- version: 1.4.5
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-16 00:00:00 -04:00
19
+ date: 2011-06-19 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency