afipws 1.0.1 → 1.0.2
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/Gemfile.lock +1 -1
- data/lib/afipws/version.rb +1 -1
- data/lib/afipws/wsfe.rb +2 -2
- data/spec/afipws/wsfe_spec.rb +2 -2
- 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: 43b67a6ffe5b7c3c7a8673bb131bad701008aebe
|
|
4
|
+
data.tar.gz: eca42e8c7b56f99cf21d3a65c170f3298d0a5edd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c54c43e24b381eef8df652b8a104c9dbed4841959493871c32cfa780979b5ace1ad2365213ab0b57252dcf5f3aa021eb5f5f33d23870eb67255d05a639b6ea68
|
|
7
|
+
data.tar.gz: 9415493baf942f65673e4a24d33101836a9b3e66fa634395683dd26b51a6f2794f457cd6ec5bc6f1d2ba16cb7c117975f2d27881ec1ec86c7eba228e2f4b96aa
|
data/Gemfile.lock
CHANGED
data/lib/afipws/version.rb
CHANGED
data/lib/afipws/wsfe.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Afipws
|
|
|
15
15
|
def initialize options = {}
|
|
16
16
|
@env = (options[:env] || :test).to_sym
|
|
17
17
|
@wsaa = options[:wsaa] || WSAA.new(options.merge(service: 'wsfe'))
|
|
18
|
-
ssl_version =
|
|
18
|
+
ssl_version = :TLSv1
|
|
19
19
|
@client = Client.new Hash(options[:savon]).reverse_merge(wsdl: WSDL[@env], ssl_version: ssl_version, convert_request_keys_to: :camelcase)
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -147,4 +147,4 @@ module Afipws
|
|
|
147
147
|
x2r r[:result_get], fch_tope_inf: :date, fch_vig_desde: :date, fch_vig_hasta: :date
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
|
-
end
|
|
150
|
+
end
|
data/spec/afipws/wsfe_spec.rb
CHANGED
|
@@ -239,7 +239,7 @@ describe Afipws::WSFE do
|
|
|
239
239
|
context "entorno" do
|
|
240
240
|
it "debería usar las url para development cuando el env es development" do
|
|
241
241
|
Afipws::Client.expects(:new).with(wsdl: 'https://wsaahomo.afip.gov.ar/ws/services/LoginCms?wsdl')
|
|
242
|
-
Afipws::Client.expects(:new).with(wsdl: 'https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL', ssl_version: :
|
|
242
|
+
Afipws::Client.expects(:new).with(wsdl: 'https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL', ssl_version: :TLSv1, convert_request_keys_to: :camelcase)
|
|
243
243
|
wsfe = Afipws::WSFE.new env: :development
|
|
244
244
|
wsfe.env.should == :development
|
|
245
245
|
end
|
|
@@ -307,4 +307,4 @@ describe Afipws::WSFE do
|
|
|
307
307
|
c2r(imp_trib: 0.0, tributos: { tributo: [] }).should_not have_key :tributos
|
|
308
308
|
end
|
|
309
309
|
end
|
|
310
|
-
end
|
|
310
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: afipws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emmanuel Nicolau
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|