why-hpricot 0.6.207 → 0.6.210

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,8 @@ module Hpricot
40
40
 
41
41
  def add_child ele
42
42
  ele.parent = self
43
- (self.children ||= []) << ele
43
+ self.children ||= []
44
+ self.children << ele
44
45
  ele
45
46
  end
46
47
 
@@ -10,6 +10,9 @@ class TestPreserved < Test::Unit::TestCase
10
10
  doc = Hpricot(str)
11
11
  yield doc if block_given?
12
12
  str2 = doc.to_original_html
13
+ if RUBY_VERSION =~ /^1.9/
14
+ str2.force_encoding('UTF-8')
15
+ end
13
16
  str.lines.zip(str2.lines).each do |s1, s2|
14
17
  assert_equal s1, s2
15
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: why-hpricot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.207
4
+ version: 0.6.210
5
5
  platform: ruby
6
6
  authors:
7
7
  - why the lucky stiff