aranha-parsers 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aranha/parsers/base.rb +10 -1
- data/lib/aranha/parsers/source_address/file.rb +1 -1
- data/lib/aranha/parsers/version.rb +1 -1
- metadata +26 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29047ecc46278ee7a2a65dbd78f68e02274cbff544eb40c975468ce0f5e01111
|
4
|
+
data.tar.gz: b99153904aab532fae9fe1bb2e73b6e21b69a0650bebb80cf8c1e6d20edb8b2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5292e264c641a4fd05d44f1799abe47c2a9672de472bcbeca7fe1f9de60b94c4e6ce0b33029736c906f4043df14c4be47a39b98150c68db9a91bfd57d7b1f90
|
7
|
+
data.tar.gz: f2b9d85ea85c9902fb9ebbcfc2f2cc80fc66711fb93ebc569b9e32e7e5e007ea1917c707211919aa85125970449ebf07472df9cc3efd735288da6a6adbf129e6
|
data/lib/aranha/parsers/base.rb
CHANGED
@@ -45,8 +45,17 @@ module Aranha
|
|
45
45
|
@content ||= log_content(source_address_content)
|
46
46
|
end
|
47
47
|
|
48
|
+
# @return [String, nil]
|
49
|
+
def content_encoding
|
50
|
+
nil
|
51
|
+
end
|
52
|
+
|
48
53
|
# @return [String]
|
49
|
-
|
54
|
+
def source_address_content
|
55
|
+
source_address.content.then do |r|
|
56
|
+
content_encoding.if_present(r) { |v| r.force_encoding(v) }
|
57
|
+
end
|
58
|
+
end
|
50
59
|
|
51
60
|
private
|
52
61
|
|
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.
|
4
|
+
version: 0.23.0
|
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:
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '2.8'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 2.8.
|
36
|
+
version: 2.8.7
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,47 +43,55 @@ dependencies:
|
|
43
43
|
version: '2.8'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.8.
|
46
|
+
version: 2.8.7
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: eac_envs-http
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.5'
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 0.5.1
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.5'
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
66
|
+
version: 0.5.1
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
68
|
+
name: eac_ruby_gem_support
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 0.119.2
|
73
|
+
version: '0.10'
|
77
74
|
type: :runtime
|
78
75
|
prerelease: false
|
79
76
|
version_requirements: !ruby/object:Gem::Requirement
|
80
77
|
requirements:
|
81
78
|
- - "~>"
|
82
79
|
- !ruby/object:Gem::Version
|
83
|
-
version: '0.
|
84
|
-
|
80
|
+
version: '0.10'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: eac_ruby_utils
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0.122'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
85
93
|
- !ruby/object:Gem::Version
|
86
|
-
version: 0.
|
94
|
+
version: '0.122'
|
87
95
|
- !ruby/object:Gem::Dependency
|
88
96
|
name: nokogiri
|
89
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +101,7 @@ dependencies:
|
|
93
101
|
version: '1.15'
|
94
102
|
- - ">="
|
95
103
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.15.
|
104
|
+
version: 1.15.6
|
97
105
|
type: :runtime
|
98
106
|
prerelease: false
|
99
107
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -103,7 +111,7 @@ dependencies:
|
|
103
111
|
version: '1.15'
|
104
112
|
- - ">="
|
105
113
|
- !ruby/object:Gem::Version
|
106
|
-
version: 1.15.
|
114
|
+
version: 1.15.6
|
107
115
|
- !ruby/object:Gem::Dependency
|
108
116
|
name: ofx-parser
|
109
117
|
requirement: !ruby/object:Gem::Requirement
|