xsys 0.0.1 → 0.0.2
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 +2 -0
- 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: bfd32db2817a50daa7011b5ebf32078b9ba7d402
|
4
|
+
data.tar.gz: de5bf56c8473b5256dfd57d7af1e7822f52c7a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db91ede55f41ba2f18305e2429b713a3eca6760c76d607cc2e9d9e3534e12d356a44e57f629f3eb3ad53130c019c4de9b9f88dcdcb8d00fd510f7edef953e1e8
|
7
|
+
data.tar.gz: e2f8835c703f5fc53f9367198b11ab5a0538510bc91bc16e0b15d066ab08d04a59dc81d18ff05b39b483bd1531eeaab09e09cb1739f29f9e0419676e9d8e3233
|
data/lib/xsys/api.rb
CHANGED
@@ -101,6 +101,8 @@ module Xsys
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def get_request(action, params={}, headers={})
|
104
|
+
headers.merge!({ authorization: "Token token=\"#{@access_token}\"" })
|
105
|
+
|
104
106
|
response = ::RestClient.get("#{Xsys::Api.endpoint}#{action}", {params: params}.merge(headers))
|
105
107
|
|
106
108
|
if response.headers[:link]
|
data/lib/xsys/version.rb
CHANGED