infusionsoft 1.3.4a → 1.3.4b
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 +1 -1
- data/lib/infusionsoft/rest/token.rb +4 -2
- data/lib/infusionsoft/version.rb +1 -1
- data/test/client/contact_test.rb +0 -1
- data/test/test_helper.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e56af9a7c313461c64528486ccb582044c2e26bf7f465fc14eca617ba6d71a20
|
4
|
+
data.tar.gz: b8b91c896ba7e2391347f4ed35b2d4e0d6a17e60af6aa846978c8baaf49e5255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd80c3a28b0fefe7123327959585a57dcaa5d055ed764c266dfbdccb611bd244593e9fd607b1c2a6142f2fa8e1d05a84f3cbce3a7269ea91d44ea228a135ef27
|
7
|
+
data.tar.gz: 521cf2880e3877a46167438423e71fa81ec78f8e788de3c2de390d93ab0646d08aa1122ce2ba5f12005dee6fcb759ca2a05aad473ceff56fcecdc2947d1daf82
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -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/)
|
@@ -12,9 +12,11 @@ module Infusionsoft
|
|
12
12
|
@access_token = token_params[:access_token] || token_params["access_token"]
|
13
13
|
@refresh_token = token_params[:refresh_token] || token_params["refresh_token"]
|
14
14
|
@expiration = token_params[:expiration] if token_params[:expiration]
|
15
|
+
expires_in = token_params[:expires_in] || token_params["expires_in"]
|
15
16
|
|
16
|
-
if
|
17
|
-
|
17
|
+
if expires_in
|
18
|
+
expires_in = expires_in.to_i
|
19
|
+
@expiration = Time.now + expires_in
|
18
20
|
end
|
19
21
|
end
|
20
22
|
|
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.4b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Leavitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: 1.3.1
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.1.2
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Ruby wrapper for the Infusionsoft API
|