multiprotocol_thrift_rack_app 0.2.0 → 0.3.0
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/.envrc +3 -0
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +16 -37
- data/.rubocop.yml +352 -3
- data/BUNDLER_VERSION +1 -1
- data/Gemfile +11 -0
- data/README.md +6 -0
- data/VERSION +1 -1
- data/devenv.lock +103 -0
- data/devenv.nix +18 -0
- data/lib/multiprotocol_thrift_rack_app.rb +2 -1
- data/multiprotocol_thrift_rack_app.gemspec +4 -9
- metadata +9 -106
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ff019fdbef5a413a49a5a06644166eaf2e67a6b67bd7ea244dd5dd6a491a733
|
|
4
|
+
data.tar.gz: 5c7cc541c68d382c1c81d37d29979a507cb8e7f9db726c543e93e3adbfb33d7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68ff1435db32f10c180cd4ee67810d0198f702d670a42a110254b103d03088c4bf8caa9ee5156dbc1af442894304450871c2c44d063e42d505066e6325076db6
|
|
7
|
+
data.tar.gz: 864202d2eac511bbbbe60444670126a098b74d58202191a76819bc63a550968c4f041ddb2c886b25292ebd9973a9d177574af27ea371fbda0d6049cffa80dc94
|
data/.envrc
ADDED
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
|
@@ -8,13 +8,19 @@ stages:
|
|
|
8
8
|
git
|
|
9
9
|
ruby-dev
|
|
10
10
|
build-base
|
|
11
|
+
make
|
|
12
|
+
gcc
|
|
13
|
+
musl-dev
|
|
11
14
|
|
|
12
15
|
- gem update --system
|
|
13
|
-
|
|
16
|
+
|
|
17
|
+
- export BUNDLER_VERSION=$(cat BUNDLER_VERSION)
|
|
18
|
+
- gem install bundler --version $BUNDLER_VERSION
|
|
19
|
+
- bundler _${BUNDLER_VERSION}_ --version
|
|
14
20
|
|
|
15
21
|
- export BUNDLE_PATH=vendor/
|
|
16
|
-
- bundler install --jobs $(nproc)
|
|
17
|
-
- bundler update
|
|
22
|
+
- bundler _${BUNDLER_VERSION}_ install --jobs $(nproc)
|
|
23
|
+
- bundler _${BUNDLER_VERSION}_ update
|
|
18
24
|
|
|
19
25
|
- ruby --version
|
|
20
26
|
- gem --version
|
|
@@ -23,54 +29,27 @@ stages:
|
|
|
23
29
|
script:
|
|
24
30
|
- bundle exec rake
|
|
25
31
|
|
|
26
|
-
test/2
|
|
27
|
-
<<: *test_shared
|
|
28
|
-
stage: test
|
|
29
|
-
image: ruby:2.3-alpine
|
|
30
|
-
|
|
31
|
-
cache:
|
|
32
|
-
paths:
|
|
33
|
-
- vendor/ruby/2.3.0
|
|
34
|
-
|
|
35
|
-
test/2.4:
|
|
36
|
-
<<: *test_shared
|
|
37
|
-
stage: test
|
|
38
|
-
image: ruby:2.4-alpine
|
|
39
|
-
|
|
40
|
-
cache:
|
|
41
|
-
paths:
|
|
42
|
-
- vendor/ruby/2.4.0
|
|
43
|
-
|
|
44
|
-
test/2.5:
|
|
45
|
-
<<: *test_shared
|
|
46
|
-
stage: test
|
|
47
|
-
image: ruby:2.5-alpine
|
|
48
|
-
|
|
49
|
-
cache:
|
|
50
|
-
paths:
|
|
51
|
-
- vendor/ruby/2.5.0
|
|
52
|
-
|
|
53
|
-
test/2.6:
|
|
32
|
+
test/3.2:
|
|
54
33
|
<<: *test_shared
|
|
55
34
|
stage: test
|
|
56
|
-
image: ruby:2
|
|
35
|
+
image: ruby:3.2-alpine
|
|
57
36
|
|
|
58
37
|
cache:
|
|
59
38
|
paths:
|
|
60
|
-
- vendor/ruby/2.
|
|
39
|
+
- vendor/ruby/3.2.0
|
|
61
40
|
|
|
62
|
-
test/
|
|
41
|
+
test/3.3:
|
|
63
42
|
<<: *test_shared
|
|
64
43
|
stage: test
|
|
65
|
-
image: ruby:
|
|
44
|
+
image: ruby:3.3-alpine
|
|
66
45
|
|
|
67
46
|
cache:
|
|
68
47
|
paths:
|
|
69
|
-
- vendor/ruby/
|
|
48
|
+
- vendor/ruby/3.3.0
|
|
70
49
|
|
|
71
50
|
publish:
|
|
72
51
|
stage: publish
|
|
73
|
-
image: ruby:
|
|
52
|
+
image: ruby:3.3-alpine
|
|
74
53
|
only:
|
|
75
54
|
refs:
|
|
76
55
|
- /^v\d+\.\d+\.\d+$/
|
data/.rubocop.yml
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
- rubocop-rspec
|
|
1
|
+
plugins:
|
|
3
2
|
- rubocop-performance
|
|
3
|
+
- rubocop-rspec
|
|
4
|
+
- rubocop-rake
|
|
4
5
|
|
|
5
6
|
AllCops:
|
|
6
|
-
TargetRubyVersion: 2
|
|
7
|
+
TargetRubyVersion: 3.2
|
|
7
8
|
|
|
8
9
|
Style/TrailingCommaInArguments:
|
|
9
10
|
EnforcedStyleForMultiline: comma
|
|
@@ -27,3 +28,351 @@ Metrics/BlockLength:
|
|
|
27
28
|
Exclude:
|
|
28
29
|
- spec/**/*
|
|
29
30
|
|
|
31
|
+
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
32
|
+
Enabled: true
|
|
33
|
+
Gemspec/AttributeAssignment: # new in 1.77
|
|
34
|
+
Enabled: true
|
|
35
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
|
36
|
+
Enabled: true
|
|
37
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
|
38
|
+
Enabled: true
|
|
39
|
+
Gemspec/RequireMFA: # new in 1.23
|
|
40
|
+
Enabled: true
|
|
41
|
+
Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
|
|
42
|
+
Enabled: true
|
|
43
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
|
44
|
+
Enabled: true
|
|
45
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
|
46
|
+
Enabled: true
|
|
47
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
|
48
|
+
Enabled: true
|
|
49
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
|
50
|
+
Enabled: true
|
|
51
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
|
52
|
+
Enabled: true
|
|
53
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
|
54
|
+
Enabled: true
|
|
55
|
+
Lint/AmbiguousRange: # new in 1.19
|
|
56
|
+
Enabled: true
|
|
57
|
+
Lint/ArrayLiteralInRegexp: # new in 1.71
|
|
58
|
+
Enabled: true
|
|
59
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
|
60
|
+
Enabled: true
|
|
61
|
+
Lint/ConstantReassignment: # new in 1.70
|
|
62
|
+
Enabled: true
|
|
63
|
+
Lint/CopDirectiveSyntax: # new in 1.72
|
|
64
|
+
Enabled: true
|
|
65
|
+
Lint/DeprecatedConstants: # new in 1.8
|
|
66
|
+
Enabled: true
|
|
67
|
+
Lint/DuplicateBranch: # new in 1.3
|
|
68
|
+
Enabled: true
|
|
69
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
|
70
|
+
Enabled: true
|
|
71
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
|
72
|
+
Enabled: true
|
|
73
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
|
74
|
+
Enabled: true
|
|
75
|
+
Lint/DuplicateSetElement: # new in 1.67
|
|
76
|
+
Enabled: true
|
|
77
|
+
Lint/EmptyBlock: # new in 1.1
|
|
78
|
+
Enabled: true
|
|
79
|
+
Lint/EmptyClass: # new in 1.3
|
|
80
|
+
Enabled: true
|
|
81
|
+
Lint/EmptyInPattern: # new in 1.16
|
|
82
|
+
Enabled: true
|
|
83
|
+
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
|
84
|
+
Enabled: true
|
|
85
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
|
86
|
+
Enabled: true
|
|
87
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
|
88
|
+
Enabled: true
|
|
89
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
|
90
|
+
Enabled: true
|
|
91
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
|
92
|
+
Enabled: true
|
|
93
|
+
Lint/MixedCaseRange: # new in 1.53
|
|
94
|
+
Enabled: true
|
|
95
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
|
96
|
+
Enabled: true
|
|
97
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
|
98
|
+
Enabled: true
|
|
99
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
|
100
|
+
Enabled: true
|
|
101
|
+
Lint/NumericOperationWithConstantResult: # new in 1.69
|
|
102
|
+
Enabled: true
|
|
103
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
|
104
|
+
Enabled: true
|
|
105
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
|
106
|
+
Enabled: true
|
|
107
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
|
108
|
+
Enabled: true
|
|
109
|
+
Lint/RedundantTypeConversion: # new in 1.72
|
|
110
|
+
Enabled: true
|
|
111
|
+
Lint/RefinementImportMethods: # new in 1.27
|
|
112
|
+
Enabled: true
|
|
113
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
|
114
|
+
Enabled: true
|
|
115
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
|
116
|
+
Enabled: true
|
|
117
|
+
Lint/SharedMutableDefault: # new in 1.70
|
|
118
|
+
Enabled: true
|
|
119
|
+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
|
120
|
+
Enabled: true
|
|
121
|
+
Lint/SymbolConversion: # new in 1.9
|
|
122
|
+
Enabled: true
|
|
123
|
+
Lint/ToEnumArguments: # new in 1.1
|
|
124
|
+
Enabled: true
|
|
125
|
+
Lint/TripleQuotes: # new in 1.9
|
|
126
|
+
Enabled: true
|
|
127
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
|
128
|
+
Enabled: true
|
|
129
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
|
130
|
+
Enabled: true
|
|
131
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
|
132
|
+
Enabled: true
|
|
133
|
+
Lint/UselessConstantScoping: # new in 1.72
|
|
134
|
+
Enabled: true
|
|
135
|
+
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
136
|
+
Enabled: true
|
|
137
|
+
Lint/UselessDefined: # new in 1.69
|
|
138
|
+
Enabled: true
|
|
139
|
+
Lint/UselessNumericOperation: # new in 1.66
|
|
140
|
+
Enabled: true
|
|
141
|
+
Lint/UselessOr: # new in 1.76
|
|
142
|
+
Enabled: true
|
|
143
|
+
Lint/UselessRescue: # new in 1.43
|
|
144
|
+
Enabled: true
|
|
145
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
|
146
|
+
Enabled: true
|
|
147
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
|
148
|
+
Enabled: true
|
|
149
|
+
Naming/BlockForwarding: # new in 1.24
|
|
150
|
+
Enabled: true
|
|
151
|
+
Naming/PredicateMethod: # new in 1.76
|
|
152
|
+
Enabled: true
|
|
153
|
+
Security/CompoundHash: # new in 1.28
|
|
154
|
+
Enabled: true
|
|
155
|
+
Security/IoMethods: # new in 1.22
|
|
156
|
+
Enabled: true
|
|
157
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
|
158
|
+
Enabled: true
|
|
159
|
+
Style/ArgumentsForwarding: # new in 1.1
|
|
160
|
+
Enabled: true
|
|
161
|
+
Style/ArrayIntersect: # new in 1.40
|
|
162
|
+
Enabled: true
|
|
163
|
+
Style/ArrayIntersectWithSingleElement: # new in 1.81
|
|
164
|
+
Enabled: true
|
|
165
|
+
Style/BitwisePredicate: # new in 1.68
|
|
166
|
+
Enabled: true
|
|
167
|
+
Style/CollectionCompact: # new in 1.2
|
|
168
|
+
Enabled: true
|
|
169
|
+
Style/CollectionQuerying: # new in 1.77
|
|
170
|
+
Enabled: true
|
|
171
|
+
Style/CombinableDefined: # new in 1.68
|
|
172
|
+
Enabled: true
|
|
173
|
+
Style/ComparableBetween: # new in 1.74
|
|
174
|
+
Enabled: true
|
|
175
|
+
Style/ComparableClamp: # new in 1.44
|
|
176
|
+
Enabled: true
|
|
177
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
|
178
|
+
Enabled: true
|
|
179
|
+
Style/DataInheritance: # new in 1.49
|
|
180
|
+
Enabled: true
|
|
181
|
+
Style/DigChain: # new in 1.69
|
|
182
|
+
Enabled: true
|
|
183
|
+
Style/DirEmpty: # new in 1.48
|
|
184
|
+
Enabled: true
|
|
185
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
|
186
|
+
Enabled: true
|
|
187
|
+
Style/EmptyHeredoc: # new in 1.32
|
|
188
|
+
Enabled: true
|
|
189
|
+
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
190
|
+
Enabled: true
|
|
191
|
+
Style/EndlessMethod: # new in 1.8
|
|
192
|
+
Enabled: true
|
|
193
|
+
Style/EnvHome: # new in 1.29
|
|
194
|
+
Enabled: true
|
|
195
|
+
Style/ExactRegexpMatch: # new in 1.51
|
|
196
|
+
Enabled: true
|
|
197
|
+
Style/FetchEnvVar: # new in 1.28
|
|
198
|
+
Enabled: true
|
|
199
|
+
Style/FileEmpty: # new in 1.48
|
|
200
|
+
Enabled: true
|
|
201
|
+
Style/FileNull: # new in 1.69
|
|
202
|
+
Enabled: true
|
|
203
|
+
Style/FileRead: # new in 1.24
|
|
204
|
+
Enabled: true
|
|
205
|
+
Style/FileTouch: # new in 1.69
|
|
206
|
+
Enabled: true
|
|
207
|
+
Style/FileWrite: # new in 1.24
|
|
208
|
+
Enabled: true
|
|
209
|
+
Style/HashConversion: # new in 1.10
|
|
210
|
+
Enabled: true
|
|
211
|
+
Style/HashExcept: # new in 1.7
|
|
212
|
+
Enabled: true
|
|
213
|
+
Style/HashFetchChain: # new in 1.75
|
|
214
|
+
Enabled: true
|
|
215
|
+
Style/HashSlice: # new in 1.71
|
|
216
|
+
Enabled: true
|
|
217
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
|
218
|
+
Enabled: true
|
|
219
|
+
Style/InPatternThen: # new in 1.16
|
|
220
|
+
Enabled: true
|
|
221
|
+
Style/ItAssignment: # new in 1.70
|
|
222
|
+
Enabled: true
|
|
223
|
+
Style/ItBlockParameter: # new in 1.75
|
|
224
|
+
Enabled: true
|
|
225
|
+
Style/KeywordArgumentsMerging: # new in 1.68
|
|
226
|
+
Enabled: true
|
|
227
|
+
Style/MagicCommentFormat: # new in 1.35
|
|
228
|
+
Enabled: true
|
|
229
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
|
230
|
+
Enabled: true
|
|
231
|
+
Style/MapIntoArray: # new in 1.63
|
|
232
|
+
Enabled: true
|
|
233
|
+
Style/MapToHash: # new in 1.24
|
|
234
|
+
Enabled: true
|
|
235
|
+
Style/MapToSet: # new in 1.42
|
|
236
|
+
Enabled: true
|
|
237
|
+
Style/MinMaxComparison: # new in 1.42
|
|
238
|
+
Enabled: true
|
|
239
|
+
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
240
|
+
Enabled: true
|
|
241
|
+
Style/MultilineInPatternThen: # new in 1.16
|
|
242
|
+
Enabled: true
|
|
243
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
|
244
|
+
Enabled: true
|
|
245
|
+
Style/NestedFileDirname: # new in 1.26
|
|
246
|
+
Enabled: true
|
|
247
|
+
Style/NilLambda: # new in 1.3
|
|
248
|
+
Enabled: true
|
|
249
|
+
Style/NumberedParameters: # new in 1.22
|
|
250
|
+
Enabled: true
|
|
251
|
+
Style/NumberedParametersLimit: # new in 1.22
|
|
252
|
+
Enabled: true
|
|
253
|
+
Style/ObjectThen: # new in 1.28
|
|
254
|
+
Enabled: true
|
|
255
|
+
Style/OpenStructUse: # new in 1.23
|
|
256
|
+
Enabled: true
|
|
257
|
+
Style/OperatorMethodCall: # new in 1.37
|
|
258
|
+
Enabled: true
|
|
259
|
+
Style/QuotedSymbols: # new in 1.16
|
|
260
|
+
Enabled: true
|
|
261
|
+
Style/RedundantArgument: # new in 1.4
|
|
262
|
+
Enabled: true
|
|
263
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
|
264
|
+
Enabled: true
|
|
265
|
+
Style/RedundantArrayFlatten: # new in 1.76
|
|
266
|
+
Enabled: true
|
|
267
|
+
Style/RedundantConstantBase: # new in 1.40
|
|
268
|
+
Enabled: true
|
|
269
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
|
270
|
+
Enabled: true
|
|
271
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
|
272
|
+
Enabled: true
|
|
273
|
+
Style/RedundantEach: # new in 1.38
|
|
274
|
+
Enabled: true
|
|
275
|
+
Style/RedundantFilterChain: # new in 1.52
|
|
276
|
+
Enabled: true
|
|
277
|
+
Style/RedundantFormat: # new in 1.72
|
|
278
|
+
Enabled: true
|
|
279
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
|
280
|
+
Enabled: true
|
|
281
|
+
Style/RedundantInitialize: # new in 1.27
|
|
282
|
+
Enabled: true
|
|
283
|
+
Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
284
|
+
Enabled: true
|
|
285
|
+
Style/RedundantLineContinuation: # new in 1.49
|
|
286
|
+
Enabled: true
|
|
287
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
|
288
|
+
Enabled: true
|
|
289
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
|
290
|
+
Enabled: true
|
|
291
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
|
292
|
+
Enabled: true
|
|
293
|
+
Style/RedundantStringEscape: # new in 1.37
|
|
294
|
+
Enabled: true
|
|
295
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
296
|
+
Enabled: true
|
|
297
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
|
298
|
+
Enabled: true
|
|
299
|
+
Style/SelectByRegexp: # new in 1.22
|
|
300
|
+
Enabled: true
|
|
301
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
|
302
|
+
Enabled: true
|
|
303
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
|
304
|
+
Enabled: true
|
|
305
|
+
Style/StringChars: # new in 1.12
|
|
306
|
+
Enabled: true
|
|
307
|
+
Style/SuperArguments: # new in 1.64
|
|
308
|
+
Enabled: true
|
|
309
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
|
310
|
+
Enabled: true
|
|
311
|
+
Style/SwapValues: # new in 1.1
|
|
312
|
+
Enabled: true
|
|
313
|
+
Style/YAMLFileRead: # new in 1.53
|
|
314
|
+
Enabled: true
|
|
315
|
+
RSpec/BeEq: # new in 2.9.0
|
|
316
|
+
Enabled: true
|
|
317
|
+
RSpec/BeNil: # new in 2.9.0
|
|
318
|
+
Enabled: true
|
|
319
|
+
RSpec/ChangeByZero: # new in 2.11
|
|
320
|
+
Enabled: true
|
|
321
|
+
RSpec/DuplicatedMetadata: # new in 2.16
|
|
322
|
+
Enabled: true
|
|
323
|
+
RSpec/ExcessiveDocstringSpacing: # new in 2.5
|
|
324
|
+
Enabled: true
|
|
325
|
+
RSpec/IdenticalEqualityAssertion: # new in 2.4
|
|
326
|
+
Enabled: true
|
|
327
|
+
RSpec/NoExpectationExample: # new in 2.13
|
|
328
|
+
Enabled: true
|
|
329
|
+
RSpec/PendingWithoutReason: # new in 2.16
|
|
330
|
+
Enabled: true
|
|
331
|
+
RSpec/SortMetadata: # new in 2.14
|
|
332
|
+
Enabled: true
|
|
333
|
+
RSpec/SubjectDeclaration: # new in 2.5
|
|
334
|
+
Enabled: true
|
|
335
|
+
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
|
336
|
+
Enabled: true
|
|
337
|
+
RSpec/IncludeExamples: # new in 3.6
|
|
338
|
+
Enabled: true
|
|
339
|
+
RSpec/LeakyLocalVariable: # new in 3.8
|
|
340
|
+
Enabled: true
|
|
341
|
+
Performance/AncestorsInclude: # new in 1.7
|
|
342
|
+
Enabled: true
|
|
343
|
+
Performance/CollectionLiteralInLoop: # new in 1.8
|
|
344
|
+
Enabled: true
|
|
345
|
+
Performance/ConcurrentMonotonicTime: # new in 1.12
|
|
346
|
+
Enabled: true
|
|
347
|
+
Performance/ConstantRegexp: # new in 1.9
|
|
348
|
+
Enabled: true
|
|
349
|
+
Performance/MapCompact: # new in 1.11
|
|
350
|
+
Enabled: true
|
|
351
|
+
Performance/MapMethodChain: # new in 1.19
|
|
352
|
+
Enabled: true
|
|
353
|
+
Performance/MethodObjectAsBlock: # new in 1.9
|
|
354
|
+
Enabled: true
|
|
355
|
+
Performance/RedundantEqualityComparisonBlock: # new in 1.10
|
|
356
|
+
Enabled: true
|
|
357
|
+
Performance/RedundantSortBlock: # new in 1.7
|
|
358
|
+
Enabled: true
|
|
359
|
+
Performance/RedundantSplitRegexpArgument: # new in 1.10
|
|
360
|
+
Enabled: true
|
|
361
|
+
Performance/RedundantStringChars: # new in 1.7
|
|
362
|
+
Enabled: true
|
|
363
|
+
Performance/ReverseFirst: # new in 1.7
|
|
364
|
+
Enabled: true
|
|
365
|
+
Performance/SortReverse: # new in 1.7
|
|
366
|
+
Enabled: true
|
|
367
|
+
Performance/Squeeze: # new in 1.7
|
|
368
|
+
Enabled: true
|
|
369
|
+
Performance/StringBytesize: # new in 1.23
|
|
370
|
+
Enabled: true
|
|
371
|
+
Performance/StringIdentifierArgument: # new in 1.13
|
|
372
|
+
Enabled: true
|
|
373
|
+
Performance/StringInclude: # new in 1.7
|
|
374
|
+
Enabled: true
|
|
375
|
+
Performance/Sum: # new in 1.8
|
|
376
|
+
Enabled: true
|
|
377
|
+
Performance/ZipWithoutBlock: # new in 1.24
|
|
378
|
+
Enabled: true
|
data/BUNDLER_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.7.2
|
data/Gemfile
CHANGED
|
@@ -6,3 +6,14 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
|
6
6
|
|
|
7
7
|
# Specify your gem's dependencies in multiprotocol_thrift_rack_app.gemspec
|
|
8
8
|
gemspec
|
|
9
|
+
|
|
10
|
+
group :development do
|
|
11
|
+
gem 'bundler', File.read('BUNDLER_VERSION').strip
|
|
12
|
+
gem 'rake', '~> 13.0'
|
|
13
|
+
gem 'reek', '~> 6.5.0'
|
|
14
|
+
gem 'rspec', '~> 3.0'
|
|
15
|
+
gem 'rubocop', '~> 1.82'
|
|
16
|
+
gem 'rubocop-performance', '~> 1.26.1'
|
|
17
|
+
gem 'rubocop-rake', '~> 0.7.1'
|
|
18
|
+
gem 'rubocop-rspec', '~> 3.8.0'
|
|
19
|
+
end
|
data/README.md
CHANGED
|
@@ -22,6 +22,12 @@ Or install it yourself as:
|
|
|
22
22
|
|
|
23
23
|
TODO: Write usage instructions here
|
|
24
24
|
|
|
25
|
+
## Support Ruby Version
|
|
26
|
+
|
|
27
|
+
`multiprotocol_thrift_rack_app` supports last four ruby versions.
|
|
28
|
+
|
|
29
|
+
Now, required ruby version is 3.2
|
|
30
|
+
|
|
25
31
|
## Development
|
|
26
32
|
|
|
27
33
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.3.0
|
data/devenv.lock
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"devenv": {
|
|
4
|
+
"locked": {
|
|
5
|
+
"dir": "src/modules",
|
|
6
|
+
"lastModified": 1767111144,
|
|
7
|
+
"owner": "cachix",
|
|
8
|
+
"repo": "devenv",
|
|
9
|
+
"rev": "4dece0eb98c5ad9e1bda60711228228a023e1652",
|
|
10
|
+
"type": "github"
|
|
11
|
+
},
|
|
12
|
+
"original": {
|
|
13
|
+
"dir": "src/modules",
|
|
14
|
+
"owner": "cachix",
|
|
15
|
+
"repo": "devenv",
|
|
16
|
+
"type": "github"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"flake-compat": {
|
|
20
|
+
"flake": false,
|
|
21
|
+
"locked": {
|
|
22
|
+
"lastModified": 1767039857,
|
|
23
|
+
"owner": "edolstra",
|
|
24
|
+
"repo": "flake-compat",
|
|
25
|
+
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
|
26
|
+
"type": "github"
|
|
27
|
+
},
|
|
28
|
+
"original": {
|
|
29
|
+
"owner": "edolstra",
|
|
30
|
+
"repo": "flake-compat",
|
|
31
|
+
"type": "github"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"git-hooks": {
|
|
35
|
+
"inputs": {
|
|
36
|
+
"flake-compat": "flake-compat",
|
|
37
|
+
"gitignore": "gitignore",
|
|
38
|
+
"nixpkgs": [
|
|
39
|
+
"nixpkgs"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"locked": {
|
|
43
|
+
"lastModified": 1765911976,
|
|
44
|
+
"owner": "cachix",
|
|
45
|
+
"repo": "git-hooks.nix",
|
|
46
|
+
"rev": "b68b780b69702a090c8bb1b973bab13756cc7a27",
|
|
47
|
+
"type": "github"
|
|
48
|
+
},
|
|
49
|
+
"original": {
|
|
50
|
+
"owner": "cachix",
|
|
51
|
+
"repo": "git-hooks.nix",
|
|
52
|
+
"type": "github"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"gitignore": {
|
|
56
|
+
"inputs": {
|
|
57
|
+
"nixpkgs": [
|
|
58
|
+
"git-hooks",
|
|
59
|
+
"nixpkgs"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"locked": {
|
|
63
|
+
"lastModified": 1762808025,
|
|
64
|
+
"owner": "hercules-ci",
|
|
65
|
+
"repo": "gitignore.nix",
|
|
66
|
+
"rev": "cb5e3fdca1de58ccbc3ef53de65bd372b48f567c",
|
|
67
|
+
"type": "github"
|
|
68
|
+
},
|
|
69
|
+
"original": {
|
|
70
|
+
"owner": "hercules-ci",
|
|
71
|
+
"repo": "gitignore.nix",
|
|
72
|
+
"type": "github"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"nixpkgs": {
|
|
76
|
+
"locked": {
|
|
77
|
+
"lastModified": 1767052823,
|
|
78
|
+
"owner": "cachix",
|
|
79
|
+
"repo": "devenv-nixpkgs",
|
|
80
|
+
"rev": "538a5124359f0b3d466e1160378c87887e3b51a4",
|
|
81
|
+
"type": "github"
|
|
82
|
+
},
|
|
83
|
+
"original": {
|
|
84
|
+
"owner": "cachix",
|
|
85
|
+
"ref": "rolling",
|
|
86
|
+
"repo": "devenv-nixpkgs",
|
|
87
|
+
"type": "github"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"root": {
|
|
91
|
+
"inputs": {
|
|
92
|
+
"devenv": "devenv",
|
|
93
|
+
"git-hooks": "git-hooks",
|
|
94
|
+
"nixpkgs": "nixpkgs",
|
|
95
|
+
"pre-commit-hooks": [
|
|
96
|
+
"git-hooks"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"root": "root",
|
|
102
|
+
"version": 7
|
|
103
|
+
}
|
data/devenv.nix
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
pkgs,
|
|
3
|
+
lib,
|
|
4
|
+
config,
|
|
5
|
+
...
|
|
6
|
+
}:
|
|
7
|
+
{
|
|
8
|
+
# https://devenv.sh/languages/
|
|
9
|
+
languages.ruby = {
|
|
10
|
+
enable = true;
|
|
11
|
+
package = pkgs.ruby;
|
|
12
|
+
bundler = {
|
|
13
|
+
enable = true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
# See full reference at https://devenv.sh/reference/options/
|
|
18
|
+
}
|
|
@@ -36,9 +36,10 @@ class MultiprotocolThriftRackApp
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
CONTENT_TYPE_ENV = 'CONTENT_TYPE'
|
|
39
|
+
private_constant :CONTENT_TYPE_ENV
|
|
39
40
|
|
|
40
41
|
def default_logger
|
|
41
|
-
Logger.new(
|
|
42
|
+
Logger.new($stderr, level: Logger::INFO)
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
def failure_response(error_message)
|
|
@@ -15,7 +15,9 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.homepage = "https://gitlab.com/c0va23/#{spec.name}"
|
|
16
16
|
spec.license = 'MIT'
|
|
17
17
|
|
|
18
|
-
spec.
|
|
18
|
+
spec.required_ruby_version = '>= 3.2.0'
|
|
19
|
+
|
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
19
21
|
f.match(%r{^(test|spec|features)/})
|
|
20
22
|
end
|
|
21
23
|
spec.bindir = 'exe'
|
|
@@ -24,12 +26,5 @@ Gem::Specification.new do |spec|
|
|
|
24
26
|
|
|
25
27
|
spec.add_dependency 'rack', '~> 2.0'
|
|
26
28
|
spec.add_dependency 'thrift', '~> 0.9'
|
|
27
|
-
|
|
28
|
-
spec.add_development_dependency 'bundler', File.read('BUNDLER_VERSION').strip
|
|
29
|
-
spec.add_development_dependency 'rake', '~> 13.0'
|
|
30
|
-
spec.add_development_dependency 'reek', '~> 5.4'
|
|
31
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
32
|
-
spec.add_development_dependency 'rubocop', '~> 0.80.1'
|
|
33
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.5.2'
|
|
34
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 1.38.1'
|
|
29
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
35
30
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multiprotocol_thrift_rack_app
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitrij Fedorenko
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rack
|
|
@@ -38,104 +37,6 @@ dependencies:
|
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '0.9'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: bundler
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - '='
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.1.4
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - '='
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.1.4
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rake
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '13.0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '13.0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: reek
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '5.4'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '5.4'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rspec
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '3.0'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '3.0'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rubocop
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - "~>"
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.80.1
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - "~>"
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.80.1
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-performance
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - "~>"
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.5.2
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - "~>"
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: 1.5.2
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: rubocop-rspec
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - "~>"
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: 1.38.1
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: 1.38.1
|
|
139
40
|
description: Ruby HTTP Thrif server with support muptiple protocols (JSON, Binary
|
|
140
41
|
and etc.)
|
|
141
42
|
email:
|
|
@@ -144,6 +45,7 @@ executables: []
|
|
|
144
45
|
extensions: []
|
|
145
46
|
extra_rdoc_files: []
|
|
146
47
|
files:
|
|
48
|
+
- ".envrc"
|
|
147
49
|
- ".gitignore"
|
|
148
50
|
- ".gitlab-ci.yml"
|
|
149
51
|
- ".reek.yml"
|
|
@@ -158,13 +60,15 @@ files:
|
|
|
158
60
|
- VERSION
|
|
159
61
|
- bin/console
|
|
160
62
|
- bin/setup
|
|
63
|
+
- devenv.lock
|
|
64
|
+
- devenv.nix
|
|
161
65
|
- lib/multiprotocol_thrift_rack_app.rb
|
|
162
66
|
- multiprotocol_thrift_rack_app.gemspec
|
|
163
67
|
homepage: https://gitlab.com/c0va23/multiprotocol_thrift_rack_app
|
|
164
68
|
licenses:
|
|
165
69
|
- MIT
|
|
166
|
-
metadata:
|
|
167
|
-
|
|
70
|
+
metadata:
|
|
71
|
+
rubygems_mfa_required: 'true'
|
|
168
72
|
rdoc_options: []
|
|
169
73
|
require_paths:
|
|
170
74
|
- lib
|
|
@@ -172,15 +76,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
172
76
|
requirements:
|
|
173
77
|
- - ">="
|
|
174
78
|
- !ruby/object:Gem::Version
|
|
175
|
-
version:
|
|
79
|
+
version: 3.2.0
|
|
176
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
81
|
requirements:
|
|
178
82
|
- - ">="
|
|
179
83
|
- !ruby/object:Gem::Version
|
|
180
84
|
version: '0'
|
|
181
85
|
requirements: []
|
|
182
|
-
rubygems_version: 3.
|
|
183
|
-
signing_key:
|
|
86
|
+
rubygems_version: 3.7.2
|
|
184
87
|
specification_version: 4
|
|
185
88
|
summary: Multiprotocol Thrift Rack app server
|
|
186
89
|
test_files: []
|