tempo-ruby 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: 4bb360a4a6c913b54142b65f02a3e6aa8648be60d5fd03e54b049be0796ce08e
4
+ data.tar.gz: 264d2140eb0b8271bae04f80d822b3773b906cc02173d8e75886bf761b3d391f
5
+ SHA512:
6
+ metadata.gz: c1164b1b9da237a5b87546f157f35d55716f9ff153ce196055e6290447452e39514e19d1ed099fcc03b51a2debfaff97898158c615040288487743645ce79718
7
+ data.tar.gz: b69ac725c514f9b651eb33394abc50f0f44f4573bff60d7fbbc112c8e4d361c9bf1a2bcb8d77332a445d25d14a3ee3420060507ad0f0bd1926208faa1fdfb937
@@ -0,0 +1,104 @@
1
+ version: 2.1
2
+
3
+ defaults: &defaults
4
+ working_directory: ~/tempo-ruby
5
+ docker:
6
+ - image: cimg/ruby:<< parameters.ruby-version >>
7
+
8
+ orbs:
9
+ ruby: circleci/ruby@1.2.0
10
+
11
+ references:
12
+ restore_bundle_cache: &restore_bundle_cache
13
+ restore_cache:
14
+ keys:
15
+ - ruby-smtp-mock-{{ checksum "tempo-ruby.gemspec" }}
16
+
17
+ bundle_install: &bundle_install
18
+ run:
19
+ name: Installing gems
20
+ command: |
21
+ bundle config set --local path 'vendor/bundle'
22
+ bundle install
23
+ save_bundle_cache: &save_bundle_cache
24
+ save_cache:
25
+ key: ruby-smtp-mock-{{ checksum "tempo-ruby.gemspec" }}
26
+ paths:
27
+ - vendor/bundle
28
+
29
+ jobs:
30
+ linters-ruby:
31
+ parameters:
32
+ ruby-version:
33
+ type: string
34
+
35
+ <<: *defaults
36
+ steps:
37
+ - checkout
38
+
39
+ - <<: *restore_bundle_cache
40
+ - <<: *bundle_install
41
+ - <<: *save_bundle_cache
42
+
43
+ - run:
44
+ name: Running Overcommit
45
+ command: |
46
+ bundle exec overcommit -s
47
+ SKIP=AuthorEmail,AuthorName bundle exec overcommit -r
48
+
49
+ tests-ruby:
50
+ parameters:
51
+ ruby-version:
52
+ type: string
53
+
54
+ <<: *defaults
55
+
56
+ steps:
57
+ - checkout
58
+
59
+ - <<: *restore_bundle_cache
60
+ - <<: *bundle_install
61
+ - <<: *save_bundle_cache
62
+
63
+ - run:
64
+ name: Running RSpec
65
+ command: bundle exec rspec
66
+
67
+ - store_artifacts:
68
+ name: Saving Simplecov coverage artifacts
69
+ path: ~/ruby-smtp-mock/coverage
70
+ destination: coverage
71
+
72
+ compatibility-ruby:
73
+ parameters:
74
+ ruby-version:
75
+ type: string
76
+
77
+ docker:
78
+ - image: cimg/ruby:<< parameters.ruby-version >>
79
+
80
+ steps:
81
+ - checkout
82
+ - ruby/install-deps:
83
+ bundler-version: "2.3.4"
84
+ with-cache: false
85
+ path: './vendor/custom_bundle'
86
+ - run:
87
+ name: Running compatibility tests
88
+ command: bundle exec rspec
89
+
90
+ workflows:
91
+ build_and_test:
92
+ jobs:
93
+ - linters-ruby:
94
+ matrix:
95
+ parameters:
96
+ ruby-version: [ "2.7" ]
97
+ - tests-ruby:
98
+ matrix:
99
+ parameters:
100
+ ruby-version: [ "2.7" ]
101
+ - compatibility-ruby:
102
+ matrix:
103
+ parameters:
104
+ ruby-version: ["3.0", "3.1" ]
data/.fasterer.yml ADDED
@@ -0,0 +1,2 @@
1
+ speedups:
2
+ fetch_with_argument_vs_block: false
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ .idea
data/.overcommit.yml ADDED
@@ -0,0 +1,32 @@
1
+ PreCommit:
2
+ AuthorEmail:
3
+ enabled: true
4
+ required: false
5
+
6
+ AuthorName:
7
+ enabled: false
8
+
9
+ BundleAudit:
10
+ enabled: true
11
+
12
+ Fasterer:
13
+ enabled: true
14
+ include: '**/*.rb'
15
+
16
+ TrailingWhitespace:
17
+ enabled: true
18
+
19
+ RuboCop:
20
+ enabled: true
21
+ flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
22
+
23
+ # Reek:
24
+ # enabled: true
25
+ # flags: ['--force-exclusion']
26
+
27
+ PostCheckout:
28
+ ALL:
29
+ quiet: true
30
+
31
+ IndexTags:
32
+ enabled: true
data/.reek.yml ADDED
@@ -0,0 +1,3 @@
1
+ detectors:
2
+ IrresponsibleModule:
3
+ enabled: false
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --format documentation
3
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,426 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-performance
4
+ - rubocop-rake
5
+
6
+ AllCops:
7
+ DisplayCopNames: true
8
+ DisplayStyleGuide: true
9
+ TargetRubyVersion: 2.7
10
+
11
+ Metrics/ClassLength:
12
+ Max: 300
13
+
14
+ Metrics/MethodLength:
15
+ Max: 20
16
+
17
+ Metrics/BlockLength:
18
+ Enabled: false
19
+
20
+ Metrics/CyclomaticComplexity:
21
+ Enabled: false
22
+
23
+ Metrics/PerceivedComplexity:
24
+ Enabled: false
25
+
26
+ Naming/VariableNumber:
27
+ Enabled: false
28
+
29
+ Naming/RescuedExceptionsVariableName:
30
+ Enabled: false
31
+
32
+ Naming/InclusiveLanguage:
33
+ Enabled: false
34
+
35
+ Naming/BlockForwarding:
36
+ Enabled: true
37
+
38
+ Style/Documentation:
39
+ Enabled: false
40
+
41
+ Style/DoubleNegation:
42
+ Enabled: false
43
+
44
+ Style/EmptyCaseCondition:
45
+ Enabled: false
46
+
47
+ Style/ParallelAssignment:
48
+ Enabled: false
49
+
50
+ Style/RescueStandardError:
51
+ Enabled: false
52
+
53
+ Style/HashEachMethods:
54
+ Enabled: true
55
+
56
+ Style/HashTransformKeys:
57
+ Enabled: true
58
+
59
+ Style/HashTransformValues:
60
+ Enabled: true
61
+
62
+ Style/AccessorGrouping:
63
+ Enabled: true
64
+
65
+ Style/ArrayCoercion:
66
+ Enabled: true
67
+
68
+ Style/BisectedAttrAccessor:
69
+ Enabled: true
70
+
71
+ Style/CaseLikeIf:
72
+ Enabled: true
73
+
74
+ Style/ExponentialNotation:
75
+ Enabled: true
76
+
77
+ Style/HashAsLastArrayItem:
78
+ Enabled: true
79
+
80
+ Style/HashLikeCase:
81
+ Enabled: true
82
+
83
+ Style/RedundantAssignment:
84
+ Enabled: true
85
+
86
+ Style/RedundantFetchBlock:
87
+ Enabled: true
88
+
89
+ Style/RedundantFileExtensionInRequire:
90
+ Enabled: true
91
+
92
+ Style/RedundantRegexpCharacterClass:
93
+ Enabled: true
94
+
95
+ Style/RedundantRegexpEscape:
96
+ Enabled: true
97
+
98
+ Style/SlicingWithRange:
99
+ Enabled: true
100
+
101
+ Style/ArgumentsForwarding:
102
+ Enabled: true
103
+
104
+ Style/CollectionCompact:
105
+ Enabled: true
106
+
107
+ Style/DocumentDynamicEvalDefinition:
108
+ Enabled: true
109
+
110
+ Style/NegatedIfElseCondition:
111
+ Enabled: true
112
+
113
+ Style/NilLambda:
114
+ Enabled: true
115
+
116
+ Style/RedundantArgument:
117
+ Enabled: true
118
+
119
+ Style/SwapValues:
120
+ Enabled: true
121
+
122
+ Style/EndlessMethod:
123
+ Enabled: true
124
+
125
+ Style/HashExcept:
126
+ Enabled: true
127
+
128
+ Style/IfWithBooleanLiteralBranches:
129
+ Enabled: true
130
+
131
+ Style/HashConversion:
132
+ Enabled: true
133
+
134
+ Style/StringChars:
135
+ Enabled: true
136
+
137
+ Style/InPatternThen:
138
+ Enabled: true
139
+
140
+ Style/MultilineInPatternThen:
141
+ Enabled: true
142
+
143
+ Style/QuotedSymbols:
144
+ Enabled: true
145
+
146
+ Style/RedundantSelfAssignmentBranch:
147
+ Enabled: true
148
+
149
+ Style/NumberedParameters:
150
+ Enabled: true
151
+
152
+ Style/NumberedParametersLimit:
153
+ Enabled: true
154
+
155
+ Style/SelectByRegexp:
156
+ Enabled: true
157
+
158
+ Style/FileRead:
159
+ Enabled: true
160
+
161
+ Style/FileWrite:
162
+ Enabled: true
163
+
164
+ Style/MapToHash:
165
+ Enabled: true
166
+
167
+ Style/OpenStructUse:
168
+ Enabled: true
169
+
170
+ Layout/LineLength:
171
+ Max: 150
172
+
173
+ Layout/EmptyLinesAroundAttributeAccessor:
174
+ Enabled: true
175
+
176
+ Layout/SpaceAroundMethodCallOperator:
177
+ Enabled: true
178
+
179
+ Layout/ClassStructure:
180
+ Enabled: true
181
+ Categories:
182
+ module_inclusion:
183
+ - include
184
+ - prepend
185
+ - extend
186
+ ExpectedOrder:
187
+ - module_inclusion
188
+ - constants
189
+ - public_class_methods
190
+ - initializer
191
+ - public_methods
192
+ - protected_methods
193
+ - private_methods
194
+
195
+ Layout/EmptyLineAfterGuardClause:
196
+ Enabled: false
197
+
198
+ Layout/SpaceBeforeBrackets:
199
+ Enabled: true
200
+
201
+ Layout/LineEndStringConcatenationIndentation:
202
+ Enabled: true
203
+
204
+ Lint/NonDeterministicRequireOrder:
205
+ Enabled: true
206
+
207
+ Lint/DeprecatedOpenSSLConstant:
208
+ Enabled: true
209
+
210
+ Lint/DuplicateElsifCondition:
211
+ Enabled: true
212
+
213
+ Lint/MixedRegexpCaptureTypes:
214
+ Enabled: true
215
+
216
+ Lint/RaiseException:
217
+ Enabled: true
218
+
219
+ Lint/StructNewOverride:
220
+ Enabled: true
221
+
222
+ Lint/DuplicateBranch:
223
+ Enabled: true
224
+
225
+ Lint/DuplicateRegexpCharacterClassElement:
226
+ Enabled: true
227
+
228
+ Lint/EmptyBlock:
229
+ Enabled: true
230
+
231
+ Lint/EmptyClass:
232
+ Enabled: true
233
+
234
+ Lint/NoReturnInBeginEndBlocks:
235
+ Enabled: true
236
+
237
+ Lint/ToEnumArguments:
238
+ Enabled: true
239
+
240
+ Lint/UnexpectedBlockArity:
241
+ Enabled: true
242
+
243
+ Lint/AmbiguousAssignment:
244
+ Enabled: true
245
+
246
+ Lint/DeprecatedConstants:
247
+ Enabled: true
248
+
249
+ Lint/LambdaWithoutLiteralBlock:
250
+ Enabled: true
251
+
252
+ Lint/RedundantDirGlobSort:
253
+ Enabled: true
254
+
255
+ Lint/UnmodifiedReduceAccumulator:
256
+ Enabled: true
257
+
258
+ Lint/NumberedParameterAssignment:
259
+ Enabled: true
260
+
261
+ Lint/OrAssignmentToConstant:
262
+ Enabled: true
263
+
264
+ Lint/SymbolConversion:
265
+ Enabled: true
266
+
267
+ Lint/TripleQuotes:
268
+ Enabled: true
269
+
270
+ Lint/EmptyInPattern:
271
+ Enabled: true
272
+
273
+ Lint/AmbiguousRange:
274
+ Enabled: true
275
+
276
+ Lint/AmbiguousOperatorPrecedence:
277
+ Enabled: true
278
+
279
+ Lint/IncompatibleIoSelectWithFiberScheduler:
280
+ Enabled: true
281
+
282
+ Lint/RequireRelativeSelfPath:
283
+ Enabled: true
284
+
285
+ Lint/UselessRuby2Keywords:
286
+ Enabled: true
287
+
288
+ Gemspec/DateAssignment:
289
+ Enabled: true
290
+
291
+ Gemspec/RequireMFA:
292
+ Enabled: false
293
+
294
+ Security/IoMethods:
295
+ Enabled: true
296
+
297
+ Performance/AncestorsInclude:
298
+ Enabled: true
299
+
300
+ Performance/BigDecimalWithNumericArgument:
301
+ Enabled: true
302
+
303
+ Performance/RedundantSortBlock:
304
+ Enabled: true
305
+
306
+ Performance/RedundantStringChars:
307
+ Enabled: true
308
+
309
+ Performance/ReverseFirst:
310
+ Enabled: true
311
+
312
+ Performance/SortReverse:
313
+ Enabled: true
314
+
315
+ Performance/Squeeze:
316
+ Enabled: true
317
+
318
+ Performance/StringInclude:
319
+ Enabled: true
320
+
321
+ Performance/BlockGivenWithExplicitBlock:
322
+ Enabled: true
323
+
324
+ Performance/CollectionLiteralInLoop:
325
+ Enabled: true
326
+
327
+ Performance/ConstantRegexp:
328
+ Enabled: true
329
+
330
+ Performance/MethodObjectAsBlock:
331
+ Enabled: false
332
+
333
+ Performance/Sum:
334
+ Enabled: true
335
+
336
+ Performance/RedundantEqualityComparisonBlock:
337
+ Enabled: true
338
+
339
+ Performance/RedundantSplitRegexpArgument:
340
+ Enabled: true
341
+
342
+ Performance/MapCompact:
343
+ Enabled: true
344
+
345
+ Performance/ConcurrentMonotonicTime:
346
+ Enabled: true
347
+
348
+ Performance/StringIdentifierArgument:
349
+ Enabled: true
350
+
351
+ RSpec/ExampleLength:
352
+ Enabled: false
353
+
354
+ RSpec/NestedGroups:
355
+ Enabled: false
356
+
357
+ RSpec/MultipleExpectations:
358
+ Enabled: false
359
+
360
+ RSpec/MessageChain:
361
+ Enabled: false
362
+
363
+ RSpec/ContextWording:
364
+ Enabled: false
365
+
366
+ RSpec/AnyInstance:
367
+ Enabled: false
368
+
369
+ RSpec/MessageSpies:
370
+ Enabled: false
371
+
372
+ RSpec/MultipleDescribes:
373
+ Enabled: false
374
+
375
+ RSpec/MultipleMemoizedHelpers:
376
+ Enabled: false
377
+
378
+ RSpec/StubbedMock:
379
+ Enabled: false
380
+
381
+ RSpec/IdenticalEqualityAssertion:
382
+ Enabled: true
383
+
384
+ RSpec/Rails/AvoidSetupHook:
385
+ Enabled: true
386
+
387
+ RSpec/ExcessiveDocstringSpacing:
388
+ Enabled: true
389
+
390
+ RSpec/SubjectDeclaration:
391
+ Enabled: true
392
+
393
+ RSpec/FactoryBot/SyntaxMethods:
394
+ Enabled: true
395
+
396
+ # TODO: Fix later
397
+
398
+ Naming/PredicateName:
399
+ Enabled: false
400
+
401
+ Metrics/AbcSize:
402
+ Enabled: false
403
+
404
+ Style/OptionalBooleanParameter:
405
+ Enabled: false
406
+
407
+ Lint/IneffectiveAccessModifier:
408
+ Enabled: false
409
+
410
+ Style/MissingRespondToMissing:
411
+ Enabled: false
412
+
413
+ Naming/AccessorMethodName:
414
+ Enabled: false
415
+
416
+ Style/GuardClause:
417
+ Enabled: false
418
+
419
+ Naming/MethodName:
420
+ Enabled: false
421
+
422
+ Lint/MissingSuper:
423
+ Enabled: false
424
+
425
+ RSpec/FilePath:
426
+ Enabled: false
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ tempo_ruby
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-01-19
4
+
5
+ - Initial release
@@ -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 vanyavasylyshyn@gmail.com. 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,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
5
+ gemspec