truemail-rspec 0.1.2 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.github/BRANCH_NAMING_CONVENTION.md +36 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- data/.github/{ISSUE_TEMPLATE.md → ISSUE_TEMPLATE/issue_report.md} +16 -5
- data/.github/ISSUE_TEMPLATE/question.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +3 -0
- data/.reek.yml +6 -0
- data/.rubocop.yml +217 -13
- data/CHANGELOG.md +58 -0
- data/CONTRIBUTING.md +15 -14
- data/Gemfile.lock +64 -49
- data/LICENSE.txt +1 -1
- data/README.md +44 -13
- data/lib/truemail/rspec.rb +2 -0
- data/lib/truemail/rspec/auditor_helper.rb +20 -0
- data/lib/truemail/rspec/configuration_helper.rb +2 -2
- data/lib/truemail/rspec/validator_helper.rb +11 -9
- data/lib/truemail/rspec/version.rb +1 -1
- data/truemail-rspec.gemspec +19 -9
- metadata +103 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a54cea3b5efc4c2b12f2fe9d711dfee7b172372a0243fa88b75515dce497db3
|
4
|
+
data.tar.gz: b0abbf4f5256d049224f9919b1bdccb3abd9a7978de29a1b4cf5220472d8261f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dbc2466d34041fd4bd5894a99c32ce1e7e4c3bda53b7f1278cf4399abdd8476eab712fd3f055c4c3bc3cf9536507e0d0e541f5636f19a13d5398f5be5ddaab6
|
7
|
+
data.tar.gz: 8373ab44e9aef21fea37147ad36acc5635e7de6bf8da58aeff20962c05a254a480e9a94981e180447a41ae783f97998c87d9b084ea28078fc7a61d91e66cc4e2
|
data/.codeclimate.yml
CHANGED
@@ -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
|
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://
|
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
|
-
|
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:
|
data/.rubocop.yml
CHANGED
@@ -1,24 +1,18 @@
|
|
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
|
|
16
13
|
Metrics/MethodLength:
|
17
14
|
Max: 15
|
18
15
|
|
19
|
-
Metrics/AbcSize:
|
20
|
-
Enabled: false
|
21
|
-
|
22
16
|
Metrics/BlockLength:
|
23
17
|
Enabled: false
|
24
18
|
|
@@ -28,6 +22,12 @@ Metrics/CyclomaticComplexity:
|
|
28
22
|
Metrics/PerceivedComplexity:
|
29
23
|
Enabled: false
|
30
24
|
|
25
|
+
Naming/VariableNumber:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Naming/RescuedExceptionsVariableName:
|
29
|
+
Enabled: false
|
30
|
+
|
31
31
|
Style/Documentation:
|
32
32
|
Enabled: false
|
33
33
|
|
@@ -40,6 +40,99 @@ Style/EmptyCaseCondition:
|
|
40
40
|
Style/RescueStandardError:
|
41
41
|
Enabled: false
|
42
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
|
+
|
43
136
|
Layout/ClassStructure:
|
44
137
|
Enabled: true
|
45
138
|
Categories:
|
@@ -47,21 +140,126 @@ Layout/ClassStructure:
|
|
47
140
|
- include
|
48
141
|
- prepend
|
49
142
|
- extend
|
50
|
-
associations:
|
51
|
-
- has_one
|
52
|
-
- has_many
|
53
|
-
- belongs_to
|
54
|
-
- has_and_belongs_to_many
|
55
143
|
ExpectedOrder:
|
56
144
|
- module_inclusion
|
57
145
|
- constants
|
58
|
-
- associations
|
59
146
|
- public_class_methods
|
60
147
|
- initializer
|
61
148
|
- public_methods
|
62
149
|
- protected_methods
|
63
150
|
- private_methods
|
64
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
|
+
|
65
263
|
RSpec/ExampleLength:
|
66
264
|
Enabled: false
|
67
265
|
|
@@ -82,3 +280,9 @@ RSpec/AnyInstance:
|
|
82
280
|
|
83
281
|
RSpec/MessageSpies:
|
84
282
|
Enabled: false
|
283
|
+
|
284
|
+
RSpec/MultipleDescribes:
|
285
|
+
Enabled: false
|
286
|
+
|
287
|
+
RSpec/MultipleMemoizedHelpers:
|
288
|
+
Enabled: false
|