br_danfe 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +7 -0
- data/.rspec +1 -0
- data/.travis.yml +8 -0
- data/Gemfile +5 -0
- data/README.md +116 -0
- data/Rakefile +39 -0
- data/br_danfe.gemspec +27 -0
- data/config/locales/pt-BR.yml +125 -0
- data/lib/br_danfe.rb +12 -0
- data/lib/br_danfe/cep.rb +7 -0
- data/lib/br_danfe/cnpj.rb +7 -0
- data/lib/br_danfe/cpf.rb +7 -0
- data/lib/br_danfe/cst.rb +28 -0
- data/lib/br_danfe/danfe_generator.rb +54 -0
- data/lib/br_danfe/dest.rb +21 -0
- data/lib/br_danfe/det.rb +69 -0
- data/lib/br_danfe/document.rb +103 -0
- data/lib/br_danfe/dup.rb +25 -0
- data/lib/br_danfe/emit.rb +45 -0
- data/lib/br_danfe/helper.rb +38 -0
- data/lib/br_danfe/icmstot.rb +19 -0
- data/lib/br_danfe/ie.rb +68 -0
- data/lib/br_danfe/infadic.rb +53 -0
- data/lib/br_danfe/issqn.rb +12 -0
- data/lib/br_danfe/options.rb +22 -0
- data/lib/br_danfe/phone.rb +11 -0
- data/lib/br_danfe/plate.rb +7 -0
- data/lib/br_danfe/ruby_danfe.rb +42 -0
- data/lib/br_danfe/ticket.rb +10 -0
- data/lib/br_danfe/transp.rb +18 -0
- data/lib/br_danfe/version.rb +3 -0
- data/lib/br_danfe/vol.rb +23 -0
- data/lib/br_danfe/xml.rb +32 -0
- data/lib/br_danfe/xprod.rb +41 -0
- data/spec/features/ruby_danfe_spec.rb +48 -0
- data/spec/fixtures/nfe_simples_nacional.xml +1 -0
- data/spec/fixtures/nfe_with_extra_volumes.xml +4 -0
- data/spec/fixtures/nfe_with_fci.xml +1 -0
- data/spec/fixtures/nfe_with_ns.xml +4 -0
- data/spec/fixtures/nfe_without_ns.xml +2 -0
- data/spec/lib/cep_spec.rb +10 -0
- data/spec/lib/cnpj_spec.rb +10 -0
- data/spec/lib/cpf_spec.rb +10 -0
- data/spec/lib/cst_spec.rb +51 -0
- data/spec/lib/helper_spec.rb +84 -0
- data/spec/lib/ie_spec.rb +230 -0
- data/spec/lib/options_spec.rb +13 -0
- data/spec/lib/phone_spec.rb +19 -0
- data/spec/lib/plate_spec.rb +10 -0
- data/spec/lib/ruby_danfe_spec.rb +40 -0
- data/spec/lib/xprod_spec.rb +124 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/support/be_same_file_as.rb +9 -0
- metadata +223 -0
metadata
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: br_danfe
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ASSEINFO
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: prawn
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: barby
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: i18n
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description:
|
112
|
+
email: asseinfo@asseinfo.com.br
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files: []
|
116
|
+
files:
|
117
|
+
- .gitignore
|
118
|
+
- .rspec
|
119
|
+
- .travis.yml
|
120
|
+
- Gemfile
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- br_danfe.gemspec
|
124
|
+
- config/locales/pt-BR.yml
|
125
|
+
- lib/br_danfe.rb
|
126
|
+
- lib/br_danfe/cep.rb
|
127
|
+
- lib/br_danfe/cnpj.rb
|
128
|
+
- lib/br_danfe/cpf.rb
|
129
|
+
- lib/br_danfe/cst.rb
|
130
|
+
- lib/br_danfe/danfe_generator.rb
|
131
|
+
- lib/br_danfe/dest.rb
|
132
|
+
- lib/br_danfe/det.rb
|
133
|
+
- lib/br_danfe/document.rb
|
134
|
+
- lib/br_danfe/dup.rb
|
135
|
+
- lib/br_danfe/emit.rb
|
136
|
+
- lib/br_danfe/helper.rb
|
137
|
+
- lib/br_danfe/icmstot.rb
|
138
|
+
- lib/br_danfe/ie.rb
|
139
|
+
- lib/br_danfe/infadic.rb
|
140
|
+
- lib/br_danfe/issqn.rb
|
141
|
+
- lib/br_danfe/options.rb
|
142
|
+
- lib/br_danfe/phone.rb
|
143
|
+
- lib/br_danfe/plate.rb
|
144
|
+
- lib/br_danfe/ruby_danfe.rb
|
145
|
+
- lib/br_danfe/ticket.rb
|
146
|
+
- lib/br_danfe/transp.rb
|
147
|
+
- lib/br_danfe/version.rb
|
148
|
+
- lib/br_danfe/vol.rb
|
149
|
+
- lib/br_danfe/xml.rb
|
150
|
+
- lib/br_danfe/xprod.rb
|
151
|
+
- spec/features/ruby_danfe_spec.rb
|
152
|
+
- spec/fixtures/nfe_simples_nacional.xml
|
153
|
+
- spec/fixtures/nfe_simples_nacional.xml.fixture.pdf
|
154
|
+
- spec/fixtures/nfe_with_extra_volumes.xml
|
155
|
+
- spec/fixtures/nfe_with_extra_volumes.xml.fixture.pdf
|
156
|
+
- spec/fixtures/nfe_with_fci.xml
|
157
|
+
- spec/fixtures/nfe_with_fci.xml.fixture.pdf
|
158
|
+
- spec/fixtures/nfe_with_ns.xml
|
159
|
+
- spec/fixtures/nfe_with_ns.xml.fixture.pdf
|
160
|
+
- spec/fixtures/nfe_without_ns.xml
|
161
|
+
- spec/fixtures/nfe_without_ns.xml.fixture.pdf
|
162
|
+
- spec/lib/cep_spec.rb
|
163
|
+
- spec/lib/cnpj_spec.rb
|
164
|
+
- spec/lib/cpf_spec.rb
|
165
|
+
- spec/lib/cst_spec.rb
|
166
|
+
- spec/lib/helper_spec.rb
|
167
|
+
- spec/lib/ie_spec.rb
|
168
|
+
- spec/lib/options_spec.rb
|
169
|
+
- spec/lib/phone_spec.rb
|
170
|
+
- spec/lib/plate_spec.rb
|
171
|
+
- spec/lib/ruby_danfe_spec.rb
|
172
|
+
- spec/lib/xprod_spec.rb
|
173
|
+
- spec/spec_helper.rb
|
174
|
+
- spec/support/be_same_file_as.rb
|
175
|
+
homepage: http://github.com/asseinfo/br_danfe
|
176
|
+
licenses:
|
177
|
+
- MIT
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ! '>='
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.0.6
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: DANFE pdf generator for Brazilian invoices.
|
199
|
+
test_files:
|
200
|
+
- spec/features/ruby_danfe_spec.rb
|
201
|
+
- spec/fixtures/nfe_simples_nacional.xml
|
202
|
+
- spec/fixtures/nfe_simples_nacional.xml.fixture.pdf
|
203
|
+
- spec/fixtures/nfe_with_extra_volumes.xml
|
204
|
+
- spec/fixtures/nfe_with_extra_volumes.xml.fixture.pdf
|
205
|
+
- spec/fixtures/nfe_with_fci.xml
|
206
|
+
- spec/fixtures/nfe_with_fci.xml.fixture.pdf
|
207
|
+
- spec/fixtures/nfe_with_ns.xml
|
208
|
+
- spec/fixtures/nfe_with_ns.xml.fixture.pdf
|
209
|
+
- spec/fixtures/nfe_without_ns.xml
|
210
|
+
- spec/fixtures/nfe_without_ns.xml.fixture.pdf
|
211
|
+
- spec/lib/cep_spec.rb
|
212
|
+
- spec/lib/cnpj_spec.rb
|
213
|
+
- spec/lib/cpf_spec.rb
|
214
|
+
- spec/lib/cst_spec.rb
|
215
|
+
- spec/lib/helper_spec.rb
|
216
|
+
- spec/lib/ie_spec.rb
|
217
|
+
- spec/lib/options_spec.rb
|
218
|
+
- spec/lib/phone_spec.rb
|
219
|
+
- spec/lib/plate_spec.rb
|
220
|
+
- spec/lib/ruby_danfe_spec.rb
|
221
|
+
- spec/lib/xprod_spec.rb
|
222
|
+
- spec/spec_helper.rb
|
223
|
+
- spec/support/be_same_file_as.rb
|