gdexpress 0.1.1 → 0.1.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: 65610ae445706e2c1e6c767971e1dd650468e3c2
4
- data.tar.gz: f598e7d69b4207605b022312d6af06d67d65a4d3
3
+ metadata.gz: 3730a427307db30142dc447e940c92b800b84a64
4
+ data.tar.gz: e780c34b3225099c70fbd2e18d4b8a69aaa44062
5
5
  SHA512:
6
- metadata.gz: 9079e21300851ee895b6e4cef5aa1078f7859f1d53b89e468a637c6d182cdd96c79e635aefb1da152e59b25f76a2b14fa952123db93b0df458e69df55bb5d2a4
7
- data.tar.gz: 18aaaa5ba1c937a7b29fdbb66f31f239fe06627dc20fb0216a74d1ee23f34040b4e3730c0afd831459b2f2f9437ca9e360e0ddb3f1e5fb25fc92cc77c9dadd04
6
+ metadata.gz: e1a40307ecf4a3d1dc7a837935b924a3a22f4a9875c866b4cc9d4fd3b5f37da69eb1dc0f5b78f3e38712eea76e586eb9eb5279a949776dfef0ee6e914bef16e1
7
+ data.tar.gz: 3a599f459ee312f4d8d32aaa3d7a92cf3c5b632b9bb6dcb73b7370185b6a8249c7b4bbffd7f186aa58745a83653daf770e06e62e9fa4b4e3f724c77bebfb8087
@@ -96,11 +96,11 @@ module Gdexpress
96
96
  end
97
97
 
98
98
  def make_uri(dte, method)
99
- base_uri = "http://#{dte_box}#{API_ENDPOINTS[method.to_sym]}/#{ENVIROMENTS[environment]}/"
99
+ base_uri = "http://#{dte_box}#{API_ENDPOINTS[method.to_sym]}#{ENVIROMENTS[environment]}/"
100
100
 
101
101
  # Se tiene que poner 2 veces el rut cuando se pide PDF o XML
102
102
  # según lo que sale en http://IP_GD_BOX/api/Core.svc/core/help
103
- base_uri << dte.rut_emisor if method.match(/^recover_/)
103
+ base_uri << "#{dte.rut_emisor}/" if method.match(/^recover_/)
104
104
  base_uri << "#{dte.rut_emisor}/#{dte.tipo_dte}/#{dte.folio}"
105
105
  URI base_uri
106
106
  end
@@ -1,3 +1,3 @@
1
1
  module Gdexpress
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdexpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Bruna