aranha 0.16.1 → 0.17.0

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
  SHA256:
3
- metadata.gz: 33a45e4db83f3d2743b53386005803da35188866dad28e15313a56b747efd4d1
4
- data.tar.gz: 77ac8f2bcd922652fe62999f43d148a6557fb66d62e9edb21ba51d00ad5cb6d5
3
+ metadata.gz: 31001c1c5af252c6cb791aa0a362177859b9f8ff647fe3150df6f6515d81904a
4
+ data.tar.gz: eb574bcb2047e5cf2de295ea437d9e70d5cb680f6341e853da7097b7b2e181b8
5
5
  SHA512:
6
- metadata.gz: c9424bbcd6540d5627052427cdbc746db9f36470e35e3c6deed3b2668160de22b2163e3f0a8b5ef03c13681bb05bb42b20c1a7348b71e616facdd82bb464e1fc
7
- data.tar.gz: 54800ff8cc979371da63d2cea2543951f08f3f9a6423d0b20de7a9399cdc19338775f087d9a6791bcd3a0ec27d0500983fd47056f4438d9603e1fac29879a7cb
6
+ metadata.gz: d9ec9528940576d0502b37ead25eb749118211ca5d15cf3d17cb23273d789309c7507e2f74d8053e17c5709766c0b87dabe6d64180df4a43ce060470f556029d
7
+ data.tar.gz: d5ec7d1b7432ecbfbc8e10864214aee4ce9b256b5e359b3ac11f4411b2279e44b20369c17c67cdc08fe9fda52225a1a408ec4977adc0825cdd28da5bcda8ed26
@@ -18,6 +18,8 @@ module Aranha
18
18
  self.source_uri = self.class.sanitize_uri(source_uri)
19
19
  end
20
20
 
21
+ delegate :source_address, to: :parser
22
+
21
23
  def process
22
24
  raise 'Implement method process'
23
25
  end
@@ -27,7 +29,11 @@ module Aranha
27
29
  end
28
30
 
29
31
  def data
30
- @data ||= parser_class.new(target_uri).data
32
+ @data ||= parser.data
33
+ end
34
+
35
+ def parser
36
+ @parser ||= parser_class.new(target_uri)
31
37
  end
32
38
 
33
39
  def parser_class
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aranha
4
- VERSION = '0.16.1'
4
+ VERSION = '0.17.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aranha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-08 00:00:00.000000000 Z
11
+ date: 2022-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers