afipws 1.0.1 → 1.0.2

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: 844da5760c94b36dc705a95c99a5c69d75a517c2
4
- data.tar.gz: c3ca012f55bc89c325c69c9c7c18a3941f7445f9
3
+ metadata.gz: 43b67a6ffe5b7c3c7a8673bb131bad701008aebe
4
+ data.tar.gz: eca42e8c7b56f99cf21d3a65c170f3298d0a5edd
5
5
  SHA512:
6
- metadata.gz: d51c1dfbcf92f3f9d7fe548f236a69cbdef1179995c2c02bc37ab81c7ee034413f3ae71b8439182692aa0901ff82b1a4030019be66638225f55b3478e2ba8b61
7
- data.tar.gz: d85ac1c15ff84b0781d2831c432c66f6678bf47ad79320b20779d7696ed32d955644d54206e2c10fc49a075c2e776a5addf2c44e944687e2d439d49b53e9c4ce
6
+ metadata.gz: c54c43e24b381eef8df652b8a104c9dbed4841959493871c32cfa780979b5ace1ad2365213ab0b57252dcf5f3aa021eb5f5f33d23870eb67255d05a639b6ea68
7
+ data.tar.gz: 9415493baf942f65673e4a24d33101836a9b3e66fa634395683dd26b51a6f2794f457cd6ec5bc6f1d2ba16cb7c117975f2d27881ec1ec86c7eba228e2f4b96aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afipws (1.0.1)
4
+ afipws (1.0.2)
5
5
  activesupport
6
6
  builder
7
7
  nokogiri
@@ -1,3 +1,3 @@
1
1
  module Afipws
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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 = env == :development || Date.today >= Date.new(2016,11,1) ? :SSLv3 : :TLSv1
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
@@ -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: :SSLv3, convert_request_keys_to: :camelcase)
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.1
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-07-07 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec