aranha 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5fac0411750b6def655452009d3d091801905c696158499d8b4b26f99ccc426
4
- data.tar.gz: cb8cd648b8603cfd1f578ba92e5017e37d6e1e19427b176d33e097e413c17baf
3
+ metadata.gz: 0f1584f2e85bfa1af17125a1e28965ed32012cd07294c0a5c69bcb4569681245
4
+ data.tar.gz: 26c93ed113239f788991e3970071516c46e3f83bb44c4e5cf2c4e4870047140f
5
5
  SHA512:
6
- metadata.gz: c4864a35aa117b9bb00d544c013ae6caaf356b3d674657d5b1d5a3371f644b949b4fa32b6ec97d5f44fa58f65ea71db0499f18208ed885103a4f93d891d41309
7
- data.tar.gz: c20f17bb1c3d04ce9b7678d2bec181c74dcf3b930202f9c838f5046cd68b326eb660ad490c4ad4c92647f60474eefc705e6e2734a62f3b42541760d689ab9686
6
+ metadata.gz: 159d46c09640d79d09bbafb0c680c5f1343cd6bf62e1b620fb9f755b774c0a04457c42a13178deebff726fe4af8701ce33cdfa0dbc8ec4a41718d74bc37916f8
7
+ data.tar.gz: c3340e9e18c45a47ccc98a2fce1dcc46603bd465471250de56cdbb278c089ffc8d4c7b39f0858af7da9dbb0c6097b23e57170114fd6adfc69f7c5781b8f0107d
@@ -1,11 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'addressable'
4
+ require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module Aranha
6
7
  class DefaultProcessor
7
- attr_reader :source_uri, :extra_data
8
-
9
8
  class << self
10
9
  def sanitize_uri(uri)
11
10
  return uri if uri.is_a?(Hash)
@@ -15,17 +14,14 @@ module Aranha
15
14
  end
16
15
  end
17
16
 
18
- def initialize(source_uri, extra_data)
19
- @source_uri = self.class.sanitize_uri(source_uri)
20
- @extra_data = extra_data
17
+ common_constructor :source_uri, :extra_data do
18
+ self.source_uri = self.class.sanitize_uri(source_uri)
21
19
  end
22
20
 
23
21
  def process
24
22
  raise 'Implement method process'
25
23
  end
26
24
 
27
- protected
28
-
29
25
  def target_uri
30
26
  source_uri
31
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aranha
4
- VERSION = '0.15.0'
4
+ VERSION = '0.15.1'
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.15.0
4
+ version: 0.15.1
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: 2020-11-28 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers