ledger_sync-quickbooks_online 1.0.1 → 2.0.2
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.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +9 -0
- data/.github/workflows/gem-workflow.yml +3 -3
- data/.rubocop.yml +7 -1
- data/Gemfile.lock +117 -88
- data/bin/quickbooks_online_oauth_server.rb +1 -1
- data/ledger_sync-quickbooks_online.gemspec +7 -7
- data/lib/ledger_sync/quickbooks_online/client.rb +4 -4
- data/lib/ledger_sync/quickbooks_online/deserializer.rb +2 -2
- data/lib/ledger_sync/quickbooks_online/version.rb +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94d4c379c1b78db0a82890e4e115f29fbc5f6c9f847e201582d88658b36806c5
|
|
4
|
+
data.tar.gz: d11dde4ea1601d79c59ec516cc764c3322185a3d1c58b97d28c26734704de7d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8fd7e1a80eb0919d584dc0b04b9f0fb26d771799cd60b43e76d219f301c5afd32554252f8302f298d5fe8c59b77fdfb6382d44ae4049989763a6ada6dfd8e05
|
|
7
|
+
data.tar.gz: 2a55cbef1f5db412f6da3ef81a51f8146d09266ba33430f7843251b31ea0965d1771a53be1918336b02cd88bae42393e245de1f0227089e136f7148c9ab7e1a0
|
|
@@ -9,7 +9,7 @@ jobs:
|
|
|
9
9
|
strategy:
|
|
10
10
|
matrix:
|
|
11
11
|
os: [ubuntu-latest]
|
|
12
|
-
ruby-version: ['2.
|
|
12
|
+
ruby-version: ['3.1.6', '3.2.6', '3.3.6']
|
|
13
13
|
runs-on: ${{ matrix.os }}
|
|
14
14
|
steps:
|
|
15
15
|
- uses: actions/checkout@v3
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
strategy:
|
|
31
31
|
matrix:
|
|
32
32
|
os: [ubuntu-latest]
|
|
33
|
-
ruby-version: ['2.
|
|
33
|
+
ruby-version: ['3.1.6', '3.2.6', '3.3.6']
|
|
34
34
|
runs-on: ${{ matrix.os }}
|
|
35
35
|
steps:
|
|
36
36
|
- uses: actions/checkout@v3
|
|
@@ -67,7 +67,7 @@ jobs:
|
|
|
67
67
|
- name: Ruby Setup and Bundle
|
|
68
68
|
uses: ruby/setup-ruby@v1
|
|
69
69
|
with:
|
|
70
|
-
ruby-version:
|
|
70
|
+
ruby-version: 3.1.6
|
|
71
71
|
bundler-cache: true
|
|
72
72
|
- name: Publish to RubyGems
|
|
73
73
|
run: |
|
data/.rubocop.yml
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
|
2
2
|
|
|
3
3
|
AllCops:
|
|
4
|
-
TargetRubyVersion:
|
|
4
|
+
TargetRubyVersion: 3.1
|
|
5
5
|
NewCops: enable
|
|
6
6
|
|
|
7
|
+
Gemspec/DevelopmentDependencies:
|
|
8
|
+
Enabled: False
|
|
9
|
+
|
|
7
10
|
Layout/LineLength:
|
|
8
11
|
Enabled: True
|
|
9
12
|
Max: 120
|
|
@@ -38,6 +41,9 @@ Lint/RaiseException:
|
|
|
38
41
|
Lint/StructNewOverride:
|
|
39
42
|
Enabled: True
|
|
40
43
|
|
|
44
|
+
Naming/VariableNumber:
|
|
45
|
+
Enabled: False
|
|
46
|
+
|
|
41
47
|
Style/AccessorGrouping:
|
|
42
48
|
Enabled: True
|
|
43
49
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,54 +1,69 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ledger_sync-quickbooks_online (
|
|
4
|
+
ledger_sync-quickbooks_online (2.0.2)
|
|
5
5
|
dotenv
|
|
6
|
-
ledger_sync (>=
|
|
6
|
+
ledger_sync (>= 3.0, <= 4.0)
|
|
7
7
|
oauth2
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activemodel (7.
|
|
13
|
-
activesupport (= 7.
|
|
14
|
-
activesupport (7.
|
|
15
|
-
|
|
12
|
+
activemodel (7.2.2.1)
|
|
13
|
+
activesupport (= 7.2.2.1)
|
|
14
|
+
activesupport (7.2.2.1)
|
|
15
|
+
base64
|
|
16
|
+
benchmark (>= 0.3)
|
|
17
|
+
bigdecimal
|
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
19
|
+
connection_pool (>= 2.2.5)
|
|
20
|
+
drb
|
|
16
21
|
i18n (>= 1.6, < 2)
|
|
22
|
+
logger (>= 1.4.2)
|
|
17
23
|
minitest (>= 5.1)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
securerandom (>= 0.3)
|
|
25
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
26
|
+
addressable (2.8.7)
|
|
27
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
28
|
+
ast (2.4.3)
|
|
22
29
|
awesome_print (1.9.2)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
base64 (0.2.0)
|
|
31
|
+
benchmark (0.4.0)
|
|
32
|
+
bigdecimal (3.1.9)
|
|
33
|
+
bump (0.10.0)
|
|
34
|
+
byebug (12.0.0)
|
|
35
|
+
childprocess (5.1.0)
|
|
36
|
+
logger (~> 1.5)
|
|
26
37
|
climate_control (1.2.0)
|
|
27
|
-
colorize (
|
|
28
|
-
concurrent-ruby (1.
|
|
29
|
-
|
|
38
|
+
colorize (1.1.0)
|
|
39
|
+
concurrent-ruby (1.3.5)
|
|
40
|
+
connection_pool (2.5.0)
|
|
41
|
+
coveralls_reborn (0.28.0)
|
|
30
42
|
simplecov (~> 0.22.0)
|
|
31
43
|
term-ansicolor (~> 1.7)
|
|
32
44
|
thor (~> 1.2)
|
|
33
45
|
tins (~> 1.32)
|
|
34
|
-
crack (0.
|
|
46
|
+
crack (1.0.0)
|
|
47
|
+
bigdecimal
|
|
35
48
|
rexml
|
|
36
|
-
diff-lcs (1.5.
|
|
37
|
-
docile (1.4.
|
|
38
|
-
dotenv (
|
|
39
|
-
|
|
49
|
+
diff-lcs (1.5.1)
|
|
50
|
+
docile (1.4.1)
|
|
51
|
+
dotenv (3.1.7)
|
|
52
|
+
drb (2.2.1)
|
|
53
|
+
dry-configurable (1.2.0)
|
|
40
54
|
dry-core (~> 1.0, < 2)
|
|
41
55
|
zeitwerk (~> 2.6)
|
|
42
|
-
dry-core (1.0.
|
|
56
|
+
dry-core (1.0.2)
|
|
43
57
|
concurrent-ruby (~> 1.0)
|
|
58
|
+
logger
|
|
44
59
|
zeitwerk (~> 2.6)
|
|
45
|
-
dry-inflector (1.
|
|
60
|
+
dry-inflector (1.1.0)
|
|
46
61
|
dry-initializer (3.1.1)
|
|
47
62
|
dry-logic (1.5.0)
|
|
48
63
|
concurrent-ruby (~> 1.0)
|
|
49
64
|
dry-core (~> 1.0, < 2)
|
|
50
65
|
zeitwerk (~> 2.6)
|
|
51
|
-
dry-schema (1.13.
|
|
66
|
+
dry-schema (1.13.4)
|
|
52
67
|
concurrent-ruby (~> 1.0)
|
|
53
68
|
dry-configurable (~> 1.0, >= 1.0.1)
|
|
54
69
|
dry-core (~> 1.0, < 2)
|
|
@@ -56,7 +71,8 @@ GEM
|
|
|
56
71
|
dry-logic (>= 1.4, < 2)
|
|
57
72
|
dry-types (>= 1.7, < 2)
|
|
58
73
|
zeitwerk (~> 2.6)
|
|
59
|
-
dry-types (1.7.
|
|
74
|
+
dry-types (1.7.2)
|
|
75
|
+
bigdecimal (~> 3.0)
|
|
60
76
|
concurrent-ruby (~> 1.0)
|
|
61
77
|
dry-core (~> 1.0)
|
|
62
78
|
dry-inflector (~> 1.0)
|
|
@@ -68,9 +84,9 @@ GEM
|
|
|
68
84
|
dry-initializer (~> 3.0)
|
|
69
85
|
dry-schema (>= 1.12, < 2)
|
|
70
86
|
zeitwerk (~> 2.6)
|
|
71
|
-
factory_bot (6.1
|
|
72
|
-
activesupport (>=
|
|
73
|
-
faraday (1.10.
|
|
87
|
+
factory_bot (6.5.1)
|
|
88
|
+
activesupport (>= 6.1.0)
|
|
89
|
+
faraday (1.10.4)
|
|
74
90
|
faraday-em_http (~> 1.0)
|
|
75
91
|
faraday-em_synchrony (~> 1.0)
|
|
76
92
|
faraday-excon (~> 1.1)
|
|
@@ -88,26 +104,27 @@ GEM
|
|
|
88
104
|
faraday-em_synchrony (1.0.0)
|
|
89
105
|
faraday-excon (1.1.0)
|
|
90
106
|
faraday-httpclient (1.0.1)
|
|
91
|
-
faraday-multipart (1.0
|
|
92
|
-
multipart-post (~> 2)
|
|
93
|
-
faraday-net_http (1.0.
|
|
107
|
+
faraday-multipart (1.1.0)
|
|
108
|
+
multipart-post (~> 2.0)
|
|
109
|
+
faraday-net_http (1.0.2)
|
|
94
110
|
faraday-net_http_persistent (1.2.0)
|
|
95
111
|
faraday-patron (1.0.0)
|
|
96
112
|
faraday-rack (1.0.0)
|
|
97
113
|
faraday-retry (1.0.3)
|
|
98
|
-
faraday_middleware (1.2.
|
|
114
|
+
faraday_middleware (1.2.1)
|
|
99
115
|
faraday (~> 1.0)
|
|
100
116
|
fingerprintable (1.2.1)
|
|
101
117
|
colorize
|
|
102
|
-
hashdiff (1.
|
|
118
|
+
hashdiff (1.1.2)
|
|
103
119
|
hashie (5.0.0)
|
|
104
|
-
i18n (1.
|
|
120
|
+
i18n (1.14.7)
|
|
105
121
|
concurrent-ruby (~> 1.0)
|
|
106
122
|
iniparse (1.5.0)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
json (2.10.2)
|
|
124
|
+
jwt (2.10.1)
|
|
125
|
+
base64
|
|
126
|
+
language_server-protocol (3.17.0.4)
|
|
127
|
+
ledger_sync (3.0.0)
|
|
111
128
|
activemodel
|
|
112
129
|
dotenv
|
|
113
130
|
dry-schema
|
|
@@ -117,18 +134,21 @@ GEM
|
|
|
117
134
|
faraday_middleware
|
|
118
135
|
fingerprintable (>= 1.2.1)
|
|
119
136
|
nokogiri
|
|
120
|
-
openssl (
|
|
137
|
+
openssl (> 2.2.0)
|
|
121
138
|
pd_ruby
|
|
122
139
|
rack (>= 2.2.3)
|
|
123
140
|
rainbow (~> 3.0)
|
|
124
141
|
resonad
|
|
125
142
|
simply_serializable (>= 1.5.1)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
143
|
+
lint_roller (1.1.0)
|
|
144
|
+
logger (1.6.6)
|
|
145
|
+
mini_portile2 (2.8.8)
|
|
146
|
+
minitest (5.25.4)
|
|
147
|
+
multi_xml (0.7.1)
|
|
148
|
+
bigdecimal (~> 3.1)
|
|
149
|
+
multipart-post (2.4.1)
|
|
150
|
+
nokogiri (1.18.0)
|
|
151
|
+
mini_portile2 (~> 2.8.2)
|
|
132
152
|
racc (~> 1.4)
|
|
133
153
|
oauth2 (2.0.9)
|
|
134
154
|
faraday (>= 0.17.3, < 3.0)
|
|
@@ -137,56 +157,61 @@ GEM
|
|
|
137
157
|
rack (>= 1.2, < 4)
|
|
138
158
|
snaky_hash (~> 2.0)
|
|
139
159
|
version_gem (~> 1.1)
|
|
140
|
-
openssl (
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
childprocess (>= 0.6.3, < 5)
|
|
160
|
+
openssl (3.3.0)
|
|
161
|
+
overcommit (0.67.1)
|
|
162
|
+
childprocess (>= 0.6.3, < 6)
|
|
144
163
|
iniparse (~> 1.4)
|
|
145
|
-
|
|
146
|
-
|
|
164
|
+
rexml (>= 3.3.9)
|
|
165
|
+
parallel (1.26.3)
|
|
166
|
+
parser (3.3.7.4)
|
|
147
167
|
ast (~> 2.4.1)
|
|
168
|
+
racc
|
|
148
169
|
pd_ruby (0.2.3)
|
|
149
170
|
colorize
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
171
|
+
prism (1.4.0)
|
|
172
|
+
public_suffix (6.0.1)
|
|
173
|
+
racc (1.8.1)
|
|
174
|
+
rack (3.1.8)
|
|
153
175
|
rainbow (3.1.1)
|
|
154
|
-
rake (13.
|
|
155
|
-
regexp_parser (2.
|
|
176
|
+
rake (13.2.1)
|
|
177
|
+
regexp_parser (2.10.0)
|
|
156
178
|
resonad (1.4.0)
|
|
157
|
-
rexml (3.
|
|
158
|
-
rspec (3.
|
|
159
|
-
rspec-core (~> 3.
|
|
160
|
-
rspec-expectations (~> 3.
|
|
161
|
-
rspec-mocks (~> 3.
|
|
162
|
-
rspec-core (3.
|
|
163
|
-
rspec-support (~> 3.
|
|
164
|
-
rspec-expectations (3.
|
|
179
|
+
rexml (3.4.1)
|
|
180
|
+
rspec (3.13.0)
|
|
181
|
+
rspec-core (~> 3.13.0)
|
|
182
|
+
rspec-expectations (~> 3.13.0)
|
|
183
|
+
rspec-mocks (~> 3.13.0)
|
|
184
|
+
rspec-core (3.13.2)
|
|
185
|
+
rspec-support (~> 3.13.0)
|
|
186
|
+
rspec-expectations (3.13.3)
|
|
165
187
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
166
|
-
rspec-support (~> 3.
|
|
167
|
-
rspec-mocks (3.
|
|
188
|
+
rspec-support (~> 3.13.0)
|
|
189
|
+
rspec-mocks (3.13.2)
|
|
168
190
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
169
|
-
rspec-support (~> 3.
|
|
170
|
-
rspec-support (3.
|
|
171
|
-
rubocop (1.
|
|
191
|
+
rspec-support (~> 3.13.0)
|
|
192
|
+
rspec-support (3.13.2)
|
|
193
|
+
rubocop (1.75.2)
|
|
172
194
|
json (~> 2.3)
|
|
195
|
+
language_server-protocol (~> 3.17.0.2)
|
|
196
|
+
lint_roller (~> 1.1.0)
|
|
173
197
|
parallel (~> 1.10)
|
|
174
|
-
parser (>= 3.
|
|
198
|
+
parser (>= 3.3.0.2)
|
|
175
199
|
rainbow (>= 2.2.2, < 4.0)
|
|
176
|
-
regexp_parser (>=
|
|
177
|
-
|
|
178
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
|
200
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
201
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
179
202
|
ruby-progressbar (~> 1.7)
|
|
180
|
-
unicode-display_width (>= 2.4.0, <
|
|
181
|
-
rubocop-ast (1.
|
|
182
|
-
parser (>= 3.
|
|
203
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
204
|
+
rubocop-ast (1.44.0)
|
|
205
|
+
parser (>= 3.3.7.2)
|
|
206
|
+
prism (~> 1.4)
|
|
183
207
|
ruby-progressbar (1.13.0)
|
|
184
208
|
ruby2_keywords (0.0.5)
|
|
209
|
+
securerandom (0.4.1)
|
|
185
210
|
simplecov (0.22.0)
|
|
186
211
|
docile (~> 1.1)
|
|
187
212
|
simplecov-html (~> 0.11)
|
|
188
213
|
simplecov_json_formatter (~> 0.1)
|
|
189
|
-
simplecov-html (0.
|
|
214
|
+
simplecov-html (0.13.1)
|
|
190
215
|
simplecov-lcov (0.8.0)
|
|
191
216
|
simplecov_json_formatter (0.1.4)
|
|
192
217
|
simply_serializable (1.5.1)
|
|
@@ -195,35 +220,39 @@ GEM
|
|
|
195
220
|
hashie
|
|
196
221
|
version_gem (~> 1.1, >= 1.1.1)
|
|
197
222
|
sync (0.5.0)
|
|
198
|
-
term-ansicolor (1.
|
|
223
|
+
term-ansicolor (1.11.2)
|
|
199
224
|
tins (~> 1.0)
|
|
200
|
-
thor (1.2
|
|
201
|
-
tins (1.
|
|
225
|
+
thor (1.3.2)
|
|
226
|
+
tins (1.37.1)
|
|
227
|
+
bigdecimal
|
|
202
228
|
sync
|
|
203
229
|
tzinfo (2.0.6)
|
|
204
230
|
concurrent-ruby (~> 1.0)
|
|
205
|
-
unicode-display_width (
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
231
|
+
unicode-display_width (3.1.4)
|
|
232
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
233
|
+
unicode-emoji (4.0.4)
|
|
234
|
+
vcr (6.3.1)
|
|
235
|
+
base64
|
|
236
|
+
version_gem (1.1.4)
|
|
237
|
+
webmock (3.25.1)
|
|
209
238
|
addressable (>= 2.8.0)
|
|
210
239
|
crack (>= 0.3.2)
|
|
211
240
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
212
|
-
zeitwerk (2.6.
|
|
241
|
+
zeitwerk (2.6.18)
|
|
213
242
|
|
|
214
243
|
PLATFORMS
|
|
215
244
|
ruby
|
|
216
245
|
|
|
217
246
|
DEPENDENCIES
|
|
218
247
|
awesome_print
|
|
219
|
-
bump (~> 0.
|
|
248
|
+
bump (~> 0.10.0)
|
|
220
249
|
bundler (~> 2.1)
|
|
221
250
|
byebug
|
|
222
251
|
climate_control
|
|
223
252
|
coveralls_reborn
|
|
224
|
-
factory_bot (~> 6.1
|
|
253
|
+
factory_bot (~> 6.5.1)
|
|
225
254
|
ledger_sync-quickbooks_online!
|
|
226
|
-
overcommit (~> 0.
|
|
255
|
+
overcommit (~> 0.67.1)
|
|
227
256
|
rake (~> 13.0)
|
|
228
257
|
rspec (~> 3.2)
|
|
229
258
|
rubocop
|
|
@@ -54,7 +54,7 @@ while (session = server.accept) # rubocop:disable Lint/UnreachableLoop
|
|
|
54
54
|
# 2
|
|
55
55
|
_path, query = full_path.split('?')
|
|
56
56
|
|
|
57
|
-
params = query.split('&').
|
|
57
|
+
params = query.split('&').to_h { |e| e.split('=') } if query.present?
|
|
58
58
|
|
|
59
59
|
client.set_credentials_from_oauth_code(
|
|
60
60
|
code: params.fetch('code'),
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.authors = ['Modern Treasury']
|
|
11
11
|
spec.email = ['ledgersync@moderntreasury.com']
|
|
12
12
|
|
|
13
|
-
spec.required_ruby_version = '>=
|
|
13
|
+
spec.required_ruby_version = '>= 3.1.6'
|
|
14
14
|
|
|
15
15
|
spec.summary = 'Sync common objects to accounting software.'
|
|
16
16
|
spec.description = 'LedgerSync is a simple library that allows you to sync common objects to popular accounting ' \
|
|
@@ -27,22 +27,22 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.require_paths = ['lib']
|
|
28
28
|
|
|
29
29
|
spec.add_development_dependency('awesome_print', '>= 0')
|
|
30
|
-
spec.add_development_dependency('bump', '~> 0.
|
|
30
|
+
spec.add_development_dependency('bump', '~> 0.10.0')
|
|
31
31
|
spec.add_development_dependency('bundler', '~> 2.1')
|
|
32
32
|
spec.add_development_dependency('byebug', '>= 0')
|
|
33
33
|
spec.add_development_dependency('climate_control', '>= 0')
|
|
34
34
|
spec.add_development_dependency('coveralls_reborn', '>= 0')
|
|
35
|
-
spec.add_development_dependency('factory_bot', '~> 6.1
|
|
36
|
-
spec.add_development_dependency('overcommit', '~> 0.
|
|
35
|
+
spec.add_development_dependency('factory_bot', '~> 6.5.1')
|
|
36
|
+
spec.add_development_dependency('overcommit', '~> 0.67.1')
|
|
37
37
|
spec.add_development_dependency('rake', '~> 13.0')
|
|
38
38
|
spec.add_development_dependency('rspec', '~> 3.2')
|
|
39
39
|
spec.add_development_dependency('rubocop', '>= 0')
|
|
40
40
|
spec.add_development_dependency('simplecov-lcov', '>= 0')
|
|
41
41
|
spec.add_development_dependency('vcr', '>= 0')
|
|
42
42
|
spec.add_development_dependency('webmock', '>= 0')
|
|
43
|
-
spec.
|
|
44
|
-
spec.
|
|
43
|
+
spec.add_dependency('dotenv')
|
|
44
|
+
spec.add_dependency('ledger_sync', '>= 3.0', '<= 4.0')
|
|
45
45
|
# spec.add_runtime_dependency('nokogiri', '>= 0')
|
|
46
|
-
spec.
|
|
46
|
+
spec.add_dependency('oauth2', '>= 0')
|
|
47
47
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
48
48
|
end
|
|
@@ -206,15 +206,15 @@ module LedgerSync
|
|
|
206
206
|
).perform
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
-
def set_credentials_from_oauth_token(token:, realm_id: nil)
|
|
209
|
+
def set_credentials_from_oauth_token(token:, realm_id: nil)
|
|
210
210
|
@previous_access_tokens << access_token if access_token.present?
|
|
211
211
|
@access_token = token.token
|
|
212
212
|
|
|
213
|
-
@expires_at = Time
|
|
213
|
+
@expires_at = Time.at(token.expires_at.to_i).to_datetime
|
|
214
214
|
unless token.params['x_refresh_token_expires_in'].nil?
|
|
215
|
-
@refresh_token_expires_at = Time
|
|
215
|
+
@refresh_token_expires_at = Time.at(
|
|
216
216
|
Time.now.to_i + token.params['x_refresh_token_expires_in']
|
|
217
|
-
)
|
|
217
|
+
).to_datetime
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
@previous_refresh_tokens << refresh_token if refresh_token.present?
|
|
@@ -36,7 +36,7 @@ module LedgerSync
|
|
|
36
36
|
resource = args.fetch(:resource)
|
|
37
37
|
merged_resource = resource.dup
|
|
38
38
|
|
|
39
|
-
self.class.attributes.
|
|
39
|
+
self.class.attributes.each_value do |deserializer_attribute|
|
|
40
40
|
next unless deserializer_attribute.references_many?
|
|
41
41
|
|
|
42
42
|
resources_from_ledger = attribute_value_from_ledger(
|
|
@@ -45,7 +45,7 @@ module LedgerSync
|
|
|
45
45
|
resource: merged_resource
|
|
46
46
|
)
|
|
47
47
|
|
|
48
|
-
resource_hash_from_ledger = resources_from_ledger.
|
|
48
|
+
resource_hash_from_ledger = resources_from_ledger.to_h { |e| [e.ledger_id, e] }
|
|
49
49
|
|
|
50
50
|
# Using original resource since it is overwritten by keyword arg
|
|
51
51
|
merged_value = resource.send(deserializer_attribute.resource_attribute_dot_parts.first).map do |referenced|
|
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:
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Modern Treasury
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: awesome_print
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 0.10.0
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
40
|
+
version: 0.10.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -100,28 +100,28 @@ dependencies:
|
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 6.1
|
|
103
|
+
version: 6.5.1
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 6.1
|
|
110
|
+
version: 6.5.1
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: overcommit
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 0.
|
|
117
|
+
version: 0.67.1
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.
|
|
124
|
+
version: 0.67.1
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: rake
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -226,20 +226,20 @@ dependencies:
|
|
|
226
226
|
requirements:
|
|
227
227
|
- - ">="
|
|
228
228
|
- !ruby/object:Gem::Version
|
|
229
|
-
version:
|
|
229
|
+
version: '3.0'
|
|
230
230
|
- - "<="
|
|
231
231
|
- !ruby/object:Gem::Version
|
|
232
|
-
version: '
|
|
232
|
+
version: '4.0'
|
|
233
233
|
type: :runtime
|
|
234
234
|
prerelease: false
|
|
235
235
|
version_requirements: !ruby/object:Gem::Requirement
|
|
236
236
|
requirements:
|
|
237
237
|
- - ">="
|
|
238
238
|
- !ruby/object:Gem::Version
|
|
239
|
-
version:
|
|
239
|
+
version: '3.0'
|
|
240
240
|
- - "<="
|
|
241
241
|
- !ruby/object:Gem::Version
|
|
242
|
-
version: '
|
|
242
|
+
version: '4.0'
|
|
243
243
|
- !ruby/object:Gem::Dependency
|
|
244
244
|
name: oauth2
|
|
245
245
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -264,6 +264,7 @@ extensions: []
|
|
|
264
264
|
extra_rdoc_files: []
|
|
265
265
|
files:
|
|
266
266
|
- ".env.test"
|
|
267
|
+
- ".github/dependabot.yml"
|
|
267
268
|
- ".github/workflows/codeql.yml"
|
|
268
269
|
- ".github/workflows/gem-workflow.yml"
|
|
269
270
|
- ".gitignore"
|
|
@@ -464,14 +465,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
464
465
|
requirements:
|
|
465
466
|
- - ">="
|
|
466
467
|
- !ruby/object:Gem::Version
|
|
467
|
-
version:
|
|
468
|
+
version: 3.1.6
|
|
468
469
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
470
|
requirements:
|
|
470
471
|
- - ">="
|
|
471
472
|
- !ruby/object:Gem::Version
|
|
472
473
|
version: '0'
|
|
473
474
|
requirements: []
|
|
474
|
-
rubygems_version: 3.
|
|
475
|
+
rubygems_version: 3.3.27
|
|
475
476
|
signing_key:
|
|
476
477
|
specification_version: 4
|
|
477
478
|
summary: Sync common objects to accounting software.
|