truemail-client 0.4.0 → 0.5.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.
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- .rspec_status
10
- .DS_Store
11
- Gemfile.lock
data/.overcommit.yml DELETED
@@ -1,32 +0,0 @@
1
- PreCommit:
2
- AuthorEmail:
3
- enabled: true
4
- required: false
5
-
6
- AuthorName:
7
- enabled: false
8
-
9
- BundleAudit:
10
- enabled: true
11
-
12
- Fasterer:
13
- enabled: true
14
- include: '**/*.rb'
15
-
16
- TrailingWhitespace:
17
- enabled: true
18
-
19
- RuboCop:
20
- enabled: true
21
- flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
22
-
23
- Reek:
24
- enabled: true
25
- flags: ['--force-exclusion']
26
-
27
- PostCheckout:
28
- ALL:
29
- quiet: true
30
-
31
- IndexTags:
32
- enabled: true
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,407 +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
- Layout/LineLength:
178
- Max: 140
179
-
180
- Layout/EmptyLinesAroundAttributeAccessor:
181
- Enabled: true
182
-
183
- Layout/SpaceAroundMethodCallOperator:
184
- Enabled: true
185
-
186
- Layout/ClassStructure:
187
- Enabled: true
188
- Categories:
189
- module_inclusion:
190
- - include
191
- - prepend
192
- - extend
193
- associations:
194
- - has_one
195
- - has_many
196
- - belongs_to
197
- - has_and_belongs_to_many
198
- ExpectedOrder:
199
- - module_inclusion
200
- - constants
201
- - associations
202
- - public_class_methods
203
- - initializer
204
- - public_methods
205
- - protected_methods
206
- - private_methods
207
-
208
- Layout/EmptyLineAfterGuardClause:
209
- Enabled: false
210
-
211
- Layout/SpaceBeforeBrackets:
212
- Enabled: true
213
-
214
- Layout/LineEndStringConcatenationIndentation:
215
- Enabled: true
216
-
217
- Lint/NonDeterministicRequireOrder:
218
- Enabled: true
219
-
220
- Lint/DeprecatedOpenSSLConstant:
221
- Enabled: true
222
-
223
- Lint/DuplicateElsifCondition:
224
- Enabled: true
225
-
226
- Lint/MixedRegexpCaptureTypes:
227
- Enabled: true
228
-
229
- Lint/RaiseException:
230
- Enabled: true
231
-
232
- Lint/StructNewOverride:
233
- Enabled: true
234
-
235
- Lint/AmbiguousAssignment:
236
- Enabled: true
237
-
238
- Lint/DeprecatedConstants:
239
- Enabled: true
240
-
241
- Lint/DuplicateBranch:
242
- Enabled: true
243
-
244
- Lint/DuplicateRegexpCharacterClassElement:
245
- Enabled: true
246
-
247
- Lint/EmptyBlock:
248
- Enabled: true
249
-
250
- Lint/EmptyClass:
251
- Enabled: true
252
-
253
- Lint/LambdaWithoutLiteralBlock:
254
- Enabled: true
255
-
256
- Lint/NoReturnInBeginEndBlocks:
257
- Enabled: false
258
-
259
- Lint/NumberedParameterAssignment:
260
- Enabled: true
261
-
262
- Lint/OrAssignmentToConstant:
263
- Enabled: true
264
-
265
- Lint/RedundantDirGlobSort:
266
- Enabled: true
267
-
268
- Lint/SymbolConversion:
269
- Enabled: true
270
-
271
- Lint/ToEnumArguments:
272
- Enabled: true
273
-
274
- Lint/TripleQuotes:
275
- Enabled: true
276
-
277
- Lint/UnexpectedBlockArity:
278
- Enabled: true
279
-
280
- Lint/UnmodifiedReduceAccumulator:
281
- Enabled: true
282
-
283
- Lint/EmptyInPattern:
284
- Enabled: true
285
-
286
- Lint/AmbiguousOperatorPrecedence:
287
- Enabled: true
288
-
289
- Lint/AmbiguousRange:
290
- Enabled: true
291
-
292
- Lint/IncompatibleIoSelectWithFiberScheduler:
293
- Enabled: true
294
-
295
- Lint/RequireRelativeSelfPath:
296
- Enabled: true
297
-
298
- Lint/UselessRuby2Keywords:
299
- Enabled: true
300
-
301
- Gemspec/DateAssignment:
302
- Enabled: true
303
-
304
- Gemspec/RequireMFA:
305
- Enabled: false
306
-
307
- Security/IoMethods:
308
- Enabled: true
309
-
310
- Performance/AncestorsInclude:
311
- Enabled: true
312
-
313
- Performance/BigDecimalWithNumericArgument:
314
- Enabled: true
315
-
316
- Performance/RedundantSortBlock:
317
- Enabled: true
318
-
319
- Performance/RedundantStringChars:
320
- Enabled: true
321
-
322
- Performance/ReverseFirst:
323
- Enabled: true
324
-
325
- Performance/SortReverse:
326
- Enabled: true
327
-
328
- Performance/Squeeze:
329
- Enabled: true
330
-
331
- Performance/StringInclude:
332
- Enabled: true
333
-
334
- Performance/BlockGivenWithExplicitBlock:
335
- Enabled: true
336
-
337
- Performance/CollectionLiteralInLoop:
338
- Enabled: true
339
-
340
- Performance/ConstantRegexp:
341
- Enabled: true
342
-
343
- Performance/MapCompact:
344
- Enabled: true
345
-
346
- Performance/MethodObjectAsBlock:
347
- Enabled: true
348
-
349
- Performance/RedundantEqualityComparisonBlock:
350
- Enabled: true
351
-
352
- Performance/RedundantSplitRegexpArgument:
353
- Enabled: true
354
-
355
- Performance/Sum:
356
- Enabled: true
357
-
358
- Performance/ConcurrentMonotonicTime:
359
- Enabled: true
360
-
361
- Performance/StringIdentifierArgument:
362
- Enabled: true
363
-
364
- RSpec/ExampleLength:
365
- Enabled: false
366
-
367
- RSpec/NestedGroups:
368
- Enabled: false
369
-
370
- RSpec/MultipleExpectations:
371
- Enabled: false
372
-
373
- RSpec/MessageChain:
374
- Enabled: false
375
-
376
- RSpec/ContextWording:
377
- Enabled: false
378
-
379
- RSpec/AnyInstance:
380
- Enabled: false
381
-
382
- RSpec/MessageSpies:
383
- Enabled: false
384
-
385
- RSpec/MultipleDescribes:
386
- Enabled: false
387
-
388
- RSpec/MultipleMemoizedHelpers:
389
- Enabled: false
390
-
391
- RSpec/StubbedMock:
392
- Enabled: false
393
-
394
- RSpec/IdenticalEqualityAssertion:
395
- Enabled: true
396
-
397
- RSpec/Rails/AvoidSetupHook:
398
- Enabled: true
399
-
400
- RSpec/ExcessiveDocstringSpacing:
401
- Enabled: true
402
-
403
- RSpec/SubjectDeclaration:
404
- Enabled: true
405
-
406
- RSpec/FactoryBot/SyntaxMethods:
407
- Enabled: true
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- truemail-client
data/CHANGELOG.md DELETED
@@ -1,103 +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.0] - 2022-01-26
6
-
7
- ### Changed
8
-
9
- - Updated default test environment to Ruby 3.1
10
- - Updated gem development dependencies
11
- - Changed faker to ffaker dependency
12
- - Updated rubocop/codeclimate/simplecov/circleci configs
13
- - Updated gem version
14
-
15
- ## [0.3.4] - 2021-09-16
16
-
17
- ### Changed
18
-
19
- - Updated gem dependencies
20
- - Updated rubocop/codeclimate config
21
- - Updated gem version
22
-
23
- ## [0.3.3] - 2021-07-13
24
-
25
- ### Fixed
26
-
27
- - Security vulnerability [CVE-2021-32740](https://github.com/advisories/GHSA-jxhc-q857-3j6g)
28
-
29
- ### Changed
30
-
31
- - Updated gem dependencies
32
- - Updated rubocop/codeclimate config
33
- - Updated gem version
34
-
35
- ## [0.3.2] - 2021-05-19
36
-
37
- ### Fixed
38
-
39
- - Gem syntax compatibility with Ruby 3.x
40
-
41
- ### Changed
42
-
43
- - Updated gem dependencies
44
- - Updated rubocop/codeclimate config
45
- - Updated gem version
46
-
47
- ## [0.3.1] - 2021-05-08
48
-
49
- ### Changed
50
-
51
- - Updated gem dependencies
52
- - Updated rubocop/codeclimate config
53
- - Updated gem version
54
-
55
- ## [0.3.0] - 2020-10-28
56
-
57
- ### Changed
58
-
59
- Truemail client sends encoded uri params, follows [RFC 3986, sec 2.1](https://tools.ietf.org/html/rfc3986#section-2.1).
60
-
61
- - Updated `Truemail::Client::Http#request_uri`
62
- - Updated gem dependencies
63
- - Updated gem version, changelog, docs
64
-
65
- ## [0.2.1] - 2020-10-05
66
-
67
- ### Fixed
68
-
69
- - Removed auth headers for public endpoint request
70
-
71
- ### Changed
72
-
73
- - `Truemail::Client::Http#run`
74
- - Updated gem version
75
-
76
- ## [0.2.0] - 2020-10-04
77
-
78
- ### Added
79
-
80
- Ability to use Truemail healthcheck endpoint
81
-
82
- - Added `Truemail::Client.server_healthy?`
83
-
84
- ### Changed
85
-
86
- - Updated `Truemail::Client::Http#uri`
87
- - Updated gem dependencies
88
- - Updated gem documentation
89
- - Updated gem version
90
-
91
- ## [0.1.1] - 2020-07-21
92
-
93
- ### Changed
94
-
95
- - Updated gem dependencies
96
- - Updated gem documentation
97
- - Updated gem version
98
-
99
- ## [0.1.0] - 2020-03-29
100
-
101
- ### First release
102
-
103
- - 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,46 +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. Truemail [pull request template](.github/PULL_REQUEST_TEMPLATE.md)
42
- 2. Fork the repo, checkout to `develop` branch
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)
45
- 5. Create a new branch and make your changes. This includes tests for features!
46
- 6. Push to your fork and submit a pull request to `develop` branch
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