├── .gitignore ├── .rspec ├── .ruby-gemset ├── .ruby-version ├── Gemfile ├── README.md ├── Rakefile ├── lib ├── municipios.json ├── ruby_danfe.rb └── ruby_danfe │ ├── cst.rb │ ├── dacte_generator.rb │ ├── dacteos_generator.rb │ ├── danfe_generator.rb │ ├── danfe_nfce_generator.rb │ ├── danfse_generator.rb │ ├── descricao.rb │ ├── document.rb │ ├── helper.rb │ ├── options.rb │ ├── railtie.rb │ ├── ruby_danfe.rb │ ├── version.rb │ └── xml.rb ├── ruby_danfe.gemspec ├── spec ├── features │ └── ruby_danfe_spec.rb ├── fixtures │ ├── 4_decimals_nfe_simples_nacional.xml │ ├── cte.xml │ ├── nfe_date_format_infoadprod_infoadfisco_issues.xml │ ├── nfe_simples_nacional.xml │ ├── nfe_with_fci.xml │ ├── nfe_with_ns.xml │ ├── nfe_without_ns.xml │ └── nfse.xml ├── lib │ ├── cst_spec.rb │ ├── descricao_spec.rb │ ├── helper_spec.rb │ ├── options_spec.rb │ └── ruby_danfe_spec.rb ├── spec_helper.rb └── support │ └── be_same_file_as.rb └── test ├── cteos.xml ├── danfe.xml ├── generate.rb ├── generate_nfce.rb ├── nfce.xml ├── nfe_simples_nacional.xml ├── nfe_with_fci.xml ├── nfe_with_ns.xml └── nfe_without_ns.xml /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .DS_store 3 | *sublime-* 4 | Gemfile.lock 5 | pkg 6 | *.pdf 7 | coverage 8 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color --format documentation --order rand 2 | -------------------------------------------------------------------------------- /.ruby-gemset: -------------------------------------------------------------------------------- 1 | ruby-danfe 2 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-3.2.2 -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/Gemfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/Rakefile -------------------------------------------------------------------------------- /lib/municipios.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/municipios.json -------------------------------------------------------------------------------- /lib/ruby_danfe.rb: -------------------------------------------------------------------------------- 1 | require_relative 'ruby_danfe/railtie.rb' 2 | -------------------------------------------------------------------------------- /lib/ruby_danfe/cst.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/cst.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/dacte_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/dacte_generator.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/dacteos_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/dacteos_generator.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/danfe_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/danfe_generator.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/danfe_nfce_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/danfe_nfce_generator.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/danfse_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/danfse_generator.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/descricao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/descricao.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/document.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/document.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/helper.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/options.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/options.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/railtie.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/ruby_danfe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/ruby_danfe.rb -------------------------------------------------------------------------------- /lib/ruby_danfe/version.rb: -------------------------------------------------------------------------------- 1 | module RubyDanfe 2 | VERSION = "1.15.4" 3 | end 4 | -------------------------------------------------------------------------------- /lib/ruby_danfe/xml.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/lib/ruby_danfe/xml.rb -------------------------------------------------------------------------------- /ruby_danfe.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/ruby_danfe.gemspec -------------------------------------------------------------------------------- /spec/features/ruby_danfe_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/features/ruby_danfe_spec.rb -------------------------------------------------------------------------------- /spec/fixtures/4_decimals_nfe_simples_nacional.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/4_decimals_nfe_simples_nacional.xml -------------------------------------------------------------------------------- /spec/fixtures/cte.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/cte.xml -------------------------------------------------------------------------------- /spec/fixtures/nfe_date_format_infoadprod_infoadfisco_issues.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/nfe_date_format_infoadprod_infoadfisco_issues.xml -------------------------------------------------------------------------------- /spec/fixtures/nfe_simples_nacional.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/nfe_simples_nacional.xml -------------------------------------------------------------------------------- /spec/fixtures/nfe_with_fci.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/nfe_with_fci.xml -------------------------------------------------------------------------------- /spec/fixtures/nfe_with_ns.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/nfe_with_ns.xml -------------------------------------------------------------------------------- /spec/fixtures/nfe_without_ns.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/nfe_without_ns.xml -------------------------------------------------------------------------------- /spec/fixtures/nfse.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/fixtures/nfse.xml -------------------------------------------------------------------------------- /spec/lib/cst_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/lib/cst_spec.rb -------------------------------------------------------------------------------- /spec/lib/descricao_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/lib/descricao_spec.rb -------------------------------------------------------------------------------- /spec/lib/helper_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/lib/helper_spec.rb -------------------------------------------------------------------------------- /spec/lib/options_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/lib/options_spec.rb -------------------------------------------------------------------------------- /spec/lib/ruby_danfe_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/lib/ruby_danfe_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/be_same_file_as.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/spec/support/be_same_file_as.rb -------------------------------------------------------------------------------- /test/cteos.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/cteos.xml -------------------------------------------------------------------------------- /test/danfe.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/danfe.xml -------------------------------------------------------------------------------- /test/generate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/generate.rb -------------------------------------------------------------------------------- /test/generate_nfce.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/generate_nfce.rb -------------------------------------------------------------------------------- /test/nfce.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/nfce.xml -------------------------------------------------------------------------------- /test/nfe_simples_nacional.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/nfe_simples_nacional.xml -------------------------------------------------------------------------------- /test/nfe_with_fci.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/nfe_with_fci.xml -------------------------------------------------------------------------------- /test/nfe_with_ns.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/nfe_with_ns.xml -------------------------------------------------------------------------------- /test/nfe_without_ns.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfox/ruby_danfe/HEAD/test/nfe_without_ns.xml --------------------------------------------------------------------------------