rails-rapido 0.7.1 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +371 -64
- data/.ruby-version +1 -1
- data/README.md +75 -12
- data/lib/rapido.rb +0 -8
- data/lib/rapido/api_controller.rb +63 -36
- data/lib/rapido/controller.rb +103 -101
- data/lib/rapido/version.rb +1 -1
- metadata +3 -11
- data/app/views/rapido/app/edit.slim +0 -4
- data/app/views/rapido/app/index.slim +0 -13
- data/app/views/rapido/app/new.slim +0 -5
- data/app/views/rapido/app/show.slim +0 -13
- data/lib/rapido/app_controller.rb +0 -124
- data/lib/rapido/app_record_not_found.rb +0 -12
- data/lib/rapido/auth.rb +0 -4
- data/lib/rapido/auth/api_key.rb +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c62492980ddb246461582385eb1c9fa069b025ccbd39c4ae94189d33bafc836a
|
4
|
+
data.tar.gz: 14eb7a3269938509bb01ca8517cf68398445f05b6b93c92e918516e8c7c2aabd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05e5f8e6d38877005df077ab7b767c890158ba7a0be2f48130e0e16a41e5973f1ae4f16e40291f56481c9218425b9548707f22aeab2125b543515264d12f54eb
|
7
|
+
data.tar.gz: 26916c6b6672d778eec56db5fb1b52d1a03c805655a80322de84c5c8137a7ddc606c73d8bd7ad4a432aa557f849e0be2dcb01a56276a3459d399c8663210bf93
|
data/.rubocop.yml
CHANGED
@@ -1,124 +1,431 @@
|
|
1
|
+
# Continue here: https://raw.githubusercontent.com/rubocop-hq/rubocop/master/config/default.yml
|
2
|
+
# TODO: Skipped rails or naming or style
|
3
|
+
|
1
4
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.3
|
3
|
-
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
4
|
-
# to ignore them, so only the ones explicitly set in this file are enabled.
|
5
|
-
DisabledByDefault: true
|
6
5
|
Exclude:
|
7
|
-
- '
|
8
|
-
- '
|
9
|
-
- '
|
6
|
+
- 'node_modules/**/*'
|
7
|
+
- 'vendor/**/*'
|
8
|
+
- '.git/**/*'
|
9
|
+
- 'db/**/*'
|
10
|
+
- 'lib/tasks/cucumber.rake'
|
11
|
+
- 'config/routes.rb'
|
12
|
+
- 'features/**/*'
|
13
|
+
EnabledByDefault: false
|
14
|
+
DisabledByDefault: true
|
15
|
+
|
16
|
+
require: rubocop-performance
|
17
|
+
|
18
|
+
Bundler/DuplicatedGem:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Bundler/InsecureProtocolSource:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Bundler/OrderedGems:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Gemspec/DuplicatedAssignment:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
Gemspec/OrderedDependencies:
|
31
|
+
Enabled: true
|
10
32
|
|
11
|
-
|
12
|
-
Style/AndOr:
|
33
|
+
Gemspec/RequiredRubyVersion:
|
13
34
|
Enabled: true
|
14
35
|
|
15
|
-
|
16
|
-
# method call.
|
17
|
-
Style/BracesAroundHashParameters:
|
36
|
+
Layout/BlockEndNewline:
|
18
37
|
Enabled: true
|
19
38
|
|
20
|
-
|
21
|
-
Style/CaseIndentation:
|
39
|
+
Layout/ClassStructure:
|
22
40
|
Enabled: true
|
23
41
|
|
24
|
-
|
25
|
-
Style/CommentIndentation:
|
42
|
+
Layout/ClosingParenthesisIndentation:
|
26
43
|
Enabled: true
|
27
44
|
|
28
|
-
|
29
|
-
Style/EmptyLines:
|
45
|
+
Layout/ConditionPosition:
|
30
46
|
Enabled: true
|
31
47
|
|
32
|
-
|
33
|
-
Style/EmptyLinesAroundClassBody:
|
48
|
+
Layout/DefEndAlignment:
|
34
49
|
Enabled: true
|
35
50
|
|
36
|
-
|
37
|
-
Style/EmptyLinesAroundMethodBody:
|
51
|
+
Layout/ElseAlignment:
|
38
52
|
Enabled: true
|
39
53
|
|
40
|
-
|
41
|
-
Style/EmptyLinesAroundModuleBody:
|
54
|
+
Layout/EmptyLineBetweenDefs:
|
42
55
|
Enabled: true
|
43
56
|
|
44
|
-
|
45
|
-
Style/HashSyntax:
|
57
|
+
Layout/EmptyLines:
|
46
58
|
Enabled: true
|
47
59
|
|
48
|
-
|
49
|
-
# extra level of indentation.
|
50
|
-
Style/IndentationConsistency:
|
60
|
+
Layout/EmptyLinesAroundAccessModifier:
|
51
61
|
Enabled: true
|
52
|
-
EnforcedStyle: rails
|
53
62
|
|
54
|
-
|
55
|
-
Style/IndentationWidth:
|
63
|
+
Layout/EndAlignment:
|
56
64
|
Enabled: true
|
57
65
|
|
58
|
-
|
66
|
+
Layout/EndOfLine:
|
59
67
|
Enabled: true
|
60
68
|
|
61
|
-
|
69
|
+
Layout/EmptyLinesAroundArguments:
|
62
70
|
Enabled: true
|
63
71
|
|
64
|
-
|
72
|
+
Layout/IndentationWidth:
|
65
73
|
Enabled: true
|
66
74
|
|
67
|
-
|
75
|
+
Layout/InitialIndentation:
|
68
76
|
Enabled: true
|
69
77
|
|
70
|
-
|
78
|
+
Layout/LeadingEmptyLines:
|
71
79
|
Enabled: true
|
72
80
|
|
73
|
-
|
74
|
-
|
81
|
+
Layout/SpaceAfterColon:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Layout/SpaceAfterComma:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Layout/SpaceAfterNot:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Layout/SpaceAfterSemicolon:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Layout/SpaceAroundKeyword:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Layout/SpaceBeforeComma:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Layout/SpaceInsideStringInterpolation:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
Layout/IndentationStyle:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
Layout/TrailingEmptyLines:
|
109
|
+
Enabled: true
|
110
|
+
|
111
|
+
Layout/TrailingWhitespace:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
Lint/AssignmentInCondition:
|
115
|
+
Enabled: true
|
116
|
+
|
117
|
+
Lint/BooleanSymbol:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
Lint/CircularArgumentReference:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
Lint/Debugger:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
Lint/DuplicateCaseCondition:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
Lint/DuplicateMethods:
|
130
|
+
Enabled: true
|
131
|
+
|
132
|
+
Lint/DuplicateHashKey:
|
133
|
+
Enabled: true
|
134
|
+
|
135
|
+
Lint/EachWithObjectArgument:
|
136
|
+
Enabled: true
|
137
|
+
|
138
|
+
Lint/ElseLayout:
|
139
|
+
Enabled: true
|
75
140
|
|
76
|
-
|
77
|
-
Style/MethodDefParentheses:
|
141
|
+
Lint/EmptyEnsure:
|
78
142
|
Enabled: true
|
79
143
|
|
80
|
-
|
81
|
-
Style/SpaceBeforeBlockBraces:
|
144
|
+
Lint/EmptyExpression:
|
82
145
|
Enabled: true
|
83
146
|
|
84
|
-
|
85
|
-
Style/SpaceInsideBlockBraces:
|
147
|
+
Lint/EmptyInterpolation:
|
86
148
|
Enabled: true
|
87
149
|
|
88
|
-
|
89
|
-
Style/SpaceInsideHashLiteralBraces:
|
150
|
+
Lint/EmptyWhen:
|
90
151
|
Enabled: true
|
91
152
|
|
92
|
-
|
153
|
+
Lint/EnsureReturn:
|
93
154
|
Enabled: true
|
94
155
|
|
95
|
-
|
96
|
-
Style/StringLiterals:
|
156
|
+
Lint/FloatOutOfRange:
|
97
157
|
Enabled: true
|
98
|
-
EnforcedStyle: single_quotes
|
99
158
|
|
100
|
-
|
101
|
-
Style/Tab:
|
159
|
+
Lint/FormatParameterMismatch:
|
102
160
|
Enabled: true
|
103
161
|
|
104
|
-
|
105
|
-
Style/TrailingBlankLines:
|
162
|
+
Lint/SuppressedException:
|
106
163
|
Enabled: true
|
107
164
|
|
108
|
-
|
109
|
-
Style/TrailingWhitespace:
|
165
|
+
Lint/ImplicitStringConcatenation:
|
110
166
|
Enabled: true
|
111
167
|
|
112
|
-
|
113
|
-
Style/UnneededPercentQ:
|
168
|
+
Lint/IneffectiveAccessModifier:
|
114
169
|
Enabled: true
|
115
170
|
|
116
|
-
|
117
|
-
|
118
|
-
|
171
|
+
Lint/InheritException:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
Lint/InterpolationCheck:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
Lint/LiteralAsCondition:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
Lint/LiteralInInterpolation:
|
181
|
+
Enabled: true
|
182
|
+
|
183
|
+
Lint/Loop:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
Lint/MissingCopEnableDirective:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
Lint/MultipleComparison:
|
190
|
+
Enabled: true
|
191
|
+
|
192
|
+
Lint/NestedMethodDefinition:
|
193
|
+
Enabled: true
|
194
|
+
|
195
|
+
Lint/NextWithoutAccumulator:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
Lint/NonLocalExitFromIterator:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
# This caused too much confusion.
|
202
|
+
Lint/NumberConversion:
|
203
|
+
Enabled: false
|
204
|
+
|
205
|
+
Lint/ParenthesesAsGroupedExpression:
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
Lint/PercentStringArray:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
Lint/PercentSymbolArray:
|
212
|
+
Enabled: true
|
213
|
+
|
214
|
+
Lint/RandOne:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
Lint/RedundantWithIndex:
|
218
|
+
Enabled: true
|
219
|
+
|
220
|
+
Lint/RedundantWithObject:
|
221
|
+
Enabled: true
|
222
|
+
|
223
|
+
Lint/RegexpAsCondition:
|
119
224
|
Enabled: true
|
120
|
-
EnforcedStyleAlignWith: variable
|
121
225
|
|
122
|
-
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
123
226
|
Lint/RequireParentheses:
|
124
227
|
Enabled: true
|
228
|
+
|
229
|
+
Lint/RescueException:
|
230
|
+
Enabled: true
|
231
|
+
|
232
|
+
Lint/RescueType:
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
Lint/ReturnInVoidContext:
|
236
|
+
Enabled: true
|
237
|
+
|
238
|
+
Lint/SafeNavigationChain:
|
239
|
+
Enabled: true
|
240
|
+
|
241
|
+
Lint/SafeNavigationConsistency:
|
242
|
+
Enabled: true
|
243
|
+
|
244
|
+
Lint/ShadowedArgument:
|
245
|
+
Enabled: true
|
246
|
+
|
247
|
+
Lint/ShadowedException:
|
248
|
+
Enabled: true
|
249
|
+
|
250
|
+
Lint/ShadowingOuterLocalVariable:
|
251
|
+
Enabled: true
|
252
|
+
|
253
|
+
Lint/RedundantStringCoercion:
|
254
|
+
Enabled: true
|
255
|
+
|
256
|
+
Lint/Syntax:
|
257
|
+
Enabled: true
|
258
|
+
|
259
|
+
Lint/UnderscorePrefixedVariableName:
|
260
|
+
Enabled: true
|
261
|
+
|
262
|
+
Lint/UnifiedInteger:
|
263
|
+
Enabled: true
|
264
|
+
|
265
|
+
Lint/RedundantRequireStatement:
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
Lint/RedundantSplatExpansion:
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Lint/UnreachableCode:
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
Lint/UnusedBlockArgument:
|
275
|
+
Enabled: true
|
276
|
+
|
277
|
+
Lint/UnusedMethodArgument:
|
278
|
+
Enabled: true
|
279
|
+
|
280
|
+
Lint/UselessAccessModifier:
|
281
|
+
Enabled: true
|
282
|
+
|
283
|
+
Lint/UselessAssignment:
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
287
|
+
Enabled: true
|
288
|
+
|
289
|
+
Lint/UselessElseWithoutRescue:
|
290
|
+
Enabled: true
|
291
|
+
|
292
|
+
Lint/UselessSetterCall:
|
293
|
+
Enabled: true
|
294
|
+
|
295
|
+
Lint/Void:
|
296
|
+
Enabled: true
|
297
|
+
|
298
|
+
Metrics/AbcSize:
|
299
|
+
Enabled: true
|
300
|
+
Max: 150
|
301
|
+
|
302
|
+
Metrics/BlockLength:
|
303
|
+
Enabled: true
|
304
|
+
Max: 100
|
305
|
+
|
306
|
+
Metrics/BlockNesting:
|
307
|
+
Enabled: true
|
308
|
+
Max: 3
|
309
|
+
|
310
|
+
Metrics/ClassLength:
|
311
|
+
Description: 'Avoid long classes'
|
312
|
+
Enabled: true
|
313
|
+
Max: 250
|
314
|
+
|
315
|
+
Metrics/CyclomaticComplexity:
|
316
|
+
Enabled: true
|
317
|
+
Max: 12
|
318
|
+
|
319
|
+
Layout/LineLength:
|
320
|
+
Enabled: true
|
321
|
+
Max: 200
|
322
|
+
|
323
|
+
Metrics/MethodLength:
|
324
|
+
Description: 'Avoid long methods.'
|
325
|
+
Enabled: true
|
326
|
+
Max: 30
|
327
|
+
|
328
|
+
Metrics/ModuleLength:
|
329
|
+
Description: 'Avoid long modules.'
|
330
|
+
Enabled: true
|
331
|
+
Max: 250
|
332
|
+
|
333
|
+
Metrics/ParameterLists:
|
334
|
+
Description: 'Avoid long parameter lists.'
|
335
|
+
Enabled: true
|
336
|
+
Max: 100
|
337
|
+
|
338
|
+
Metrics/PerceivedComplexity:
|
339
|
+
Enabled: true
|
340
|
+
Max: 15
|
341
|
+
|
342
|
+
Performance/Caller:
|
343
|
+
Enabled: true
|
344
|
+
|
345
|
+
Performance/Casecmp:
|
346
|
+
Enabled: true
|
347
|
+
|
348
|
+
# TODO: Re-enable
|
349
|
+
Performance/ChainArrayAllocation:
|
350
|
+
Enabled: false
|
351
|
+
|
352
|
+
Performance/CompareWithBlock:
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
Performance/Count:
|
356
|
+
Enabled: true
|
357
|
+
|
358
|
+
Performance/Detect:
|
359
|
+
Enabled: true
|
360
|
+
|
361
|
+
Performance/DoubleStartEndWith:
|
362
|
+
Enabled: true
|
363
|
+
|
364
|
+
Performance/EndWith:
|
365
|
+
Enabled: true
|
366
|
+
|
367
|
+
Performance/FixedSize:
|
368
|
+
Enabled: true
|
369
|
+
|
370
|
+
Performance/FlatMap:
|
371
|
+
Enabled: true
|
372
|
+
|
373
|
+
Performance/InefficientHashSearch:
|
374
|
+
Enabled: true
|
375
|
+
|
376
|
+
Performance/RangeInclude:
|
377
|
+
Enabled: true
|
378
|
+
|
379
|
+
Performance/RedundantBlockCall:
|
380
|
+
Enabled: true
|
381
|
+
|
382
|
+
Performance/RedundantMatch:
|
383
|
+
Enabled: true
|
384
|
+
|
385
|
+
Performance/RedundantMerge:
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
Style/RedundantSortBy:
|
389
|
+
Enabled: true
|
390
|
+
|
391
|
+
Performance/RegexpMatch:
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
Performance/ReverseEach:
|
395
|
+
Enabled: true
|
396
|
+
|
397
|
+
Style/Sample:
|
398
|
+
Enabled: true
|
399
|
+
|
400
|
+
Performance/Size:
|
401
|
+
Enabled: true
|
402
|
+
|
403
|
+
Performance/StartWith:
|
404
|
+
Enabled: true
|
405
|
+
|
406
|
+
Performance/StringReplacement:
|
407
|
+
Enabled: true
|
408
|
+
|
409
|
+
Performance/TimesMap:
|
410
|
+
Enabled: true
|
411
|
+
|
412
|
+
Performance/UnfreezeString:
|
413
|
+
Enabled: true
|
414
|
+
|
415
|
+
Style/RedundantSort:
|
416
|
+
Enabled: true
|
417
|
+
|
418
|
+
Security/Eval:
|
419
|
+
Enabled: true
|
420
|
+
|
421
|
+
Security/JSONLoad:
|
422
|
+
Enabled: true
|
423
|
+
|
424
|
+
Security/MarshalLoad:
|
425
|
+
Enabled: true
|
426
|
+
|
427
|
+
Security/Open:
|
428
|
+
Enabled: true
|
429
|
+
|
430
|
+
Security/YAMLLoad:
|
431
|
+
Enabled: true
|