deba 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/deba/extractor.rb +2 -2
  3. data/lib/deba.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bb2408108f8d55f9615dfe7076804f0514a31ad
4
- data.tar.gz: 300e03f63676c61472dfca464fc578c4e192655f
3
+ metadata.gz: fff3ffc19108216f3b159b897739d56026146569
4
+ data.tar.gz: 8f0dfc878ac364b4c98c7a84b7538a9f928f9c47
5
5
  SHA512:
6
- metadata.gz: 6e83bfef880ff0cd253681079351f311025ea8af5c9f94ce183fa7449a250c0b15efc515391a75167beb84d52d5bb6b16f182ad0bf2e9cbe919c9222906066c0
7
- data.tar.gz: 68b754c99c9697dcd68d745c40cfb34156d093f26557cde21e17ef4fd82214def9bff7241a5ae80f6cfaf0bb6a6bb33beb576b965138182570d6cc1e434de518
6
+ metadata.gz: 46b7718daeb25c3d998549f3b8b901dbb06a834f545f1f4bb5ad050a62d029bdf095bbccdc8fc36fcdf2833c0c171e0601fb84e44796377ee909c53d3274f0ad
7
+ data.tar.gz: 425e8549b155ba3bbc242010bbee55fc6c31f1a18e22b26577d10e8a70eaaa235bfe5406fb45b569c914ebf185482b4625938b0d0ab36b49165c920e3f904663
@@ -5,8 +5,8 @@ class Deba::Extractor
5
5
 
6
6
  attr_reader :blocks
7
7
 
8
- def initialize(node)
9
- @node = node
8
+ def initialize(doc)
9
+ @node = doc.root
10
10
  end
11
11
 
12
12
  def extract
data/lib/deba.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "nokogiri"
2
2
 
3
3
  module Deba
4
- VERSION = "0.3.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::HTML(html)).extract
18
+ Deba::Extractor.new(html.is_a?(Nokogiri::XML::Node) ? html : Nokogiri.HTML(html)).extract
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brenton "B-Train" Fletcher