protod 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 24a4f1bc910122dfd2eb29b4fbaa0a61a011299e0a431565c35a0647ddf1e14d
4
+ data.tar.gz: be25d6260b71813bdf2ed53479fe9f8c210d637221aa87d7d30f01e476fef9a4
5
+ SHA512:
6
+ metadata.gz: d8a80cae4a32f6e961ed864113e7faddeaaa1286fb661dd3744fa823fca8089be047da998eceac772a95f3eba89b8b50ea5a613bcf45e2f251be7ee21f5f13d5
7
+ data.tar.gz: 576c2db5ef383705b166e144a90d38b2e777954d23fea3ac2a6b03d7b571ee36190b1b67a859a79b7e51961db158972f9e9ae6dcd758dceacb2aad4b37544f6c
data/.bundle/config ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ BUNDLE_GEM__TEST: "rspec"
3
+ BUNDLE_GEM__CI: "github"
4
+ BUNDLE_GEM__MIT: "true"
5
+ BUNDLE_GEM__COC: "true"
6
+ BUNDLE_GEM__CHANGELOG: "false"
7
+ BUNDLE_GEM__LINTER: "rubocop"
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,585 @@
1
+ require:
2
+ - rubocop-rubycw
3
+ - rubocop-rake
4
+ - rubocop-rspec
5
+ - rubocop-rails
6
+ - rubocop-performance
7
+
8
+ AllCops:
9
+ NewCops: enable
10
+ TargetRubyVersion: 3.1
11
+ DisplayCopNames: true
12
+ CacheRootDirectory: tmp/cache/rubocop
13
+
14
+ Bundler:
15
+ Enabled: false
16
+
17
+ Rails:
18
+ Enabled: false
19
+
20
+ Naming:
21
+ Enabled: false
22
+
23
+ Metrics/BlockNesting:
24
+ Enabled: false
25
+
26
+ Metrics/ClassLength:
27
+ Enabled: false
28
+
29
+ Layout/LineLength:
30
+ Enabled: false
31
+
32
+ Metrics/MethodLength:
33
+ Enabled: false
34
+
35
+ Metrics/BlockLength:
36
+ Enabled: false
37
+
38
+ Metrics/ModuleLength:
39
+ Enabled: false
40
+
41
+ Style/AsciiComments:
42
+ Enabled: false
43
+
44
+ Style/IfUnlessModifier:
45
+ Enabled: false
46
+
47
+ Style/Documentation:
48
+ Enabled: false
49
+
50
+ Style/DocumentationMethod:
51
+ Enabled: true
52
+
53
+ Style/ArrayIntersect:
54
+ Enabled: true
55
+
56
+ Style/BlockDelimiters:
57
+ Enabled: false
58
+
59
+ Style/DoubleNegation:
60
+ Enabled: false
61
+
62
+ Style/GuardClause:
63
+ Enabled: false
64
+
65
+ Style/SpecialGlobalVars:
66
+ Enabled: false
67
+
68
+ Style/MapToSet:
69
+ Enabled: true
70
+
71
+ Style/MinMaxComparison:
72
+ Enabled: true
73
+
74
+ Style/NumericPredicate:
75
+ Enabled: false
76
+
77
+ Style/Lambda:
78
+ Enabled: false
79
+
80
+ Style/HashEachMethods:
81
+ Enabled: true
82
+
83
+ Style/HashTransformKeys:
84
+ Enabled: true
85
+
86
+ Style/HashTransformValues:
87
+ Enabled: true
88
+
89
+ Style/ExponentialNotation:
90
+ Enabled: true
91
+
92
+ Style/SlicingWithRange:
93
+ Enabled: true
94
+
95
+ Style/YodaCondition:
96
+ Enabled: false
97
+
98
+ Style/YodaExpression:
99
+ Enabled: false
100
+
101
+ Style/AccessorGrouping:
102
+ Enabled: false
103
+
104
+ Style/ArrayCoercion:
105
+ Enabled: true
106
+
107
+ Style/BisectedAttrAccessor:
108
+ Enabled: true
109
+
110
+ Style/CaseLikeIf:
111
+ Enabled: true
112
+
113
+ Style/ExactRegexpMatch:
114
+ Enabled: true
115
+
116
+ Style/ExplicitBlockArgument:
117
+ Enabled: false
118
+
119
+ Style/GlobalStdStream:
120
+ Enabled: true
121
+
122
+ Style/HashAsLastArrayItem:
123
+ Enabled: false
124
+
125
+ Style/HashLikeCase:
126
+ Enabled: false
127
+
128
+ Style/OptionalBooleanParameter:
129
+ Enabled: false
130
+
131
+ Style/RedundantAssignment:
132
+ Enabled: true
133
+
134
+ Style/RedundantConstantBase:
135
+ Enabled: true
136
+
137
+ Style/RedundantFetchBlock:
138
+ Enabled: true
139
+
140
+ Style/RedundantSelfAssignmentBranch:
141
+ Enabled: true
142
+
143
+ Style/RedundantFileExtensionInRequire:
144
+ Enabled: false
145
+
146
+ Style/RedundantRegexpCharacterClass:
147
+ Enabled: false
148
+
149
+ Style/RedundantRegexpEscape:
150
+ Enabled: false
151
+
152
+ Style/SingleArgumentDig:
153
+ Enabled: false
154
+
155
+ Style/StringConcatenation:
156
+ Enabled: true
157
+
158
+ Layout/ParameterAlignment:
159
+ EnforcedStyle: with_fixed_indentation
160
+
161
+ Layout/ArgumentAlignment:
162
+ EnforcedStyle: with_fixed_indentation
163
+
164
+ Layout/LineContinuationLeadingSpace:
165
+ Enabled: true
166
+
167
+ Layout/LineContinuationSpacing:
168
+ Enabled: true
169
+
170
+ Layout/MultilineMethodCallIndentation:
171
+ EnforcedStyle: indented
172
+
173
+ Layout/EmptyLinesAroundAttributeAccessor:
174
+ Enabled: true
175
+
176
+ Layout/SpaceAroundMethodCallOperator:
177
+ Enabled: true
178
+
179
+ Lint/AmbiguousRegexpLiteral:
180
+ Enabled: false
181
+
182
+ Lint/AmbiguousRange:
183
+ Enabled: true
184
+
185
+ Lint/ConstantOverwrittenInRescue:
186
+ Enabled: true
187
+
188
+ Lint/DisjunctiveAssignmentInConstructor:
189
+ Enabled: false
190
+
191
+ Lint/RaiseException:
192
+ Enabled: true
193
+
194
+ Lint/StructNewOverride:
195
+ Enabled: true
196
+
197
+ Lint/BinaryOperatorWithIdenticalOperands:
198
+ Enabled: true
199
+
200
+ Lint/DeprecatedOpenSSLConstant:
201
+ Enabled: true
202
+
203
+ Lint/DuplicateElsifCondition:
204
+ Enabled: true
205
+
206
+ Lint/DuplicateRescueException:
207
+ Enabled: true
208
+
209
+ Lint/EmptyConditionalBody:
210
+ Enabled: true
211
+
212
+ Lint/FloatComparison:
213
+ Enabled: true
214
+
215
+ Lint/NonAtomicFileOperation:
216
+ Enabled: true
217
+
218
+ Lint/MissingSuper:
219
+ Enabled: true
220
+
221
+ Lint/MixedRegexpCaptureTypes:
222
+ Enabled: true
223
+
224
+ Lint/OutOfRangeRegexpRef:
225
+ Enabled: true
226
+
227
+ Lint/SelfAssignment:
228
+ Enabled: true
229
+
230
+ Lint/TopLevelReturnWithArgument:
231
+ Enabled: true
232
+
233
+ Lint/UnreachableLoop:
234
+ Enabled: true
235
+
236
+ Metrics/AbcSize:
237
+ Enabled: false
238
+
239
+ Metrics/CyclomaticComplexity:
240
+ Max: 10
241
+
242
+ Metrics/PerceivedComplexity:
243
+ Max: 10
244
+
245
+ Lint/UselessAccessModifier:
246
+ ContextCreatingMethods:
247
+ - concerning
248
+
249
+ Layout/BeginEndAlignment:
250
+ Enabled: true
251
+
252
+ Lint/ConstantDefinitionInBlock:
253
+ Enabled: true
254
+ Exclude:
255
+ - 'spec/**/*'
256
+
257
+ Lint/DuplicateMagicComment:
258
+ Enabled: true
259
+
260
+ Lint/DuplicateRequire:
261
+ Enabled: true
262
+
263
+ Lint/EmptyFile:
264
+ Enabled: true
265
+
266
+ Lint/HashCompareByIdentity:
267
+ Enabled: true
268
+
269
+ Lint/IdentityComparison:
270
+ Enabled: true
271
+
272
+ Lint/RedundantSafeNavigation:
273
+ Enabled: true
274
+
275
+ Lint/TrailingCommaInAttributeDeclaration:
276
+ Enabled: true
277
+
278
+ Lint/UselessMethodDefinition:
279
+ Enabled: true
280
+
281
+ Lint/UselessTimes:
282
+ Enabled: true
283
+
284
+ Style/ClassEqualityComparison:
285
+ Enabled: true
286
+
287
+ Style/CombinableLoops:
288
+ Enabled: true
289
+
290
+ Style/ComparableClamp:
291
+ Enabled: true
292
+
293
+ Style/KeywordParametersOrder:
294
+ Enabled: true
295
+
296
+ Style/OperatorMethodCall:
297
+ Enabled: true
298
+
299
+ Style/RedundantHeredocDelimiterQuotes:
300
+ Enabled: true
301
+
302
+ Style/RedundantSelfAssignment:
303
+ Enabled: true
304
+
305
+ Style/RedundantStringEscape:
306
+ Enabled: true
307
+
308
+ Style/SoleNestedConditional:
309
+ Enabled: true
310
+
311
+ Lint/DuplicateRegexpCharacterClassElement:
312
+ Enabled: true
313
+
314
+ Lint/EmptyBlock:
315
+ Enabled: false
316
+
317
+ Lint/NoReturnInBeginEndBlocks:
318
+ Enabled: true
319
+
320
+ Lint/ToEnumArguments:
321
+ Enabled: true
322
+
323
+ Lint/UnmodifiedReduceAccumulator:
324
+ Enabled: true
325
+
326
+ Style/ArgumentsForwarding:
327
+ Enabled: true
328
+
329
+ Style/CollectionCompact:
330
+ Enabled: true
331
+
332
+ Style/DocumentDynamicEvalDefinition:
333
+ Enabled: true
334
+
335
+ Style/NegatedIfElseCondition:
336
+ Enabled: true
337
+
338
+ Style/SwapValues:
339
+ Enabled: true
340
+
341
+ Lint/DuplicateBranch:
342
+ Enabled: false
343
+
344
+ Lint/EmptyClass:
345
+ Enabled: true
346
+
347
+ Style/NilLambda:
348
+ Enabled: true
349
+
350
+ Style/RedundantArgument:
351
+ Enabled: true
352
+
353
+ Lint/UnexpectedBlockArity:
354
+ Enabled: true
355
+
356
+ Layout/SpaceBeforeBrackets:
357
+ Enabled: true
358
+
359
+ Lint/AmbiguousAssignment:
360
+ Enabled: true
361
+
362
+ Style/HashExcept:
363
+ Enabled: true
364
+
365
+ Lint/DeprecatedConstants:
366
+ Enabled: true
367
+
368
+ Lint/LambdaWithoutLiteralBlock:
369
+ Enabled: true
370
+
371
+ Lint/RedundantDirGlobSort:
372
+ Enabled: true
373
+
374
+ Lint/RefinementImportMethods:
375
+ Enabled: true
376
+
377
+ Style/EndlessMethod:
378
+ Enabled: true
379
+
380
+ Style/TernaryParentheses:
381
+ Enabled: true
382
+
383
+ Lint/NumberedParameterAssignment:
384
+ Enabled: true
385
+
386
+ Lint/OrAssignmentToConstant:
387
+ Enabled: true
388
+
389
+ Lint/SymbolConversion:
390
+ Enabled: true
391
+
392
+ Lint/TripleQuotes:
393
+ Enabled: true
394
+
395
+ Style/IfWithBooleanLiteralBranches:
396
+ Enabled: true
397
+
398
+ Style/HashConversion:
399
+ Enabled: true
400
+
401
+ Rails/Date:
402
+ Enabled: true
403
+
404
+ Style/StringChars:
405
+ Enabled: true
406
+
407
+ Style/TopLevelMethodDefinition:
408
+ Enabled: false
409
+
410
+ Lint/EmptyInPattern:
411
+ Enabled: true
412
+
413
+ Style/InPatternThen:
414
+ Enabled: true
415
+
416
+ Style/MultilineInPatternThen:
417
+ Enabled: true
418
+
419
+ Style/QuotedSymbols:
420
+ Enabled: true
421
+
422
+ Layout/LineEndStringConcatenationIndentation:
423
+ Enabled: true
424
+
425
+ Lint/AmbiguousOperatorPrecedence:
426
+ Enabled: true
427
+
428
+ Lint/IncompatibleIoSelectWithFiberScheduler:
429
+ Enabled: true
430
+
431
+ Lint/RequireRelativeSelfPath:
432
+ Enabled: true
433
+
434
+ Security/IoMethods:
435
+ Enabled: true
436
+
437
+ Style/NestedFileDirname:
438
+ Enabled: true
439
+
440
+ Style/NumberedParameters:
441
+ Enabled: false
442
+
443
+ Style/NumberedParametersLimit:
444
+ Enabled: true
445
+
446
+ Style/SelectByRegexp:
447
+ Enabled: true
448
+
449
+ Gemspec/RequireMFA:
450
+ Enabled: true
451
+
452
+ Lint/UselessRuby2Keywords:
453
+ Enabled: true
454
+
455
+ Style/OpenStructUse:
456
+ Enabled: false
457
+
458
+ Style/FileRead:
459
+ Enabled: true
460
+
461
+ Style/FileWrite:
462
+ Enabled: true
463
+
464
+ Style/MapToHash:
465
+ Enabled: true
466
+
467
+ Style/RedundantInitialize:
468
+ Enabled: true
469
+
470
+ Security/CompoundHash:
471
+ Enabled: true
472
+
473
+ Style/FetchEnvVar:
474
+ Enabled: true
475
+
476
+ Style/ObjectThen:
477
+ Enabled: true
478
+
479
+ Style/EnvHome:
480
+ Enabled: true
481
+
482
+ Style/RedundantCondition:
483
+ Enabled: false
484
+
485
+ Gemspec/DeprecatedAttributeAssignment:
486
+ Enabled: true
487
+
488
+ Gemspec/DevelopmentDependencies:
489
+ Enabled: true
490
+
491
+ Style/MapCompactWithConditionalBlock:
492
+ Enabled: true
493
+
494
+ Lint/RequireRangeParentheses:
495
+ Enabled: true
496
+
497
+ Style/EmptyHeredoc:
498
+ Enabled: true
499
+
500
+ Style/MagicCommentFormat:
501
+ Enabled: true
502
+
503
+ Style/HashSyntax:
504
+ Enabled: false
505
+
506
+ Style/RedundantEach:
507
+ Enabled: true
508
+
509
+ Style/ConcatArrayLiterals:
510
+ Enabled: true
511
+
512
+ Style/RedundantDoubleSplatHashBraces:
513
+ Enabled: true
514
+
515
+ Lint/UselessRescue:
516
+ Enabled: true
517
+
518
+ Metrics/CollectionLiteralLength:
519
+ Enabled: true
520
+
521
+ Style/DirEmpty:
522
+ Enabled: true
523
+
524
+ Style/FileEmpty:
525
+ Enabled: true
526
+
527
+ Style/DataInheritance:
528
+ Enabled: true
529
+
530
+ Style/RedundantLineContinuation:
531
+ Enabled: true
532
+
533
+ Style/TrailingCommaInArrayLiteral:
534
+ Enabled: false
535
+
536
+ Lint/DuplicateMatchPattern:
537
+ Enabled: true
538
+
539
+ Style/RedundantArrayConstructor:
540
+ Enabled: true
541
+
542
+ Style/RedundantFilterChain:
543
+ Enabled: true
544
+
545
+ Style/RedundantRegexpConstructor:
546
+ Enabled: true
547
+
548
+ Style/StringLiterals:
549
+ Enabled: false
550
+
551
+ RSpec/NamedSubject:
552
+ Enabled: false
553
+
554
+ RSpec/EmptyLineAfterSubject:
555
+ Enabled: false
556
+
557
+ RSpec/EmptyLineAfterHook:
558
+ Enabled: false
559
+
560
+ RSpec/EmptyLineAfterExampleGroup:
561
+ Enabled: false
562
+
563
+ RSpec/SharedExamples:
564
+ Enabled: false
565
+
566
+ RSpec/ContextWording:
567
+ Enabled: false
568
+
569
+ RSpec/NestedGroups:
570
+ Enabled: false
571
+
572
+ RSpec/ExpectChange:
573
+ Enabled: false
574
+
575
+ RSpec/ScatteredLet:
576
+ Enabled: false
577
+
578
+ RSpec/ImplicitSubject:
579
+ Enabled: false
580
+
581
+ RSpec/MultipleDescribes:
582
+ Enabled: false
583
+
584
+ RSpec/MultipleMemoizedHelpers:
585
+ Enabled: false
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at TODO: Write your email address. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ gem 'rake'
8
+ gem 'rails'
9
+ gem 'pry-byebug'
10
+ gem 'pry-doc'
11
+ gem 'rspec'
12
+ gem 'rspec-parameterized'
13
+ gem 'shoulda-matchers'
14
+ gem 'faker'
15
+ gem 'factory_bot'
16
+ gem 'rubocop'
17
+ gem 'rubocop-rubycw'
18
+ gem 'rubocop-rake'
19
+ gem 'rubocop-rspec'
20
+ gem 'rubocop-rails'
21
+ gem 'rubocop-performance'