cfdi_processor 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cfdi_processor.rb +0 -1
- data/lib/cfdi_processor/data_extractor_base.rb +4 -4
- data/lib/cfdi_processor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ded9471832de7943f5940c0e3ceb5b90307c1de2872d364347d31a6f72346dc5
|
4
|
+
data.tar.gz: cdb7ac480c1e20f5e66b6da23aab51cebc86351122cd64e04312e49f932ee6a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 037c2c240b08cda34dbecece75001dae3d88bb258541fd82990a097dcadd65db3fde619b4fdea1bacf504bc33b9c9bb946d5f115935b973d0134bd0f6215e98b
|
7
|
+
data.tar.gz: 1e0a8e31743eee24399bb8975bc548e1c083540a8ccfa06183b0ce462ae782a20dbc0b0736a6fb74e74bbd305b45aa99726e1b0064767aac9f9636bea8045d86
|
data/Gemfile.lock
CHANGED
data/lib/cfdi_processor.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'nokogiri'
|
2
|
-
|
2
|
+
require_relative "i18n"
|
3
3
|
|
4
4
|
module CfdiProcessor
|
5
5
|
class DataExtractorBase
|
@@ -39,12 +39,12 @@ module CfdiProcessor
|
|
39
39
|
if value.kind_of?(Array)
|
40
40
|
next if value.empty?
|
41
41
|
items = value.each do |item|
|
42
|
-
item.transform_keys!{ |k| I18n.t("#{args.first}.#{key}.#{k}") }
|
42
|
+
item.transform_keys!{ |k| ::I18n.t("#{args.first}.#{key}.#{k}") }
|
43
43
|
end
|
44
44
|
|
45
|
-
translated.merge!(I18n.t("#{args.first}.#{resource_name}.#{key}") => items)
|
45
|
+
translated.merge!(::I18n.t("#{args.first}.#{resource_name}.#{key}") => items)
|
46
46
|
else
|
47
|
-
translated.merge!(I18n.t("#{args.first}.#{resource_name}.#{key}") => value)
|
47
|
+
translated.merge!(::I18n.t("#{args.first}.#{resource_name}.#{key}") => value)
|
48
48
|
end
|
49
49
|
|
50
50
|
instance_variable_set("@#{resource_name}", translated)
|