infusionsoft 1.1.7b → 1.1.7c

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,9 @@ module Infusionsoft
16
16
  api_logger.info "CALL: #{service_call} api_key:#{api_key} at:#{Time.now} args:#{args.inspect}"
17
17
  result = server.call("#{service_call}", api_key, *args)
18
18
  if result.nil?; ok_to_retry('nil response') end
19
+ rescue InfusionAPINilContentTypeError => nil_content
20
+ # Retry up to 5 times on a nil content-type response from Infusionsoft
21
+ ok_to_retry(nil_content) ? retry : raise
19
22
  rescue Timeout::Error => timeout
20
23
  # Retry up to 5 times on a Timeout before raising it
21
24
  ok_to_retry(timeout) ? retry : raise
@@ -1,4 +1,4 @@
1
1
  module Infusionsoft
2
2
  # The version of the gem
3
- VERSION = '1.1.7b'.freeze unless defined?(::Infusionsoft::VERSION)
3
+ VERSION = '1.1.7c'.freeze unless defined?(::Infusionsoft::VERSION)
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infusionsoft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7b
4
+ version: 1.1.7c
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-21 00:00:00.000000000 Z
12
+ date: 2013-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake