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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a7df9c1e5960b5e04bb479eebadda13e45a7223
4
- data.tar.gz: 7f001cb9716dc4744b198f747be0f861cb162f92
3
+ metadata.gz: bfd32db2817a50daa7011b5ebf32078b9ba7d402
4
+ data.tar.gz: de5bf56c8473b5256dfd57d7af1e7822f52c7a83
5
5
  SHA512:
6
- metadata.gz: 0830dc1c1a8081d9f26de97610a2ec4288af957782d09836c0f6a77ca00ee4e88a20b335c4ba54d43f53c7f42540a9af3660a3fde2a192283827784c85d5f549
7
- data.tar.gz: df19d7d749b5b30c86e8b57647b74deeb0fbe32e8b9a8688dcf1e49d9dbb3325b557f88dc583fd774f8e886c1758b1a7032bcdf2283610c2b12732afa2de349d
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
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick