aranha-parsers 0.7.1 → 0.7.2
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/parsers/source_address.rb +10 -8
- data/lib/aranha/parsers/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: 291b1da2b4559d999dc1534f79ed111bcfa83f3d6c79e62a049a6eec74443163
|
|
4
|
+
data.tar.gz: 65f36ed9cee9d1230f9746da5fc6c2e2a3d3c89cf991257ba27aa0451115a9c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e0c6c83985297d6ae1ea39be8471d477982f379c3176c057275f7c758ec3d05d9452110a506e78cb165cff84a639fac774c66b5e5714b606e226f76ad7f604c
|
|
7
|
+
data.tar.gz: 34b367289ee0c693bbf77f47c6fa000f61791e7a9f0e88e21f5f7fb1bcb2bb6ded0dbd3b0603c069ec0c881e3d021281b3793410025262770bacd03eff2dd306
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'active_support/core_ext/module/delegation'
|
|
4
|
-
require 'eac_ruby_utils/
|
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
|
5
5
|
require 'yaml'
|
|
6
6
|
|
|
7
7
|
module Aranha
|
|
8
8
|
module Parsers
|
|
9
9
|
class SourceAddress
|
|
10
|
-
|
|
10
|
+
require_sub __FILE__
|
|
11
11
|
|
|
12
12
|
class << self
|
|
13
13
|
SUBS = [
|
|
@@ -35,12 +35,8 @@ module Aranha
|
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def initialize(source)
|
|
41
|
-
@sub = self.class.detect_sub(source)
|
|
42
|
-
end
|
|
43
|
-
|
|
38
|
+
enable_simple_cache
|
|
39
|
+
common_constructor :source
|
|
44
40
|
delegate :content, :url, to: :sub
|
|
45
41
|
|
|
46
42
|
def to_s
|
|
@@ -50,6 +46,12 @@ module Aranha
|
|
|
50
46
|
def serialize
|
|
51
47
|
sub.serialize.strip + "\n"
|
|
52
48
|
end
|
|
49
|
+
|
|
50
|
+
private
|
|
51
|
+
|
|
52
|
+
def sub_uncached
|
|
53
|
+
self.class.detect_sub(source)
|
|
54
|
+
end
|
|
53
55
|
end
|
|
54
56
|
end
|
|
55
57
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aranha-parsers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esquilo Azul Company
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|