deba 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deba/extractor.rb +2 -2
- data/lib/deba.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fff3ffc19108216f3b159b897739d56026146569
|
4
|
+
data.tar.gz: 8f0dfc878ac364b4c98c7a84b7538a9f928f9c47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46b7718daeb25c3d998549f3b8b901dbb06a834f545f1f4bb5ad050a62d029bdf095bbccdc8fc36fcdf2833c0c171e0601fb84e44796377ee909c53d3274f0ad
|
7
|
+
data.tar.gz: 425e8549b155ba3bbc242010bbee55fc6c31f1a18e22b26577d10e8a70eaaa235bfe5406fb45b569c914ebf185482b4625938b0d0ab36b49165c920e3f904663
|
data/lib/deba/extractor.rb
CHANGED
data/lib/deba.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "nokogiri"
|
2
2
|
|
3
3
|
module Deba
|
4
|
-
VERSION = "0.
|
4
|
+
VERSION = "0.4.0"
|
5
5
|
end
|
6
6
|
|
7
7
|
require "deba/utils"
|
@@ -15,6 +15,6 @@ require "deba/extractor"
|
|
15
15
|
|
16
16
|
module Deba
|
17
17
|
def self.extract(html)
|
18
|
-
Deba::Extractor.new(html.is_a?(Nokogiri::XML::Node) ? html : Nokogiri
|
18
|
+
Deba::Extractor.new(html.is_a?(Nokogiri::XML::Node) ? html : Nokogiri.HTML(html)).extract
|
19
19
|
end
|
20
20
|
end
|