lhc 13.0.0 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +15 -0
- data/.github/workflows/test.yml +15 -0
- data/.rubocop.yml +344 -19
- data/.ruby-version +1 -1
- data/README.md +44 -0
- data/Rakefile +3 -3
- data/lhc.gemspec +3 -1
- data/lib/lhc.rb +59 -59
- data/lib/lhc/concerns/lhc/fix_invalid_encoding_concern.rb +1 -0
- data/lib/lhc/config.rb +3 -0
- data/lib/lhc/endpoint.rb +3 -0
- data/lib/lhc/error.rb +5 -1
- data/lib/lhc/interceptor.rb +4 -0
- data/lib/lhc/interceptors.rb +1 -0
- data/lib/lhc/interceptors/auth.rb +3 -4
- data/lib/lhc/interceptors/caching.rb +14 -3
- data/lib/lhc/interceptors/logging.rb +2 -0
- data/lib/lhc/interceptors/monitoring.rb +46 -11
- data/lib/lhc/interceptors/retry.rb +2 -0
- data/lib/lhc/interceptors/rollbar.rb +1 -0
- data/lib/lhc/interceptors/throttle.rb +7 -2
- data/lib/lhc/interceptors/zipkin.rb +2 -0
- data/lib/lhc/request.rb +13 -3
- data/lib/lhc/response.rb +1 -0
- data/lib/lhc/response/data.rb +1 -1
- data/lib/lhc/version.rb +1 -1
- data/spec/error/to_s_spec.rb +7 -2
- data/spec/formats/multipart_spec.rb +2 -2
- data/spec/formats/plain_spec.rb +1 -1
- data/spec/interceptors/after_response_spec.rb +1 -1
- data/spec/interceptors/caching/main_spec.rb +2 -2
- data/spec/interceptors/caching/multilevel_cache_spec.rb +2 -1
- data/spec/interceptors/define_spec.rb +1 -0
- data/spec/interceptors/monitoring/caching_spec.rb +66 -0
- data/spec/interceptors/response_competition_spec.rb +2 -2
- data/spec/interceptors/return_response_spec.rb +2 -2
- data/spec/response/data_spec.rb +2 -2
- data/spec/support/zipkin_mock.rb +1 -0
- metadata +27 -21
- data/.rubocop.localch.yml +0 -325
- data/cider-ci.yml +0 -5
- data/cider-ci/bin/bundle +0 -51
- data/cider-ci/bin/ruby_install +0 -8
- data/cider-ci/bin/ruby_version +0 -25
- data/cider-ci/jobs/rspec-activesupport-5.yml +0 -27
- data/cider-ci/jobs/rspec-activesupport-6.yml +0 -28
- data/cider-ci/jobs/rubocop.yml +0 -18
- data/cider-ci/task_components/bundle.yml +0 -22
- data/cider-ci/task_components/rspec.yml +0 -36
- data/cider-ci/task_components/rubocop.yml +0 -29
- data/cider-ci/task_components/ruby.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7379ccaa5a569acd2eca8b6ea938996477391648efe913b45ff07e478f81e471
|
4
|
+
data.tar.gz: a277d00a29c59e3da5c9fa4fa5b130a201d253ad65ac26a75e1bc348eacf479f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76713bd28a5e9ce252bfef62f77d5b04cf3820a290089d7331f2d1445a4e04ff4ebcfa6180b50d75f0ce4b0b62454f3a4bbece2f7a41f37fa2ea8158e755a196
|
7
|
+
data.tar.gz: e33b20e2c2d8f12b68e5ef76842bc94c61cd761be66d4d61b22b0c2501fd6dfc4041c7a9e32bff1d964e34c154d40ed6acf865cfeadb01c7318729597c96b25c
|
data/.rubocop.yml
CHANGED
@@ -1,61 +1,386 @@
|
|
1
|
-
# This is project specific rubocop configuration file.
|
2
|
-
# You can tweak project settings here
|
3
|
-
inherit_from:
|
4
|
-
- ./.rubocop.localch.yml
|
5
|
-
|
6
1
|
AllCops:
|
7
|
-
|
2
|
+
DisplayCopNames: true
|
3
|
+
DisplayStyleGuide: true
|
4
|
+
TargetRubyVersion: '2.7'
|
5
|
+
NewCops: enable
|
6
|
+
SuggestExtensions: false
|
7
|
+
Exclude:
|
8
|
+
- 'db/**/*'
|
9
|
+
- 'script/**/*'
|
10
|
+
- 'vendor/bundle/**/*'
|
11
|
+
- 'vendor/assets/**/*'
|
12
|
+
- 'bin/**/*'
|
13
|
+
- 'config/unicorn.rb'
|
14
|
+
- 'config/compass.rb'
|
15
|
+
- 'Rakefile'
|
16
|
+
- 'app/controllers/error_trap_controller.rb'
|
17
|
+
- 'app/controllers/hsts_controller.rb'
|
18
|
+
- 'spec/lib/util_spec.rb'
|
19
|
+
- vendor/**
|
20
|
+
- vendor/**/.*
|
21
|
+
|
22
|
+
require:
|
23
|
+
- rubocop-rspec
|
24
|
+
- rubocop-performance
|
25
|
+
|
26
|
+
Bundler/OrderedGems:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Lint/SuppressedException:
|
30
|
+
Exclude:
|
31
|
+
- spec/**/*
|
32
|
+
|
33
|
+
Lint/UriEscapeUnescape:
|
34
|
+
Enabled: false
|
8
35
|
|
9
36
|
Lint/IneffectiveAccessModifier:
|
10
37
|
Enabled: false
|
11
38
|
|
12
|
-
|
39
|
+
Lint/ConstantDefinitionInBlock:
|
13
40
|
Enabled: false
|
14
41
|
|
15
|
-
|
42
|
+
Lint/ToJSON:
|
16
43
|
Enabled: false
|
17
44
|
|
18
|
-
|
45
|
+
Lint/NonDeterministicRequireOrder:
|
19
46
|
Enabled: false
|
20
47
|
|
21
|
-
|
48
|
+
Lint/DeprecatedConstants: # (new in 1.8)
|
22
49
|
Enabled: false
|
23
50
|
|
24
|
-
|
51
|
+
Lint/EmptyBlock: # (new in 1.1)
|
25
52
|
Enabled: false
|
26
53
|
|
27
|
-
|
54
|
+
Lint/EmptyClass: # (new in 1.3)
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Lint/OrAssignmentToConstant: # (new in 1.9)
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Lint/SymbolConversion: # (new in 1.9)
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
Metrics/AbcSize:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Metrics/MethodLength:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Metrics/CyclomaticComplexity:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
Metrics/PerceivedComplexity:
|
73
|
+
Enabled: false
|
74
|
+
|
75
|
+
Metrics/ClassLength:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
Metrics/ModuleLength:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
Metrics/BlockLength:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Metrics/ParameterLists:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Metrics/BlockNesting:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
Layout/MultilineOperationIndentation:
|
91
|
+
EnforcedStyle: indented
|
92
|
+
|
93
|
+
Layout/DotPosition:
|
94
|
+
EnforcedStyle: leading
|
95
|
+
|
96
|
+
Layout/ParameterAlignment:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
Layout/EmptyLinesAroundClassBody:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
Layout/FirstArrayElementIndentation:
|
103
|
+
EnforcedStyle: consistent
|
104
|
+
|
105
|
+
Layout/MultilineMethodCallIndentation:
|
106
|
+
EnforcedStyle: indented
|
107
|
+
|
108
|
+
Layout/MultilineMethodCallBraceLayout:
|
109
|
+
EnforcedStyle: symmetrical
|
110
|
+
|
111
|
+
Layout/EmptyLinesAroundBlockBody:
|
112
|
+
EnforcedStyle: no_empty_lines
|
113
|
+
|
114
|
+
Layout/HeredocIndentation:
|
115
|
+
Enabled: false
|
116
|
+
|
117
|
+
Layout/MultilineArrayBraceLayout:
|
118
|
+
EnforcedStyle: symmetrical
|
119
|
+
|
120
|
+
Layout/MultilineHashBraceLayout:
|
121
|
+
EnforcedStyle: symmetrical
|
122
|
+
|
123
|
+
Layout/LineLength:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
Style/RescueStandardError:
|
127
|
+
Enabled: false
|
128
|
+
|
129
|
+
Style/StringLiterals:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
Style/NumericLiterals:
|
133
|
+
Enabled: false
|
134
|
+
|
135
|
+
Style/WordArray:
|
136
|
+
Enabled: false
|
137
|
+
|
138
|
+
Style/Next:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
Style/PercentLiteralDelimiters:
|
142
|
+
Enabled: false
|
143
|
+
|
144
|
+
Style/GlobalVars:
|
145
|
+
Enabled: false
|
146
|
+
|
147
|
+
Style/CommentAnnotation:
|
148
|
+
Enabled: false
|
149
|
+
|
150
|
+
Style/SymbolProc:
|
151
|
+
Enabled: false
|
152
|
+
|
153
|
+
Style/DoubleNegation:
|
154
|
+
Enabled: false
|
155
|
+
|
156
|
+
Style/FormatString:
|
157
|
+
Enabled: false
|
158
|
+
|
159
|
+
Style/AsciiComments:
|
160
|
+
Enabled: false
|
161
|
+
|
162
|
+
Style/BarePercentLiterals:
|
163
|
+
Enabled: false
|
164
|
+
|
165
|
+
Style/SingleLineBlockParams:
|
166
|
+
Enabled: false
|
167
|
+
|
168
|
+
Style/MultilineBlockChain:
|
169
|
+
Enabled: false
|
170
|
+
|
171
|
+
Style/RedundantCapitalW:
|
172
|
+
Enabled: false
|
173
|
+
|
174
|
+
Style/RedundantPercentQ:
|
175
|
+
Enabled: false
|
176
|
+
|
177
|
+
Style/BlockDelimiters:
|
178
|
+
Exclude:
|
179
|
+
- spec/**/*
|
180
|
+
|
181
|
+
Style/IfUnlessModifier:
|
182
|
+
Enabled: false
|
183
|
+
|
184
|
+
Style/ClassAndModuleChildren:
|
185
|
+
Enabled: false
|
186
|
+
|
187
|
+
Style/Documentation:
|
188
|
+
Enabled: false
|
189
|
+
|
190
|
+
Style/GuardClause:
|
191
|
+
Enabled: false
|
192
|
+
|
193
|
+
|
194
|
+
Style/NegatedIf:
|
195
|
+
Enabled: false
|
196
|
+
|
197
|
+
Style/MutableConstant:
|
198
|
+
Enabled: false
|
199
|
+
|
200
|
+
Style/ConditionalAssignment:
|
28
201
|
Enabled: false
|
29
202
|
|
30
203
|
Style/Lambda:
|
31
204
|
Enabled: false
|
32
205
|
|
33
|
-
|
206
|
+
Style/SymbolArray:
|
34
207
|
Enabled: false
|
35
208
|
|
36
|
-
|
209
|
+
Style/HashSyntax:
|
210
|
+
EnforcedStyle: ruby19
|
211
|
+
|
212
|
+
Style/FormatStringToken:
|
213
|
+
Enabled: false
|
214
|
+
|
215
|
+
Style/TernaryParentheses:
|
216
|
+
EnforcedStyle: require_parentheses_when_complex
|
217
|
+
|
218
|
+
Style/PerlBackrefs:
|
219
|
+
Enabled: false
|
220
|
+
|
221
|
+
Style/RegexpLiteral:
|
222
|
+
AllowInnerSlashes: false
|
223
|
+
Exclude:
|
224
|
+
- spec/**/*
|
225
|
+
|
226
|
+
Style/BlockComments:
|
227
|
+
Enabled: false
|
228
|
+
|
229
|
+
Style/RedundantParentheses:
|
230
|
+
Enabled: false
|
231
|
+
|
232
|
+
Style/NumericPredicate:
|
37
233
|
Enabled: false
|
38
234
|
|
39
235
|
Style/RedundantReturn:
|
40
236
|
Enabled: false
|
41
237
|
|
42
|
-
|
238
|
+
Style/EmptyMethod:
|
239
|
+
EnforcedStyle: compact
|
240
|
+
|
241
|
+
Style/ExpandPathArguments:
|
43
242
|
Enabled: false
|
44
243
|
|
45
244
|
Style/FrozenStringLiteralComment:
|
46
245
|
Enabled: true
|
47
246
|
|
48
|
-
|
247
|
+
Style/RedundantBegin:
|
248
|
+
Enabled: false
|
249
|
+
|
250
|
+
Style/RedundantAssignment:
|
251
|
+
Enabled: false
|
252
|
+
|
253
|
+
Style/SingleArgumentDig:
|
254
|
+
Enabled: false
|
255
|
+
|
256
|
+
Style/OptionalBooleanParameter:
|
257
|
+
Enabled: false
|
258
|
+
|
259
|
+
Style/CaseLikeIf:
|
260
|
+
Enabled: false
|
261
|
+
|
262
|
+
Style/HashEachMethods:
|
263
|
+
Enabled: false
|
264
|
+
|
265
|
+
Style/HashConversion: # (new in 1.10)
|
266
|
+
Enabled: false
|
267
|
+
|
268
|
+
Style/NilLambda: # (new in 1.3)
|
269
|
+
Enabled: false
|
270
|
+
|
271
|
+
RSpec/DescribeClass:
|
272
|
+
Exclude:
|
273
|
+
- spec/views/**/*
|
274
|
+
- spec/routing/**/*
|
275
|
+
- spec/requests/**/*
|
276
|
+
- spec/features/**/*
|
277
|
+
|
278
|
+
RSpec/FilePath:
|
279
|
+
Enabled: false
|
280
|
+
|
281
|
+
RSpec/NamedSubject:
|
282
|
+
Enabled: false
|
283
|
+
|
284
|
+
RSpec/LeadingSubject:
|
285
|
+
Enabled: false
|
286
|
+
|
287
|
+
RSpec/ExpectInHook:
|
288
|
+
Enabled: false
|
289
|
+
|
290
|
+
RSpec/ReturnFromStub:
|
291
|
+
Enabled: false
|
292
|
+
|
293
|
+
RSpec/SubjectStub:
|
294
|
+
Enabled: false
|
295
|
+
|
296
|
+
RSpec/EmptyLineAfterSubject:
|
297
|
+
Enabled: false
|
298
|
+
|
299
|
+
RSpec/LetSetup:
|
300
|
+
Enabled: false
|
301
|
+
|
302
|
+
RSpec/ImplicitExpect:
|
303
|
+
EnforcedStyle: is_expected
|
304
|
+
|
305
|
+
RSpec/ScatteredLet:
|
306
|
+
Enabled: false
|
307
|
+
|
308
|
+
RSpec/ContextWording:
|
309
|
+
Enabled: false
|
310
|
+
|
311
|
+
RSpec/AnyInstance:
|
312
|
+
Enabled: false
|
313
|
+
|
314
|
+
RSpec/DescribedClass:
|
315
|
+
Enabled: false
|
316
|
+
|
317
|
+
RSpec/MultipleExpectations:
|
318
|
+
Enabled: false
|
319
|
+
|
320
|
+
RSpec/HookArgument:
|
321
|
+
Enabled: false
|
322
|
+
|
323
|
+
RSpec/ExampleLength:
|
324
|
+
Enabled: false
|
325
|
+
|
326
|
+
RSpec/NestedGroups:
|
327
|
+
Enabled: false
|
328
|
+
|
329
|
+
RSpec/VerifiedDoubles:
|
330
|
+
Enabled: false
|
331
|
+
|
332
|
+
RSpec/InstanceVariable:
|
49
333
|
Enabled: false
|
50
334
|
|
51
335
|
RSpec/MessageSpies:
|
52
336
|
Enabled: false
|
53
337
|
|
54
|
-
RSpec/
|
338
|
+
RSpec/FactoryBot/CreateList:
|
55
339
|
Enabled: false
|
56
340
|
|
57
|
-
|
58
|
-
|
341
|
+
RSpec/BeforeAfterAll:
|
342
|
+
Enabled: false
|
59
343
|
|
60
344
|
RSpec/RepeatedExample:
|
61
345
|
Enabled: false
|
346
|
+
|
347
|
+
Naming/FileName:
|
348
|
+
Exclude:
|
349
|
+
- Gemfile
|
350
|
+
- Brewfile
|
351
|
+
- Guardfile
|
352
|
+
|
353
|
+
Naming/AccessorMethodName:
|
354
|
+
Exclude:
|
355
|
+
- spec/support/pages/**/*
|
356
|
+
|
357
|
+
Naming/VariableNumber:
|
358
|
+
Enabled: false
|
359
|
+
|
360
|
+
Naming/MethodParameterName:
|
361
|
+
Enabled: false
|
362
|
+
|
363
|
+
Naming/MemoizedInstanceVariableName:
|
364
|
+
Enabled: false
|
365
|
+
|
366
|
+
|
367
|
+
Performance/StringReplacement:
|
368
|
+
Enabled: false
|
369
|
+
|
370
|
+
Performance/TimesMap:
|
371
|
+
Enabled: false
|
372
|
+
|
373
|
+
Performance/RedundantBlockCall:
|
374
|
+
Enabled: false
|
375
|
+
|
376
|
+
Performance/RedundantMatch:
|
377
|
+
Enabled: false
|
378
|
+
|
379
|
+
Performance/RedundantMerge:
|
380
|
+
Enabled: false
|
381
|
+
|
382
|
+
Performance/Casecmp:
|
383
|
+
Enabled: false
|
384
|
+
|
385
|
+
Performance/StringInclude: # (new in 1.7)
|
386
|
+
Enabled: false
|