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 +4 -4
- data/lib/siebel_donations/base.rb +3 -1
- data/lib/siebel_donations/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 448d2193307b0e44260ce191cdb7c9a48f576b95
|
4
|
+
data.tar.gz: fc1f97ff8091968a49b3c23bbd281f6e14d4b5bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(:
|
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!)
|
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.
|
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-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|