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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ada1cae25cd8475a54ff3d1fbd56f9a6b1013a6c295a7ed99b97b3514b0294a9
4
- data.tar.gz: 004b5c1b31209241a13a06a078281fe6f2ad5dd890715e29754eaaab484c329a
3
+ metadata.gz: ded9471832de7943f5940c0e3ceb5b90307c1de2872d364347d31a6f72346dc5
4
+ data.tar.gz: cdb7ac480c1e20f5e66b6da23aab51cebc86351122cd64e04312e49f932ee6a5
5
5
  SHA512:
6
- metadata.gz: d531bff60c281e38a10184252c5b74b3e15e87406c94fae2e7d32bd78683629f024d79aa8cb1207dae0ae7edfc8270b7c3756673403a39fb56c862f86579e410
7
- data.tar.gz: c4139b69b054b4ea2a630106fdda39ce4c0f86f162d42dbc48dda2c8a9a0e1dcc0fa7881f47b266635435ab0b1cd33b177d58a8a34d5a75faa0de74232b0a347
6
+ metadata.gz: 037c2c240b08cda34dbecece75001dae3d88bb258541fd82990a097dcadd65db3fde619b4fdea1bacf504bc33b9c9bb946d5f115935b973d0134bd0f6215e98b
7
+ data.tar.gz: 1e0a8e31743eee24399bb8975bc548e1c083540a8ccfa06183b0ce462ae782a20dbc0b0736a6fb74e74bbd305b45aa99726e1b0064767aac9f9636bea8045d86
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cfdi_processor (1.0.1)
4
+ cfdi_processor (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,4 +1,3 @@
1
1
  require "cfdi_processor/version"
2
- require "cfdi_processor/i18n"
3
2
  require "cfdi_processor/data_extractor_base"
4
3
  require "cfdi_processor/stamped_extractor"
@@ -1,5 +1,5 @@
1
1
  require 'nokogiri'
2
- require 'i18n'
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)
@@ -1,3 +1,3 @@
1
1
  module CfdiProcessor
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfdi_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armando Alejandre