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 +4 -4
- data/lib/gdexpress/client.rb +2 -2
- data/lib/gdexpress/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3730a427307db30142dc447e940c92b800b84a64
|
4
|
+
data.tar.gz: e780c34b3225099c70fbd2e18d4b8a69aaa44062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1a40307ecf4a3d1dc7a837935b924a3a22f4a9875c866b4cc9d4fd3b5f37da69eb1dc0f5b78f3e38712eea76e586eb9eb5279a949776dfef0ee6e914bef16e1
|
7
|
+
data.tar.gz: 3a599f459ee312f4d8d32aaa3d7a92cf3c5b632b9bb6dcb73b7370185b6a8249c7b4bbffd7f186aa58745a83653daf770e06e62e9fa4b4e3f724c77bebfb8087
|
data/lib/gdexpress/client.rb
CHANGED
@@ -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]}
|
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
|
data/lib/gdexpress/version.rb
CHANGED