teodoro 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teodoro/arquivo_de_evento.rb +0 -4
- data/lib/teodoro/arquivo_de_evento_criador_de_arquivo_data.rb +32 -1
- data/lib/teodoro/arquivo_de_evento_processador_de_arquivo_data.rb +2 -2
- data/lib/teodoro/arquivo_xml.rb +1 -1
- data/lib/teodoro/empresa.rb +51 -33
- data/lib/teodoro/leiaute/arquivo_s1000.rb +20 -40
- data/lib/teodoro/leiaute/arquivo_s1005.rb +6 -20
- data/lib/teodoro/leiaute/arquivo_s1010.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s1020.rb +7 -22
- data/lib/teodoro/leiaute/arquivo_s1030.rb +7 -16
- data/lib/teodoro/leiaute/arquivo_s1040.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s1050.rb +5 -8
- data/lib/teodoro/leiaute/arquivo_s1070.rb +3 -3
- data/lib/teodoro/leiaute/arquivo_s2190.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s2200.rb +78 -261
- data/lib/teodoro/leiaute/arquivo_s2205.rb +16 -42
- data/lib/teodoro/leiaute/arquivo_s2206.rb +20 -108
- data/lib/teodoro/leiaute/arquivo_s2230.rb +97 -90
- data/lib/teodoro/leiaute/arquivo_s2250.rb +4 -4
- data/lib/teodoro/leiaute/arquivo_s2299.rb +3 -112
- data/lib/teodoro/leiaute/arquivo_s2300.rb +60 -36
- data/lib/teodoro/leiaute/arquivo_s2306.rb +8 -8
- data/lib/teodoro/xml.rb +6 -0
- metadata +2 -2
data/lib/teodoro/xml.rb
CHANGED
@@ -10,6 +10,8 @@ module Teodoro
|
|
10
10
|
|
11
11
|
public
|
12
12
|
|
13
|
+
extend Forwardable
|
14
|
+
|
13
15
|
def [](*path)
|
14
16
|
node_set = xml.css("*/#{path.join('/')}")
|
15
17
|
|
@@ -27,5 +29,9 @@ module Teodoro
|
|
27
29
|
def *(path) # rubocop:disable Naming/BinaryOperatorParameterName
|
28
30
|
xml.css("*/#{path}").map { |node| self.class.new(Nokogiri::XML(node.to_s)) }
|
29
31
|
end
|
32
|
+
|
33
|
+
def css(path)
|
34
|
+
xml.css(path)
|
35
|
+
end
|
30
36
|
end
|
31
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teodoro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clavius Tales
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|