truemail-client 0.1.0 → 0.3.1

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: 8d21444ecc6092bd4689dd696c33b2af42b142f3d2656a2616b1f6d538acbb00
4
- data.tar.gz: 6c81b075c1709daa53b17c18b8439882ca110083aa788e59a9f04ff66dd2b89f
3
+ metadata.gz: 5a409167c3748d25cdf77daab9413712e7b3eda3b4daf22583ce2f32454e3aa8
4
+ data.tar.gz: a010200a17a38e82d705c7f926cef692dac02c274d18d5c67982a4c95f2b61de
5
5
  SHA512:
6
- metadata.gz: f557bb644b31fcc18b66c2159ab7fd507d70a40dd28f3000a3580b57d82887dfdd69bb776191c927ba886e5258bbe41af31549ca0a735d6adfc2b34774ee147e
7
- data.tar.gz: d34a0a74c8b010d243605b85b3498de7954981a4d132f92d399261ee54e57d1f8ff2caa98200a7eb679c8b51b382737f15cb8b9edf585c5f2d874ec92df4f5f7
6
+ metadata.gz: 27df3b47bb7ec391f571483206845567581581d6b39223b612ff3751f4f3232322feba4be494dd9f6b7ec9aeb245ecbb1014132375f1d37c0b256642d31a5727
7
+ data.tar.gz: 43528b0002f699979274747718a91e096ee9eb35f338c6f1317146378650d7b5b1276bacc0ed0209e1e553c584864d06625241a9916f320c680a587e5fbcbe0d
data/.codeclimate.yml CHANGED
@@ -7,7 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
- channel: rubocop-0-76
10
+ channel: rubocop-1-14
11
11
 
12
12
  reek:
13
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-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 Issue Checklist
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://github.com/truemail-rb/truemail-ruby-client/blob/master/README.md)
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
- ### 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
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/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .rspec_status
10
+ .DS_Store
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
 
@@ -44,17 +48,102 @@ Style/RescueStandardError:
44
48
  Enabled: false
45
49
 
46
50
  Style/HashEachMethods:
47
- Enabled: false
51
+ Enabled: true
48
52
 
49
53
  Style/HashTransformKeys:
50
- Enabled: false
54
+ Enabled: true
51
55
 
52
56
  Style/HashTransformValues:
53
- Enabled: false
57
+ Enabled: true
58
+
59
+ Style/AccessorGrouping:
60
+ Enabled: true
61
+
62
+ Style/ArrayCoercion:
63
+ Enabled: true
64
+
65
+ Style/BisectedAttrAccessor:
66
+ Enabled: true
67
+
68
+ Style/CaseLikeIf:
69
+ Enabled: true
70
+
71
+ Style/ExponentialNotation:
72
+ Enabled: true
73
+
74
+ Style/HashAsLastArrayItem:
75
+ Enabled: true
76
+
77
+ Style/HashLikeCase:
78
+ Enabled: true
79
+
80
+ Style/RedundantAssignment:
81
+ Enabled: true
82
+
83
+ Style/RedundantFetchBlock:
84
+ Enabled: true
85
+
86
+ Style/RedundantFileExtensionInRequire:
87
+ Enabled: true
88
+
89
+ Style/RedundantRegexpCharacterClass:
90
+ Enabled: true
91
+
92
+ Style/RedundantRegexpEscape:
93
+ Enabled: true
94
+
95
+ Style/SlicingWithRange:
96
+ Enabled: true
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'
54
137
 
55
138
  Layout/LineLength:
56
139
  Max: 140
57
140
 
141
+ Layout/EmptyLinesAroundAttributeAccessor:
142
+ Enabled: true
143
+
144
+ Layout/SpaceAroundMethodCallOperator:
145
+ Enabled: true
146
+
58
147
  Layout/ClassStructure:
59
148
  Enabled: true
60
149
  Categories:
@@ -80,9 +169,126 @@ Layout/ClassStructure:
80
169
  Layout/EmptyLineAfterGuardClause:
81
170
  Enabled: false
82
171
 
172
+ Layout/SpaceBeforeBrackets:
173
+ Enabled: true
174
+
83
175
  Lint/NonDeterministicRequireOrder:
176
+ Enabled: true
177
+
178
+ Lint/DeprecatedOpenSSLConstant:
179
+ Enabled: true
180
+
181
+ Lint/DuplicateElsifCondition:
182
+ Enabled: true
183
+
184
+ Lint/MixedRegexpCaptureTypes:
185
+ Enabled: true
186
+
187
+ Lint/RaiseException:
188
+ Enabled: true
189
+
190
+ Lint/StructNewOverride:
191
+ Enabled: true
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:
84
215
  Enabled: false
85
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
+
241
+ Performance/AncestorsInclude:
242
+ Enabled: true
243
+
244
+ Performance/BigDecimalWithNumericArgument:
245
+ Enabled: true
246
+
247
+ Performance/RedundantSortBlock:
248
+ Enabled: true
249
+
250
+ Performance/RedundantStringChars:
251
+ Enabled: true
252
+
253
+ Performance/ReverseFirst:
254
+ Enabled: true
255
+
256
+ Performance/SortReverse:
257
+ Enabled: true
258
+
259
+ Performance/Squeeze:
260
+ Enabled: true
261
+
262
+ Performance/StringInclude:
263
+ Enabled: true
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
+
86
292
  RSpec/ExampleLength:
87
293
  Enabled: false
88
294
 
@@ -106,3 +312,9 @@ RSpec/MessageSpies:
106
312
 
107
313
  RSpec/MultipleDescribes:
108
314
  Enabled: false
315
+
316
+ RSpec/MultipleMemoizedHelpers:
317
+ Enabled: false
318
+
319
+ RSpec/StubbedMock:
320
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,6 +1,61 @@
1
1
  # Changelog
2
+
2
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3
4
 
4
- ## [0.1.0] - 2020-03-00
5
+ ## [0.3.1] - 2021-05-08
6
+
7
+ ### Changed
8
+
9
+ - Updated gem dependencies
10
+ - Updated rubocop/codeclimate config
11
+ - Updated gem version
12
+
13
+ ## [0.3.0] - 2020-10-28
14
+
15
+ ### Changed
16
+
17
+ Truemail client sends encoded uri params, follows [RFC 3986, sec 2.1](https://tools.ietf.org/html/rfc3986#section-2.1).
18
+
19
+ - Updated `Truemail::Client::Http#request_uri`
20
+ - Updated gem dependencies
21
+ - Updated gem version, changelog, docs
22
+
23
+ ## [0.2.1] - 2020-10-05
24
+
25
+ ### Fixed
26
+
27
+ - Removed auth headers for public endpoint request
28
+
29
+ ### Changed
30
+
31
+ - `Truemail::Client::Http#run`
32
+ - Updated gem version
33
+
34
+ ## [0.2.0] - 2020-10-04
35
+
36
+ ### Added
37
+
38
+ Ability to use Truemail healthcheck endpoint
39
+
40
+ - Added `Truemail::Client.server_healthy?`
41
+
42
+ ### Changed
43
+
44
+ - Updated `Truemail::Client::Http#uri`
45
+ - Updated gem dependencies
46
+ - Updated gem documentation
47
+ - Updated gem version
48
+
49
+ ## [0.1.1] - 2020-07-21
50
+
51
+ ### Changed
52
+
53
+ - Updated gem dependencies
54
+ - Updated gem documentation
55
+ - Updated gem version
56
+
57
+ ## [0.1.0] - 2020-03-29
58
+
5
59
  ### First release
60
+
6
61
  - implemented first version of Truemail Ruby client