nfse-carioca 0.2.12 → 0.2.13

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: 5fcdba67c91b5613018e4241fb66bde7c79f34fd
4
- data.tar.gz: 039324f47d5e4fab616e17260e5fef1e3546f324
3
+ metadata.gz: 6b152687ad53f4b02ff12f78b0aab7da9a897eb6
4
+ data.tar.gz: 6aa4717c3a074c8ee596bf67d94c21cabdfb5bef
5
5
  SHA512:
6
- metadata.gz: f71012fc737e1ac22fd8209fcc29fed2cc0035fd3abc00566aaffe3da5c25cfd9898f19bc146cdda5f3e91a9386a5b0431c6abb06b2a2306c1ec0505a30caa72
7
- data.tar.gz: a29c06d7b2575564e6fd3b8d31e156ed06e51a1dd5849f1606f829e5bc2a4f23bf1e48940bc18ce6201f5a52a981fcbdff3738c467baf89f346a404516b5c099
6
+ metadata.gz: cf4dcb9cc09afc50bcefeb2e82a1526da10c26bba4d3c2f913aa622638e4a857e79c9066cb56b1845733fd23bdd19fb7edaf9100ba3b157705ec7f0181d5e950
7
+ data.tar.gz: 35de43fd1c8a0dfa3c2adc6682cfea36824596c1355d61a6752f69287b64d7b3a294bf69b35ba52b5e039a693b8d04178afdf74278d8ec570381e5427e5fed89
@@ -32,14 +32,12 @@ module NfseCarioca
32
32
  def errors
33
33
  if error?
34
34
  message = content["ListaMensagemRetorno"]["MensagemRetorno"]
35
- if message.is_a?(Hash)
36
- message.inspect
37
- else
38
- message.map(&:inspect).join("\n")
39
- end
35
+ message = [message] if message.is_a?(Hash)
36
+
37
+ message
40
38
  end
41
39
  rescue
42
- content.inspect
40
+ content
43
41
  end
44
42
  end
45
43
  end
@@ -1,3 +1,3 @@
1
1
  module NfseCarioca
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
@@ -104,7 +104,7 @@ RSpec.describe NfseCarioca::GerarNfse do
104
104
  end
105
105
 
106
106
  it "responds with error message E10 " do
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.\"}"
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."}]
108
108
  end
109
109
  end
110
110
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfse-carioca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - LUZ Planilhas