rom-mongodb 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +141 -0
- data/.circleci/gemspec_compatible +39 -0
- data/.circleci/gemspec_latest +48 -0
- data/.codeclimate.yml +13 -0
- data/.github/BRANCH_NAMING_CONVENTION.md +36 -0
- data/.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md +26 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- data/.github/ISSUE_TEMPLATE/issue_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/question.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +49 -0
- data/.gitignore +11 -0
- data/.overcommit.yml +32 -0
- data/.reek.yml +16 -0
- data/.rspec +3 -0
- data/.rubocop.yml +534 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +7 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +48 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +110 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/rom/mongo/commands/create.rb +37 -0
- data/lib/rom/mongo/commands/delete.rb +33 -0
- data/lib/rom/mongo/commands/helper.rb +46 -0
- data/lib/rom/mongo/commands/update.rb +32 -0
- data/lib/rom/mongo/core.rb +20 -0
- data/lib/rom/mongo/dataset.rb +161 -0
- data/lib/rom/mongo/gateway.rb +73 -0
- data/lib/rom/mongo/relation.rb +51 -0
- data/lib/rom/mongo/schema.rb +15 -0
- data/lib/rom/mongo/version.rb +7 -0
- data/lib/rom/mongo.rb +5 -0
- data/rom-mongodb.gemspec +39 -0
- metadata +195 -0
data/.rubocop.yml
ADDED
@@ -0,0 +1,534 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rspec
|
3
|
+
- rubocop-performance
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
DisplayCopNames: true
|
7
|
+
DisplayStyleGuide: true
|
8
|
+
TargetRubyVersion: 2.5
|
9
|
+
|
10
|
+
Metrics/ClassLength:
|
11
|
+
Max: 150
|
12
|
+
|
13
|
+
Metrics/MethodLength:
|
14
|
+
Max: 15
|
15
|
+
|
16
|
+
Metrics/BlockLength:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Metrics/CyclomaticComplexity:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Metrics/PerceivedComplexity:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Naming/VariableNumber:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Naming/RescuedExceptionsVariableName:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Naming/InclusiveLanguage:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Naming/BlockForwarding:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Style/Documentation:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Style/DoubleNegation:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/EmptyCaseCondition:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/RescueStandardError:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/AccessorGrouping:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Style/ArrayCoercion:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
Style/BisectedAttrAccessor:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
Style/CaseLikeIf:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
Style/ExplicitBlockArgument:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
Style/ExponentialNotation:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
Style/GlobalStdStream:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
Style/HashAsLastArrayItem:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Style/HashEachMethods:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Style/HashLikeCase:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Style/HashTransformKeys:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Style/HashTransformValues:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Style/OptionalBooleanParameter:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
Style/RedundantAssignment:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Style/RedundantFetchBlock:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Style/RedundantFileExtensionInRequire:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Style/RedundantRegexpCharacterClass:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Style/RedundantRegexpEscape:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Style/SingleArgumentDig:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Style/SlicingWithRange:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Style/StringConcatenation:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Style/CombinableLoops:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Style/KeywordParametersOrder:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Style/RedundantSelfAssignment:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Style/SoleNestedConditional:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Style/ClassEqualityComparison:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Style/ArgumentsForwarding:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Style/CollectionCompact:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Style/DocumentDynamicEvalDefinition:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
Style/NegatedIfElseCondition:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
Style/NilLambda:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
Style/SwapValues:
|
143
|
+
Enabled: true
|
144
|
+
|
145
|
+
Style/RedundantArgument:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
Style/HashExcept:
|
149
|
+
Enabled: true
|
150
|
+
|
151
|
+
Style/EndlessMethod:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
Style/IfWithBooleanLiteralBranches:
|
155
|
+
Enabled: true
|
156
|
+
|
157
|
+
Style/HashConversion:
|
158
|
+
Enabled: true
|
159
|
+
|
160
|
+
Style/StringChars:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
Style/InPatternThen:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
Style/MultilineInPatternThen:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
Style/QuotedSymbols:
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
Style/RedundantSelfAssignmentBranch:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
Style/NumberedParameters:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Style/NumberedParametersLimit:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
Style/SelectByRegexp:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
Style/OpenStructUse:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
Style/FileRead:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Style/FileWrite:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Style/MapToHash:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
Style/FetchEnvVar:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
Style/NestedFileDirname:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Style/ObjectThen:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Style/RedundantInitialize:
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
Style/EnvHome:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
Style/MapCompactWithConditionalBlock:
|
212
|
+
Enabled: true
|
213
|
+
|
214
|
+
Layout/LineLength:
|
215
|
+
Max: 140
|
216
|
+
|
217
|
+
Layout/ClassStructure:
|
218
|
+
Enabled: true
|
219
|
+
Categories:
|
220
|
+
module_inclusion:
|
221
|
+
- include
|
222
|
+
- prepend
|
223
|
+
- extend
|
224
|
+
ExpectedOrder:
|
225
|
+
- module_inclusion
|
226
|
+
- constants
|
227
|
+
- public_class_methods
|
228
|
+
- initializer
|
229
|
+
- public_methods
|
230
|
+
- protected_methods
|
231
|
+
- private_methods
|
232
|
+
|
233
|
+
Layout/EmptyLineAfterGuardClause:
|
234
|
+
Enabled: false
|
235
|
+
|
236
|
+
Layout/SpaceAroundMethodCallOperator:
|
237
|
+
Enabled: true
|
238
|
+
|
239
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
240
|
+
Enabled: true
|
241
|
+
|
242
|
+
Layout/BeginEndAlignment:
|
243
|
+
Enabled: true
|
244
|
+
|
245
|
+
Layout/SpaceBeforeBrackets:
|
246
|
+
Enabled: true
|
247
|
+
|
248
|
+
Layout/LineEndStringConcatenationIndentation:
|
249
|
+
Enabled: true
|
250
|
+
|
251
|
+
Layout/LineContinuationLeadingSpace:
|
252
|
+
Enabled: true
|
253
|
+
|
254
|
+
Layout/LineContinuationSpacing:
|
255
|
+
Enabled: true
|
256
|
+
|
257
|
+
Lint/NonDeterministicRequireOrder:
|
258
|
+
Enabled: false
|
259
|
+
|
260
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
Lint/DeprecatedOpenSSLConstant:
|
264
|
+
Enabled: true
|
265
|
+
|
266
|
+
Lint/DuplicateElsifCondition:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Lint/DuplicateRescueException:
|
270
|
+
Enabled: true
|
271
|
+
|
272
|
+
Lint/EmptyConditionalBody:
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
Lint/FloatComparison:
|
276
|
+
Enabled: true
|
277
|
+
|
278
|
+
Lint/MissingSuper:
|
279
|
+
Enabled: false
|
280
|
+
|
281
|
+
Lint/MixedRegexpCaptureTypes:
|
282
|
+
Enabled: true
|
283
|
+
|
284
|
+
Lint/OutOfRangeRegexpRef:
|
285
|
+
Enabled: true
|
286
|
+
|
287
|
+
Lint/RaiseException:
|
288
|
+
Enabled: true
|
289
|
+
|
290
|
+
Lint/SelfAssignment:
|
291
|
+
Enabled: true
|
292
|
+
|
293
|
+
Lint/StructNewOverride:
|
294
|
+
Enabled: true
|
295
|
+
|
296
|
+
Lint/TopLevelReturnWithArgument:
|
297
|
+
Enabled: true
|
298
|
+
|
299
|
+
Lint/UnreachableLoop:
|
300
|
+
Enabled: true
|
301
|
+
|
302
|
+
Lint/ConstantDefinitionInBlock:
|
303
|
+
Enabled: true
|
304
|
+
|
305
|
+
Lint/DuplicateRequire:
|
306
|
+
Enabled: true
|
307
|
+
|
308
|
+
Lint/EmptyFile:
|
309
|
+
Enabled: true
|
310
|
+
|
311
|
+
Lint/IdentityComparison:
|
312
|
+
Enabled: true
|
313
|
+
|
314
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
315
|
+
Enabled: true
|
316
|
+
|
317
|
+
Lint/UselessMethodDefinition:
|
318
|
+
Enabled: true
|
319
|
+
|
320
|
+
Lint/UselessTimes:
|
321
|
+
Enabled: true
|
322
|
+
|
323
|
+
Lint/HashCompareByIdentity:
|
324
|
+
Enabled: true
|
325
|
+
|
326
|
+
Lint/RedundantSafeNavigation:
|
327
|
+
Enabled: true
|
328
|
+
|
329
|
+
Lint/DuplicateBranch:
|
330
|
+
Enabled: true
|
331
|
+
|
332
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
333
|
+
Enabled: true
|
334
|
+
|
335
|
+
Lint/EmptyBlock:
|
336
|
+
Enabled: true
|
337
|
+
|
338
|
+
Lint/EmptyClass:
|
339
|
+
Enabled: true
|
340
|
+
|
341
|
+
Lint/NoReturnInBeginEndBlocks:
|
342
|
+
Enabled: false
|
343
|
+
|
344
|
+
Lint/ToEnumArguments:
|
345
|
+
Enabled: true
|
346
|
+
|
347
|
+
Lint/UnmodifiedReduceAccumulator:
|
348
|
+
Enabled: true
|
349
|
+
|
350
|
+
Lint/UnexpectedBlockArity:
|
351
|
+
Enabled: true
|
352
|
+
|
353
|
+
Lint/AmbiguousAssignment:
|
354
|
+
Enabled: true
|
355
|
+
|
356
|
+
Lint/DeprecatedConstants:
|
357
|
+
Enabled: true
|
358
|
+
|
359
|
+
Lint/LambdaWithoutLiteralBlock:
|
360
|
+
Enabled: true
|
361
|
+
|
362
|
+
Lint/RedundantDirGlobSort:
|
363
|
+
Enabled: true
|
364
|
+
|
365
|
+
Lint/NumberedParameterAssignment:
|
366
|
+
Enabled: true
|
367
|
+
|
368
|
+
Lint/OrAssignmentToConstant:
|
369
|
+
Enabled: true
|
370
|
+
|
371
|
+
Lint/SymbolConversion:
|
372
|
+
Enabled: true
|
373
|
+
|
374
|
+
Lint/TripleQuotes:
|
375
|
+
Enabled: true
|
376
|
+
|
377
|
+
Lint/EmptyInPattern:
|
378
|
+
Enabled: true
|
379
|
+
|
380
|
+
Lint/AmbiguousRange:
|
381
|
+
Enabled: true
|
382
|
+
|
383
|
+
Lint/AmbiguousOperatorPrecedence:
|
384
|
+
Enabled: true
|
385
|
+
|
386
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
387
|
+
Enabled: true
|
388
|
+
|
389
|
+
Lint/RequireRelativeSelfPath:
|
390
|
+
Enabled: true
|
391
|
+
|
392
|
+
Lint/UselessRuby2Keywords:
|
393
|
+
Enabled: true
|
394
|
+
|
395
|
+
Lint/RefinementImportMethods:
|
396
|
+
Enabled: true
|
397
|
+
|
398
|
+
Lint/ConstantOverwrittenInRescue:
|
399
|
+
Enabled: true
|
400
|
+
|
401
|
+
Lint/NonAtomicFileOperation:
|
402
|
+
Enabled: true
|
403
|
+
|
404
|
+
Gemspec/DeprecatedAttributeAssignment:
|
405
|
+
Enabled: true
|
406
|
+
|
407
|
+
Gemspec/RequireMFA:
|
408
|
+
Enabled: false
|
409
|
+
|
410
|
+
Gemspec/RubyVersionGlobalsUsage:
|
411
|
+
Enabled: false
|
412
|
+
|
413
|
+
Gemspec/DeprecatedAttributeAssignment:
|
414
|
+
Enabled: true
|
415
|
+
|
416
|
+
Security/IoMethods:
|
417
|
+
Enabled: true
|
418
|
+
|
419
|
+
Security/CompoundHash:
|
420
|
+
Enabled: true
|
421
|
+
|
422
|
+
Performance/AncestorsInclude:
|
423
|
+
Enabled: true
|
424
|
+
|
425
|
+
Performance/BigDecimalWithNumericArgument:
|
426
|
+
Enabled: true
|
427
|
+
|
428
|
+
Performance/RedundantSortBlock:
|
429
|
+
Enabled: true
|
430
|
+
|
431
|
+
Performance/RedundantStringChars:
|
432
|
+
Enabled: true
|
433
|
+
|
434
|
+
Performance/ReverseFirst:
|
435
|
+
Enabled: true
|
436
|
+
|
437
|
+
Performance/SortReverse:
|
438
|
+
Enabled: true
|
439
|
+
|
440
|
+
Performance/Squeeze:
|
441
|
+
Enabled: true
|
442
|
+
|
443
|
+
Performance/StringInclude:
|
444
|
+
Enabled: true
|
445
|
+
|
446
|
+
Performance/Sum:
|
447
|
+
Enabled: true
|
448
|
+
|
449
|
+
Performance/BlockGivenWithExplicitBlock:
|
450
|
+
Enabled: true
|
451
|
+
|
452
|
+
Performance/CollectionLiteralInLoop:
|
453
|
+
Enabled: true
|
454
|
+
|
455
|
+
Performance/ConstantRegexp:
|
456
|
+
Enabled: true
|
457
|
+
|
458
|
+
Performance/MethodObjectAsBlock:
|
459
|
+
Enabled: true
|
460
|
+
|
461
|
+
Performance/RedundantEqualityComparisonBlock:
|
462
|
+
Enabled: true
|
463
|
+
|
464
|
+
Performance/RedundantSplitRegexpArgument:
|
465
|
+
Enabled: true
|
466
|
+
|
467
|
+
Performance/MapCompact:
|
468
|
+
Enabled: true
|
469
|
+
|
470
|
+
Performance/ConcurrentMonotonicTime:
|
471
|
+
Enabled: true
|
472
|
+
|
473
|
+
Performance/StringIdentifierArgument:
|
474
|
+
Enabled: true
|
475
|
+
|
476
|
+
RSpec/ExampleLength:
|
477
|
+
Enabled: false
|
478
|
+
|
479
|
+
RSpec/NestedGroups:
|
480
|
+
Enabled: false
|
481
|
+
|
482
|
+
RSpec/MultipleExpectations:
|
483
|
+
Enabled: false
|
484
|
+
|
485
|
+
RSpec/MessageChain:
|
486
|
+
Enabled: false
|
487
|
+
|
488
|
+
RSpec/ContextWording:
|
489
|
+
Enabled: false
|
490
|
+
|
491
|
+
RSpec/AnyInstance:
|
492
|
+
Enabled: false
|
493
|
+
|
494
|
+
RSpec/MessageSpies:
|
495
|
+
Enabled: false
|
496
|
+
|
497
|
+
RSpec/MultipleDescribes:
|
498
|
+
Enabled: false
|
499
|
+
|
500
|
+
RSpec/MultipleMemoizedHelpers:
|
501
|
+
Enabled: false
|
502
|
+
|
503
|
+
RSpec/StubbedMock:
|
504
|
+
Enabled: false
|
505
|
+
|
506
|
+
RSpec/IdenticalEqualityAssertion:
|
507
|
+
Enabled: true
|
508
|
+
|
509
|
+
RSpec/Rails/AvoidSetupHook:
|
510
|
+
Enabled: true
|
511
|
+
|
512
|
+
RSpec/ExcessiveDocstringSpacing:
|
513
|
+
Enabled: true
|
514
|
+
|
515
|
+
RSpec/SubjectDeclaration:
|
516
|
+
Enabled: true
|
517
|
+
|
518
|
+
RSpec/FactoryBot/SyntaxMethods:
|
519
|
+
Enabled: true
|
520
|
+
|
521
|
+
RSpec/SubjectStub:
|
522
|
+
Enabled: false
|
523
|
+
|
524
|
+
RSpec/BeEq:
|
525
|
+
Enabled: true
|
526
|
+
|
527
|
+
RSpec/BeNil:
|
528
|
+
Enabled: true
|
529
|
+
|
530
|
+
RSpec/VerifiedDoubleReference:
|
531
|
+
Enabled: false
|
532
|
+
|
533
|
+
RSpec/ChangeByZero:
|
534
|
+
Enabled: true
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rom-mongodb
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.5.0
|
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 admin@bestweb.com.ua. 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/CONTRIBUTING.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# Contributing to rom-mongodb
|
2
|
+
|
3
|
+
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
|
4
|
+
|
5
|
+
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
|
6
|
+
|
7
|
+
## Using the issue tracker
|
8
|
+
|
9
|
+
The issue tracker is the preferred channel for [issue/bug reports](#issuebug-reports), [feature requests](#feature-requests), [questions](#questions) and submitting [pull requests](#pull-requests).
|
10
|
+
|
11
|
+
## Issue/bug reports
|
12
|
+
|
13
|
+
A bug is a _demonstrable problem_ that is caused by the code in the repository. Good bug reports are extremely helpful - thank you!
|
14
|
+
|
15
|
+
Guidelines for issue/bug reports:
|
16
|
+
|
17
|
+
1. **Use the GitHub issue search** — check if the issue has already been reported
|
18
|
+
2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or `develop` branch in the repository
|
19
|
+
3. rom-mongodb [issue template](.github/ISSUE_TEMPLATE/issue_report.md)/[bug template](.github/ISSUE_TEMPLATE/bug_report.md)
|
20
|
+
|
21
|
+
A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What would you expect to be the outcome? All these details will help people to fix any potential bugs.
|
22
|
+
|
23
|
+
## Feature requests
|
24
|
+
|
25
|
+
Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
|
26
|
+
|
27
|
+
## Questions
|
28
|
+
|
29
|
+
We're always open to a new conversations. So if you have any questions just ask us.
|
30
|
+
|
31
|
+
## Pull requests
|
32
|
+
|
33
|
+
Good pull requests - patches, improvements, new features - are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
|
34
|
+
|
35
|
+
**Please ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
|
36
|
+
|
37
|
+
Please adhere to the coding conventions used throughout a project (indentation, accurate comments, etc.) and any other requirements (such as test coverage). Not all features proposed will be added but we are open to having a conversation about a feature you are championing.
|
38
|
+
|
39
|
+
Guidelines for pull requests:
|
40
|
+
|
41
|
+
1. rom-mongodb [pull request template](.github/PULL_REQUEST_TEMPLATE.md)
|
42
|
+
2. Fork the repo, checkout to `develop` branch
|
43
|
+
3. Run the tests. This is to make sure your starting point works
|
44
|
+
4. Read our [branch naming convention](.github/BRANCH_NAMING_CONVENTION.md)
|
45
|
+
5. Create a new branch
|
46
|
+
6. Read our [setup development environment guide](.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md)
|
47
|
+
7. Make your changes. Please note that your PR should include tests for the new codebase!
|
48
|
+
8. Push to your fork and submit a pull request to `develop` branch
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Vladislav Trotsenko
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|