truemail-rspec 0.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f954123eb983f0837194f77e3a8e5ecb960a96432cb3bab7d16e5434f3cceb01
4
- data.tar.gz: 9fcefc0fb805488a186f7ad6760319be75d9e90522ea52a3119468db55b27194
3
+ metadata.gz: 7355cdad3a7658d442cc0df14bb7f72feedd786eaa1fddd2a4c69986fbcf6122
4
+ data.tar.gz: 8cbd4a1820c929c0f2f97ef8b417cd1332cbf0509069fd468049e90b5e56f986
5
5
  SHA512:
6
- metadata.gz: ad68f3e2bc585b323bbdf920b2ceb417dd7fa4ace412beb32d7f4c80406d0a568163c64f3d8f2fd6d83c3e155963922e20fc68e7904e828d312fd318ed9ba7ef
7
- data.tar.gz: 9327d2ccbb367e867f0d00e84636ef2b431ca13a1d2cafc264b02c95c8812dee3c97e7b04da92e1b4d17137135644d136dc79eeda2cb27de73f5fa4c781ed2b8
6
+ metadata.gz: 7354e4b6ca376b87aeee2c934dab1400dd18c0bd4661bf60ab06a82cd097f9e13fa5d92a88e81f46942f701cbf1f5361c74524c19b0a590a42abb833de548eb3
7
+ data.tar.gz: 4f23889360171f7ffaed27a042da23985fa7466516fd293dc80f9578799353d5b680bd3dec4b9753e6937022cea26ca695556b75025111e5601bde9ab2ff1f4b
@@ -7,6 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
+ channel: rubocop-1-50
10
11
 
11
12
  reek:
12
13
  enabled: true
