br_danfe 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: cb7955c61761067d0182134678fe401ccd1f956b
4
- data.tar.gz: 69ffe8bd2f936b6fde80256b9755163b0b0dda58
3
+ metadata.gz: bf614acac5c7739a5f0224aa6600064ae395f1d7
4
+ data.tar.gz: eb58783e7239321c521afe1e9d47c47a23b4d5e8
5
5
  SHA512:
6
- metadata.gz: b278a3c4f2a0c19eefbf3b0bf31508974dcb46fffbcb4c0fc275815c6b474f2eb29841dd93a42febaa38a51b0e8c7362e35ce93625e3e122b732888f2dd7f9e7
7
- data.tar.gz: 1441b461a99c32f715bab87df995b78d52668b4c47ce88f6540c43526801d0a7b4f71ce88b975701d0f051dcd1e6c83026df3efb0969db1648dffe0ab8b728f8
6
+ metadata.gz: 6d9e697b90191159df34f89cae0c48a6af1ed362ac443473164a329f45c2c6d0178892539a7347865e0044b9c2e82e977eecfcbcb918d6bb724dc33e66523407
7
+ data.tar.gz: a3b445332f39021a3a129c5307c468af3a0f77d934fb2f4151411b82982a10a815916e36f2c67416201a8f4662b99980a10eee288fe39a22282d0e9c32c2bfb0
data/.codeclimate.yml ADDED
@@ -0,0 +1,32 @@
1
+ engines:
2
+ brakeman:
3
+ enabled: false
4
+ bundler-audit:
5
+ enabled: false
6
+ duplication:
7
+ enabled: true
8
+ config:
9
+ languages:
10
+ - ruby
11
+ eslint:
12
+ enabled: false
13
+ fixme:
14
+ enabled: true
15
+ rubocop:
16
+ enabled: true
17
+ ratings:
18
+ paths:
19
+ - Gemfile.lock
20
+ - "**.erb"
21
+ - "**.haml"
22
+ - "**.rb"
23
+ - "**.rhtml"
24
+ - "**.slim"
25
+ - "**.inc"
26
+ - "**.js"
27
+ - "**.jsx"
28
+ - "**.module"
29
+ - "**.php"
30
+ - "**.py"
31
+ exclude_paths:
32
+ - spec/*
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
+ ruby "2.2.2"
2
3
 
3
4
  gemspec
4
5
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # BrDanfe
2
2
 
3
- [![Code Climate](https://codeclimate.com/github/asseinfo/br_danfe.png)](https://codeclimate.com/github/asseinfo/br_danfe) [![Build Status](https://travis-ci.org/asseinfo/br_danfe.png?branch=master)](https://travis-ci.org/asseinfo/br_danfe)
3
+ [![Code Climate](https://codeclimate.com/github/asseinfo/br_danfe.png)](https://codeclimate.com/github/asseinfo/br_danfe)
4
4
 
5
5
  This gem generates PDF files for Brazilian DANFE (_Documento Auxiliar da Nota Fiscal Eletrônica_) from a valid NF-e XML. It also can generates PDF file for CC-e (_Carta de Correção Eletrônica_).
6
6
 
data/circle.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  machine:
2
- ruby:
3
- version: 2.1.2
4
2
  timezone:
5
3
  America/Sao_Paulo
4
+ environment:
5
+ CODECLIMATE_REPO_TOKEN: d7196b5d208c110965cd943545838235668fde9bd23a755f850d3b012e93f9d1
@@ -46,7 +46,7 @@ pt-BR:
46
46
  emit:
47
47
  IM: "INSCRIÇÃO MUNICIPAL"
48
48
  IE: "INSCRIÇÃO ESTADUAL"
49
- IE_ST: "INSC.ESTADUAL DO SUBST. TRIBUTÁRIO"
49
+ IEST: "INSC.ESTADUAL DO SUBST. TRIBUTÁRIO"
50
50
  CNPJ: "CNPJ"
51
51
  dup:
52
52
  title: "FATURA / DUPLICATAS"
@@ -15,7 +15,7 @@ module BrDanfe
15
15
  @pdf.lbox LINE_HEIGHT, 10.04, 0.75, @l1, @xml, "ide/natOp"
16
16
  @pdf.ibox LINE_HEIGHT, 9.52, 10.79, @l1, I18n.t("danfe.infProt"), @xml["infProt/nProt"] + " " + Helper.format_datetime(@xml["infProt/dhRecbto"]), { align: :center }
17
17
  @pdf.lie LINE_HEIGHT, 6.36, 0.75, @l2, @xml, "enderEmit/UF", "emit/IE"
18
- @pdf.lie LINE_HEIGHT, 6.86, 7.11, @l2, @xml, "enderEmit/UF", "emit/IE_ST"
18
+ @pdf.lie LINE_HEIGHT, 6.86, 7.11, @l2, @xml, "enderEmit/UF", "emit/IEST"
19
19
  @pdf.lcnpj LINE_HEIGHT, 6.34, 13.97, @l2, @xml, "emit/CNPJ"
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module BrDanfe
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -24,7 +24,7 @@ describe BrDanfe::DanfeLib::Emit do
24
24
  <UF>SP</UF>
25
25
  </enderEmit>
26
26
  <IE>526926313553</IE>
27
- <IE_ST>611724092039</IE_ST>
27
+ <IEST>611724092039</IEST>
28
28
  </emit>
29
29
  </infNFe>
30
30
  </NFe>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_danfe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-28 00:00:00.000000000 Z
11
+ date: 2016-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -156,9 +156,9 @@ executables: []
156
156
  extensions: []
157
157
  extra_rdoc_files: []
158
158
  files:
159
+ - ".codeclimate.yml"
159
160
  - ".gitignore"
160
161
  - ".rspec"
161
- - ".travis.yml"
162
162
  - Gemfile
163
163
  - README.md
164
164
  - Rakefile
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
6
- - jruby-19mode
7
- gemfile:
8
- - Gemfile