nfse-carioca 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nfse_carioca/gerar_nfse.rb +10 -9
- data/lib/nfse_carioca/version.rb +1 -1
- data/spec/lib/nfse_carioca/gerar_nfse_spec.rb +1 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5fcdba67c91b5613018e4241fb66bde7c79f34fd
|
|
4
|
+
data.tar.gz: 039324f47d5e4fab616e17260e5fef1e3546f324
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f71012fc737e1ac22fd8209fcc29fed2cc0035fd3abc00566aaffe3da5c25cfd9898f19bc146cdda5f3e91a9386a5b0431c6abb06b2a2306c1ec0505a30caa72
|
|
7
|
+
data.tar.gz: a29c06d7b2575564e6fd3b8d31e156ed06e51a1dd5849f1606f829e5bc2a4f23bf1e48940bc18ce6201f5a52a981fcbdff3738c467baf89f346a404516b5c099
|
|
@@ -29,16 +29,17 @@ module NfseCarioca
|
|
|
29
29
|
content["CompNfse"]["Nfse"]["InfNfse"]["CodigoVerificacao"] if success?
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def
|
|
33
|
-
|
|
32
|
+
def errors
|
|
33
|
+
if error?
|
|
34
|
+
message = content["ListaMensagemRetorno"]["MensagemRetorno"]
|
|
35
|
+
if message.is_a?(Hash)
|
|
36
|
+
message.inspect
|
|
37
|
+
else
|
|
38
|
+
message.map(&:inspect).join("\n")
|
|
39
|
+
end
|
|
40
|
+
end
|
|
34
41
|
rescue
|
|
35
|
-
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def error_code
|
|
39
|
-
content["ListaMensagemRetorno"]["MensagemRetorno"]["Codigo"] if error?
|
|
40
|
-
rescue
|
|
41
|
-
"N/A"
|
|
42
|
+
content.inspect
|
|
42
43
|
end
|
|
43
44
|
end
|
|
44
45
|
end
|
data/lib/nfse_carioca/version.rb
CHANGED
|
@@ -104,11 +104,7 @@ RSpec.describe NfseCarioca::GerarNfse do
|
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
it "responds with error message E10 " do
|
|
107
|
-
expect(response.
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
it "responds with error code E10 " do
|
|
111
|
-
expect(response.error_code).to eq "E10"
|
|
107
|
+
expect(response.errors).to eq "{\"Codigo\"=>\"E10\", \"Mensagem\"=>\"RPS já informado.\", \"Correcao\"=>\"Para essa Inscrição Municipal/CNPJ já existe um RPS informado com o mesmo número, série e tipo.\"}"
|
|
112
108
|
end
|
|
113
109
|
end
|
|
114
110
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nfse-carioca
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LUZ Planilhas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|