@@ -0,0 +1,36 @@
1
+ # Branch naming convention
2
+
3
+ ## Branch naming
4
+
5
+ > Please note for new pull requests create new branches from current `develop` branch only.
6
+
7
+ Branch name should include type of your contribution and context. Please follow next pattern for naming your branches:
8
+
9
+ ```bash
10
+ feature/add-some-feature
11
+ technical/some-technical-improvements
12
+ bugfix/fix-some-bug-name
13
+ ```
14
+
15
+ ## Before PR actions
16
+
17
+ ### Squash commits
18
+
19
+ Please squash all branch commits into the one before openning your PR from your fork. It's simple to do with the git:
20
+
21
+ ```bash
22
+ git rebase -i [hash your first commit of your branch]~1
23
+ git rebase -i 6467fe36232401fa740af067cfd8ac9ec932fed2~1 # example
24
+ ```
25
+
26
+ ### Add commit description
27
+
28
+ Please complete your commit description folowing next pattern:
29
+
30
+ ```
31
+ Technical/Add info files # should be the same name as your branch name
32
+
33
+ * Added license, changelog, contributing, code of conduct docs
34
+ * Added GitHub templates
35
+ * Updated project license link
36
+ ```
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: "[BUG] Your bug report title here"
5
+ labels: bug
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make Truemail better! Before submit your bug, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New bug checklist
13
+
14
+ - [ ] I have updated `truemail-rspec` to the latest version
15
+ - [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-rspec/blob/master/CONTRIBUTING.md)
16
+ - [ ] I have read the [documentation](https://truemail-rb.org/truemail-rspec)
17
+ - [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-rspec/issues)
18
+
19
+ <!-- Please use next pattern for your bug report title: [BUG] Your bug report title here -->
20
+
21
+ ### Bug description
22
+ <!-- Please include what's happening, expected behavior, and any relevant code samples -->
23
+
24
+ ##### Complete output when running truemail-rspec, including the stack trace and command used
25
+
26
+ <details>
27
+ <pre>[INSERT OUTPUT HERE]</pre>
28
+ </details>
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for Truemail
4
+ title: "[FEATURE] Your feature request title here"
5
+ labels: enhancement
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make Truemail better! Before submit your new feature request, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New feature request checklist
13
+
14
+ - [ ] I have updated `truemail-rspec` to the latest version
15
+ - [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-rspec/blob/master/CONTRIBUTING.md)
16
+ - [ ] I have read the [documentation](https://truemail-rb.org/truemail-rspec)
17
+ - [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-rspec/issues)
18
+
19
+ <!-- Please use next pattern for your feature request title: [FEATURE] Your feature request title here -->
20
+
21
+ ### Feature description
22
+
23
+ <!-- Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
24
+
25
+ Describe the solution you'd like. A clear and concise description of what you want to happen.
26
+
27
+ Describe alternatives you've considered. A clear and concise description of any alternative solutions or features you've considered. -->
@@ -1,16 +1,27 @@
1
+ ---
2
+ name: Issue report
3
+ about: Create a report to help us improve
4
+ title: "[ISSUE] Your issue report title here"
5
+ labels: ''
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
1
10
  <!-- Thanks for helping to make Truemail better! Before submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
2
11
 
3
- ### New Issue Checklist
12
+ ### New issue checklist
4
13
 
5
- - [ ] I have updated truemail-rspec to the latest version
14
+ - [ ] I have updated `truemail-rspec` to the latest version
6
15
  - [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-rspec/blob/master/CONTRIBUTING.md)
7
- - [ ] I have read the [documentation](https://github.com/truemail-rb/truemail-rspec/blob/master/README.md)
16
+ - [ ] I have read the [documentation](https://truemail-rb.org/truemail-rspec)
8
17
  - [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-rspec/issues)
9
18
 
10
- ### Issue Description
19
+ <!-- Please use next pattern for your issue report title: [ISSUE] Your issue report title here -->
20
+
21
+ ### Issue description
11
22
  <!-- Please include what's happening, expected behavior, and any relevant code samples -->
12
23
 
13
- ##### Complete output when running truemail, including the stack trace and command used
24
+ ##### Complete output when running truemail-rspec, including the stack trace and command used
14
25
 
15
26
  <details>
16
27
  <pre>[INSERT OUTPUT HERE]</pre>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: Question
3
+ about: Ask your question to Truemail team
4
+ title: "[QUESTION] Your question title here"
5
+ labels: question
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make Truemail better! Before submit your question, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New question checklist
13
+
14
+ - [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-rspec/blob/master/CONTRIBUTING.md)
15
+ - [ ] I have read the [documentation](https://truemail-rb.org/truemail-rspec)
16
+ - [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-rspec/issues)
17
+
18
+ <!-- Please use next pattern for your question title: [QUESTION] Your question title here -->
19
+
20
+ ### Question
21
+
22
+ <!-- Your question context here -->
@@ -1,6 +1,9 @@
1
1
  # PR Details
2
2
 
3
3
  <!-- Provide a general summary of your changes in the Title above -->
4
+ <!-- PR name should the same name as your branch name, example: -->
5
+ <!-- Branch name is: feature/add-some-feature -->
6
+ <!-- PR name should be: Feature/Add some feature -->
4
7
 
5
8
  ## Description
6
9
 
data/.reek.yml CHANGED
@@ -6,6 +6,11 @@ detectors:
6
6
  exclude:
7
7
  - Truemail::RSpec::ConfigurationHelper#create_configuration
8
8
  - Truemail::RSpec::ValidatorHelper#request_instance
9
+ - Truemail::RSpec::AuditorHelper#create_auditor
10
+
11
+ ControlParameter:
12
+ exclude:
13
+ - Truemail::RSpec::AuditorHelper#create_auditor
9
14
 
10
15
  NestedIterators:
11
16
  exclude:
@@ -14,6 +19,7 @@ detectors:
14
19
  BooleanParameter:
15
20
  exclude:
16
21
  - Truemail::RSpec::ValidatorHelper#create_validator
22
+ - Truemail::RSpec::AuditorHelper#create_auditor
17
23
 
18
24
  DuplicateMethodCall:
19
25
  exclude:
@@ -1,15 +1,12 @@
1
1
  require:
2
2
  - rubocop-rspec
3
+ - rubocop-performance
3
4
 
4
5
  AllCops:
5
6
  DisplayCopNames: true
6
7
  DisplayStyleGuide: true
7
- StyleGuideCopsOnly: true
8
8
  TargetRubyVersion: 2.5
9
9
 
10
- Metrics/LineLength:
11
- Max: 140
12
-
13
10
  Metrics/ClassLength:
14
11
  Max: 150
15
12
 
@@ -25,6 +22,12 @@ Metrics/CyclomaticComplexity:
25
22
  Metrics/PerceivedComplexity:
26
23
  Enabled: false
27
24
 
25
+ Naming/VariableNumber:
26
+ Enabled: false
27
+
28
+ Naming/RescuedExceptionsVariableName:
29
+ Enabled: false
30
+
28
31
  Style/Documentation:
29
32
  Enabled: false
30
33
 
@@ -37,6 +40,99 @@ Style/EmptyCaseCondition:
37
40
  Style/RescueStandardError:
38
41
  Enabled: false
39
42
 
43
+ Style/AccessorGrouping:
44
+ Enabled: true
45
+
46
+ Style/ArrayCoercion:
47
+ Enabled: true
48
+
49
+ Style/BisectedAttrAccessor:
50
+ Enabled: true
51
+
52
+ Style/CaseLikeIf:
53
+ Enabled: true
54
+
55
+ Style/ExplicitBlockArgument:
56
+ Enabled: true
57
+
58
+ Style/ExponentialNotation:
59
+ Enabled: true
60
+
61
+ Style/GlobalStdStream:
62
+ Enabled: true
63
+
64
+ Style/HashAsLastArrayItem:
65
+ Enabled: true
66
+
67
+ Style/HashEachMethods:
68
+ Enabled: true
69
+
70
+ Style/HashLikeCase:
71
+ Enabled: true
72
+
73
+ Style/HashTransformKeys:
74
+ Enabled: true
75
+
76
+ Style/HashTransformValues:
77
+ Enabled: true
78
+
79
+ Style/OptionalBooleanParameter:
80
+ Enabled: true
81
+
82
+ Style/RedundantAssignment:
83
+ Enabled: true
84
+
85
+ Style/RedundantFetchBlock:
86
+ Enabled: true
87
+
88
+ Style/RedundantFileExtensionInRequire:
89
+ Enabled: true
90
+
91
+ Style/RedundantRegexpCharacterClass:
92
+ Enabled: true
93
+
94
+ Style/RedundantRegexpEscape:
95
+ Enabled: true
96
+
97
+ Style/SingleArgumentDig:
98
+ Enabled: true
99
+
100
+ Style/SlicingWithRange:
101
+ Enabled: true
102
+
103
+ Style/StringConcatenation:
104
+ Enabled: true
105
+
106
+ Style/ArgumentsForwarding:
107
+ Enabled: true
108
+
109
+ Style/CollectionCompact:
110
+ Enabled: true
111
+
112
+ Style/DocumentDynamicEvalDefinition:
113
+ Enabled: true
114
+
115
+ Style/NegatedIfElseCondition:
116
+ Enabled: true
117
+
118
+ Style/NilLambda:
119
+ Enabled: true
120
+
121
+ Style/RedundantArgument:
122
+ Enabled: true
123
+
124
+ Style/SwapValues:
125
+ Enabled: true
126
+
127
+ Layout/EmptyLinesAroundAttributeAccessor:
128
+ Enabled: true
129
+
130
+ Layout/SpaceAroundMethodCallOperator:
131
+ Enabled: true
132
+
133
+ Layout/LineLength:
134
+ Max: 140
135
+
40
136
  Layout/ClassStructure:
41
137
  Enabled: true
42
138
  Categories:
@@ -44,21 +140,126 @@ Layout/ClassStructure:
44
140
  - include
45
141
  - prepend
46
142
  - extend
47
- associations:
48
- - has_one
49
- - has_many
50
- - belongs_to
51
- - has_and_belongs_to_many
52
143
  ExpectedOrder:
53
144
  - module_inclusion
54
145
  - constants
55
- - associations
56
146
  - public_class_methods
57
147
  - initializer
58
148
  - public_methods
59
149
  - protected_methods
60
150
  - private_methods
61
151
 
152
+ Layout/EmptyLineAfterGuardClause:
153
+ Enabled: false
154
+
155
+ Lint/NonDeterministicRequireOrder:
156
+ Enabled: false
157
+
158
+ Lint/BinaryOperatorWithIdenticalOperands:
159
+ Enabled: true
160
+
161
+ Lint/DeprecatedOpenSSLConstant:
162
+ Enabled: true
163
+
164
+ Lint/DuplicateElsifCondition:
165
+ Enabled: true
166
+
167
+ Lint/DuplicateRescueException:
168
+ Enabled: true
169
+
170
+ Lint/EmptyConditionalBody:
171
+ Enabled: true
172
+
173
+ Lint/FloatComparison:
174
+ Enabled: true
175
+
176
+ Lint/MissingSuper:
177
+ Enabled: true
178
+
179
+ Lint/MixedRegexpCaptureTypes:
180
+ Enabled: true
181
+
182
+ Lint/OutOfRangeRegexpRef:
183
+ Enabled: true
184
+
185
+ Lint/RaiseException:
186
+ Enabled: true
187
+
188
+ Lint/SelfAssignment:
189
+ Enabled: true
190
+
191
+ Lint/StructNewOverride:
192
+ Enabled: true
193
+
194
+ Lint/TopLevelReturnWithArgument:
195
+ Enabled: true
196
+
197
+ Lint/UnreachableLoop:
198
+ Enabled: true
199
+
200
+ Lint/DuplicateBranch:
201
+ Enabled: true
202
+
203
+ Lint/DuplicateRegexpCharacterClassElement:
204
+ Enabled: true
205
+
206
+ Lint/EmptyBlock:
207
+ Enabled: true
208
+
209
+ Lint/EmptyClass:
210
+ Enabled: true
211
+
212
+ Lint/NoReturnInBeginEndBlocks:
213
+ Enabled: true
214
+
215
+ Lint/ToEnumArguments:
216
+ Enabled: true
217
+
218
+ Lint/UnexpectedBlockArity:
219
+ Enabled: true
220
+
221
+ Lint/UnmodifiedReduceAccumulator:
222
+ Enabled: true
223
+
224
+ Performance/AncestorsInclude:
225
+ Enabled: true
226
+
227
+ Performance/BigDecimalWithNumericArgument:
228
+ Enabled: true
229
+
230
+ Performance/RedundantSortBlock:
231
+ Enabled: true
232
+
233
+ Performance/RedundantStringChars:
234
+ Enabled: true
235
+
236
+ Performance/ReverseFirst:
237
+ Enabled: true
238
+
239
+ Performance/SortReverse:
240
+ Enabled: true
241
+
242
+ Performance/Squeeze:
243
+ Enabled: true
244
+
245
+ Performance/StringInclude:
246
+ Enabled: true
247
+
248
+ Performance/BlockGivenWithExplicitBlock:
249
+ Enabled: true
250
+
251
+ Performance/CollectionLiteralInLoop:
252
+ Enabled: true
253
+
254
+ Performance/ConstantRegexp:
255
+ Enabled: true
256
+
257
+ Performance/MethodObjectAsBlock:
258
+ Enabled: true
259
+
260
+ Performance/Sum:
261
+ Enabled: true
262
+
62
263
  RSpec/ExampleLength:
63
264
  Enabled: false
64
265
 
@@ -79,3 +280,9 @@ RSpec/AnyInstance:
79
280
 
80
281
  RSpec/MessageSpies:
81
282
  Enabled: false
283
+
284
+ RSpec/MultipleDescribes:
285
+ Enabled: false
286
+
287
+ RSpec/MultipleMemoizedHelpers:
288
+ Enabled: false