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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 767e198aa98ab46f11734945542f3189d3d71b5f
4
- data.tar.gz: 04be645407aa65ec8db2a8360780a70c1324ef85
3
+ metadata.gz: f1d3309de2e58b8a65b50e826c9ce7aa2b54566f
4
+ data.tar.gz: dba0bf5a7cd06257a4f7898f846a796cd6d6fbd2
5
5
  SHA512:
6
- metadata.gz: 2db31262d9151207be049d4cedb7e3215e983e576a2a24af7450419525d27d98110f3062ab4708ee1e10bac481cc7e2d752e8f28bd7bada6c8d0f6346bb5c10c
7
- data.tar.gz: 8f92fa982b933603fa7663ce0bdfd39ecc8c5c6a7f59c8acc7389710449645250cf991ec0215a1c7d5fb0f8fbfa237a5550b60a189e3c9efdd13b862d3018dfc
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={}, headers={})
104
- headers.merge!({ authorization: "Token token=\"#{@access_token}\"" })
105
-
106
- response = ::RestClient.get("#{Xsys::Api.endpoint}#{action}", {params: params}.merge(headers))
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
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick