readmeExtractor 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop.yml ADDED
@@ -0,0 +1,481 @@
1
+
2
+ AllCops:
3
+ TargetRubyVersion: 3.3.0
4
+ Exclude:
5
+ - "**/spec_helper.rb"
6
+ - "node_modules/**/*"
7
+ SuggestExtensions: false
8
+
9
+
10
+ Layout/ClassStructure:
11
+ ExpectedOrder:
12
+ - module_inclusion
13
+ - constants
14
+ - association
15
+ - public_attribute_macros
16
+ - public_delegate
17
+ - macros
18
+ - initializer
19
+ - public_class_methods
20
+ - public_methods
21
+ - protected_attribute_macros
22
+ - protected_methods
23
+ - private_attribute_macros
24
+ - private_delegate
25
+ - private_methods
26
+
27
+ Layout/EmptyLineAfterMultilineCondition:
28
+ Enabled: true
29
+
30
+ Layout/EmptyLinesAroundAttributeAccessor:
31
+ Enabled: true
32
+
33
+ Layout/FirstArrayElementIndentation:
34
+ EnforcedStyle: consistent
35
+
36
+ Layout/FirstArrayElementLineBreak:
37
+ Enabled: true
38
+
39
+ Layout/FirstHashElementIndentation:
40
+ EnforcedStyle: consistent
41
+
42
+ Layout/FirstHashElementLineBreak:
43
+ Enabled: true
44
+
45
+ Layout/LineLength:
46
+ Max: 150
47
+ Exclude:
48
+ - "**/spec/**/*"
49
+
50
+ Layout/MultilineArrayBraceLayout:
51
+ EnforcedStyle: new_line
52
+
53
+ Layout/MultilineOperationIndentation:
54
+ EnforcedStyle: indented
55
+
56
+ Layout/MultilineHashBraceLayout:
57
+ EnforcedStyle: new_line
58
+
59
+ Layout/MultilineHashKeyLineBreaks:
60
+ Enabled: true
61
+
62
+ Layout/MultilineMethodCallBraceLayout:
63
+ EnforcedStyle: new_line
64
+
65
+ Layout/MultilineMethodDefinitionBraceLayout:
66
+ EnforcedStyle: new_line
67
+
68
+ Layout/SpaceAroundMethodCallOperator:
69
+ Enabled: true
70
+
71
+ Layout/SpaceInLambdaLiteral:
72
+ EnforcedStyle: require_space
73
+
74
+ Lint/AmbiguousBlockAssociation:
75
+ Exclude:
76
+ - "**/spec/**/*"
77
+
78
+ Lint/AssignmentInCondition:
79
+ AllowSafeAssignment: false
80
+
81
+ Lint/BinaryOperatorWithIdenticalOperands:
82
+ Enabled: true
83
+
84
+ Lint/DeprecatedOpenSSLConstant:
85
+ Enabled: true
86
+
87
+ Lint/DuplicateElsifCondition:
88
+ Enabled: true
89
+
90
+ Lint/DuplicateRequire:
91
+ Enabled: true
92
+
93
+ Lint/DuplicateRescueException:
94
+ Enabled: true
95
+
96
+ Lint/EmptyConditionalBody:
97
+ Enabled: true
98
+
99
+ Lint/EmptyFile:
100
+ Enabled: true
101
+
102
+ Lint/FloatComparison:
103
+ Enabled: true
104
+
105
+ Lint/MissingSuper:
106
+ Enabled: true
107
+
108
+ Lint/MixedRegexpCaptureTypes:
109
+ Enabled: true
110
+
111
+ Lint/NumberConversion:
112
+ Enabled: false
113
+
114
+ Lint/RaiseException:
115
+ Enabled: true
116
+
117
+ Lint/SelfAssignment:
118
+ Enabled: true
119
+
120
+ Lint/TrailingCommaInAttributeDeclaration:
121
+ Enabled: true
122
+
123
+ Lint/UnusedBlockArgument:
124
+ IgnoreEmptyBlocks: false
125
+
126
+ Lint/UnusedMethodArgument:
127
+ IgnoreEmptyMethods: false
128
+
129
+ Lint/UselessMethodDefinition:
130
+ Enabled: true
131
+
132
+ # ============== Metric =================
133
+
134
+ Metrics/BlockLength:
135
+ CountComments: false
136
+ Max: 50
137
+ Exclude:
138
+ - "**/spec/**/*"
139
+ - "**/*.rake"
140
+ - "**/factories/**/*"
141
+ - "**/config/routes.rb"
142
+
143
+ Metrics/ClassLength:
144
+ CountAsOne: ["array", "hash"]
145
+ Enabled: false
146
+
147
+ Metrics/CyclomaticComplexity:
148
+ Enabled: false
149
+
150
+ Metrics/MethodLength:
151
+ Enabled: false
152
+
153
+ Metrics/ModuleLength:
154
+ CountAsOne: ["array", "hash"]
155
+ Max: 250
156
+ Exclude:
157
+ - "**/spec/**/*"
158
+
159
+ Metrics/PerceivedComplexity:
160
+ Enabled: false
161
+
162
+ Style/AccessorGrouping:
163
+ Enabled: true
164
+
165
+ Style/ArrayCoercion:
166
+ Enabled: true
167
+
168
+ Style/AutoResourceCleanup:
169
+ Enabled: true
170
+
171
+ Style/BisectedAttrAccessor:
172
+ Enabled: true
173
+
174
+ Style/CaseLikeIf:
175
+ Enabled: true
176
+
177
+ Style/ClassAndModuleChildren:
178
+ Enabled: false
179
+
180
+ Style/CollectionMethods:
181
+ Enabled: true
182
+
183
+ Style/CombinableLoops:
184
+ Enabled: true
185
+
186
+ Style/CommandLiteral:
187
+ EnforcedStyle: percent_x
188
+
189
+ Style/ConstantVisibility:
190
+ Enabled: false
191
+
192
+ Style/Documentation:
193
+ Enabled: false
194
+
195
+ Style/ExplicitBlockArgument:
196
+ Enabled: true
197
+
198
+ Style/GlobalStdStream:
199
+ Enabled: true
200
+
201
+ Style/HashEachMethods:
202
+ Enabled: true
203
+
204
+ Style/HashLikeCase:
205
+ Enabled: true
206
+
207
+ Style/HashTransformKeys:
208
+ Enabled: true
209
+
210
+ Style/HashTransformValues:
211
+ Enabled: true
212
+
213
+ Style/ImplicitRuntimeError:
214
+ Enabled: true
215
+
216
+ Style/InlineComment:
217
+ Enabled: true
218
+
219
+ Style/IpAddresses:
220
+ Enabled: true
221
+
222
+ Style/KeywordParametersOrder:
223
+ Enabled: true
224
+
225
+ Style/MethodCallWithArgsParentheses:
226
+ Enabled: false
227
+
228
+ Style/MissingElse:
229
+ Enabled: false
230
+
231
+ Style/MultilineMethodSignature:
232
+ Enabled: true
233
+
234
+ Style/OptionalBooleanParameter:
235
+ Enabled: true
236
+
237
+ Style/RedundantAssignment:
238
+ Enabled: true
239
+
240
+ Style/RedundantBegin:
241
+ Enabled: true
242
+
243
+ Style/RedundantFetchBlock:
244
+ Enabled: false
245
+
246
+ Style/RedundantFileExtensionInRequire:
247
+ Enabled: true
248
+
249
+ Style/RedundantSelfAssignment:
250
+ Enabled: true
251
+
252
+ Style/SingleArgumentDig:
253
+ Enabled: true
254
+
255
+ Style/StringConcatenation:
256
+ Enabled: true
257
+
258
+ Style/Proc:
259
+ Enabled: false
260
+
261
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
262
+ Enabled: true
263
+ Lint/AmbiguousAssignment: # (new in 1.7)
264
+ Enabled: true
265
+ Lint/DeprecatedConstants: # (new in 1.8)
266
+ Enabled: true
267
+ Lint/DuplicateBranch: # (new in 1.3)
268
+ Enabled: true
269
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
270
+ Enabled: true
271
+ Lint/EmptyBlock: # (new in 1.1)
272
+ Enabled: true
273
+ Lint/EmptyClass: # (new in 1.3)
274
+ Enabled: true
275
+ Lint/EmptyInPattern: # (new in 1.16)
276
+ Enabled: true
277
+ Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
278
+ Enabled: true
279
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
280
+ Enabled: true
281
+ Lint/NumberedParameterAssignment: # (new in 1.9)
282
+ Enabled: true
283
+ Lint/OrAssignmentToConstant: # (new in 1.9)
284
+ Enabled: true
285
+ Lint/RedundantDirGlobSort: # (new in 1.8)
286
+ Enabled: true
287
+ Lint/SymbolConversion: # (new in 1.9)
288
+ Enabled: true
289
+ Lint/ToEnumArguments: # (new in 1.1)
290
+ Enabled: true
291
+ Lint/TripleQuotes: # (new in 1.9)
292
+ Enabled: true
293
+ Lint/UnexpectedBlockArity: # (new in 1.5)
294
+ Enabled: true
295
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
296
+ Enabled: true
297
+ Style/ArgumentsForwarding: # (new in 1.1)
298
+ Enabled: true
299
+ Style/CollectionCompact: # (new in 1.2)
300
+ Enabled: true
301
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
302
+ Enabled: true
303
+ Style/EndlessMethod: # (new in 1.8)
304
+ Enabled: true
305
+ Style/HashConversion: # (new in 1.10)
306
+ Enabled: true
307
+ Style/HashExcept: # (new in 1.7)
308
+ Enabled: true
309
+ Style/IfWithBooleanLiteralBranches: # (new in 1.9)
310
+ Enabled: true
311
+ Style/InPatternThen: # (new in 1.16)
312
+ Enabled: true
313
+ Style/MultilineInPatternThen: # (new in 1.16)
314
+ Enabled: true
315
+ Style/NegatedIfElseCondition: # (new in 1.2)
316
+ Enabled: true
317
+ Style/NilLambda: # (new in 1.3)
318
+ Enabled: true
319
+ Style/QuotedSymbols: # (new in 1.16)
320
+ Enabled: true
321
+ Style/RedundantArgument: # (new in 1.4)
322
+ Enabled: true
323
+ Style/StringChars: # (new in 1.12)
324
+ Enabled: true
325
+ Style/SwapValues: # (new in 1.1)
326
+ Enabled: true
327
+ Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
328
+ Enabled: true
329
+ Naming/InclusiveLanguage: # (new in 1.18)
330
+ Enabled: true
331
+ Style/FrozenStringLiteralComment:
332
+ Enabled: false
333
+ Style/DoubleNegation:
334
+ Enabled: false
335
+ Lint/AmbiguousRange: # (new in 1.19)
336
+ Enabled: true
337
+ Style/RedundantSelfAssignmentBranch: # (new in 1.19)
338
+ Enabled: true
339
+ Style/MultilineBlockChain:
340
+ Enabled: false
341
+
342
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
343
+ Enabled: true
344
+ Gemspec/RequireMFA: # new in 1.23
345
+ Enabled: false
346
+ Gemspec/RequiredRubyVersion:
347
+ Enabled: false
348
+ Layout/LineContinuationLeadingSpace: # new in 1.31
349
+ Enabled: true
350
+ Layout/LineContinuationSpacing: # new in 1.31
351
+ Enabled: true
352
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
353
+ Enabled: true
354
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
355
+ Enabled: true
356
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
357
+ Enabled: true
358
+ Lint/NonAtomicFileOperation: # new in 1.31
359
+ Enabled: true
360
+ Lint/RefinementImportMethods: # new in 1.27
361
+ Enabled: true
362
+ Lint/RequireRangeParentheses: # new in 1.32
363
+ Enabled: true
364
+ Lint/RequireRelativeSelfPath: # new in 1.22
365
+ Enabled: true
366
+ Lint/UselessRuby2Keywords: # new in 1.23
367
+ Enabled: true
368
+ Naming/BlockForwarding: # new in 1.24
369
+ Enabled: true
370
+ Security/CompoundHash: # new in 1.28
371
+ Enabled: true
372
+ Security/IoMethods: # new in 1.22
373
+ Enabled: true
374
+ Style/EmptyHeredoc: # new in 1.32
375
+ Enabled: true
376
+ Style/EnvHome: # new in 1.29
377
+ Enabled: true
378
+ Style/FetchEnvVar: # new in 1.28
379
+ Enabled: true
380
+ Style/FileRead: # new in 1.24
381
+ Enabled: true
382
+ Style/FileWrite: # new in 1.24
383
+ Enabled: true
384
+ Style/MapCompactWithConditionalBlock: # new in 1.30
385
+ Enabled: true
386
+ Style/MapToHash: # new in 1.24
387
+ Enabled: true
388
+ Style/NestedFileDirname: # new in 1.26
389
+ Enabled: true
390
+ Style/NumberedParameters: # new in 1.22
391
+ Enabled: true
392
+ Style/NumberedParametersLimit: # new in 1.22
393
+ Enabled: true
394
+ Style/ObjectThen: # new in 1.28
395
+ Enabled: true
396
+ Style/OpenStructUse: # new in 1.23
397
+ Enabled: true
398
+ Style/RedundantInitialize: # new in 1.27
399
+ Enabled: true
400
+ Style/SelectByRegexp: # new in 1.22
401
+ Enabled: true
402
+ Style/Alias:
403
+ Enabled: false
404
+ Gemspec/DevelopmentDependencies: # new in 1.44
405
+ Enabled: true
406
+ Lint/DuplicateMagicComment: # new in 1.37
407
+ Enabled: true
408
+ Lint/DuplicateMatchPattern: # new in 1.50
409
+ Enabled: true
410
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
411
+ Enabled: true
412
+ Lint/LiteralAssignmentInCondition: # new in 1.58
413
+ Enabled: true
414
+ Lint/MixedCaseRange: # new in 1.53
415
+ Enabled: true
416
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
417
+ Enabled: true
418
+ Lint/UselessRescue: # new in 1.43
419
+ Enabled: true
420
+ Metrics/CollectionLiteralLength: # new in 1.47
421
+ Enabled: true
422
+ Style/ArrayIntersect: # new in 1.40
423
+ Enabled: true
424
+ Style/ComparableClamp: # new in 1.44
425
+ Enabled: true
426
+ Style/ConcatArrayLiterals: # new in 1.41
427
+ Enabled: true
428
+ Style/DataInheritance: # new in 1.49
429
+ Enabled: true
430
+ Style/DirEmpty: # new in 1.48
431
+ Enabled: true
432
+ Style/ExactRegexpMatch: # new in 1.51
433
+ Enabled: true
434
+ Style/FileEmpty: # new in 1.48
435
+ Enabled: true
436
+ Style/MagicCommentFormat: # new in 1.35
437
+ Enabled: true
438
+ Style/MapToSet: # new in 1.42
439
+ Enabled: true
440
+ Style/MinMaxComparison: # new in 1.42
441
+ Enabled: true
442
+ Style/OperatorMethodCall: # new in 1.37
443
+ Enabled: true
444
+ Style/RedundantArrayConstructor: # new in 1.52
445
+ Enabled: true
446
+ Style/RedundantConstantBase: # new in 1.40
447
+ Enabled: true
448
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
449
+ Enabled: true
450
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
451
+ Enabled: true
452
+ Style/RedundantEach: # new in 1.38
453
+ Enabled: true
454
+ Style/RedundantFilterChain: # new in 1.52
455
+ Enabled: true
456
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
457
+ Enabled: true
458
+ Style/RedundantLineContinuation: # new in 1.49
459
+ Enabled: true
460
+ Style/RedundantRegexpArgument: # new in 1.53
461
+ Enabled: true
462
+ Style/RedundantRegexpConstructor: # new in 1.52
463
+ Enabled: true
464
+ Style/RedundantStringEscape: # new in 1.37
465
+ Enabled: true
466
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
467
+ Enabled: true
468
+ Style/SingleLineDoEndBlock: # new in 1.57
469
+ Enabled: true
470
+ Style/SuperWithArgsParentheses: # new in 1.58
471
+ Enabled: true
472
+ Style/YAMLFileRead: # new in 1.53
473
+ Enabled: true
474
+ Style/IfUnlessModifier:
475
+ Enabled: false
476
+ Metrics/BlockNesting:
477
+ Enabled: false
478
+ Metrics/AbcSize:
479
+ Enabled: false
480
+ Naming/FileName:
481
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.0@readme-extractor
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-03-31
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at vchekryzhov@ya.ru. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Viktor C
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.
data/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # ReadmeExtractor
2
+ This is gem for extract readme and gemspec file from .gem file
3
+ ## Installation
4
+ gem install readmeExtractor
5
+ ## Usage
6
+ readmeExtractor start --from [folder] --to [folder]
7
+ ## Development
8
+
9
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
10
+
11
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
12
+
13
+ ## Contributing
14
+
15
+ Bug reports and pull requests are welcome on GitHub at https://github.com/vchekryzhov/readmeExtractor. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/readmeExtractor/blob/master/CODE_OF_CONDUCT.md).
16
+
17
+ ## License
18
+
19
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
20
+
21
+ ## Code of Conduct
22
+
23
+ Everyone interacting in the ReadmeExtractor project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/vchekryzhov/readmeExtractor/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../lib/readmeExtractor'
3
+ # readmeExtractor command-line utility
4
+ # Usage: readmeExtractor start --from [source] --to [destination]
5
+
6
+ # Remove the first argument if it's 'start'
7
+ if ARGV[0] == 'start'
8
+ ARGV.shift
9
+ else
10
+ puts 'Usage: readmeExtractor start --from [source] --to [destination]'
11
+ exit
12
+ end
13
+
14
+ args = ARGV.each_slice(2).to_a.to_h
15
+
16
+ from = args['--from']
17
+ to = args['--to']
18
+
19
+ if from && to
20
+ ReadmeExtractor.new.perform(from, to)
21
+ else
22
+ puts 'Usage: readmeExtractor start --from [source] --to [destination]'
23
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ReadmeExtractor
4
+ VERSION = '0.1.0'
5
+ end