truemail-client 0.1.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +59 -18
- data/.codeclimate.yml +1 -1
- 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} +15 -4
- data/.github/ISSUE_TEMPLATE/question.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +3 -0
- data/.rubocop.yml +128 -0
- data/CHANGELOG.md +56 -0
- data/CONTRIBUTING.md +15 -14
- data/Gemfile.lock +71 -66
- data/README.md +59 -28
- data/lib/truemail/client.rb +10 -5
- data/lib/truemail/client/configuration.rb +4 -4
- data/lib/truemail/client/http.rb +21 -8
- data/lib/truemail/client/version.rb +1 -1
- data/truemail-client.gemspec +20 -12
- metadata +49 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d66b2f543cf4acf6562c363f578aaba256ce6b99192fbe46b0f5fb36514fea63
|
4
|
+
data.tar.gz: eaeb5cd3df955be353f7f1ca26df296e8d3762a29bdbc8cda7a9fddd3a3db334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f57b43e1a5439aa20da4423b08a4bf64975be817292e1022d26b3259c51c3b2ebc2762bbdabd5da11f91e247a77bb652590deb1d8ea538d0988013ee8927920
|
7
|
+
data.tar.gz: e026b94182d868f77b73c56af596799b6bbbf42a25a1c2aeb000af87ed8fe686a59f059daa6afe511b8406813aa425bcf1618a7351c8cfa7cb0e5babf9f21aae
|
data/.circleci/config.yml
CHANGED
@@ -1,11 +1,21 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
1
3
|
defaults: &defaults
|
2
4
|
working_directory: ~/truemail-ruby-client
|
3
5
|
docker:
|
4
|
-
- image:
|
6
|
+
- image: cimg/ruby:<< parameters.ruby-version >>
|
5
7
|
environment:
|
6
8
|
CC_TEST_REPORTER_ID: 183d1173cc05e4e5dbd07ddb60a04b9c4115ed11a4bacda0e1834572eb168c51
|
7
9
|
|
10
|
+
orbs:
|
11
|
+
ruby: circleci/ruby@1.1.3
|
12
|
+
|
8
13
|
references:
|
14
|
+
install_bundler: &install_bundler
|
15
|
+
run:
|
16
|
+
name: Installing Bundler
|
17
|
+
command: gem i bundler -v $(tail -1 Gemfile.lock | tr -d ' ')
|
18
|
+
|
9
19
|
restore_bundle_cache: &restore_bundle_cache
|
10
20
|
restore_cache:
|
11
21
|
keys:
|
@@ -24,66 +34,97 @@ references:
|
|
24
34
|
|
25
35
|
install_codeclimate_reporter: &install_codeclimate_reporter
|
26
36
|
run:
|
27
|
-
name:
|
37
|
+
name: Installing CodeClimate test reporter
|
28
38
|
command: |
|
29
39
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
30
40
|
chmod +x ./cc-test-reporter
|
31
41
|
|
32
|
-
version: 2
|
33
42
|
jobs:
|
34
|
-
linters:
|
43
|
+
linters-ruby:
|
44
|
+
parameters:
|
45
|
+
ruby-version:
|
46
|
+
type: string
|
47
|
+
|
35
48
|
<<: *defaults
|
36
49
|
|
37
50
|
steps:
|
38
51
|
- checkout
|
39
52
|
|
53
|
+
- <<: *install_bundler
|
40
54
|
- <<: *restore_bundle_cache
|
41
55
|
- <<: *bundle_install
|
42
56
|
- <<: *save_bundle_cache
|
43
57
|
|
44
58
|
- run:
|
45
|
-
name: Running
|
59
|
+
name: Running Overcommit
|
46
60
|
command: |
|
47
61
|
bundle exec overcommit -s
|
48
62
|
SKIP=AuthorEmail,AuthorName bundle exec overcommit -r
|
49
63
|
|
50
|
-
tests:
|
64
|
+
tests-ruby:
|
65
|
+
parameters:
|
66
|
+
ruby-version:
|
67
|
+
type: string
|
68
|
+
|
51
69
|
<<: *defaults
|
52
70
|
|
53
71
|
steps:
|
54
72
|
- checkout
|
55
73
|
|
74
|
+
- <<: *install_bundler
|
56
75
|
- <<: *restore_bundle_cache
|
57
76
|
- <<: *bundle_install
|
58
77
|
- <<: *save_bundle_cache
|
59
78
|
- <<: *install_codeclimate_reporter
|
60
79
|
|
61
80
|
- run:
|
62
|
-
name: Running
|
81
|
+
name: Running RSpec
|
63
82
|
command: |
|
64
|
-
mkdir /tmp/test-results
|
65
83
|
./cc-test-reporter before-build
|
66
84
|
bundle exec rspec
|
67
85
|
|
68
86
|
- run:
|
69
|
-
name:
|
87
|
+
name: Creating CodeClimate test coverage report
|
70
88
|
command: |
|
71
89
|
./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
|
72
90
|
|
73
|
-
- store_test_results:
|
74
|
-
path: /tmp/test-results
|
75
|
-
|
76
91
|
- store_artifacts:
|
77
|
-
|
78
|
-
|
92
|
+
name: Saving Simplecov coverage artifacts
|
93
|
+
path: ~/truemail-ruby-client/coverage
|
94
|
+
destination: coverage
|
79
95
|
|
80
96
|
- deploy:
|
97
|
+
name: Uploading CodeClimate test coverage report
|
81
98
|
command: |
|
82
99
|
./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
|
83
100
|
|
101
|
+
compatibility-ruby:
|
102
|
+
parameters:
|
103
|
+
ruby-version:
|
104
|
+
type: string
|
105
|
+
docker:
|
106
|
+
- image: cimg/ruby:<< parameters.ruby-version >>
|
107
|
+
steps:
|
108
|
+
- checkout
|
109
|
+
- ruby/install-deps:
|
110
|
+
with-cache: false
|
111
|
+
path: './vendor/custom_bundle'
|
112
|
+
- run:
|
113
|
+
name: Running compatibility tests
|
114
|
+
command: bundle exec rspec
|
115
|
+
|
84
116
|
workflows:
|
85
|
-
|
86
|
-
build:
|
117
|
+
build_and_test:
|
87
118
|
jobs:
|
88
|
-
- linters
|
89
|
-
|
119
|
+
- linters-ruby:
|
120
|
+
matrix:
|
121
|
+
parameters:
|
122
|
+
ruby-version: ["2.5"]
|
123
|
+
- tests-ruby:
|
124
|
+
matrix:
|
125
|
+
parameters:
|
126
|
+
ruby-version: ["2.5"]
|
127
|
+
- compatibility-ruby:
|
128
|
+
matrix:
|
129
|
+
parameters:
|
130
|
+
ruby-version: ["2.6", "2.7", "3.0"]
|
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-ruby-client` to the latest version
|
15
|
+
- [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-ruby-client/blob/master/CONTRIBUTING.md)
|
16
|
+
- [ ] I have read the [documentation](https://truemail-rb.org/truemail-ruby-client)
|
17
|
+
- [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-ruby-client/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, 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-ruby-client` to the latest version
|
15
|
+
- [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-ruby-client/blob/master/CONTRIBUTING.md)
|
16
|
+
- [ ] I have read the [documentation](https://truemail-rb.org/truemail-ruby-client)
|
17
|
+
- [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-ruby-client/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,13 +1,24 @@
|
|
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-ruby-client to the latest version
|
14
|
+
- [ ] I have updated `truemail-ruby-client` to the latest version
|
6
15
|
- [ ] I have read the [Contribution Guidelines](https://github.com/truemail-rb/truemail-ruby-client/blob/master/CONTRIBUTING.md)
|
7
|
-
- [ ] I have read the [documentation](https://
|
16
|
+
- [ ] I have read the [documentation](https://truemail-rb.org/truemail-ruby-client)
|
8
17
|
- [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-ruby-client/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
24
|
##### Complete output when running truemail, including the stack trace and command used
|
@@ -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-ruby-client/blob/master/CONTRIBUTING.md)
|
15
|
+
- [ ] I have read the [documentation](https://truemail-rb.org/truemail-ruby-client)
|
16
|
+
- [ ] I have searched for [existing GitHub issues](https://github.com/truemail-rb/truemail-ruby-client/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/.rubocop.yml
CHANGED
@@ -22,6 +22,10 @@ Metrics/CyclomaticComplexity:
|
|
22
22
|
Metrics/PerceivedComplexity:
|
23
23
|
Enabled: false
|
24
24
|
|
25
|
+
Metrics/AbcSize:
|
26
|
+
Exclude:
|
27
|
+
- 'lib/truemail/client/http.rb'
|
28
|
+
|
25
29
|
Naming/VariableNumber:
|
26
30
|
Enabled: false
|
27
31
|
|
@@ -91,6 +95,46 @@ Style/RedundantRegexpEscape:
|
|
91
95
|
Style/SlicingWithRange:
|
92
96
|
Enabled: true
|
93
97
|
|
98
|
+
Style/ArgumentsForwarding:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Style/CollectionCompact:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Style/DocumentDynamicEvalDefinition:
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Style/EndlessMethod:
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
Style/HashConversion:
|
111
|
+
Enabled: true
|
112
|
+
|
113
|
+
Style/HashExcept:
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
Style/IfWithBooleanLiteralBranches:
|
117
|
+
Enabled: true
|
118
|
+
|
119
|
+
Style/NegatedIfElseCondition:
|
120
|
+
Enabled: true
|
121
|
+
|
122
|
+
Style/NilLambda:
|
123
|
+
Enabled: true
|
124
|
+
|
125
|
+
Style/RedundantArgument:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Style/StringChars:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Style/SwapValues:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Style/IfUnlessModifier:
|
135
|
+
Exclude:
|
136
|
+
- 'lib/truemail/client/http.rb'
|
137
|
+
|
94
138
|
Layout/LineLength:
|
95
139
|
Max: 140
|
96
140
|
|
@@ -125,6 +169,9 @@ Layout/ClassStructure:
|
|
125
169
|
Layout/EmptyLineAfterGuardClause:
|
126
170
|
Enabled: false
|
127
171
|
|
172
|
+
Layout/SpaceBeforeBrackets:
|
173
|
+
Enabled: true
|
174
|
+
|
128
175
|
Lint/NonDeterministicRequireOrder:
|
129
176
|
Enabled: true
|
130
177
|
|
@@ -143,6 +190,54 @@ Lint/RaiseException:
|
|
143
190
|
Lint/StructNewOverride:
|
144
191
|
Enabled: true
|
145
192
|
|
193
|
+
Lint/AmbiguousAssignment:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
Lint/DeprecatedConstants:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
Lint/DuplicateBranch:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Lint/EmptyBlock:
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
Lint/EmptyClass:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
Lint/LambdaWithoutLiteralBlock:
|
212
|
+
Enabled: true
|
213
|
+
|
214
|
+
Lint/NoReturnInBeginEndBlocks:
|
215
|
+
Enabled: false
|
216
|
+
|
217
|
+
Lint/NumberedParameterAssignment:
|
218
|
+
Enabled: true
|
219
|
+
|
220
|
+
Lint/OrAssignmentToConstant:
|
221
|
+
Enabled: true
|
222
|
+
|
223
|
+
Lint/RedundantDirGlobSort:
|
224
|
+
Enabled: true
|
225
|
+
|
226
|
+
Lint/SymbolConversion:
|
227
|
+
Enabled: true
|
228
|
+
|
229
|
+
Lint/ToEnumArguments:
|
230
|
+
Enabled: true
|
231
|
+
|
232
|
+
Lint/TripleQuotes:
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
Lint/UnexpectedBlockArity:
|
236
|
+
Enabled: true
|
237
|
+
|
238
|
+
Lint/UnmodifiedReduceAccumulator:
|
239
|
+
Enabled: true
|
240
|
+
|
146
241
|
Performance/AncestorsInclude:
|
147
242
|
Enabled: true
|
148
243
|
|
@@ -167,6 +262,33 @@ Performance/Squeeze:
|
|
167
262
|
Performance/StringInclude:
|
168
263
|
Enabled: true
|
169
264
|
|
265
|
+
Performance/BlockGivenWithExplicitBlock:
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
Performance/CollectionLiteralInLoop:
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Performance/ConstantRegexp:
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
Performance/MapCompact:
|
275
|
+
Enabled: true
|
276
|
+
|
277
|
+
Performance/MethodObjectAsBlock:
|
278
|
+
Enabled: true
|
279
|
+
|
280
|
+
Performance/RedundantEqualityComparisonBlock:
|
281
|
+
Enabled: true
|
282
|
+
|
283
|
+
Performance/RedundantSplitRegexpArgument:
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Performance/Sum:
|
287
|
+
Enabled: true
|
288
|
+
|
289
|
+
Gemspec/DateAssignment:
|
290
|
+
Enabled: true
|
291
|
+
|
170
292
|
RSpec/ExampleLength:
|
171
293
|
Enabled: false
|
172
294
|
|
@@ -190,3 +312,9 @@ RSpec/MessageSpies:
|
|
190
312
|
|
191
313
|
RSpec/MultipleDescribes:
|
192
314
|
Enabled: false
|
315
|
+
|
316
|
+
RSpec/MultipleMemoizedHelpers:
|
317
|
+
Enabled: false
|
318
|
+
|
319
|
+
RSpec/StubbedMock:
|
320
|
+
Enabled: false
|