dominate 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f276d7e323d69a6ea4c0cf5917eb5143094ff4c
4
- data.tar.gz: 5f903780aa92a50e1b59df5429537f452be1a404
3
+ metadata.gz: 0d5d37eabfd65d6bd519003486b87e4ac7ea4bf6
4
+ data.tar.gz: dfae5d88ed94082bd23a32aa495aaf34fe44a653
5
5
  SHA512:
6
- metadata.gz: 36a51e10d802d09e63e3c840efab5ccfacf39322b4de97dc61cb699b8a7653e95e82c4c5264de01a485a6b246287e306edd6d38e11e4e217792d5a28d26cb077
7
- data.tar.gz: f51a2fa79311b8b63f20a2c8901b6a0c06adf9f6f4c4c80b802ae60c97edb555e13dcab7ded7204845ab099ffe4e6259c87b60e0cca8598ff9642dd72b28d85b
6
+ metadata.gz: 68a11c463f8915f524ad5231468b6a27415243a72992b6acad30a2588b7a92908c6f91d581f3ea25058b2d3ec10a0e8d944e968574920a1a5662bb4141b5174a
7
+ data.tar.gz: b040316b0a2fbffce11e2ad04be543830e824893130857bef19149fa425bc57a0dd4f119953ce9b61cfc8b7d545e73aacb70123a24a548b2f1c41710ba16ebaa
data/lib/dominate/dom.rb CHANGED
@@ -62,12 +62,7 @@ module Dominate
62
62
  private
63
63
 
64
64
  def set_doc html
65
- if html.match(/<html.*>/)
66
- @doc = Nokogiri::HTML::Document.parse html
67
- else
68
- # need to wrap it in a div to make sure it has a root
69
- @doc = Nokogiri::HTML.fragment html
70
- end
65
+ @doc = Nokogiri::HTML.parse html
71
66
  end
72
67
 
73
68
  def reset_html
@@ -1,3 +1,3 @@
1
1
  module Dominate
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dominate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj