snoopy_afip 4.1.0 → 4.2.0

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
  SHA256:
3
- metadata.gz: 128125234686c9edd72cc5d89649b56ccd1490688f2240b05e2f17a8b980e549
4
- data.tar.gz: d18dc274d283ddfe6c3ef276dc5a6ebaa2d5e37f9064b4743b8b03b6f5d3f8d4
3
+ metadata.gz: 694608362f999627a333c8ddf14fe9d7150186aed5a2b175f6a35e329432ceff
4
+ data.tar.gz: 801c21bbbab57815fb9e4b73782e52baeb4c2eddf718e183e7a4ff19fab8bdef
5
5
  SHA512:
6
- metadata.gz: 9b016a001d413357b8afd8b1ac5bd8f089ea490218d1008a8a328eba62fd344a4d1ea6422dfcd45f7c36391e304c9c72440063d1fb17767dca9dcccff828ff3f
7
- data.tar.gz: c21aa34973d5c58ff706aac317df399d2a25066c99019545a7896be86b0ec3395b7e102bd6fed3f2825c734be2ab97d31ff70f4396760eee7a2b38549b32d94f
6
+ metadata.gz: efc8c215810ab33ad8141ee5d4c046db40adcae31999137bbd774ff2c60ee5d5a5bfd11ce2414af2eaf958fbf582e9e0efb3406ec8ee0326e658ea0dd231d605
7
+ data.tar.gz: 0751d4decaadc34c8a7d0450c83e18945e4aa458fee02c061bd088e72321fa6f0c143f9eac09f5226cbea6a88a3c8f9de0a1856ba9a66527ede2e9186c39a0da
@@ -113,7 +113,7 @@ module Snoopy
113
113
 
114
114
  def client_configuration
115
115
  { :wsdl => Snoopy.auth_url,
116
- :ssl_version => :TLSv1,
116
+ :ssl_version => ::Snoopy::SNOOPY_SSL_VERSION,
117
117
  :pretty_print_xml => true }
118
118
  end
119
119
  end
@@ -185,7 +185,7 @@ module Snoopy
185
185
  { :wsdl => Snoopy.service_url,
186
186
  :headers => { "Accept-Encoding" => "gzip, deflate", "Connection" => "Keep-Alive" },
187
187
  :namespaces => {"xmlns" => "http://ar.gov.afip.dif.FEV1/"},
188
- :ssl_version => :TLSv1,
188
+ :ssl_version => ::Snoopy::SNOOPY_SSL_VERSION,
189
189
  :read_timeout => Snoopy.read_timeout,
190
190
  :open_timeout => Snoopy.open_timeout,
191
191
  :ssl_cert_file => cert,
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Snoopy
3
2
  CBTE_TYPE = { '01' => 'Factura A',
4
3
  '02' => 'Nota de Débito A',
@@ -21,6 +20,9 @@ module Snoopy
21
20
  '63' => 'Liquidacion A',
22
21
  '64' => 'Liquidacion B' }
23
22
 
23
+ # [:TLSv1_2, :TLSv1_1, :TLSv1, :SSLv3, :SSLv23, :SSLv2]
24
+ SNOOPY_SSL_VERSION = (ENV['SNOOPY_SSL_VERSION'] || 'TLSv1').to_sym
25
+
24
26
  RESPONSABLE_INSCRIPTO = :responsable_inscripto
25
27
  RESPONSABLE_MONOTRIBUTO = :responsable_monotributo
26
28
 
@@ -1,3 +1,3 @@
1
1
  module Snoopy
2
- VERSION = "4.1.0"
2
+ VERSION = "4.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snoopy_afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - g.edera