infusionsoft 1.1.0c → 1.1.0
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.
- data/README.md +1 -1
- data/lib/infusionsoft/connection.rb +4 -12
- data/lib/infusionsoft/version.rb +1 -1
- metadata +44 -20
data/README.md
CHANGED
@@ -106,6 +106,6 @@ time of a major release, support for that Ruby version may be dropped.
|
|
106
106
|
* Need to add a history log for additional contributers
|
107
107
|
|
108
108
|
## <a name="copyright">Copyright</a>
|
109
|
-
Copyright (c)
|
109
|
+
Copyright (c) 2011 Nathan Leavitt & Infused Systems
|
110
110
|
See [LICENSE](https://github.com/nateleavitt/infusionsoft/blob/master/LICENSE.md) for details.
|
111
111
|
|
@@ -15,12 +15,11 @@ module Infusionsoft
|
|
15
15
|
result = server.call("#{service_call}", api_key, *args)
|
16
16
|
if result.nil?; result = [] end
|
17
17
|
rescue Timeout::Error
|
18
|
-
|
19
|
-
|
20
|
-
rescue
|
21
|
-
#raise(InfusionAPIError, "*** INFUSION API ERROR ***") if ['test', 'development', 'staging'].include?(Rails.env)
|
22
|
-
retry_call(@retry_count)
|
18
|
+
@retry_count += 1
|
19
|
+
puts "*** INFUSION API TIMEOUT: retrying #{@retry_count} ***"
|
23
20
|
retry if ok_to_retry
|
21
|
+
rescue XMLRPC::FaultException => e
|
22
|
+
puts "*** INFUSION API ERROR: #{e.faultCode} - #{e.faultString} ***"
|
24
23
|
end
|
25
24
|
|
26
25
|
return result
|
@@ -30,12 +29,5 @@ module Infusionsoft
|
|
30
29
|
@retry_count <= 5 ? true : false
|
31
30
|
end
|
32
31
|
|
33
|
-
def retry_call(count)
|
34
|
-
@retry_count = count + 1
|
35
|
-
puts "*** INFUSION API ERROR: retrying #{@retry_count} ***"
|
36
|
-
end
|
37
|
-
|
38
32
|
end
|
39
33
|
end
|
40
|
-
|
41
|
-
class InfusionAPIError < StandardError; end
|
data/lib/infusionsoft/version.rb
CHANGED
metadata
CHANGED
@@ -1,23 +1,34 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: infusionsoft
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Nathan Leavitt
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2012-05-23 00:00:00 -07:00
|
19
|
+
default_executable:
|
13
20
|
dependencies: []
|
21
|
+
|
14
22
|
description: A Ruby wrapper written for the Infusionsoft API
|
15
|
-
email:
|
23
|
+
email:
|
16
24
|
- nate@infusedsystems.com
|
17
25
|
executables: []
|
26
|
+
|
18
27
|
extensions: []
|
28
|
+
|
19
29
|
extra_rdoc_files: []
|
20
|
-
|
30
|
+
|
31
|
+
files:
|
21
32
|
- .gitignore
|
22
33
|
- LICENSE.md
|
23
34
|
- README.md
|
@@ -40,28 +51,41 @@ files:
|
|
40
51
|
- lib/infusionsoft/request.rb
|
41
52
|
- lib/infusionsoft/version.rb
|
42
53
|
- test/api_infusion_test.rb
|
54
|
+
has_rdoc: true
|
43
55
|
homepage: https://github.com/nateleavitt/infusionsoft
|
44
56
|
licenses: []
|
57
|
+
|
45
58
|
post_install_message:
|
46
59
|
rdoc_options: []
|
47
|
-
|
60
|
+
|
61
|
+
require_paths:
|
48
62
|
- lib
|
49
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
64
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
73
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 23
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 3
|
81
|
+
- 6
|
82
|
+
version: 1.3.6
|
61
83
|
requirements: []
|
84
|
+
|
62
85
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.
|
86
|
+
rubygems_version: 1.6.2
|
64
87
|
signing_key:
|
65
88
|
specification_version: 3
|
66
89
|
summary: Ruby wrapper for the Infusionsoft API
|
67
90
|
test_files: []
|
91
|
+
|