gdexpress 0.1.2 → 0.1.3
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84c9da46ca168d64a7ddaf1bdb4b15e0647934e5
|
4
|
+
data.tar.gz: cafd79fcd51ba1a2cb59b9217688ceb24d17121a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcc26c5b6f1d46087481480a3be03fb77ebd08a281505179891f011ad2a1dd70f86e800c30c0f7b93777f76d904906f0353e4e7cb119d120cebd49f9702fd36
|
7
|
+
data.tar.gz: 62a9cf1348e20e6d2c2e4cc2be5ef551408f019c575139fe149d87614c930ee4f36bccd159d5900d7a55ba424a2ca44ddc968ccae9dd464f2b860a2a23a6fd6b
|
data/lib/gdexpress/client.rb
CHANGED
@@ -4,7 +4,7 @@ module Gdexpress
|
|
4
4
|
class Client
|
5
5
|
|
6
6
|
CONFIG_OPTIONS = [:api_token, :dte_box, :environment]
|
7
|
-
|
7
|
+
GD_ENVIRONMENTS = {
|
8
8
|
testing: "T",
|
9
9
|
production: "P"
|
10
10
|
}
|
@@ -96,7 +96,7 @@ 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]}#{GD_ENVIRONMENTS[environment.to_sym]}/"
|
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
|
data/lib/gdexpress/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdexpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Bruna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|