command_line_boss 0.2.0 → 0.2.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 +4 -4
- data/.release-please-manifest.json +3 -0
- data/.yardopts +0 -2
- data/CHANGELOG.md +8 -0
- data/README.md +11 -13
- data/Rakefile +7 -0
- data/lib/command_line_boss/version.rb +1 -1
- data/lib/command_line_boss.rb +4 -2
- data/release-please-config.json +22 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 953b0a8bbd1c3fafad1ceee175d527921b73b8aed717d3bec37eeaa074187165
|
4
|
+
data.tar.gz: 07acf7edbce04850432534d1f5a77dcf49eec5259eaba4ef583b09ac0883f68d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0953f6521edd9113d7befa0231771d27f0395a6d487df9640e179e5bedaf152b7cb7d0bb4cb2d4dcaa299cdb3689035aa95ee1e4b2c06e4f821a94fac90224b4'
|
7
|
+
data.tar.gz: 6dee4f58d3326609537c61af7d4628d1d824c3762afb0facba2e549c039730b10a7d82c1855e7a5555121a5614df1345cd4dc1697681a544972bc10b0c5d1da1
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.2.1](https://github.com/main-branch/command_line_boss/compare/v0.2.0...v0.2.1) (2025-04-16)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* Automate commit-to-publish workflow ([4dbc694](https://github.com/main-branch/command_line_boss/commit/4dbc6946860cc9d8934287226adea335ae78deea))
|
14
|
+
* Move constants from private to public ([a93685b](https://github.com/main-branch/command_line_boss/commit/a93685b167eaca8be60c57861af1168f033687d4))
|
15
|
+
|
8
16
|
## v0.2.0 (2024-10-10)
|
9
17
|
|
10
18
|
[Full Changelog](https://github.com/main-branch/command_line_boss/compare/v0.1.0..v0.2.0)
|
data/README.md
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
[](https://rubydoc.info/gems/command_line_boss/)
|
5
5
|
[](https://rubydoc.info/gems/command_line_boss/file/CHANGELOG.md)
|
6
6
|
[](https://github.com/main-branch/command_line_boss/actions/workflows/continuous_integration.yml)
|
7
|
-
[](https://codeclimate.com/github/main-branch/command_line_boss/maintainability)
|
8
|
-
[](https://codeclimate.com/github/main-branch/command_line_boss/test_coverage)
|
9
7
|
[](https://conventionalcommits.org)
|
11
9
|
[](https://main-branch.slack.com/archives/C07MQC0LNKF)
|
@@ -24,19 +22,19 @@ Other good alternatives also exist.
|
|
24
22
|
|
25
23
|
* [Installation](#installation)
|
26
24
|
* [Usage](#usage)
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
25
|
+
* [Getting started](#getting-started)
|
26
|
+
* [Design your command line](#design-your-command-line)
|
27
|
+
* [Start your command line parser class](#start-your-command-line-parser-class)
|
28
|
+
* [Define options](#define-options)
|
29
|
+
* [Define additional validations](#define-additional-validations)
|
30
|
+
* [Process any remaining non-option arguments](#process-any-remaining-non-option-arguments)
|
31
|
+
* [Optional: define help output](#optional-define-help-output)
|
32
|
+
* [Use the parser](#use-the-parser)
|
33
|
+
* [Run the command line](#run-the-command-line)
|
36
34
|
* [Development](#development)
|
37
35
|
* [Contributing](#contributing)
|
38
|
-
|
39
|
-
|
36
|
+
* [Commit message guidelines](#commit-message-guidelines)
|
37
|
+
* [Pull request guidelines](#pull-request-guidelines)
|
40
38
|
* [License](#license)
|
41
39
|
* [Code of Conduct](#code-of-conduct)
|
42
40
|
|
data/Rakefile
CHANGED
@@ -25,6 +25,13 @@ rescue Bundler::BundlerError => e
|
|
25
25
|
exit e.status_code
|
26
26
|
end
|
27
27
|
|
28
|
+
# Make it so that calling `rake release` just calls `rake release:rubygems_push` to
|
29
|
+
# avoid creating and pushing a new tag.
|
30
|
+
|
31
|
+
Rake::Task['release'].clear
|
32
|
+
desc 'Customized release task to avoid creating a new tag'
|
33
|
+
task release: 'release:rubygem_push'
|
34
|
+
|
28
35
|
CLEAN << 'pkg'
|
29
36
|
CLOBBER << 'Gemfile.lock'
|
30
37
|
|
data/lib/command_line_boss.rb
CHANGED
@@ -205,6 +205,7 @@ class CommandLineBoss
|
|
205
205
|
def parse_arguments; end
|
206
206
|
|
207
207
|
VALIDATION_METHOD_REGEXP = /^validate_(.+)$/
|
208
|
+
private_constant :VALIDATION_METHOD_REGEXP
|
208
209
|
|
209
210
|
# Validate the command line options and remaining arguments
|
210
211
|
#
|
@@ -222,6 +223,9 @@ class CommandLineBoss
|
|
222
223
|
private_methods.select { |m| m.to_s.match?(VALIDATION_METHOD_REGEXP) }.each { |m| send(m) }
|
223
224
|
end
|
224
225
|
|
226
|
+
DEFINITION_METHOD_REGEXP = /^define_(.+)_option$/
|
227
|
+
private_constant :DEFINITION_METHOD_REGEXP
|
228
|
+
|
225
229
|
# Set the default values for the command line options
|
226
230
|
#
|
227
231
|
# @return [void]
|
@@ -230,8 +234,6 @@ class CommandLineBoss
|
|
230
234
|
#
|
231
235
|
# def set_defaults; end
|
232
236
|
|
233
|
-
DEFINITION_METHOD_REGEXP = /^define_(.+)_option$/
|
234
|
-
|
235
237
|
# Define the command line options
|
236
238
|
#
|
237
239
|
# @return [void]
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"bootstrap-sha": "706448971a266f6cf5222661ab8e0f46f88086bd",
|
3
|
+
"packages": {
|
4
|
+
".": {
|
5
|
+
"release-type": "ruby",
|
6
|
+
"package-name": "command_line_boss",
|
7
|
+
"changelog-path": "CHANGELOG.md",
|
8
|
+
"version-file": "lib/command_line_boss/version.rb",
|
9
|
+
"bump-minor-pre-major": true,
|
10
|
+
"bump-patch-for-minor-pre-major": true,
|
11
|
+
"draft": false,
|
12
|
+
"prerelease": false,
|
13
|
+
"include-component-in-tag": false
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"plugins": [
|
17
|
+
{
|
18
|
+
"type": "sentence-case"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
22
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command_line_boss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: logger
|
@@ -253,6 +252,7 @@ files:
|
|
253
252
|
- ".commitlintrc.yml"
|
254
253
|
- ".husky/commit-msg"
|
255
254
|
- ".markdownlint.yml"
|
255
|
+
- ".release-please-manifest.json"
|
256
256
|
- ".rspec"
|
257
257
|
- ".rubocop.yml"
|
258
258
|
- ".yardopts"
|
@@ -280,6 +280,7 @@ files:
|
|
280
280
|
- lib/command_line_boss/logger_options.rb
|
281
281
|
- lib/command_line_boss/version.rb
|
282
282
|
- package.json
|
283
|
+
- release-please-config.json
|
283
284
|
homepage: https://github.com/main-branch/command_line_boss
|
284
285
|
licenses:
|
285
286
|
- MIT
|
@@ -287,10 +288,9 @@ metadata:
|
|
287
288
|
allowed_push_host: https://rubygems.org
|
288
289
|
homepage_uri: https://github.com/main-branch/command_line_boss
|
289
290
|
source_code_uri: https://github.com/main-branch/command_line_boss
|
290
|
-
documentation_uri: https://rubydoc.info/gems/command_line_boss/0.2.
|
291
|
-
changelog_uri: https://rubydoc.info/gems/command_line_boss/0.2.
|
291
|
+
documentation_uri: https://rubydoc.info/gems/command_line_boss/0.2.1
|
292
|
+
changelog_uri: https://rubydoc.info/gems/command_line_boss/0.2.1/file/CHANGELOG.md
|
292
293
|
rubygems_mfa_required: 'true'
|
293
|
-
post_install_message:
|
294
294
|
rdoc_options: []
|
295
295
|
require_paths:
|
296
296
|
- lib
|
@@ -307,8 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
307
|
requirements:
|
308
308
|
- 'Platform: Mac, Linux, or Windows'
|
309
309
|
- 'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
|
310
|
-
rubygems_version: 3.
|
311
|
-
signing_key:
|
310
|
+
rubygems_version: 3.6.7
|
312
311
|
specification_version: 4
|
313
312
|
summary: Command Line Boss is a convenience layer over OptionsParser
|
314
313
|
test_files: []
|