fanforce-api 0.14.8 → 0.14.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/api/_main.rb +2 -2
- data/lib/fanforce/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTY5NDllN2IwOTFiNTQ0MGFjZjgxYTIxNDY0OGY2ZDEwZTNlZjkxNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzQ1OGY0OGY4OTU0OGIyYjdjNTc3NWYxNjNlNGNmYjNmMWI5YWVhMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2ZkY2Q1MDljZjdiMjJkM2RkNzU1MGZjZjliMGIwYTg2OTM5MmQ3OTkxODgz
|
10
|
+
OTJlYzljODEwMmQwZjBlNWNkOTE4ZmJjZDNmOGM3NDljMDM2YjIzNjEwYmE0
|
11
|
+
YzE2OTMwNTMxNzNmZDRkOGVlYTk5MzEzY2JhY2UwNTVlZjYxYjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDdmMGRkMjcxZmVlN2FjYzA2NmM0NjY0YzQ4MTk0NGQxMjhhMjIxYTYyNGFj
|
14
|
+
NzkyYmRhMTFjMGRhZjYyZjAxMzYxYzYzMmQ3NjUwNzNjNzFjMTYwZDJkYTBl
|
15
|
+
ZjZkMDkwNGViNjVhOWE3YzRmM2U1Y2RhODJhZDEyYWZkODgyYjY=
|
data/lib/fanforce/api/_main.rb
CHANGED
@@ -45,7 +45,7 @@ class Fanforce::API
|
|
45
45
|
req_params = apply_auth(req_params) unless retries > 0
|
46
46
|
RestClient.post(url, MultiJson.dump(req_params), :content_type => :json, :accept => :json) do |response, request, result, &block|
|
47
47
|
if response.code == 400 and response.body == '{"error":"Invalid JSON"}' and retries <= 2
|
48
|
-
puts "retried #{path} #{retries} times"
|
48
|
+
puts "retried #{path} #{retries+1} times"
|
49
49
|
post(path, req_params, retries+1)
|
50
50
|
else
|
51
51
|
Fanforce::API::Response.process(response, request, url, req_params)
|
@@ -58,7 +58,7 @@ class Fanforce::API
|
|
58
58
|
req_params = apply_auth(req_params) unless retries > 0
|
59
59
|
RestClient.put(url, MultiJson.dump(req_params), :content_type => :json, :accept => :json) do |response, request, result, &block|
|
60
60
|
if response.code == 400 and response.body == '{"error":"Invalid JSON"}' and retries <= 2
|
61
|
-
puts "retried #{path} #{retries} times"
|
61
|
+
puts "retried #{path} #{retries+1} times"
|
62
62
|
post(path, req_params, retries+1)
|
63
63
|
else
|
64
64
|
Fanforce::API::Response.process(response, request, url, req_params)
|
data/lib/fanforce/api/version.rb
CHANGED