ledger_sync 2.2.3 → 2.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-workflow.yml +18 -8
- data/Dockerfile +1 -0
- data/Gemfile.lock +99 -157
- data/docker-compose.yml +1 -0
- data/documentation/build.sh +2 -1
- data/ledger_sync.gemspec +5 -9
- data/lib/ledger_sync/ledgers/operation.rb +2 -4
- data/lib/ledger_sync/ledgers/request.rb +2 -1
- data/lib/ledger_sync/type/string_from_set.rb +1 -1
- data/lib/ledger_sync/version.rb +1 -1
- metadata +33 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a6b1bc1f6b5229e2e5dacfab6390c19978dd6ecf45f7e09b39966a7f0c0c209
|
4
|
+
data.tar.gz: 3a946ae789b22e0f8afced53d9b677b9c000ce5fecb59c1db231611de52243b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb3cd0a04af5dfd5d663fc8cddc2e4ec1e33e50fc288ced4e54e422b731ae21db5397103feb9aa993ca532f02b9b315cf7a5a259ec07ad53d02e6917a1ff7a92
|
7
|
+
data.tar.gz: 3dbf1310800b7c3c5506b12a384622ad820415c2ff3f85b1004593a70d42d887eeff35309d9717af0bc4004dbee8692b0c5602e98e9f8c4f3e46d13fa6a4f4b7
|
@@ -8,10 +8,11 @@ jobs:
|
|
8
8
|
rubocop:
|
9
9
|
strategy:
|
10
10
|
matrix:
|
11
|
-
|
12
|
-
|
11
|
+
os: [ubuntu-latest]
|
12
|
+
ruby-version: ['2.7', '3.0']
|
13
|
+
runs-on: ${{ matrix.os }}
|
13
14
|
steps:
|
14
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v3
|
15
16
|
with:
|
16
17
|
persist-credentials: false
|
17
18
|
fetch-depth: 0
|
@@ -20,14 +21,19 @@ jobs:
|
|
20
21
|
with:
|
21
22
|
ruby-version: ${{ matrix.ruby-version }}
|
22
23
|
bundler-cache: true
|
24
|
+
run: |
|
25
|
+
gem install bundler
|
26
|
+
bundle update
|
27
|
+
bundle install
|
23
28
|
- run: bundle exec rubocop
|
24
29
|
rspec:
|
25
30
|
strategy:
|
26
31
|
matrix:
|
27
|
-
|
28
|
-
|
32
|
+
os: [ubuntu-latest]
|
33
|
+
ruby-version: ['2.7', '3.0']
|
34
|
+
runs-on: ${{ matrix.os }}
|
29
35
|
steps:
|
30
|
-
- uses: actions/checkout@
|
36
|
+
- uses: actions/checkout@v3
|
31
37
|
with:
|
32
38
|
persist-credentials: false
|
33
39
|
fetch-depth: 0
|
@@ -36,6 +42,10 @@ jobs:
|
|
36
42
|
with:
|
37
43
|
ruby-version: ${{ matrix.ruby-version }}
|
38
44
|
bundler-cache: true
|
45
|
+
run: |
|
46
|
+
gem install bundler
|
47
|
+
bundle update
|
48
|
+
bundle install
|
39
49
|
- name: rspec and report to coveralls
|
40
50
|
run: bundle exec rspec --order rand
|
41
51
|
- name: Coveralls
|
@@ -50,14 +60,14 @@ jobs:
|
|
50
60
|
if: github.event_name == 'release' && github.event.action == 'created'
|
51
61
|
steps:
|
52
62
|
- name: Checkout
|
53
|
-
uses: actions/checkout@
|
63
|
+
uses: actions/checkout@v3
|
54
64
|
with:
|
55
65
|
persist-credentials: false
|
56
66
|
fetch-depth: 0
|
57
67
|
- name: Ruby Setup and Bundle
|
58
68
|
uses: ruby/setup-ruby@v1
|
59
69
|
with:
|
60
|
-
ruby-version: 2.7.
|
70
|
+
ruby-version: 2.7.5
|
61
71
|
bundler-cache: true
|
62
72
|
- name: Publish to RubyGems
|
63
73
|
run: |
|
data/Dockerfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ledger_sync (2.
|
4
|
+
ledger_sync (2.4.4)
|
5
5
|
activemodel
|
6
|
-
|
7
|
-
dry-
|
6
|
+
dotenv
|
7
|
+
dry-schema
|
8
|
+
dry-validation
|
8
9
|
faraday
|
9
10
|
faraday-detailed_logger
|
10
11
|
faraday_middleware
|
@@ -12,7 +13,7 @@ PATH
|
|
12
13
|
nokogiri
|
13
14
|
openssl (~> 2.2.0)
|
14
15
|
pd_ruby
|
15
|
-
rack (
|
16
|
+
rack (>= 2.2.3, < 3.1.0)
|
16
17
|
rainbow (~> 3.0)
|
17
18
|
resonad
|
18
19
|
simply_serializable (>= 1.5.1)
|
@@ -20,192 +21,140 @@ PATH
|
|
20
21
|
GEM
|
21
22
|
remote: https://rubygems.org/
|
22
23
|
specs:
|
23
|
-
activemodel (
|
24
|
-
activesupport (=
|
25
|
-
activesupport (
|
24
|
+
activemodel (7.0.4.2)
|
25
|
+
activesupport (= 7.0.4.2)
|
26
|
+
activesupport (7.0.4.2)
|
26
27
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
27
28
|
i18n (>= 1.6, < 2)
|
28
29
|
minitest (>= 5.1)
|
29
30
|
tzinfo (~> 2.0)
|
30
|
-
|
31
|
-
|
32
|
-
public_suffix (>= 2.0.2, < 5.0)
|
31
|
+
addressable (2.8.1)
|
32
|
+
public_suffix (>= 2.0.2, < 6.0)
|
33
33
|
ast (2.4.2)
|
34
34
|
awesome_print (1.9.2)
|
35
35
|
bump (0.9.0)
|
36
36
|
byebug (11.1.3)
|
37
37
|
childprocess (4.1.0)
|
38
|
-
climate_control (1.0
|
39
|
-
colorator (1.1.0)
|
38
|
+
climate_control (1.2.0)
|
40
39
|
colorize (0.8.1)
|
41
|
-
concurrent-ruby (1.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
thor (= 0.18.1)
|
40
|
+
concurrent-ruby (1.2.0)
|
41
|
+
coveralls_reborn (0.26.0)
|
42
|
+
simplecov (~> 0.22.0)
|
43
|
+
term-ansicolor (~> 1.7)
|
44
|
+
thor (~> 1.2)
|
45
|
+
tins (~> 1.32)
|
48
46
|
crack (0.4.5)
|
49
47
|
rexml
|
50
|
-
diff-lcs (1.
|
48
|
+
diff-lcs (1.5.0)
|
51
49
|
docile (1.4.0)
|
52
|
-
dotenv (2.
|
53
|
-
dry-configurable (0.
|
50
|
+
dotenv (2.8.1)
|
51
|
+
dry-configurable (1.0.1)
|
52
|
+
dry-core (~> 1.0, < 2)
|
53
|
+
zeitwerk (~> 2.6)
|
54
|
+
dry-core (1.0.0)
|
54
55
|
concurrent-ruby (~> 1.0)
|
55
|
-
|
56
|
-
dry-
|
56
|
+
zeitwerk (~> 2.6)
|
57
|
+
dry-inflector (1.0.0)
|
58
|
+
dry-initializer (3.1.1)
|
59
|
+
dry-logic (1.5.0)
|
57
60
|
concurrent-ruby (~> 1.0)
|
58
|
-
dry-
|
59
|
-
|
61
|
+
dry-core (~> 1.0, < 2)
|
62
|
+
zeitwerk (~> 2.6)
|
63
|
+
dry-schema (1.13.0)
|
60
64
|
concurrent-ruby (~> 1.0)
|
61
|
-
|
62
|
-
|
63
|
-
dry-initializer (3.0.4)
|
64
|
-
dry-logic (1.2.0)
|
65
|
-
concurrent-ruby (~> 1.0)
|
66
|
-
dry-core (~> 0.5, >= 0.5)
|
67
|
-
dry-schema (1.5.6)
|
68
|
-
concurrent-ruby (~> 1.0)
|
69
|
-
dry-configurable (~> 0.8, >= 0.8.3)
|
70
|
-
dry-core (~> 0.4)
|
71
|
-
dry-equalizer (~> 0.2)
|
65
|
+
dry-configurable (~> 1.0, >= 1.0.1)
|
66
|
+
dry-core (~> 1.0, < 2)
|
72
67
|
dry-initializer (~> 3.0)
|
73
|
-
dry-logic (
|
74
|
-
dry-types (
|
75
|
-
|
68
|
+
dry-logic (>= 1.5, < 2)
|
69
|
+
dry-types (>= 1.7, < 2)
|
70
|
+
zeitwerk (~> 2.6)
|
71
|
+
dry-types (1.7.0)
|
76
72
|
concurrent-ruby (~> 1.0)
|
77
|
-
dry-
|
78
|
-
dry-
|
79
|
-
dry-
|
80
|
-
|
81
|
-
dry-validation (1.
|
73
|
+
dry-core (~> 1.0, < 2)
|
74
|
+
dry-inflector (~> 1.0, < 2)
|
75
|
+
dry-logic (>= 1.4, < 2)
|
76
|
+
zeitwerk (~> 2.6)
|
77
|
+
dry-validation (1.10.0)
|
82
78
|
concurrent-ruby (~> 1.0)
|
83
|
-
dry-
|
84
|
-
dry-core (~> 0.4)
|
85
|
-
dry-equalizer (~> 0.2)
|
79
|
+
dry-core (~> 1.0, < 2)
|
86
80
|
dry-initializer (~> 3.0)
|
87
|
-
dry-schema (
|
88
|
-
|
89
|
-
eventmachine (>= 0.12.9)
|
90
|
-
http_parser.rb (~> 0.6.0)
|
91
|
-
eventmachine (1.2.7)
|
81
|
+
dry-schema (>= 1.12, < 2)
|
82
|
+
zeitwerk (~> 2.6)
|
92
83
|
factory_bot (6.1.0)
|
93
84
|
activesupport (>= 5.0.0)
|
94
|
-
faraday (1.
|
85
|
+
faraday (1.10.3)
|
95
86
|
faraday-em_http (~> 1.0)
|
96
87
|
faraday-em_synchrony (~> 1.0)
|
97
88
|
faraday-excon (~> 1.1)
|
98
|
-
faraday-httpclient (~> 1.0
|
89
|
+
faraday-httpclient (~> 1.0)
|
90
|
+
faraday-multipart (~> 1.0)
|
99
91
|
faraday-net_http (~> 1.0)
|
100
|
-
faraday-net_http_persistent (~> 1.
|
92
|
+
faraday-net_http_persistent (~> 1.0)
|
101
93
|
faraday-patron (~> 1.0)
|
102
94
|
faraday-rack (~> 1.0)
|
103
|
-
|
95
|
+
faraday-retry (~> 1.0)
|
104
96
|
ruby2_keywords (>= 0.0.4)
|
105
|
-
faraday-detailed_logger (2.
|
106
|
-
faraday (>= 0.
|
97
|
+
faraday-detailed_logger (2.5.0)
|
98
|
+
faraday (>= 0.16, < 3)
|
107
99
|
faraday-em_http (1.0.0)
|
108
100
|
faraday-em_synchrony (1.0.0)
|
109
101
|
faraday-excon (1.1.0)
|
110
102
|
faraday-httpclient (1.0.1)
|
103
|
+
faraday-multipart (1.0.4)
|
104
|
+
multipart-post (~> 2)
|
111
105
|
faraday-net_http (1.0.1)
|
112
106
|
faraday-net_http_persistent (1.2.0)
|
113
107
|
faraday-patron (1.0.0)
|
114
108
|
faraday-rack (1.0.0)
|
109
|
+
faraday-retry (1.0.3)
|
115
110
|
faraday_middleware (1.2.0)
|
116
111
|
faraday (~> 1.0)
|
117
|
-
ffi (1.15.3)
|
118
112
|
fingerprintable (1.2.1)
|
119
113
|
colorize
|
120
|
-
forwardable-extended (2.6.0)
|
121
114
|
hashdiff (1.0.1)
|
122
|
-
|
123
|
-
i18n (1.8.10)
|
115
|
+
i18n (1.12.0)
|
124
116
|
concurrent-ruby (~> 1.0)
|
125
117
|
iniparse (1.5.0)
|
126
|
-
ipaddr (1.2.
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
kramdown (~> 2.3)
|
135
|
-
kramdown-parser-gfm (~> 1.0)
|
136
|
-
liquid (~> 4.0)
|
137
|
-
mercenary (~> 0.4.0)
|
138
|
-
pathutil (~> 0.9)
|
139
|
-
rouge (~> 3.0)
|
140
|
-
safe_yaml (~> 1.0)
|
141
|
-
terminal-table (~> 2.0)
|
142
|
-
jekyll-menus (0.6.1)
|
143
|
-
jekyll (>= 3.6, < 5.0)
|
144
|
-
jekyll-paginate (1.1.0)
|
145
|
-
jekyll-paginate-v2 (3.0.0)
|
146
|
-
jekyll (>= 3.0, < 5.0)
|
147
|
-
jekyll-sass-converter (2.1.0)
|
148
|
-
sassc (> 2.0.1, < 3.0)
|
149
|
-
jekyll-watch (2.2.1)
|
150
|
-
listen (~> 3.0)
|
151
|
-
kramdown (2.3.1)
|
152
|
-
rexml
|
153
|
-
kramdown-parser-gfm (1.1.0)
|
154
|
-
kramdown (~> 2.0)
|
155
|
-
liquid (4.0.3)
|
156
|
-
listen (3.6.0)
|
157
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
158
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
159
|
-
mercenary (0.4.0)
|
160
|
-
mime-types (3.3.1)
|
161
|
-
mime-types-data (~> 3.2015)
|
162
|
-
mime-types-data (3.2021.0704)
|
163
|
-
mini_portile2 (2.6.1)
|
164
|
-
minitest (5.14.4)
|
165
|
-
multi_json (1.15.0)
|
166
|
-
multipart-post (2.1.1)
|
167
|
-
nokogiri (1.12.5)
|
168
|
-
mini_portile2 (~> 2.6.1)
|
118
|
+
ipaddr (1.2.5)
|
119
|
+
mini_portile2 (2.8.1)
|
120
|
+
minitest (5.17.0)
|
121
|
+
multipart-post (2.3.0)
|
122
|
+
nokogiri (1.14.0)
|
123
|
+
mini_portile2 (~> 2.8.0)
|
124
|
+
racc (~> 1.4)
|
125
|
+
nokogiri (1.14.0-x86_64-darwin)
|
169
126
|
racc (~> 1.4)
|
170
|
-
openssl (2.2.
|
127
|
+
openssl (2.2.3)
|
171
128
|
ipaddr
|
172
129
|
overcommit (0.57.0)
|
173
130
|
childprocess (>= 0.6.3, < 5)
|
174
131
|
iniparse (~> 1.4)
|
175
|
-
parallel (1.
|
176
|
-
parser (3.
|
132
|
+
parallel (1.22.1)
|
133
|
+
parser (3.2.0.0)
|
177
134
|
ast (~> 2.4.1)
|
178
|
-
pathutil (0.16.2)
|
179
|
-
forwardable-extended (~> 2.6)
|
180
135
|
pd_ruby (0.2.3)
|
181
136
|
colorize
|
182
|
-
public_suffix (
|
183
|
-
racc (1.6.
|
184
|
-
rack (
|
185
|
-
rainbow (3.
|
137
|
+
public_suffix (5.0.1)
|
138
|
+
racc (1.6.2)
|
139
|
+
rack (3.0.4.1)
|
140
|
+
rainbow (3.1.1)
|
186
141
|
rake (13.0.6)
|
187
|
-
|
188
|
-
rb-inotify (0.10.1)
|
189
|
-
ffi (~> 1.0)
|
190
|
-
regexp_parser (2.1.1)
|
142
|
+
regexp_parser (2.6.2)
|
191
143
|
resonad (1.4.0)
|
192
|
-
rest-client (1.6.7)
|
193
|
-
mime-types (>= 1.16)
|
194
144
|
rexml (3.2.5)
|
195
|
-
|
196
|
-
|
197
|
-
rspec-
|
198
|
-
rspec-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
rspec-expectations (3.10.1)
|
145
|
+
rspec (3.12.0)
|
146
|
+
rspec-core (~> 3.12.0)
|
147
|
+
rspec-expectations (~> 3.12.0)
|
148
|
+
rspec-mocks (~> 3.12.0)
|
149
|
+
rspec-core (3.12.0)
|
150
|
+
rspec-support (~> 3.12.0)
|
151
|
+
rspec-expectations (3.12.2)
|
203
152
|
diff-lcs (>= 1.2.0, < 2.0)
|
204
|
-
rspec-support (~> 3.
|
205
|
-
rspec-mocks (3.
|
153
|
+
rspec-support (~> 3.12.0)
|
154
|
+
rspec-mocks (3.12.3)
|
206
155
|
diff-lcs (>= 1.2.0, < 2.0)
|
207
|
-
rspec-support (~> 3.
|
208
|
-
rspec-support (3.
|
156
|
+
rspec-support (~> 3.12.0)
|
157
|
+
rspec-support (3.12.0)
|
209
158
|
rubocop (1.0.0)
|
210
159
|
parallel (~> 1.10)
|
211
160
|
parser (>= 2.7.1.5)
|
@@ -215,39 +164,37 @@ GEM
|
|
215
164
|
rubocop-ast (>= 0.6.0)
|
216
165
|
ruby-progressbar (~> 1.7)
|
217
166
|
unicode-display_width (>= 1.4.0, < 2.0)
|
218
|
-
rubocop-ast (1.
|
219
|
-
parser (>= 3.
|
167
|
+
rubocop-ast (1.24.1)
|
168
|
+
parser (>= 3.1.1.0)
|
220
169
|
ruby-progressbar (1.11.0)
|
221
170
|
ruby2_keywords (0.0.5)
|
222
|
-
|
223
|
-
sassc (2.4.0)
|
224
|
-
ffi (~> 1.9)
|
225
|
-
simplecov (0.21.2)
|
171
|
+
simplecov (0.22.0)
|
226
172
|
docile (~> 1.1)
|
227
173
|
simplecov-html (~> 0.11)
|
228
174
|
simplecov_json_formatter (~> 0.1)
|
229
175
|
simplecov-html (0.12.3)
|
230
176
|
simplecov-lcov (0.8.0)
|
231
|
-
simplecov_json_formatter (0.1.
|
177
|
+
simplecov_json_formatter (0.1.4)
|
232
178
|
simply_serializable (1.5.1)
|
233
179
|
fingerprintable (>= 1.2.1)
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
tzinfo (2.0.
|
180
|
+
sync (0.5.0)
|
181
|
+
term-ansicolor (1.7.1)
|
182
|
+
tins (~> 1.0)
|
183
|
+
thor (1.2.1)
|
184
|
+
tins (1.32.1)
|
185
|
+
sync
|
186
|
+
tzinfo (2.0.5)
|
241
187
|
concurrent-ruby (~> 1.0)
|
242
|
-
unicode-display_width (1.
|
243
|
-
webmock (3.
|
188
|
+
unicode-display_width (1.8.0)
|
189
|
+
webmock (3.18.1)
|
244
190
|
addressable (>= 2.8.0)
|
245
191
|
crack (>= 0.3.2)
|
246
192
|
hashdiff (>= 0.4.0, < 2.0.0)
|
247
|
-
zeitwerk (2.
|
193
|
+
zeitwerk (2.6.6)
|
248
194
|
|
249
195
|
PLATFORMS
|
250
196
|
ruby
|
197
|
+
x86_64-darwin-19
|
251
198
|
|
252
199
|
DEPENDENCIES
|
253
200
|
awesome_print
|
@@ -255,13 +202,8 @@ DEPENDENCIES
|
|
255
202
|
bundler (~> 2.1)
|
256
203
|
byebug
|
257
204
|
climate_control
|
258
|
-
|
259
|
-
dotenv
|
205
|
+
coveralls_reborn
|
260
206
|
factory_bot (~> 6.1.0)
|
261
|
-
jekyll (~> 4.2.0)
|
262
|
-
jekyll-menus (~> 0.6.1)
|
263
|
-
jekyll-paginate (~> 1.1)
|
264
|
-
jekyll-paginate-v2 (~> 3.0)
|
265
207
|
ledger_sync!
|
266
208
|
overcommit (~> 0.57.0)
|
267
209
|
rake (~> 13.0)
|
@@ -272,4 +214,4 @@ DEPENDENCIES
|
|
272
214
|
webmock
|
273
215
|
|
274
216
|
BUNDLED WITH
|
275
|
-
2.2.
|
217
|
+
2.2.22
|
data/docker-compose.yml
CHANGED
data/documentation/build.sh
CHANGED
@@ -4,7 +4,8 @@ parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
|
4
4
|
cd "$parent_path"
|
5
5
|
cd ..
|
6
6
|
bundle install
|
7
|
+
gem install jekyll jekyll-menus jekyll-paginate jekyll-paginate-v2
|
7
8
|
cd documentation
|
8
9
|
ruby generate.rb
|
9
10
|
cd site
|
10
|
-
|
11
|
+
jekyll build -d ../../docs
|
data/ledger_sync.gemspec
CHANGED
@@ -35,13 +35,8 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency('bundler', '~> 2.1')
|
36
36
|
spec.add_development_dependency('byebug', '>= 0')
|
37
37
|
spec.add_development_dependency('climate_control')
|
38
|
-
spec.add_development_dependency('
|
39
|
-
spec.add_development_dependency('dotenv')
|
38
|
+
spec.add_development_dependency('coveralls_reborn')
|
40
39
|
spec.add_development_dependency('factory_bot', '~> 6.1.0')
|
41
|
-
spec.add_development_dependency('jekyll', '~> 4.2.0')
|
42
|
-
spec.add_development_dependency('jekyll-menus', '~> 0.6.1')
|
43
|
-
spec.add_development_dependency('jekyll-paginate', '~> 1.1')
|
44
|
-
spec.add_development_dependency('jekyll-paginate-v2', '~> 3.0')
|
45
40
|
spec.add_development_dependency('overcommit', '~> 0.57.0')
|
46
41
|
spec.add_development_dependency('rake', '~> 13.0')
|
47
42
|
spec.add_development_dependency('rspec', '~> 3.2')
|
@@ -50,8 +45,9 @@ Gem::Specification.new do |spec|
|
|
50
45
|
spec.add_development_dependency('simplecov-lcov')
|
51
46
|
spec.add_development_dependency('webmock', '>= 0')
|
52
47
|
spec.add_runtime_dependency('activemodel', '>= 0')
|
53
|
-
spec.add_runtime_dependency('
|
54
|
-
spec.add_runtime_dependency('dry-
|
48
|
+
spec.add_runtime_dependency('dotenv')
|
49
|
+
spec.add_runtime_dependency('dry-schema')
|
50
|
+
spec.add_runtime_dependency('dry-validation')
|
55
51
|
spec.add_runtime_dependency('faraday', '>= 0')
|
56
52
|
spec.add_runtime_dependency('faraday-detailed_logger', '>= 0')
|
57
53
|
spec.add_runtime_dependency('faraday_middleware', '>= 0')
|
@@ -59,7 +55,7 @@ Gem::Specification.new do |spec|
|
|
59
55
|
spec.add_runtime_dependency('nokogiri', '>= 0')
|
60
56
|
spec.add_runtime_dependency('openssl', '~> 2.2.0')
|
61
57
|
spec.add_runtime_dependency('pd_ruby', '>= 0')
|
62
|
-
spec.add_runtime_dependency('rack', '
|
58
|
+
spec.add_runtime_dependency('rack', '>= 2.2.3', '< 3.1.0')
|
63
59
|
spec.add_runtime_dependency('rainbow', '~> 3.0')
|
64
60
|
spec.add_runtime_dependency('resonad', '>= 0')
|
65
61
|
spec.add_runtime_dependency('simply_serializable', '>= 1.5.1')
|
@@ -103,13 +103,12 @@ module LedgerSync
|
|
103
103
|
|
104
104
|
# Results
|
105
105
|
|
106
|
-
def failure(error, resource: nil)
|
107
|
-
@response = error
|
106
|
+
def failure(error, resource: nil, response: nil)
|
108
107
|
@result = LedgerSync::OperationResult.Failure(
|
109
108
|
error,
|
110
109
|
operation: self,
|
111
110
|
resource: resource,
|
112
|
-
response:
|
111
|
+
response: response
|
113
112
|
)
|
114
113
|
end
|
115
114
|
|
@@ -118,7 +117,6 @@ module LedgerSync
|
|
118
117
|
end
|
119
118
|
|
120
119
|
def success(resource:, response:)
|
121
|
-
@response = response
|
122
120
|
@result = LedgerSync::OperationResult.Success(
|
123
121
|
self,
|
124
122
|
operation: self,
|
@@ -16,6 +16,7 @@ module LedgerSync
|
|
16
16
|
@method = args.fetch(:method, nil)
|
17
17
|
@params = args.fetch(:params, {})
|
18
18
|
@url = args.fetch(:url, nil)
|
19
|
+
@faraday_client = args.fetch(:faraday_client, Faraday.new)
|
19
20
|
end
|
20
21
|
|
21
22
|
def perform
|
@@ -23,7 +24,7 @@ module LedgerSync
|
|
23
24
|
|
24
25
|
url_with_params = Util::URLHelpers.merge_params_in_url(params: params, url: url)
|
25
26
|
|
26
|
-
faraday_response =
|
27
|
+
faraday_response = @faraday_client.send(method, url_with_params) do |req|
|
27
28
|
req.headers = headers
|
28
29
|
req.body = body.to_json unless body.nil?
|
29
30
|
end
|
data/lib/ledger_sync/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledger_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Jackson
|
@@ -81,21 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: dotenv
|
84
|
+
name: coveralls_reborn
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
@@ -122,62 +108,6 @@ dependencies:
|
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: 6.1.0
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: jekyll
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 4.2.0
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 4.2.0
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: jekyll-menus
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 0.6.1
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 0.6.1
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: jekyll-paginate
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.1'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.1'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: jekyll-paginate-v2
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '3.0'
|
181
111
|
- !ruby/object:Gem::Dependency
|
182
112
|
name: overcommit
|
183
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,34 +220,48 @@ dependencies:
|
|
290
220
|
- - ">="
|
291
221
|
- !ruby/object:Gem::Version
|
292
222
|
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: dotenv
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
293
237
|
- !ruby/object:Gem::Dependency
|
294
238
|
name: dry-schema
|
295
239
|
requirement: !ruby/object:Gem::Requirement
|
296
240
|
requirements:
|
297
|
-
- - "
|
241
|
+
- - ">="
|
298
242
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
243
|
+
version: '0'
|
300
244
|
type: :runtime
|
301
245
|
prerelease: false
|
302
246
|
version_requirements: !ruby/object:Gem::Requirement
|
303
247
|
requirements:
|
304
|
-
- - "
|
248
|
+
- - ">="
|
305
249
|
- !ruby/object:Gem::Version
|
306
|
-
version:
|
250
|
+
version: '0'
|
307
251
|
- !ruby/object:Gem::Dependency
|
308
252
|
name: dry-validation
|
309
253
|
requirement: !ruby/object:Gem::Requirement
|
310
254
|
requirements:
|
311
|
-
- - "
|
255
|
+
- - ">="
|
312
256
|
- !ruby/object:Gem::Version
|
313
|
-
version:
|
257
|
+
version: '0'
|
314
258
|
type: :runtime
|
315
259
|
prerelease: false
|
316
260
|
version_requirements: !ruby/object:Gem::Requirement
|
317
261
|
requirements:
|
318
|
-
- - "
|
262
|
+
- - ">="
|
319
263
|
- !ruby/object:Gem::Version
|
320
|
-
version:
|
264
|
+
version: '0'
|
321
265
|
- !ruby/object:Gem::Dependency
|
322
266
|
name: faraday
|
323
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -420,16 +364,22 @@ dependencies:
|
|
420
364
|
name: rack
|
421
365
|
requirement: !ruby/object:Gem::Requirement
|
422
366
|
requirements:
|
423
|
-
- - "
|
367
|
+
- - ">="
|
424
368
|
- !ruby/object:Gem::Version
|
425
369
|
version: 2.2.3
|
370
|
+
- - "<"
|
371
|
+
- !ruby/object:Gem::Version
|
372
|
+
version: 3.1.0
|
426
373
|
type: :runtime
|
427
374
|
prerelease: false
|
428
375
|
version_requirements: !ruby/object:Gem::Requirement
|
429
376
|
requirements:
|
430
|
-
- - "
|
377
|
+
- - ">="
|
431
378
|
- !ruby/object:Gem::Version
|
432
379
|
version: 2.2.3
|
380
|
+
- - "<"
|
381
|
+
- !ruby/object:Gem::Version
|
382
|
+
version: 3.1.0
|
433
383
|
- !ruby/object:Gem::Dependency
|
434
384
|
name: rainbow
|
435
385
|
requirement: !ruby/object:Gem::Requirement
|
@@ -847,8 +797,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
847
797
|
- !ruby/object:Gem::Version
|
848
798
|
version: '0'
|
849
799
|
requirements: []
|
850
|
-
|
851
|
-
rubygems_version: 2.7.6.2
|
800
|
+
rubygems_version: 3.2.33
|
852
801
|
signing_key:
|
853
802
|
specification_version: 4
|
854
803
|
summary: Sync common objects to accounting software.
|