aranha-parsers 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25162cfcb2ecb83d5901208ef5e51b2adc87e7b935d1e3753dda8bbdfe3bf4e9
|
4
|
+
data.tar.gz: 03bda98afc0096ca8a0206bb17e1b7137e24304c7d15f41ad7bdb027b769ff28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ebb1df964fe32db0c13244a10b45c0fdcdcd0a1bfd0ab18f962a77d1d21879ec62d1e979c651654ed41631c63d348a3f0de36cee8e0595f39e622a955e5db2
|
7
|
+
data.tar.gz: 2dd16c54da9cabfa7149972e768b70590ed829274b69cfab651b284a25780ce2c1fbd19a794bb8fb9aab01e3e988ccc5562a203673a98825a1bee7d021c0136c
|
@@ -37,6 +37,34 @@ module Aranha
|
|
37
37
|
parse_decimal_dot(node, xpath, false)
|
38
38
|
end
|
39
39
|
|
40
|
+
# @param node [Nokogiri::XML::Element]
|
41
|
+
# @param xpath [String]
|
42
|
+
# @return [Integer]
|
43
|
+
def integer_comma_value(node, xpath)
|
44
|
+
decimal_comma_value(node, xpath).to_i
|
45
|
+
end
|
46
|
+
|
47
|
+
# @param node [Nokogiri::XML::Element]
|
48
|
+
# @param xpath [String]
|
49
|
+
# @return [Integer]
|
50
|
+
def integer_comma_optional_value(node, xpath)
|
51
|
+
decimal_comma_optional_value(node, xpath).to_i
|
52
|
+
end
|
53
|
+
|
54
|
+
# @param node [Nokogiri::XML::Element]
|
55
|
+
# @param xpath [String]
|
56
|
+
# @return [Integer]
|
57
|
+
def integer_dot_value(node, xpath)
|
58
|
+
decimal_dot_value(node, xpath).to_i
|
59
|
+
end
|
60
|
+
|
61
|
+
# @param node [Nokogiri::XML::Element]
|
62
|
+
# @param xpath [String]
|
63
|
+
# @return [Integer]
|
64
|
+
def integer_dot_optional_value(node, xpath)
|
65
|
+
decimal_dot_optional_value(node, xpath).to_i
|
66
|
+
end
|
67
|
+
|
40
68
|
def integer_value(node, xpath)
|
41
69
|
r = string_value(node, xpath)
|
42
70
|
return nil if r.blank?
|
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.25.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: 2024-
|
11
|
+
date: 2024-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
73
|
+
version: '0.124'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0.
|
80
|
+
version: '0.124'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: nokogiri
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '1.15'
|
88
88
|
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.15.
|
90
|
+
version: 1.15.7
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
version: '1.15'
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 1.15.
|
100
|
+
version: 1.15.7
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: ofx-parser
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|