siebel_donations 1.0.8 → 1.0.9

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: e31f085fc9207a84516d800ef3a30f3645672b6a
4
- data.tar.gz: a2c7889724192507078b0583b3a62db8592ec593
3
+ metadata.gz: 448d2193307b0e44260ce191cdb7c9a48f576b95
4
+ data.tar.gz: fc1f97ff8091968a49b3c23bbd281f6e14d4b5bb
5
5
  SHA512:
6
- metadata.gz: fe223a30a165168c04697b2228fe69817909b137b54d65e7b93582b17e16034d5d5e1a4c83eae259d25e2f58f8d17641dc42222f8d180e7137f7bc08ca009d58
7
- data.tar.gz: dca4db2e99afc39f16448a216afbc217a0f8f57547b677f51e78f932c8eabc7b99fce710a6943c13f9657b85d1feddf139ceb7485ac1cbfe2f46032041226bb6
6
+ metadata.gz: fe134448979e28be37da40ed84a20b0433439c139719e598fb9890818347b98125dc25f9be2ea8cc90673c8457694dcd0c7bf3a45468fe25fff49e93ef4f8941
7
+ data.tar.gz: 3281bd6856c7a7b5616ae21c644c64780bfaba6d067bd8185d9d1e16583fbf0a300b1807d198cb1da76edc70e46f0024e76b4dd072cddbc1982c644b5210f488
@@ -17,8 +17,10 @@ module SiebelDonations
17
17
  params[:response_timeout] ||= SiebelDonations.default_timeout
18
18
 
19
19
  url = SiebelDonations.base_url + path
20
+ headers = { params: params, authorization: "Bearer #{SiebelDonations.oauth_token}" }
21
+
20
22
  Retryable.retryable :on => [RestClient::InternalServerError, Timeout::Error, Errno::ECONNRESET], :times => 20, :sleep => 20 do
21
- RestClient::Request.execute(:method => :get, :url => url, :headers => {params: params, authorization: "Bearer #{SiebelDonations.oauth_token}"}, :timeout => nil) { |response, request, result, &block|
23
+ RestClient::Request.execute(method: :get, url: url, headers: headers, timeout: SiebelDonations.default_timeout) { |response, request, result, &block|
22
24
  case response.code
23
25
  when 200
24
26
  Oj.load(response.unpack("C*").pack("U*").force_encoding("UTF-8").encode!)
@@ -1,3 +1,3 @@
1
1
  module SiebelDonations
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siebel_donations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Starcher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-17 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client