vat_payer_cz 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.rubocop.yml +5 -11
- data/.rubocop_todo.yml +14 -442
- data/.ruby-version +1 -0
- data/.travis.yml +7 -14
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/lib/vat_info/models/status.rb +2 -0
- data/lib/vat_info/models/vat_payer.rb +2 -0
- data/lib/vat_info/models/vat_payer_extended.rb +2 -0
- data/lib/vat_info/models/vat_payers.rb +2 -0
- data/lib/vat_info/models.rb +2 -0
- data/lib/vat_info/query.rb +4 -2
- data/lib/vat_info/request/unreliable_payer.rb +2 -0
- data/lib/vat_info/request/unreliable_payer_extended.rb +2 -0
- data/lib/vat_info/request/unreliable_payer_list.rb +2 -0
- data/lib/vat_info/request.rb +3 -1
- data/lib/vat_info/response.rb +2 -0
- data/lib/vat_info/utils.rb +4 -2
- data/lib/vat_info/version.rb +3 -1
- data/lib/vat_info.rb +2 -0
- data/vat_info.gemspec +8 -4
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a5f930698ecb26ede822b1980ed56acb8809c91d898a9d2ac40c39794a3ffb
|
4
|
+
data.tar.gz: 571a1fa6a1f507c68d51eee0b0299ebab0281f9c3f543d4c820a1b7234ed6ddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a63c999159b785d41e3d74d8ca6b14dc8822f6fd8ab2ef5b2038dfb77480a9e38dd2dcde61de29d95c9b47094724958f3a6c1c0c18990811383de51138206a
|
7
|
+
data.tar.gz: 3c6033d7f7ba1476f4d7cae9722c3a17a2337116e36c7932c93a73c9b5fb11efbbf1b3fcab8c8d26ec8501466d5989a7c6633f7cdceb2397a79649c07fd4aebd
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -3,15 +3,12 @@
|
|
3
3
|
inherit_from: .rubocop_todo.yml
|
4
4
|
|
5
5
|
AllCops:
|
6
|
+
TargetRubyVersion: 2.5
|
6
7
|
Exclude:
|
7
|
-
- 'db/**/*'
|
8
|
-
- 'node_modules/**/*'
|
9
8
|
- 'bin/**/*'
|
10
|
-
- 'app/views/contacts/*.json.jbuilder'
|
11
|
-
- 'config/initializers/active_record_monkey_patch.rb'
|
12
9
|
CacheRootDirectory: './tmp'
|
13
10
|
|
14
|
-
|
11
|
+
Naming/PredicateName:
|
15
12
|
Exclude:
|
16
13
|
- 'spec/support/feature_macros.rb'
|
17
14
|
|
@@ -39,21 +36,18 @@ Style/PredicateName:
|
|
39
36
|
Metrics/ModuleLength:
|
40
37
|
Max: 205
|
41
38
|
|
42
|
-
|
39
|
+
Layout/LineLength:
|
43
40
|
Enabled: false
|
44
41
|
|
45
42
|
Style/EmptyMethod:
|
46
43
|
Enabled: false
|
47
44
|
|
48
|
-
Style/WordArray:
|
49
|
-
Enabled: false
|
50
|
-
|
51
45
|
# default zarovnavani vim
|
52
46
|
# ignoruje hash pokud jej pouzivame napr. jako parametr:
|
53
47
|
#
|
54
48
|
# mail to: 'info@uol.cz',
|
55
49
|
# subject: "Message: #{message.name}",
|
56
|
-
Layout/
|
50
|
+
Layout/HashAlignment:
|
57
51
|
EnforcedLastArgumentHashStyle: 'ignore_implicit'
|
58
52
|
|
59
53
|
# TODO vim jinak zarovnava pokud je metoda volana se zavorkou nebo bez
|
@@ -64,5 +58,5 @@ Layout/AlignHash:
|
|
64
58
|
#
|
65
59
|
# create :job,
|
66
60
|
# title: "Ucetni"
|
67
|
-
Layout/
|
61
|
+
Layout/ParameterAlignment:
|
68
62
|
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,457 +1,29 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2022-03-01 13:59:52 UTC using RuboCop version 1.25.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count: 29
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
-
# Include: **/Gemfile, **/gems.rb
|
13
|
-
Bundler/OrderedGems:
|
14
|
-
Exclude:
|
15
|
-
- 'Gemfile'
|
16
|
-
|
17
|
-
# Offense count: 3
|
18
|
-
# Cop supports --auto-correct.
|
19
|
-
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
20
|
-
Exclude:
|
21
|
-
- 'app/models/document_template.rb'
|
22
|
-
- 'app/models/sales_invoice_import.rb'
|
23
|
-
- 'lib/tasks/import_currencies_exchange.rake'
|
24
|
-
|
25
|
-
# Offense count: 5
|
26
|
-
# Cop supports --auto-correct.
|
27
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
28
|
-
Layout/ExtraSpacing:
|
29
|
-
Exclude:
|
30
|
-
- 'app/controllers/users_controller.rb'
|
31
|
-
- 'app/models/contact.rb'
|
32
|
-
- 'app/models/offer.rb'
|
33
|
-
- 'app/models/sales_order.rb'
|
34
|
-
|
35
|
-
# Offense count: 1
|
36
|
-
# Cop supports --auto-correct.
|
37
|
-
# Configuration parameters: IndentationWidth.
|
38
|
-
Layout/IndentAssignment:
|
39
|
-
Exclude:
|
40
|
-
- 'app/services/cash_book_data_generator.rb'
|
41
|
-
|
42
|
-
# Offense count: 6
|
43
|
-
# Cop supports --auto-correct.
|
44
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
45
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
46
|
-
Layout/MultilineArrayBraceLayout:
|
47
|
-
Exclude:
|
48
|
-
- 'app/controllers/application_controller.rb'
|
49
|
-
- 'spec/fixtures/payables.rb'
|
50
|
-
- 'spec/policies/sales_order_policy_spec.rb'
|
51
|
-
|
52
|
-
# Offense count: 57
|
53
|
-
# Cop supports --auto-correct.
|
54
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
55
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
56
|
-
Layout/MultilineHashBraceLayout:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
# Offense count: 14
|
60
|
-
# Cop supports --auto-correct.
|
61
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
62
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
63
|
-
Layout/MultilineMethodCallBraceLayout:
|
64
|
-
Exclude:
|
65
|
-
- 'app/services/accounting_records_pdf_generator.rb'
|
66
|
-
- 'spec/factories/uploaded_documents.rb'
|
67
|
-
- 'spec/models/address_spec.rb'
|
68
|
-
- 'spec/models/contact_spec.rb'
|
69
|
-
- 'spec/models/invitation_spec.rb'
|
70
|
-
- 'spec/services/paypal/statement_fetcher_spec.rb'
|
71
|
-
- 'spec/support/shared_examples/base_send_by.rb'
|
72
|
-
|
73
|
-
# Offense count: 113
|
74
|
-
# Cop supports --auto-correct.
|
75
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
76
|
-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
77
|
-
Layout/MultilineMethodCallIndentation:
|
78
|
-
Enabled: false
|
79
|
-
|
80
|
-
# Offense count: 11
|
81
|
-
# Cop supports --auto-correct.
|
82
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
83
|
-
# SupportedStyles: aligned, indented
|
84
|
-
Layout/MultilineOperationIndentation:
|
85
|
-
Exclude:
|
86
|
-
- 'app/mailers/invitation_mailer.rb'
|
87
|
-
- 'app/models/address.rb'
|
88
|
-
- 'app/models/sales_invoice.rb'
|
89
|
-
- 'app/models/sales_invoice_item.rb'
|
90
|
-
- 'lib/tasks/intrastat_report.rake'
|
91
|
-
- 'lib/tenant_builder.rb'
|
92
|
-
|
93
|
-
# Offense count: 1
|
94
|
-
# Cop supports --auto-correct.
|
95
|
-
Layout/SpaceAroundKeyword:
|
96
|
-
Exclude:
|
97
|
-
- 'app/models/sales_order.rb'
|
98
|
-
|
99
|
-
# Offense count: 1
|
100
|
-
# Cop supports --auto-correct.
|
101
|
-
# Configuration parameters: AllowForAlignment.
|
102
|
-
Layout/SpaceAroundOperators:
|
103
|
-
Exclude:
|
104
|
-
- 'app/controllers/products/products_controller.rb'
|
105
|
-
|
106
|
-
# Offense count: 9
|
107
|
-
# Cop supports --auto-correct.
|
108
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
109
|
-
# SupportedStyles: require_no_space, require_space
|
110
|
-
Layout/SpaceInLambdaLiteral:
|
111
|
-
Exclude:
|
112
|
-
- 'app/models/accounting_record.rb'
|
113
|
-
- 'app/models/currency_pair.rb'
|
114
|
-
- 'app/models/logo.rb'
|
115
|
-
- 'app/models/message.rb'
|
116
|
-
- 'app/models/product.rb'
|
117
|
-
- 'config/environments/production.rb'
|
118
|
-
|
119
|
-
# Offense count: 18
|
120
|
-
# Cop supports --auto-correct.
|
121
|
-
Layout/SpaceInsidePercentLiteralDelimiters:
|
122
|
-
Exclude:
|
123
|
-
- 'app/models/concerns/after_document_issue_attributes.rb'
|
124
|
-
- 'app/models/my_bank_account.rb'
|
125
|
-
- 'app/models/my_company.rb'
|
126
|
-
- 'app/models/vat_rate.rb'
|
127
|
-
- 'config/initializers/assets.rb'
|
128
|
-
- 'spec/models/my_bank_account_spec.rb'
|
129
|
-
- 'spec/models/sales_order_spec.rb'
|
130
|
-
|
131
|
-
# Offense count: 5
|
132
|
-
Lint/AmbiguousBlockAssociation:
|
133
|
-
Exclude:
|
134
|
-
- 'spec/models/tenant_spec.rb'
|
135
|
-
- 'spec/services/document_template_manager_spec.rb'
|
136
|
-
- 'spec/services/paypal/balance_fetcher_spec.rb'
|
137
|
-
- 'spec/services/paypal/statement_fetcher_spec.rb'
|
138
|
-
|
139
|
-
# Offense count: 9
|
140
|
-
Lint/IneffectiveAccessModifier:
|
141
|
-
Exclude:
|
142
|
-
- 'app/data_objects/interval.rb'
|
143
|
-
- 'app/models/setting.rb'
|
144
|
-
- 'app/models/tenant.rb'
|
145
|
-
- 'app/services/public_id_guesser.rb'
|
146
|
-
- 'lib/expert_fantozzi_contract.rb'
|
147
|
-
- 'lib/ldap_user_finder.rb'
|
148
|
-
|
149
|
-
# Offense count: 1
|
150
|
-
# Cop supports --auto-correct.
|
151
|
-
Lint/UnifiedInteger:
|
152
|
-
Exclude:
|
153
|
-
- 'spec/support/rspec_matchers/have_row.rb'
|
154
|
-
|
155
|
-
# Offense count: 1
|
156
|
-
# Cop supports --auto-correct.
|
157
|
-
Lint/UnneededSplatExpansion:
|
158
|
-
Exclude:
|
159
|
-
- 'app/api/v1/sales_orders.rb'
|
160
|
-
|
161
|
-
# Offense count: 272
|
162
|
-
Metrics/AbcSize:
|
163
|
-
Max: 169
|
164
|
-
|
165
|
-
# Offense count: 607
|
166
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
167
|
-
Metrics/BlockLength:
|
168
|
-
Max: 1260
|
169
|
-
|
170
|
-
# Offense count: 42
|
171
|
-
# Configuration parameters: CountComments.
|
172
|
-
Metrics/ClassLength:
|
173
|
-
Max: 302
|
174
|
-
|
175
|
-
# Offense count: 56
|
176
|
-
Metrics/CyclomaticComplexity:
|
177
|
-
Max: 17
|
178
|
-
|
179
|
-
# Offense count: 219
|
180
|
-
# Configuration parameters: CountComments.
|
181
|
-
Metrics/MethodLength:
|
182
|
-
Max: 125
|
183
|
-
|
184
|
-
# Offense count: 6
|
185
|
-
# Configuration parameters: CountKeywordArgs.
|
186
|
-
Metrics/ParameterLists:
|
187
|
-
Max: 7
|
188
|
-
|
189
|
-
# Offense count: 37
|
190
|
-
Metrics/PerceivedComplexity:
|
191
|
-
Max: 17
|
192
|
-
|
193
|
-
# Offense count: 1
|
194
|
-
# Cop supports --auto-correct.
|
195
|
-
Performance/Casecmp:
|
196
|
-
Exclude:
|
197
|
-
- 'app/models/product.rb'
|
198
|
-
|
199
|
-
# Offense count: 5
|
200
|
-
# Cop supports --auto-correct.
|
201
|
-
Performance/RangeInclude:
|
202
|
-
Exclude:
|
203
|
-
- 'app/models/accounting_period.rb'
|
204
|
-
- 'app/validators/vatin_validator.rb'
|
205
|
-
- 'lib/tasks/intrastat_report.rake'
|
206
|
-
|
207
|
-
# Offense count: 1
|
208
|
-
# Cop supports --auto-correct.
|
209
|
-
Performance/RedundantBlockCall:
|
210
|
-
Exclude:
|
211
|
-
- 'spec/support/database_helper.rb'
|
212
|
-
|
213
|
-
# Offense count: 8
|
214
|
-
# Cop supports --auto-correct.
|
215
|
-
# Configuration parameters: MaxKeyValuePairs.
|
216
|
-
Performance/RedundantMerge:
|
217
|
-
Exclude:
|
218
|
-
- 'app/api/v1/demands_for_payment.rb'
|
219
|
-
- 'app/api/v1/my_bank_accounts.rb'
|
220
|
-
- 'app/api/v1/pagination_helpers.rb'
|
221
|
-
- 'app/services/frontend_modifier_symbolizer.rb'
|
222
|
-
- 'app/services/modifier_symbolizer.rb'
|
223
|
-
- 'spec/api/v1/contacts_spec.rb'
|
224
|
-
|
225
|
-
# Offense count: 3
|
226
|
-
# Cop supports --auto-correct.
|
227
|
-
Security/YAMLLoad:
|
228
|
-
Exclude:
|
229
|
-
- 'config/application.rb'
|
230
|
-
- 'lib/ldap_user_finder.rb'
|
231
|
-
- 'lib/tasks/migrate.rake'
|
232
|
-
|
233
|
-
# Offense count: 6
|
234
|
-
# Cop supports --auto-correct.
|
235
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
236
|
-
# SupportedStyles: prefer_alias, prefer_alias_method
|
237
|
-
Style/Alias:
|
238
|
-
Exclude:
|
239
|
-
- 'app/models/search/sales_order.rb'
|
240
|
-
- 'app/models/user_permission.rb'
|
241
|
-
- 'app/models/user_permissions_collection.rb'
|
242
|
-
- 'app/services/subject_to_vat_specification.rb'
|
243
|
-
|
244
|
-
# Offense count: 10
|
245
|
-
Style/AsciiComments:
|
246
|
-
Exclude:
|
247
|
-
- 'app/controllers/application_controller.rb'
|
248
|
-
- 'app/models/currency.rb'
|
249
|
-
- 'app/workers/cost_revenue_worker_base.rb'
|
250
|
-
- 'spec/factories/reports.rb'
|
251
|
-
- 'spec/models/my_bank_account_spec.rb'
|
252
|
-
- 'spec/models/vat_rate_spec.rb'
|
253
|
-
|
254
|
-
# Offense count: 6
|
255
|
-
# Cop supports --auto-correct.
|
256
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
257
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
258
|
-
Style/ConditionalAssignment:
|
259
|
-
Exclude:
|
260
|
-
- 'app/helpers/invoice_helper.rb'
|
261
|
-
- 'app/models/address.rb'
|
262
|
-
- 'app/models/product.rb'
|
263
|
-
- 'app/services/cash_book_data_generator.rb'
|
264
|
-
- 'app/validators/bank_account_or_iban_validator.rb'
|
265
|
-
- 'app/validators/sales_invoice_validator.rb'
|
266
|
-
|
267
|
-
# Offense count: 4
|
268
|
-
# Cop supports --auto-correct.
|
269
|
-
Style/EmptyCaseCondition:
|
270
|
-
Exclude:
|
271
|
-
- 'app/decorators/concerns/document_addresses.rb'
|
272
|
-
- 'app/services/subject_to_vat_specification.rb'
|
273
|
-
- 'app/validators/linked_doc_validator.rb'
|
274
|
-
|
275
|
-
# Offense count: 1294
|
276
|
-
# Cop supports --auto-correct.
|
277
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
278
|
-
# SupportedStyles: when_needed, always, never
|
279
|
-
Style/FrozenStringLiteralComment:
|
280
|
-
Enabled: false
|
281
|
-
|
282
|
-
# Offense count: 2
|
283
|
-
Style/IdenticalConditionalBranches:
|
284
|
-
Exclude:
|
285
|
-
- 'lib/tasks/export_accounting_records_to_pdf.rake'
|
286
|
-
|
287
|
-
# Offense count: 10
|
288
|
-
Style/IfInsideElse:
|
289
|
-
Exclude:
|
290
|
-
- 'app/controllers/logos_controller.rb'
|
291
|
-
- 'app/models/currency_pair.rb'
|
292
|
-
- 'app/models/default_attrs/purchase_invoice.rb'
|
293
|
-
- 'app/models/purchase_invoice_item.rb'
|
294
|
-
- 'app/queries/query/receivables_core.rb'
|
295
|
-
- 'app/services/currency_exchange.rb'
|
296
|
-
- 'app/services/subject_to_vat_specification.rb'
|
297
|
-
- 'app/validators/vatin_validator.rb'
|
298
|
-
|
299
|
-
# Offense count: 1
|
300
|
-
# Cop supports --auto-correct.
|
301
|
-
# Configuration parameters: MaxLineLength.
|
302
|
-
Style/IfUnlessModifier:
|
303
|
-
Exclude:
|
304
|
-
- 'app/validators/vatin_validator.rb'
|
305
|
-
|
306
|
-
# Offense count: 2
|
307
|
-
# Cop supports --auto-correct.
|
308
|
-
# Configuration parameters: InverseMethods, InverseBlocks.
|
309
|
-
Style/InverseMethods:
|
310
|
-
Exclude:
|
311
|
-
- 'app/models/sales_invoice.rb'
|
312
|
-
- 'app/validators/bank_symbol_validator.rb'
|
313
|
-
|
314
|
-
# Offense count: 2
|
315
|
-
Style/MultilineBlockChain:
|
316
|
-
Exclude:
|
317
|
-
- 'app/controllers/contracts/most_used_controller.rb'
|
318
|
-
|
319
|
-
# Offense count: 1
|
320
|
-
# Cop supports --auto-correct.
|
321
|
-
Style/MultilineIfModifier:
|
322
|
-
Exclude:
|
323
|
-
- 'app/services/currency_exchange.rb'
|
324
|
-
|
325
9
|
# Offense count: 2
|
326
|
-
|
10
|
+
Lint/MissingSuper:
|
327
11
|
Exclude:
|
328
|
-
- '
|
329
|
-
- 'lib/
|
330
|
-
|
331
|
-
# Offense count: 134
|
332
|
-
# Cop supports --auto-correct.
|
333
|
-
Style/MutableConstant:
|
334
|
-
Enabled: false
|
12
|
+
- 'lib/vat_info/request/unreliable_payer.rb'
|
13
|
+
- 'lib/vat_info/request/unreliable_payer_extended.rb'
|
335
14
|
|
336
15
|
# Offense count: 4
|
337
|
-
#
|
338
|
-
|
339
|
-
|
340
|
-
- 'app/controllers/contacts_controller.rb'
|
341
|
-
- 'app/decorators/concerns/document_addresses.rb'
|
342
|
-
- 'app/models/purchase_order.rb'
|
343
|
-
- 'app/services/logo_upload.rb'
|
344
|
-
|
345
|
-
# Offense count: 1
|
346
|
-
# Cop supports --auto-correct.
|
347
|
-
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
|
348
|
-
# SupportedOctalStyles: zero_with_o, zero_only
|
349
|
-
Style/NumericLiteralPrefix:
|
350
|
-
Exclude:
|
351
|
-
- 'spec/factories/bank_payments.rb'
|
352
|
-
|
353
|
-
# Offense count: 14
|
354
|
-
# Cop supports --auto-correct.
|
355
|
-
# Configuration parameters: Strict.
|
356
|
-
Style/NumericLiterals:
|
357
|
-
MinDigits: 11
|
358
|
-
|
359
|
-
# Offense count: 35
|
360
|
-
# Cop supports --auto-correct.
|
361
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
362
|
-
# SupportedStyles: predicate, comparison
|
363
|
-
Style/NumericPredicate:
|
364
|
-
Enabled: false
|
365
|
-
|
366
|
-
# Offense count: 1
|
367
|
-
# Cop supports --auto-correct.
|
368
|
-
# Configuration parameters: AllowSafeAssignment.
|
369
|
-
Style/ParenthesesAroundCondition:
|
370
|
-
Exclude:
|
371
|
-
- 'app/models/default_attrs/purchase_invoice.rb'
|
372
|
-
|
373
|
-
# Offense count: 101
|
374
|
-
# Cop supports --auto-correct.
|
375
|
-
# Configuration parameters: PreferredDelimiters.
|
376
|
-
Style/PercentLiteralDelimiters:
|
377
|
-
Enabled: false
|
378
|
-
|
379
|
-
# Offense count: 10
|
380
|
-
# Cop supports --auto-correct.
|
381
|
-
Style/RedundantParentheses:
|
382
|
-
Exclude:
|
383
|
-
- 'app/controllers/application_controller.rb'
|
384
|
-
- 'app/models/cash_book_report.rb'
|
385
|
-
- 'app/models/concerns/cost_revenue_report_base.rb'
|
386
|
-
- 'app/models/contract_report.rb'
|
387
|
-
- 'app/models/costs_by_contacts_report.rb'
|
388
|
-
- 'app/models/purchase_invoice_item.rb'
|
389
|
-
- 'app/queries/query/receivables_core.rb'
|
390
|
-
- 'spec/models/external_notification_spec.rb'
|
391
|
-
|
392
|
-
# Offense count: 3
|
393
|
-
# Cop supports --auto-correct.
|
394
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
395
|
-
Style/RedundantReturn:
|
396
|
-
Exclude:
|
397
|
-
- 'app/data_objects/interval.rb'
|
398
|
-
|
399
|
-
# Offense count: 44
|
400
|
-
# Cop supports --auto-correct.
|
401
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil.
|
402
|
-
Style/SafeNavigation:
|
403
|
-
Enabled: false
|
404
|
-
|
405
|
-
# Offense count: 55
|
406
|
-
# Cop supports --auto-correct.
|
407
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
408
|
-
# SupportedStyles: only_raise, only_fail, semantic
|
409
|
-
Style/SignalException:
|
410
|
-
Enabled: false
|
16
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
17
|
+
Metrics/AbcSize:
|
18
|
+
Max: 21
|
411
19
|
|
412
20
|
# Offense count: 1
|
413
|
-
#
|
414
|
-
#
|
415
|
-
|
416
|
-
|
417
|
-
Exclude:
|
418
|
-
- 'spec/models/invitation_spec.rb'
|
419
|
-
|
420
|
-
# Offense count: 160
|
421
|
-
# Cop supports --auto-correct.
|
422
|
-
# Configuration parameters: EnforcedStyle, MinSize, SupportedStyles.
|
423
|
-
# SupportedStyles: percent, brackets
|
424
|
-
Style/SymbolArray:
|
425
|
-
Enabled: false
|
21
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
22
|
+
# IgnoredMethods: refine
|
23
|
+
Metrics/BlockLength:
|
24
|
+
Max: 40
|
426
25
|
|
427
26
|
# Offense count: 5
|
428
|
-
#
|
429
|
-
|
430
|
-
|
431
|
-
- 'app/helpers/select_helper.rb'
|
432
|
-
- 'app/mailers/notification_mailer.rb'
|
433
|
-
- 'app/models/user.rb'
|
434
|
-
- 'app/services/frontend_params_normalizer.rb'
|
435
|
-
- 'spec/features/sales/orders/order_spec.rb'
|
436
|
-
|
437
|
-
# Offense count: 43
|
438
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
439
|
-
# SupportedStyles: snake_case, normalcase, non_integer
|
440
|
-
Style/VariableNumber:
|
441
|
-
Exclude:
|
442
|
-
- 'spec/api/v1/sales_orders_spec.rb'
|
443
|
-
- 'spec/features/purchase/invoices_spec.rb'
|
444
|
-
- 'spec/features/purchase/petty_cash_disburstment_spec.rb'
|
445
|
-
- 'spec/features/sales/orders/order_spec.rb'
|
446
|
-
- 'spec/features/sales/petty_cash_income_spec.rb'
|
447
|
-
- 'spec/queries/query/cash_book_spec.rb'
|
448
|
-
- 'spec/queries/query/contracts_costs_report_spec.rb'
|
449
|
-
- 'spec/queries/query/contracts_revenues_report_spec.rb'
|
450
|
-
- 'spec/services/cash_book_data_generator_spec.rb'
|
451
|
-
- 'spec/services/generate_order_from_confirmed_payments_service_spec.rb'
|
452
|
-
|
453
|
-
# Offense count: 1
|
454
|
-
# Cop supports --auto-correct.
|
455
|
-
Style/YodaCondition:
|
456
|
-
Exclude:
|
457
|
-
- 'app/services/subject_to_vat_specification.rb'
|
27
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
28
|
+
Metrics/MethodLength:
|
29
|
+
Max: 20
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.5
|
data/.travis.yml
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.3.1
|
4
|
-
- 2.4.5
|
5
3
|
- 2.5.3
|
6
4
|
- 2.6.0
|
5
|
+
- 2.7.5
|
7
6
|
|
8
7
|
stages:
|
9
8
|
- code-quality
|
@@ -11,18 +10,6 @@ stages:
|
|
11
10
|
|
12
11
|
jobs:
|
13
12
|
include:
|
14
|
-
- rvm: 2.3.1
|
15
|
-
stage: code-quality
|
16
|
-
script: bundle exec rubocop
|
17
|
-
- rvm: 2.3.1
|
18
|
-
stage: test
|
19
|
-
script: bundle exec rspec
|
20
|
-
- rvm: 2.4.5
|
21
|
-
stage: code-quality
|
22
|
-
script: bundle exec rubocop
|
23
|
-
- rvm: 2.4.5
|
24
|
-
stage: test
|
25
|
-
script: bundle exec rspec
|
26
13
|
- rvm: 2.5.3
|
27
14
|
stage: code-quality
|
28
15
|
script: bundle exec rubocop
|
@@ -35,3 +22,9 @@ jobs:
|
|
35
22
|
- rvm: 2.6.0
|
36
23
|
stage: test
|
37
24
|
script: bundle exec rspec
|
25
|
+
- rvm: 2.7.5
|
26
|
+
stage: code-quality
|
27
|
+
script: bundle exec rubocop
|
28
|
+
- rvm: 2.7.5
|
29
|
+
stage: test
|
30
|
+
script: bundle exec rspec
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/lib/vat_info/models.rb
CHANGED
data/lib/vat_info/query.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'savon'
|
2
4
|
|
3
5
|
module VatInfo
|
4
6
|
class SchemaError < StandardError; end
|
5
7
|
|
6
8
|
class Query
|
7
|
-
DOCS = 'https://adisspr.mfcr.cz/adistc/adis/idpr_pub/dpr_info/ws_spdph.faces'
|
8
|
-
WSDL = '
|
9
|
+
DOCS = 'https://adisspr.mfcr.cz/adistc/adis/idpr_pub/dpr_info/ws_spdph.faces'
|
10
|
+
WSDL = 'https://adisrws.mfcr.cz/adistc/axis2/services/rozhraniCRPDPH.rozhraniCRPDPHSOAP?wsdl'
|
9
11
|
TIMEOUT = 2
|
10
12
|
SERVICE_UNAVAILABLE = 503
|
11
13
|
REQUEST_TIME_OUT = 408
|
data/lib/vat_info/request.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'nokogiri'
|
2
4
|
require 'vat_info/request/unreliable_payer'
|
3
5
|
require 'vat_info/request/unreliable_payer_extended'
|
@@ -5,7 +7,7 @@ require 'vat_info/request/unreliable_payer_list'
|
|
5
7
|
|
6
8
|
module VatInfo
|
7
9
|
class Request
|
8
|
-
SOAP_ENV_SCHEMA = 'http://schemas.xmlsoap.org/soap/envelope/'
|
10
|
+
SOAP_ENV_SCHEMA = 'http://schemas.xmlsoap.org/soap/envelope/'
|
9
11
|
|
10
12
|
def envelope
|
11
13
|
Nokogiri::XML::Builder.new('encoding' => 'UTF-8') do |xml|
|
data/lib/vat_info/response.rb
CHANGED
data/lib/vat_info/utils.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module VatInfo
|
2
4
|
module Utils
|
3
5
|
COMPANY_TYPES = ['a.s.', 's.r.o.', 'v.o.s.', 'k.s.', 'z.s.'].freeze
|
4
6
|
SPECIAL_CHARS = [
|
5
|
-
%w
|
6
|
-
%w
|
7
|
+
%w[Á á], %w[Č č], %w[Ď ď], %w[É é], %w[Ě ě], %w[Í í], %w[Ň ń], %w[Ó ó],
|
8
|
+
%w[Ř ř], %w[Š š], %w[Ť ť], %w[Ú ú], %w[Ů ů], %w[Ž ž], %w[Ý ý]
|
7
9
|
].freeze
|
8
10
|
|
9
11
|
def self.wrap_in_array(content)
|
data/lib/vat_info/version.rb
CHANGED
data/lib/vat_info.rb
CHANGED
data/vat_info.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'vat_info/version'
|
@@ -20,13 +22,15 @@ Gem::Specification.new do |spec|
|
|
20
22
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
23
|
spec.require_paths = ['lib']
|
22
24
|
|
25
|
+
spec.required_ruby_version = '>= 2.5'
|
26
|
+
|
23
27
|
spec.add_dependency 'savon', '~> 2.12'
|
24
28
|
|
25
|
-
spec.add_development_dependency 'bundler', '~>
|
29
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
26
30
|
spec.add_development_dependency 'pry', '~> 0.11'
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
31
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
28
32
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
33
|
spec.add_development_dependency 'rubocop'
|
30
|
-
spec.add_development_dependency 'vcr'
|
31
|
-
spec.add_development_dependency 'webmock'
|
34
|
+
spec.add_development_dependency 'vcr'
|
35
|
+
spec.add_development_dependency 'webmock'
|
32
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vat_payer_cz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Landovsky
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.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: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,30 +98,30 @@ dependencies:
|
|
98
98
|
name: vcr
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
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: '
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: webmock
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '0'
|
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: '
|
124
|
+
version: '0'
|
125
125
|
description: Using mfcr.cz SOAP API to get information about Czech VAT payers.
|
126
126
|
email:
|
127
127
|
- landovsky@gmail.com
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- ".rspec"
|
136
136
|
- ".rubocop.yml"
|
137
137
|
- ".rubocop_todo.yml"
|
138
|
+
- ".ruby-version"
|
138
139
|
- ".travis.yml"
|
139
140
|
- Dockerfile
|
140
141
|
- Gemfile
|
@@ -165,7 +166,7 @@ homepage: https://github.com/ucetnictvi-on-line/vat_payer_cz
|
|
165
166
|
licenses:
|
166
167
|
- MIT
|
167
168
|
metadata: {}
|
168
|
-
post_install_message:
|
169
|
+
post_install_message:
|
169
170
|
rdoc_options: []
|
170
171
|
require_paths:
|
171
172
|
- lib
|
@@ -173,16 +174,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
174
|
requirements:
|
174
175
|
- - ">="
|
175
176
|
- !ruby/object:Gem::Version
|
176
|
-
version: '
|
177
|
+
version: '2.5'
|
177
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
179
|
requirements:
|
179
180
|
- - ">="
|
180
181
|
- !ruby/object:Gem::Version
|
181
182
|
version: '0'
|
182
183
|
requirements: []
|
183
|
-
|
184
|
-
|
185
|
-
signing_key:
|
184
|
+
rubygems_version: 3.1.6
|
185
|
+
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Ruby wrapper for web service providing info about Czech VAT payers.
|
188
188
|
test_files: []
|