infusionsoft 1.3.4a → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -5
- data/README.md +3 -3
- data/lib/infusionsoft.rb +2 -2
- data/lib/infusionsoft/request.rb +6 -1
- data/lib/infusionsoft/version.rb +1 -1
- data/test/client/contact_test.rb +0 -1
- data/test/test_helper.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be1e1c882fe2d8da54871579f1029caa28e717f3088136d6a87b41d021880ba2
|
4
|
+
data.tar.gz: ec9a18d42d97f134cb5ebcfe258df7e609bb2c20e9d562f8630e3fdbd8469776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 218348412f313f1b9fa024774d27ecf54f6347212a24bfc5639ffab6a87ab8f746de980440166a2550e175a6b709c5e679b1bc219b41170f3056de77440e1c86
|
7
|
+
data.tar.gz: d19d06afba34be09b47223775f6c079ec6863fa4783d933c0c0daa6aec1e51f84c27e63cf8e767f30deb679bf6b965363db69ea204803057199570aa5546c5d8
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
A Ruby wrapper for the Infusionsoft API
|
7
7
|
|
8
8
|
**update notes**
|
9
|
-
*
|
9
|
+
* v1.3.5 - Rest API is now supported (documentation incoming)
|
10
10
|
* v1.2.2 - Catching Infusionsoft API SSL handshake issues
|
11
11
|
* v1.2.1 - Added OAuth support
|
12
12
|
* v1.2.0 - Added `invoice_add_subscription` call to mirror Infusionsoft API parameters to eventually replace `invoice_add_recurring_order`
|
@@ -37,7 +37,7 @@ end
|
|
37
37
|
```
|
38
38
|
## OAUTH 2.0
|
39
39
|
|
40
|
-
You will need to handle and obtain the access_token on your own.
|
40
|
+
You will need to handle and obtain the access_token on your own.
|
41
41
|
|
42
42
|
```ruby
|
43
43
|
# You will need to attain the access_token first, then do the config like so:
|
@@ -98,7 +98,7 @@ features.
|
|
98
98
|
## <a name="rubies">Supported Rubies</a>
|
99
99
|
This library aims to support the following Ruby implementations:
|
100
100
|
|
101
|
-
* Ruby >= 2.
|
101
|
+
* Ruby >= 2.3.8
|
102
102
|
* [JRuby](http://www.jruby.org/)
|
103
103
|
* [Rubinius](http://rubini.us/)
|
104
104
|
* [Ruby Enterprise Edition](http://www.rubyenterpriseedition.com/)
|
data/lib/infusionsoft.rb
CHANGED
@@ -15,9 +15,9 @@ module Infusionsoft
|
|
15
15
|
end
|
16
16
|
|
17
17
|
# Delegate to ApiInfusionsoft::Client
|
18
|
-
def method_missing(method, *args, &block)
|
18
|
+
def method_missing(method, *args, **kwargs, &block)
|
19
19
|
return super unless new.respond_to?(method)
|
20
|
-
new.send(method, *args, &block)
|
20
|
+
new.send(method, *args, **kwargs, &block)
|
21
21
|
end
|
22
22
|
|
23
23
|
def respond_to?(method, include_private = false)
|
data/lib/infusionsoft/request.rb
CHANGED
@@ -21,6 +21,11 @@ module Infusionsoft
|
|
21
21
|
request(:put, path, token, query, payload)
|
22
22
|
end
|
23
23
|
|
24
|
+
# Perform an HTTP PATCH request
|
25
|
+
def patch(path, token, query: {}, payload: {})
|
26
|
+
request(:patch, path, token, query, payload)
|
27
|
+
end
|
28
|
+
|
24
29
|
# Perform an HTTP DELETE request
|
25
30
|
def delete(path, token, query: {})
|
26
31
|
request(:delete, path, token, query)
|
@@ -47,7 +52,7 @@ module Infusionsoft
|
|
47
52
|
rescue RestClient::ExceptionWithResponse => err
|
48
53
|
# log error?
|
49
54
|
else
|
50
|
-
return JSON.parse(resp.body)
|
55
|
+
return JSON.parse(resp.body) if resp.body # Some calls respond w nothing
|
51
56
|
end
|
52
57
|
end
|
53
58
|
end
|
data/lib/infusionsoft/version.rb
CHANGED
data/test/client/contact_test.rb
CHANGED
@@ -24,7 +24,6 @@ class ContactTest < Test::Unit::TestCase
|
|
24
24
|
existing_contact = Infusionsoft.contact_load(3606, [:Id, :FirstName, :LastName, :Email, :Company])
|
25
25
|
result = Infusionsoft.contact_add_with_dup_check(data_hash, 'EmailAndName')
|
26
26
|
assert_equal result, existing_contact['Id']
|
27
|
-
assert_equal Infusionsoft.contact_load(existing_contact['Id'], [:Company])['Company'], data_hash[:Company]
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|
data/test/test_helper.rb
CHANGED
@@ -2,10 +2,10 @@ require 'coveralls'
|
|
2
2
|
Coveralls.wear!
|
3
3
|
|
4
4
|
require 'simplecov'
|
5
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
6
6
|
SimpleCov::Formatter::HTMLFormatter,
|
7
7
|
Coveralls::SimpleCov::Formatter
|
8
|
-
]
|
8
|
+
])
|
9
9
|
SimpleCov.start do
|
10
10
|
add_filter '/vendor/'
|
11
11
|
add_filter '/.bundle/'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infusionsoft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Leavitt
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -131,7 +131,7 @@ files:
|
|
131
131
|
homepage: https://github.com/nateleavitt/infusionsoft
|
132
132
|
licenses: []
|
133
133
|
metadata: {}
|
134
|
-
post_install_message:
|
134
|
+
post_install_message:
|
135
135
|
rdoc_options: []
|
136
136
|
require_paths:
|
137
137
|
- lib
|
@@ -142,12 +142,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- - "
|
145
|
+
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 1.3.
|
147
|
+
version: 1.3.6
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
149
|
+
rubygems_version: 3.2.3
|
150
|
+
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Ruby wrapper for the Infusionsoft API
|
153
153
|
test_files: []
|