nfse-carioca 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c9ce592fcfdaed241d7b69427578147d533651c
4
- data.tar.gz: 70376a6f1959639564c34066f694ea70e33987dd
3
+ metadata.gz: d6721719db7c60677981d3978abf72547ca677e0
4
+ data.tar.gz: f33003f50aa5482564b2dbbd683105af1df54114
5
5
  SHA512:
6
- metadata.gz: afead07d39fe05a47481fe25dcda23dfb15f4772e141b51782a9f3d1c721ef877c170b045f6e8ced5f8ba102fc16e00b6ac6531382919da7b1c864c3a812694e
7
- data.tar.gz: 0849758adbffa99490f65187fa01a6efc7de9acd3a99f3584024435c2382c5bebd4dccba6b84709f89b4d7b49a69eb232c542b00b236d2de3edba3d39837f3aa
6
+ metadata.gz: e4c2196b09a625bcca11a24a25849a87515200923e1d1c454921e46f5281b8b904d660c23b30dac9eadcdc996923277ed4333da3819d45dcef26d84b40243cd1
7
+ data.tar.gz: fe2b00c9323d48c9202a99c7d67f3e521644f3d0b8cc7a3d3bdb696b5dc0aa2cfa631298d451667c5a540543d27f406ba4d46ed449c0c5446af746082efd050d
@@ -3,8 +3,12 @@ require "savon"
3
3
  module NfseCarioca
4
4
  class Client
5
5
  def call(method, object)
6
- payload = client.call(method, message: { inputXML: object.to_xml })
7
- object.class::Response.new payload
6
+ if NfseCarioca.configuration.fake_mode
7
+ puts "Nfse method #{method} was sent with the following message:\n\n#{object.to_xml}"
8
+ else
9
+ payload = client.call(method, message: { inputXML: object.to_xml })
10
+ object.class::Response.new payload
11
+ end
8
12
  end
9
13
 
10
14
  private
@@ -27,6 +27,7 @@ module NfseCarioca
27
27
  :codigo_tributacao_municipio
28
28
 
29
29
  def initialize
30
+ @fake_mode = false
30
31
  @test_mode = false
31
32
  @log_level = :error
32
33
 
@@ -1,3 +1,3 @@
1
1
  module NfseCarioca
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LUZ Planilhas