Afip 0.4.1 → 0.4.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: '08e4a1ad7f2192fca95269939a31e14a30af5d9a'
4
- data.tar.gz: 182389cbdf222182f11bb84de42e4640a14cc87c
3
+ metadata.gz: 62e5f910e1de8fd328fc454d4c5b18b7033e00e9
4
+ data.tar.gz: 9a5c2a1ad6bd7c43fa2c110bfbbcff2794b27ea0
5
5
  SHA512:
6
- metadata.gz: 27d8ffec980eb61a9e8053d2e6763a2283fcac153b7424a17a6eb54650c5316e519c24603f10008c465f74a7fe9fe563f6d153ca8d9a76893c7721a8987f4b51
7
- data.tar.gz: b6742ac710917e1adafc4cdb91695d6b90d3f13e3dd8346cdbadf14a1ee5b4dfb01af5091d9d08ea1480e292c3019a66fdae3ec32b7dc51c8baba5e6e7a23987
6
+ metadata.gz: a6069b04d25a9aa7998b13f52ecb002b21cb5483086c35b529b1eee3c72ec27aa84fc501263abfa8a43ad0eb2f49e4eda68ab67c08e545a97e850beba9204545
7
+ data.tar.gz: e068f95ee075a26d6e5ef21bae80bb23cc2f7d7fb75bfef9515f372c720ef99b7748a15935f4a352acb02a4df852c10080b33ef3fa7d2ac5b0fe153a7ff5399b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.4.0)
4
+ Afip (0.4.1)
5
5
  httpi
6
6
  savon
7
7
 
@@ -33,7 +33,7 @@ module Afip
33
33
  # Returns the authorization hash, containing the Token, Signature and Cuit
34
34
  # @return [Hash]
35
35
  #
36
- def auth_hash
36
+ def auth_hash(service = "wsfe")
37
37
  fetch unless Afip.constants.include?(:TOKEN) && Afip.constants.include?(:SIGN)
38
38
  case service
39
39
  when "wsfe"
data/lib/Afip/ctg.rb CHANGED
@@ -43,7 +43,7 @@ module Afip
43
43
  @fecha_desde = attrs[:fecha_desde]
44
44
  @fecha_hasta = attrs[:fecha_hasta]
45
45
 
46
- @body = {"request" =>{"auth" => Afip.auth_hash}}
46
+ @body = {"request" =>{"auth" => Afip.auth_hash("wsctg")}}
47
47
  end
48
48
 
49
49
  def solicitar_ctg_invicial
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez