aranha-parsers 0.14.0 → 0.14.1
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/html/node/base.rb +3 -5
- data/lib/aranha/parsers/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aef119ee604ea9fcd2f70d6ed2d0ac32e2d4290ab4da3f602405e3867fefefe1
|
4
|
+
data.tar.gz: 00eb3cfcda9f12140d7cb0c4732d1aa52eddd225e9c42a3a13c0962528267344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c0105f52fc6c680e329e36a5b9d8d9b95dd81c3e8b545d6c1b3cedf9527e7aabe558249ace34134f34875f62b24d43b85690c38a4815b93a10f7640d2189190
|
7
|
+
data.tar.gz: 9030e181ebca90d250ed83596a91631dda1f264fab7612129c4b49e31bd4b9ccc6e7d86631098f6c125461ef94520e168caf59de1adb0e1e8123b356729ed6b8
|
@@ -13,11 +13,9 @@ module Aranha
|
|
13
13
|
|
14
14
|
def parse(node)
|
15
15
|
fields.map do |f|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
raise StandardError, "#{e.message}\nFields: #{f}"
|
20
|
-
end
|
16
|
+
[f[0], parse_field(node, f[2], f[1])]
|
17
|
+
rescue StandardError => e
|
18
|
+
raise StandardError, "#{e.message}\nFields: #{f}"
|
21
19
|
end.to_h
|
22
20
|
end
|
23
21
|
|
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.14.
|
4
|
+
version: 0.14.1
|
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: 2022-
|
11
|
+
date: 2022-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -140,20 +140,14 @@ dependencies:
|
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: 0.3.3
|
143
|
+
version: 0.5.1
|
147
144
|
type: :development
|
148
145
|
prerelease: false
|
149
146
|
version_requirements: !ruby/object:Gem::Requirement
|
150
147
|
requirements:
|
151
148
|
- - "~>"
|
152
149
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
154
|
-
- - ">="
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: 0.3.3
|
150
|
+
version: 0.5.1
|
157
151
|
description:
|
158
152
|
email:
|
159
153
|
executables: []
|