xsys 0.0.9 → 0.0.10

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: 88aa10e00ede7f4bb1ff1979bb3a73db8f252c46
4
- data.tar.gz: ac1ac49cb87f03e9edf0462383c32a50ff632e34
3
+ metadata.gz: 62d427fc674258ca2267d365e277418788c06f88
4
+ data.tar.gz: 50ef1204c630f9f088093d46153bb168e43fad26
5
5
  SHA512:
6
- metadata.gz: 7cada74ce01f3519a52372209b857676b66c3c8cc40abfe19de28979216f740de13b7cc7ef8bcc22eb42893c4a2f2380c8ca4d502a7485eef281c358b49c70ae
7
- data.tar.gz: efc9ec8c32513dc0bf56017e25918bbe1bfa6af690512094f7c59b0c0a0fd69e0b88c4385d95534548386ad8d698d33ac47ec13af03519af55719f127d3e0540
6
+ metadata.gz: 3b7994daee0197f835ad2d1e55abfe4dc8273ea4eec4736474d396e71cb456083ef44c25f93b1b2143ab812683d474c7145604f33eb25a916d00956014409d81
7
+ data.tar.gz: bb2d7e6df024b0d25cb348185e98936bfe901829a2dbf5da1ec0fbda1cb4e283fe290571bf4855ead9e9b3d8a60c8c36e70fd38c2e75d1b28da52c0fcaf8c5aa
data/CHANGELOG.md CHANGED
@@ -33,3 +33,7 @@
33
33
  ## v0.0.9
34
34
 
35
35
  * Added fields for products
36
+
37
+ ## v0.0.10
38
+
39
+ * Removed timeout
data/lib/xsys/api.rb CHANGED
@@ -94,9 +94,13 @@ module Xsys
94
94
  private
95
95
 
96
96
  def self.get_request(action, params={})
97
- response = ::RestClient.get("#{@endpoint}#{action}", {params: params}.merge({
98
- authorization: "Token token=\"#{@access_token}\""
99
- }))
97
+ response = Request.execute(method: :get, url: "#{@endpoint}#{action}",
98
+ , timeout: -1
99
+ , open_timeout: -1
100
+ , headers: {
101
+ params: params
102
+ }.merge({ authorization: "Token token=\"#{@access_token}\"" })
103
+ )
100
104
 
101
105
  if response.headers[:link]
102
106
  {
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler