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 +4 -4
- data/lib/aranha/default_processor.rb +3 -7
- data/lib/aranha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f1584f2e85bfa1af17125a1e28965ed32012cd07294c0a5c69bcb4569681245
|
|
4
|
+
data.tar.gz: 26c93ed113239f788991e3970071516c46e3f83bb44c4e5cf2c4e4870047140f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
19
|
-
|
|
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
|
data/lib/aranha/version.rb
CHANGED
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.
|
|
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
|
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aranha-parsers
|