truemail-client 0.4.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/.reek.yml DELETED
@@ -1,21 +0,0 @@
1
- detectors:
2
- IrresponsibleModule:
3
- enabled: false
4
-
5
- LongParameterList:
6
- enabled: false
7
-
8
- TooManyStatements:
9
- enabled: false
10
-
11
- Attribute:
12
- exclude:
13
- - Truemail::Client::Configuration#secure_connection
14
-
15
- ControlParameter:
16
- exclude:
17
- - Truemail::Client#raise_unless
18
- - Truemail::Client::Configuration#raise_unless
19
-
20
- exclude_paths:
21
- - spec/support/helpers
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --require spec_helper
2
- --format documentation
data/.rubocop.yml DELETED
@@ -1,416 +0,0 @@
1
- require:
2
- - rubocop-rspec
3
- - rubocop-performance
4
-
5
- AllCops:
6
- DisplayCopNames: true
7
- DisplayStyleGuide: true
8
- TargetRubyVersion: 2.5
9
-
10
- Metrics/ClassLength:
11
- Max: 150
12
-
13
- Metrics/MethodLength:
14
- Max: 15
15
-
16
- Metrics/BlockLength:
17
- Enabled: false
18
-
19
- Metrics/CyclomaticComplexity:
20
- Enabled: false
21
-
22
- Metrics/PerceivedComplexity:
23
- Enabled: false
24
-
25
- Metrics/AbcSize:
26
- Exclude:
27
- - 'lib/truemail/client/http.rb'
28
-
29
- Naming/VariableNumber:
30
- Enabled: false
31
-
32
- Naming/RescuedExceptionsVariableName:
33
- Enabled: false
34
-
35
- Naming/InclusiveLanguage:
36
- Enabled: false
37
-
38
- Naming/BlockForwarding:
39
- Enabled: true
40
-
41
- Style/Documentation:
42
- Enabled: false
43
-
44
- Style/DoubleNegation:
45
- Enabled: false
46
-
47
- Style/EmptyCaseCondition:
48
- Enabled: false
49
-
50
- Style/ParallelAssignment:
51
- Enabled: false
52
-
53
- Style/RescueStandardError:
54
- Enabled: false
55
-
56
- Style/HashEachMethods:
57
- Enabled: true
58
-
59
- Style/HashTransformKeys:
60
- Enabled: true
61
-
62
- Style/HashTransformValues:
63
- Enabled: true
64
-
65
- Style/AccessorGrouping:
66
- Enabled: true
67
-
68
- Style/ArrayCoercion:
69
- Enabled: true
70
-
71
- Style/BisectedAttrAccessor:
72
- Enabled: true
73
-
74
- Style/CaseLikeIf:
75
- Enabled: true
76
-
77
- Style/ExponentialNotation:
78
- Enabled: true
79
-
80
- Style/HashAsLastArrayItem:
81
- Enabled: true
82
-
83
- Style/HashLikeCase:
84
- Enabled: true
85
-
86
- Style/RedundantAssignment:
87
- Enabled: true
88
-
89
- Style/RedundantFetchBlock:
90
- Enabled: true
91
-
92
- Style/RedundantFileExtensionInRequire:
93
- Enabled: true
94
-
95
- Style/RedundantRegexpCharacterClass:
96
- Enabled: true
97
-
98
- Style/RedundantRegexpEscape:
99
- Enabled: true
100
-
101
- Style/SlicingWithRange:
102
- Enabled: true
103
-
104
- Style/ArgumentsForwarding:
105
- Enabled: true
106
-
107
- Style/CollectionCompact:
108
- Enabled: true
109
-
110
- Style/DocumentDynamicEvalDefinition:
111
- Enabled: true
112
-
113
- Style/EndlessMethod:
114
- Enabled: true
115
-
116
- Style/HashConversion:
117
- Enabled: true
118
-
119
- Style/HashExcept:
120
- Enabled: true
121
-
122
- Style/IfWithBooleanLiteralBranches:
123
- Enabled: true
124
-
125
- Style/NegatedIfElseCondition:
126
- Enabled: true
127
-
128
- Style/NilLambda:
129
- Enabled: true
130
-
131
- Style/RedundantArgument:
132
- Enabled: true
133
-
134
- Style/StringChars:
135
- Enabled: true
136
-
137
- Style/SwapValues:
138
- Enabled: true
139
-
140
- Style/IfUnlessModifier:
141
- Exclude:
142
- - 'lib/truemail/client/http.rb'
143
-
144
- Style/InPatternThen:
145
- Enabled: true
146
-
147
- Style/MultilineInPatternThen:
148
- Enabled: true
149
-
150
- Style/QuotedSymbols:
151
- Enabled: true
152
-
153
- Style/RedundantSelfAssignmentBranch:
154
- Enabled: true
155
-
156
- Style/FileRead:
157
- Enabled: true
158
-
159
- Style/FileWrite:
160
- Enabled: true
161
-
162
- Style/MapToHash:
163
- Enabled: true
164
-
165
- Style/NumberedParameters:
166
- Enabled: true
167
-
168
- Style/NumberedParametersLimit:
169
- Enabled: true
170
-
171
- Style/OpenStructUse:
172
- Enabled: true
173
-
174
- Style/SelectByRegexp:
175
- Enabled: true
176
-
177
- Style/NestedFileDirname:
178
- Enabled: true
179
-
180
- Layout/LineLength:
181
- Max: 140
182
-
183
- Layout/EmptyLinesAroundAttributeAccessor:
184
- Enabled: true
185
-
186
- Layout/SpaceAroundMethodCallOperator:
187
- Enabled: true
188
-
189
- Layout/ClassStructure:
190
- Enabled: true
191
- Categories:
192
- module_inclusion:
193
- - include
194
- - prepend
195
- - extend
196
- associations:
197
- - has_one
198
- - has_many
199
- - belongs_to
200
- - has_and_belongs_to_many
201
- ExpectedOrder:
202
- - module_inclusion
203
- - constants
204
- - associations
205
- - public_class_methods
206
- - initializer
207
- - public_methods
208
- - protected_methods
209
- - private_methods
210
-
211
- Layout/EmptyLineAfterGuardClause:
212
- Enabled: false
213
-
214
- Layout/SpaceBeforeBrackets:
215
- Enabled: true
216
-
217
- Layout/LineEndStringConcatenationIndentation:
218
- Enabled: true
219
-
220
- Lint/NonDeterministicRequireOrder:
221
- Enabled: true
222
-
223
- Lint/DeprecatedOpenSSLConstant:
224
- Enabled: true
225
-
226
- Lint/DuplicateElsifCondition:
227
- Enabled: true
228
-
229
- Lint/MixedRegexpCaptureTypes:
230
- Enabled: true
231
-
232
- Lint/RaiseException:
233
- Enabled: true
234
-
235
- Lint/StructNewOverride:
236
- Enabled: true
237
-
238
- Lint/AmbiguousAssignment:
239
- Enabled: true
240
-
241
- Lint/DeprecatedConstants:
242
- Enabled: true
243
-
244
- Lint/DuplicateBranch:
245
- Enabled: true
246
-
247
- Lint/DuplicateRegexpCharacterClassElement:
248
- Enabled: true
249
-
250
- Lint/EmptyBlock:
251
- Enabled: true
252
-
253
- Lint/EmptyClass:
254
- Enabled: true
255
-
256
- Lint/LambdaWithoutLiteralBlock:
257
- Enabled: true
258
-
259
- Lint/NoReturnInBeginEndBlocks:
260
- Enabled: false
261
-
262
- Lint/NumberedParameterAssignment:
263
- Enabled: true
264
-
265
- Lint/OrAssignmentToConstant:
266
- Enabled: true
267
-
268
- Lint/RedundantDirGlobSort:
269
- Enabled: true
270
-
271
- Lint/SymbolConversion:
272
- Enabled: true
273
-
274
- Lint/ToEnumArguments:
275
- Enabled: true
276
-
277
- Lint/TripleQuotes:
278
- Enabled: true
279
-
280
- Lint/UnexpectedBlockArity:
281
- Enabled: true
282
-
283
- Lint/UnmodifiedReduceAccumulator:
284
- Enabled: true
285
-
286
- Lint/EmptyInPattern:
287
- Enabled: true
288
-
289
- Lint/AmbiguousOperatorPrecedence:
290
- Enabled: true
291
-
292
- Lint/AmbiguousRange:
293
- Enabled: true
294
-
295
- Lint/IncompatibleIoSelectWithFiberScheduler:
296
- Enabled: true
297
-
298
- Lint/RequireRelativeSelfPath:
299
- Enabled: true
300
-
301
- Lint/UselessRuby2Keywords:
302
- Enabled: true
303
-
304
- Gemspec/DateAssignment:
305
- Enabled: true
306
-
307
- Gemspec/RequireMFA:
308
- Enabled: false
309
-
310
- Security/IoMethods:
311
- Enabled: true
312
-
313
- Performance/AncestorsInclude:
314
- Enabled: true
315
-
316
- Performance/BigDecimalWithNumericArgument:
317
- Enabled: true
318
-
319
- Performance/RedundantSortBlock:
320
- Enabled: true
321
-
322
- Performance/RedundantStringChars:
323
- Enabled: true
324
-
325
- Performance/ReverseFirst:
326
- Enabled: true
327
-
328
- Performance/SortReverse:
329
- Enabled: true
330
-
331
- Performance/Squeeze:
332
- Enabled: true
333
-
334
- Performance/StringInclude:
335
- Enabled: true
336
-
337
- Performance/BlockGivenWithExplicitBlock:
338
- Enabled: true
339
-
340
- Performance/CollectionLiteralInLoop:
341
- Enabled: true
342
-
343
- Performance/ConstantRegexp:
344
- Enabled: true
345
-
346
- Performance/MapCompact:
347
- Enabled: true
348
-
349
- Performance/MethodObjectAsBlock:
350
- Enabled: true
351
-
352
- Performance/RedundantEqualityComparisonBlock:
353
- Enabled: true
354
-
355
- Performance/RedundantSplitRegexpArgument:
356
- Enabled: true
357
-
358
- Performance/Sum:
359
- Enabled: true
360
-
361
- Performance/ConcurrentMonotonicTime:
362
- Enabled: true
363
-
364
- Performance/StringIdentifierArgument:
365
- Enabled: true
366
-
367
- RSpec/ExampleLength:
368
- Enabled: false
369
-
370
- RSpec/NestedGroups:
371
- Enabled: false
372
-
373
- RSpec/MultipleExpectations:
374
- Enabled: false
375
-
376
- RSpec/MessageChain:
377
- Enabled: false
378
-
379
- RSpec/ContextWording:
380
- Enabled: false
381
-
382
- RSpec/AnyInstance:
383
- Enabled: false
384
-
385
- RSpec/MessageSpies:
386
- Enabled: false
387
-
388
- RSpec/MultipleDescribes:
389
- Enabled: false
390
-
391
- RSpec/MultipleMemoizedHelpers:
392
- Enabled: false
393
-
394
- RSpec/StubbedMock:
395
- Enabled: false
396
-
397
- RSpec/IdenticalEqualityAssertion:
398
- Enabled: true
399
-
400
- RSpec/Rails/AvoidSetupHook:
401
- Enabled: true
402
-
403
- RSpec/ExcessiveDocstringSpacing:
404
- Enabled: true
405
-
406
- RSpec/SubjectDeclaration:
407
- Enabled: true
408
-
409
- RSpec/FactoryBot/SyntaxMethods:
410
- Enabled: true
411
-
412
- RSpec/BeEq:
413
- Enabled: true
414
-
415
- RSpec/BeNil:
416
- Enabled: true
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- truemail-client
data/CHANGELOG.md DELETED
@@ -1,113 +0,0 @@
1
- # Changelog
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).
4
-
5
- ## [0.4.1] - 2022-03-23
6
-
7
- ### Added
8
-
9
- - Development environment guide
10
-
11
- ### Changed
12
-
13
- - Updated gemspecs
14
- - Updated rubocop/codeclimate/circleci configs
15
- - Updated gem version
16
-
17
- ## [0.4.0] - 2022-01-26
18
-
19
- ### Changed
20
-
21
- - Updated gemspecs
22
- - Updated rubocop/codeclimate/simplecov/circleci configs
23
- - Updated gem version
24
-
25
- ## [0.3.4] - 2021-09-16
26
-
27
- ### Changed
28
-
29
- - Updated gem dependencies
30
- - Updated rubocop/codeclimate config
31
- - Updated gem version
32
-
33
- ## [0.3.3] - 2021-07-13
34
-
35
- ### Fixed
36
-
37
- - Security vulnerability [CVE-2021-32740](https://github.com/advisories/GHSA-jxhc-q857-3j6g)
38
-
39
- ### Changed
40
-
41
- - Updated gem dependencies
42
- - Updated rubocop/codeclimate config
43
- - Updated gem version
44
-
45
- ## [0.3.2] - 2021-05-19
46
-
47
- ### Fixed
48
-
49
- - Gem syntax compatibility with Ruby 3.x
50
-
51
- ### Changed
52
-
53
- - Updated gem dependencies
54
- - Updated rubocop/codeclimate config
55
- - Updated gem version
56
-
57
- ## [0.3.1] - 2021-05-08
58
-
59
- ### Changed
60
-
61
- - Updated gem dependencies
62
- - Updated rubocop/codeclimate config
63
- - Updated gem version
64
-
65
- ## [0.3.0] - 2020-10-28
66
-
67
- ### Changed
68
-
69
- Truemail client sends encoded uri params, follows [RFC 3986, sec 2.1](https://tools.ietf.org/html/rfc3986#section-2.1).
70
-
71
- - Updated `Truemail::Client::Http#request_uri`
72
- - Updated gem dependencies
73
- - Updated gem version, changelog, docs
74
-
75
- ## [0.2.1] - 2020-10-05
76
-
77
- ### Fixed
78
-
79
- - Removed auth headers for public endpoint request
80
-
81
- ### Changed
82
-
83
- - `Truemail::Client::Http#run`
84
- - Updated gem version
85
-
86
- ## [0.2.0] - 2020-10-04
87
-
88
- ### Added
89
-
90
- Ability to use Truemail healthcheck endpoint
91
-
92
- - Added `Truemail::Client.server_healthy?`
93
-
94
- ### Changed
95
-
96
- - Updated `Truemail::Client::Http#uri`
97
- - Updated gem dependencies
98
- - Updated gem documentation
99
- - Updated gem version
100
-
101
- ## [0.1.1] - 2020-07-21
102
-
103
- ### Changed
104
-
105
- - Updated gem dependencies
106
- - Updated gem documentation
107
- - Updated gem version
108
-
109
- ## [0.1.0] - 2020-03-29
110
-
111
- ### First release
112
-
113
- - implemented first version of Truemail Ruby client
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at admin@bestweb.com.ua. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md DELETED
@@ -1,47 +0,0 @@
1
- # Contributing to Truemail
2
-
3
- Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
4
-
5
- Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
6
-
7
- ## Using the issue tracker
8
-
9
- The issue tracker is the preferred channel for [issue/bug reports](#issuebug-reports), [feature requests](#feature-requests), [questions](#questions) and submitting [pull requests](#pull-requests).
10
-
11
- ## Issue/bug reports
12
-
13
- A bug is a _demonstrable problem_ that is caused by the code in the repository. Good bug reports are extremely helpful - thank you!
14
-
15
- Guidelines for issue/bug reports:
16
-
17
- 1. **Use the GitHub issue search** — check if the issue has already been reported
18
- 2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or `develop` branch in the repository
19
- 3. Truemail [issue template](.github/ISSUE_TEMPLATE/issue_report.md)/[bug template](.github/ISSUE_TEMPLATE/bug_report.md)
20
-
21
- A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What would you expect to be the outcome? All these details will help people to fix any potential bugs.
22
-
23
- ## Feature requests
24
-
25
- Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
26
-
27
- ## Questions
28
-
29
- We're always open to a new conversations. So if you have any questions just ask us.
30
-
31
- ## Pull requests
32
-
33
- Good pull requests - patches, improvements, new features - are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
34
-
35
- **Please ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
36
-
37
- Please adhere to the coding conventions used throughout a project (indentation, accurate comments, etc.) and any other requirements (such as test coverage). Not all features proposed will be added but we are open to having a conversation about a feature you are championing.
38
-
39
- Guidelines for pull requests:
40
-
41
- 1. Fork the repo, checkout to `develop` branch
42
- 2. Read our [setup development environment guide](.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md)
43
- 3. Run the tests. This is to make sure your starting point works
44
- 4. Read our [branch naming convention](.github/BRANCH_NAMING_CONVENTION.md), create a new branch
45
- 5. Make your changes. Please note that your PR should include tests for the new codebase!
46
- 6. Push your changes to your fork
47
- 7. Submit a pull request to `develop` branch using our [pull request template](.github/PULL_REQUEST_TEMPLATE.md)
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
5
- gemspec