ledger_sync-quickbooks_online 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b5e19720b4663f9e5ffa823f130bb7c45e4a0494b13cd6d021d53e1c9c4c8f
|
4
|
+
data.tar.gz: a17b5989f741070a84cd18c01b0e94e605cfb9ebe00cf0406bf0a23a52ec4bae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff2c96e34e1b6adb51af4aff4565735acdb8a50ac6b3a458ad5497b866506eae2b1986fdc0da5ff3daca89022fef610e8d6386300e189ad13bd797afdafdf891
|
7
|
+
data.tar.gz: b819e78fb472bb129c7ae51afec95aa2e4b46cbfec100bb26ce0f686f0c084714906c85ff52ad5d6fbbfab7dda104c5d957e25ff49c0679d4b107241dbf995e3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ledger_sync-quickbooks_online (0.
|
4
|
+
ledger_sync-quickbooks_online (0.3.0)
|
5
5
|
dotenv
|
6
6
|
ledger_sync (>= 2.0.2)
|
7
7
|
oauth2
|
@@ -115,13 +115,11 @@ GEM
|
|
115
115
|
rack (~> 2.2.3)
|
116
116
|
resonad
|
117
117
|
simply_serializable (>= 1.5.1)
|
118
|
-
mini_portile2 (2.5.3)
|
119
118
|
minitest (5.14.4)
|
120
119
|
multi_json (1.15.0)
|
121
120
|
multi_xml (0.6.0)
|
122
121
|
multipart-post (2.1.1)
|
123
|
-
nokogiri (1.11.7)
|
124
|
-
mini_portile2 (~> 2.5.0)
|
122
|
+
nokogiri (1.11.7-x86_64-darwin)
|
125
123
|
racc (~> 1.4)
|
126
124
|
oauth2 (1.4.7)
|
127
125
|
faraday (>= 0.8, < 2.0)
|
@@ -34,6 +34,8 @@ module LedgerSync
|
|
34
34
|
client_secret:,
|
35
35
|
realm_id:,
|
36
36
|
refresh_token:,
|
37
|
+
expires_at:,
|
38
|
+
refresh_token_expires_at:,
|
37
39
|
test: false,
|
38
40
|
update_dotenv: true
|
39
41
|
)
|
@@ -42,6 +44,8 @@ module LedgerSync
|
|
42
44
|
@client_secret = client_secret
|
43
45
|
@realm_id = realm_id
|
44
46
|
@refresh_token = refresh_token
|
47
|
+
@expires_at = expires_at
|
48
|
+
@refresh_token_expires_at = refresh_token_expires_at
|
45
49
|
@test = test
|
46
50
|
@update_dotenv = update_dotenv
|
47
51
|
|
@@ -32,8 +32,10 @@ module LedgerSync
|
|
32
32
|
|
33
33
|
def match?
|
34
34
|
code == 3200 ||
|
35
|
-
|
36
|
-
message.include?('
|
35
|
+
code == '3200' ||
|
36
|
+
message.downcase.include?('statuscode=401') ||
|
37
|
+
message.downcase.include?('authenticationfailed') ||
|
38
|
+
message.downcase.include?('errorcode=003200')
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -48,8 +50,9 @@ module LedgerSync
|
|
48
50
|
|
49
51
|
def match?
|
50
52
|
code == 3100 ||
|
51
|
-
|
52
|
-
message.include?('
|
53
|
+
code == '3100' ||
|
54
|
+
message.downcase.include?('authorizationfailed') ||
|
55
|
+
message.downcase.include?('errorcode=003100')
|
53
56
|
end
|
54
57
|
end
|
55
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledger_sync-quickbooks_online
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Modern Treasury
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|