fanforce-api 0.14.8 → 0.14.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTZhNzRlNTFmOGNlOGU3YmQ1NzlmYjk5YTM2OWFlNTgxZWY5YjlkNg==
4
+ OTY5NDllN2IwOTFiNTQ0MGFjZjgxYTIxNDY0OGY2ZDEwZTNlZjkxNA==
5
5
  data.tar.gz: !binary |-
6
- ZTViZWRmMDc4NjY2ZTZiMmVjZTQ3MTNmODYwNjI5MWUzMTM0ZTFmYw==
6
+ YzQ1OGY0OGY4OTU0OGIyYjdjNTc3NWYxNjNlNGNmYjNmMWI5YWVhMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWUxZjEwMzc5OTIyNGE0ZGY3Njc3ZDdiZGE3ZjNiM2I5NTNiMTg5Y2M2YzMw
10
- MGM0YTU1MWIxNTQ5NTIxZDliOGJiNGMwMjUxNjdjYThkN2NhZWEwZjdmYzU3
11
- MDZhMTcxMThiZjBmZWIxYzM1YTc0ZTU5YjYzZjE3NzhkYzY5ZWQ=
9
+ M2ZkY2Q1MDljZjdiMjJkM2RkNzU1MGZjZjliMGIwYTg2OTM5MmQ3OTkxODgz
10
+ OTJlYzljODEwMmQwZjBlNWNkOTE4ZmJjZDNmOGM3NDljMDM2YjIzNjEwYmE0
11
+ YzE2OTMwNTMxNzNmZDRkOGVlYTk5MzEzY2JhY2UwNTVlZjYxYjg=
12
12
  data.tar.gz: !binary |-
13
- MjZmMDIwZGM4OTA5M2RhNjIxODg4ZDVhNDA5ZWY4YTZhNGY4YjJiMTg1MDQ0
14
- MmE2N2IxYmQ5YzhhNDVkY2VmNjc4MDE0Njc0ZWU4MTNmODc2ZGE1YjY4NTY2
15
- M2Q5ZDlmNDNjN2NkZTFiYTk5OTI2YzY1MTdkMWFlYjUzNGMwN2Q=
13
+ ZDdmMGRkMjcxZmVlN2FjYzA2NmM0NjY0YzQ4MTk0NGQxMjhhMjIxYTYyNGFj
14
+ NzkyYmRhMTFjMGRhZjYyZjAxMzYxYzYzMmQ3NjUwNzNjNzFjMTYwZDJkYTBl
15
+ ZjZkMDkwNGViNjVhOWE3YzRmM2U1Y2RhODJhZDEyYWZkODgyYjY=
@@ -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)
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class API
3
- VERSION = '0.14.8'
3
+ VERSION = '0.14.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.8
4
+ version: 0.14.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark