max_api_client 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 90a56c712907fd53b66e127a84f712e96fc9d9172fae831fdcdc0f6dac9da0db
4
+ data.tar.gz: 93042ed433e745dfc1a7eec5fac783f8bf71cd6a683d17c9e13125096b986230
5
+ SHA512:
6
+ metadata.gz: 70cf625de3554498841b7de213767e0bc31f87b3921569751d9ddaee7758e4796a6b060f100642e386900d76a2a0bf570f0d565ec308a46f5f96782aab3ebee2
7
+ data.tar.gz: 8f7346ee0587d47ff1ee60314eb216f3d4cd3a63ff6f4b86cb0650a5313f244d120cb25ef0b494c1acabd8906fc186ca98582e2dd5805807fdd55f058f70b244
data/.rubocop.yml ADDED
@@ -0,0 +1,377 @@
1
+ plugins:
2
+ - rubocop-minitest
3
+ - rubocop-rake
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 3.1
7
+
8
+ Style/StringLiterals:
9
+ EnforcedStyle: double_quotes
10
+
11
+ Style/StringLiteralsInInterpolation:
12
+ EnforcedStyle: double_quotes
13
+
14
+ Gemspec/AddRuntimeDependency:
15
+ Enabled: true
16
+ Gemspec/AttributeAssignment:
17
+ Enabled: true
18
+ Gemspec/DeprecatedAttributeAssignment:
19
+ Enabled: true
20
+ Gemspec/DevelopmentDependencies:
21
+ Enabled: true
22
+ Gemspec/RequireMFA:
23
+ Enabled: true
24
+ Layout/EmptyLinesAfterModuleInclusion:
25
+ Enabled: true
26
+ Layout/LineContinuationLeadingSpace:
27
+ Enabled: true
28
+ Layout/LineContinuationSpacing:
29
+ Enabled: true
30
+ Layout/LineEndStringConcatenationIndentation:
31
+ Enabled: true
32
+ Layout/SpaceBeforeBrackets:
33
+ Enabled: true
34
+ Lint/AmbiguousAssignment:
35
+ Enabled: true
36
+ Lint/AmbiguousOperatorPrecedence:
37
+ Enabled: true
38
+ Lint/AmbiguousRange:
39
+ Enabled: true
40
+ Lint/ArrayLiteralInRegexp:
41
+ Enabled: true
42
+ Lint/ConstantOverwrittenInRescue:
43
+ Enabled: true
44
+ Lint/ConstantReassignment:
45
+ Enabled: true
46
+ Lint/CopDirectiveSyntax:
47
+ Enabled: true
48
+ Lint/DeprecatedConstants:
49
+ Enabled: true
50
+ Lint/DuplicateBranch:
51
+ Enabled: true
52
+ Lint/DuplicateMagicComment:
53
+ Enabled: true
54
+ Lint/DuplicateMatchPattern:
55
+ Enabled: true
56
+ Lint/DuplicateRegexpCharacterClassElement:
57
+ Enabled: true
58
+ Lint/DuplicateSetElement:
59
+ Enabled: true
60
+ Lint/EmptyBlock:
61
+ Enabled: true
62
+ Lint/EmptyClass:
63
+ Enabled: true
64
+ Lint/EmptyInPattern:
65
+ Enabled: true
66
+ Lint/HashNewWithKeywordArgumentsAsDefault:
67
+ Enabled: true
68
+ Lint/IncompatibleIoSelectWithFiberScheduler:
69
+ Enabled: true
70
+ Lint/ItWithoutArgumentsInBlock:
71
+ Enabled: true
72
+ Lint/LambdaWithoutLiteralBlock:
73
+ Enabled: true
74
+ Lint/LiteralAssignmentInCondition:
75
+ Enabled: true
76
+ Lint/MixedCaseRange:
77
+ Enabled: true
78
+ Lint/NoReturnInBeginEndBlocks:
79
+ Enabled: true
80
+ Lint/NonAtomicFileOperation:
81
+ Enabled: true
82
+ Lint/NumberedParameterAssignment:
83
+ Enabled: true
84
+ Lint/NumericOperationWithConstantResult:
85
+ Enabled: true
86
+ Lint/OrAssignmentToConstant:
87
+ Enabled: true
88
+ Lint/RedundantDirGlobSort:
89
+ Enabled: true
90
+ Lint/RedundantRegexpQuantifiers:
91
+ Enabled: true
92
+ Lint/RedundantTypeConversion:
93
+ Enabled: true
94
+ Lint/RefinementImportMethods:
95
+ Enabled: true
96
+ Lint/RequireRangeParentheses:
97
+ Enabled: true
98
+ Lint/RequireRelativeSelfPath:
99
+ Enabled: true
100
+ Lint/SharedMutableDefault:
101
+ Enabled: true
102
+ Lint/SuppressedExceptionInNumberConversion:
103
+ Enabled: true
104
+ Lint/SymbolConversion:
105
+ Enabled: true
106
+ Lint/ToEnumArguments:
107
+ Enabled: true
108
+ Lint/TripleQuotes:
109
+ Enabled: true
110
+ Lint/UnescapedBracketInRegexp:
111
+ Enabled: true
112
+ Lint/UnexpectedBlockArity:
113
+ Enabled: true
114
+ Lint/UnmodifiedReduceAccumulator:
115
+ Enabled: true
116
+ Lint/UselessConstantScoping:
117
+ Enabled: true
118
+ Lint/UselessDefaultValueArgument:
119
+ Enabled: true
120
+ Lint/UselessDefined:
121
+ Enabled: true
122
+ Lint/UselessNumericOperation:
123
+ Enabled: true
124
+ Lint/UselessOr:
125
+ Enabled: true
126
+ Lint/UselessRescue:
127
+ Enabled: true
128
+ Lint/UselessRuby2Keywords:
129
+ Enabled: true
130
+ Metrics/CollectionLiteralLength:
131
+ Enabled: true
132
+ Metrics/ClassLength:
133
+ Max: 150
134
+ Metrics/MethodLength:
135
+ Max: 20
136
+ Naming/BlockForwarding:
137
+ Enabled: true
138
+ Naming/PredicateMethod:
139
+ Enabled: true
140
+ Security/CompoundHash:
141
+ Enabled: true
142
+ Security/IoMethods:
143
+ Enabled: true
144
+ Style/AmbiguousEndlessMethodDefinition:
145
+ Enabled: true
146
+ Style/ArgumentsForwarding:
147
+ Enabled: true
148
+ Style/ArrayIntersect:
149
+ Enabled: true
150
+ Style/ArrayIntersectWithSingleElement:
151
+ Enabled: true
152
+ Style/BitwisePredicate:
153
+ Enabled: true
154
+ Style/CollectionCompact:
155
+ Enabled: true
156
+ Style/CollectionQuerying:
157
+ Enabled: true
158
+ Style/CombinableDefined:
159
+ Enabled: true
160
+ Style/ComparableBetween:
161
+ Enabled: true
162
+ Style/ComparableClamp:
163
+ Enabled: true
164
+ Style/ConcatArrayLiterals:
165
+ Enabled: true
166
+ Style/DataInheritance:
167
+ Enabled: true
168
+ Style/DigChain:
169
+ Enabled: true
170
+ Style/DirEmpty:
171
+ Enabled: true
172
+ Style/DocumentDynamicEvalDefinition:
173
+ Enabled: true
174
+ Style/EmptyClassDefinition:
175
+ Enabled: true
176
+ Style/EmptyHeredoc:
177
+ Enabled: true
178
+ Style/EmptyStringInsideInterpolation:
179
+ Enabled: true
180
+ Style/EndlessMethod:
181
+ Enabled: true
182
+ Style/EnvHome:
183
+ Enabled: true
184
+ Style/ExactRegexpMatch:
185
+ Enabled: true
186
+ Style/FetchEnvVar:
187
+ Enabled: true
188
+ Style/FileEmpty:
189
+ Enabled: true
190
+ Style/FileNull:
191
+ Enabled: true
192
+ Style/FileRead:
193
+ Enabled: true
194
+ Style/FileTouch:
195
+ Enabled: true
196
+ Style/FileWrite:
197
+ Enabled: true
198
+ Style/HashConversion:
199
+ Enabled: true
200
+ Style/HashExcept:
201
+ Enabled: true
202
+ Style/HashFetchChain:
203
+ Enabled: true
204
+ Style/HashSlice:
205
+ Enabled: true
206
+ Style/IfWithBooleanLiteralBranches:
207
+ Enabled: true
208
+ Style/InPatternThen:
209
+ Enabled: true
210
+ Style/ItAssignment:
211
+ Enabled: true
212
+ Style/ItBlockParameter:
213
+ Enabled: true
214
+ Style/KeywordArgumentsMerging:
215
+ Enabled: true
216
+ Style/MagicCommentFormat:
217
+ Enabled: true
218
+ Style/MapCompactWithConditionalBlock:
219
+ Enabled: true
220
+ Style/MapIntoArray:
221
+ Enabled: true
222
+ Style/MapToHash:
223
+ Enabled: true
224
+ Style/MapToSet:
225
+ Enabled: true
226
+ Style/MinMaxComparison:
227
+ Enabled: true
228
+ Style/ModuleMemberExistenceCheck:
229
+ Enabled: true
230
+ Style/MultilineInPatternThen:
231
+ Enabled: true
232
+ Style/NegatedIfElseCondition:
233
+ Enabled: true
234
+ Style/NegativeArrayIndex:
235
+ Enabled: true
236
+ Style/NestedFileDirname:
237
+ Enabled: true
238
+ Style/NilLambda:
239
+ Enabled: true
240
+ Style/NumberedParameters:
241
+ Enabled: true
242
+ Style/NumberedParametersLimit:
243
+ Enabled: true
244
+ Style/ObjectThen:
245
+ Enabled: true
246
+ Style/OpenStructUse:
247
+ Enabled: true
248
+ Style/OperatorMethodCall:
249
+ Enabled: true
250
+ Style/QuotedSymbols:
251
+ Enabled: true
252
+ Style/RedundantArgument:
253
+ Enabled: true
254
+ Style/RedundantArrayConstructor:
255
+ Enabled: true
256
+ Style/RedundantArrayFlatten:
257
+ Enabled: true
258
+ Style/RedundantConstantBase:
259
+ Enabled: true
260
+ Style/RedundantCurrentDirectoryInPath:
261
+ Enabled: true
262
+ Style/RedundantDoubleSplatHashBraces:
263
+ Enabled: true
264
+ Style/RedundantEach:
265
+ Enabled: true
266
+ Style/RedundantFilterChain:
267
+ Enabled: true
268
+ Style/RedundantFormat:
269
+ Enabled: true
270
+ Style/RedundantHeredocDelimiterQuotes:
271
+ Enabled: true
272
+ Style/RedundantInitialize:
273
+ Enabled: true
274
+ Style/RedundantInterpolationUnfreeze:
275
+ Enabled: true
276
+ Style/RedundantLineContinuation:
277
+ Enabled: true
278
+ Style/RedundantRegexpArgument:
279
+ Enabled: true
280
+ Style/RedundantRegexpConstructor:
281
+ Enabled: true
282
+ Style/RedundantSelfAssignmentBranch:
283
+ Enabled: true
284
+ Style/RedundantStringEscape:
285
+ Enabled: true
286
+ Style/ReturnNilInPredicateMethodDefinition:
287
+ Enabled: true
288
+ Style/ReverseFind:
289
+ Enabled: true
290
+ Style/SafeNavigationChainLength:
291
+ Enabled: true
292
+ Style/SelectByRegexp:
293
+ Enabled: true
294
+ Style/SendWithLiteralMethodName:
295
+ Enabled: true
296
+ Style/SingleLineDoEndBlock:
297
+ Enabled: true
298
+ Style/StringChars:
299
+ Enabled: true
300
+ Style/SuperArguments:
301
+ Enabled: true
302
+ Style/SuperWithArgsParentheses:
303
+ Enabled: true
304
+ Style/SwapValues:
305
+ Enabled: true
306
+ Style/YAMLFileRead:
307
+ Enabled: true
308
+ Minitest/AssertInDelta: # new in 0.10
309
+ Enabled: true
310
+ Minitest/AssertKindOf: # new in 0.10
311
+ Enabled: true
312
+ Minitest/AssertOperator: # new in 0.32
313
+ Enabled: true
314
+ Minitest/AssertOutput: # new in 0.10
315
+ Enabled: true
316
+ Minitest/AssertPathExists: # new in 0.10
317
+ Enabled: true
318
+ Minitest/AssertPredicate: # new in 0.18
319
+ Enabled: true
320
+ Minitest/AssertRaisesCompoundBody: # new in 0.21
321
+ Enabled: true
322
+ Minitest/AssertRaisesWithRegexpArgument: # new in 0.22
323
+ Enabled: true
324
+ Minitest/AssertSame: # new in 0.26
325
+ Enabled: true
326
+ Minitest/AssertSilent: # new in 0.10
327
+ Enabled: true
328
+ Minitest/AssertWithExpectedArgument: # new in 0.11
329
+ Enabled: true
330
+ Minitest/AssertionInLifecycleHook: # new in 0.10
331
+ Enabled: true
332
+ Minitest/DuplicateTestRun: # new in 0.19
333
+ Enabled: true
334
+ Minitest/EmptyLineBeforeAssertionMethods: # new in 0.23
335
+ Enabled: true
336
+ Minitest/Focus: # new in 0.35
337
+ Enabled: true
338
+ Minitest/LifecycleHooksOrder: # new in 0.28
339
+ Enabled: true
340
+ Minitest/LiteralAsActualArgument: # new in 0.10
341
+ Enabled: true
342
+ Minitest/MultipleAssertions: # new in 0.10
343
+ Enabled: true
344
+ Minitest/NonExecutableTestMethod: # new in 0.34
345
+ Enabled: true
346
+ Minitest/NonPublicTestMethod: # new in 0.27
347
+ Enabled: true
348
+ Minitest/RedundantMessageArgument: # new in 0.34
349
+ Enabled: true
350
+ Minitest/RefuteInDelta: # new in 0.10
351
+ Enabled: true
352
+ Minitest/RefuteKindOf: # new in 0.10
353
+ Enabled: true
354
+ Minitest/RefuteOperator: # new in 0.32
355
+ Enabled: true
356
+ Minitest/RefutePathExists: # new in 0.10
357
+ Enabled: true
358
+ Minitest/RefutePredicate: # new in 0.18
359
+ Enabled: true
360
+ Minitest/RefuteSame: # new in 0.26
361
+ Enabled: true
362
+ Minitest/ReturnInTestMethod: # new in 0.31
363
+ Enabled: true
364
+ Minitest/SkipEnsure: # new in 0.20
365
+ Enabled: true
366
+ Minitest/SkipWithoutReason: # new in 0.24
367
+ Enabled: true
368
+ Minitest/TestFileName: # new in 0.26
369
+ Enabled: true
370
+ Minitest/TestMethodName: # new in 0.10
371
+ Enabled: true
372
+ Minitest/UnreachableAssertion: # new in 0.14
373
+ Enabled: true
374
+ Minitest/UnspecifiedException: # new in 0.10
375
+ Enabled: true
376
+ Minitest/UselessAssertion: # new in 0.26
377
+ Enabled: true
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ ## [Unreleased]
2
+
3
+ - Rewrote `README.md` with installation instructions, project status, TS vs Ruby comparison, and Max Bot API reference sections.
4
+ - Filled gem metadata in `max_api_client.gemspec`.
5
+
6
+ ## [0.1.0] - 2026-02-12
7
+
8
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Alexandr Zimin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.