xsys 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xsys/api.rb +4 -4
- data/lib/xsys/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: f1d3309de2e58b8a65b50e826c9ce7aa2b54566f
|
4
|
+
data.tar.gz: dba0bf5a7cd06257a4f7898f846a796cd6d6fbd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 760c36ec671fe3483b57bf2fe6921f07ef17e68598d891d929044d20eb13f9b6a69a3eeb0c5fb30e2e8236a77a8b0fc62b09f7c3de010759c7e8a08ebc49e5b3
|
7
|
+
data.tar.gz: 4f3db4085f6c71b28137d77c25e7423b4efd2d6fd73d73902cd4865f28a31122c7f7abb97403ea99a9ce30794a8321e8b1fb393028f232f212c5f9223d111323
|
data/lib/xsys/api.rb
CHANGED
@@ -100,10 +100,10 @@ module Xsys
|
|
100
100
|
@endpoint || 'https://xsys.lhconfort.com.ar'
|
101
101
|
end
|
102
102
|
|
103
|
-
def get_request(action, params={}
|
104
|
-
|
105
|
-
|
106
|
-
|
103
|
+
def get_request(action, params={})
|
104
|
+
response = ::RestClient.get("#{Xsys::Api.endpoint}#{action}", {params: params}.merge({
|
105
|
+
authorization: "Token token=\"#{Xsys::Api.access_token}\""
|
106
|
+
}))
|
107
107
|
|
108
108
|
if response.headers[:link]
|
109
109
|
{
|
data/lib/xsys/version.rb
CHANGED