command_kit 0.5.0 → 0.5.2

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -1
  3. data/.rubocop.yml +7 -1
  4. data/ChangeLog.md +12 -0
  5. data/Gemfile +2 -0
  6. data/Rakefile +2 -0
  7. data/command_kit.gemspec +1 -4
  8. data/lib/command_kit/arguments/argument.rb +3 -1
  9. data/lib/command_kit/arguments/argument_value.rb +2 -0
  10. data/lib/command_kit/arguments.rb +5 -5
  11. data/lib/command_kit/bug_report.rb +4 -2
  12. data/lib/command_kit/colors.rb +2 -2
  13. data/lib/command_kit/command.rb +13 -11
  14. data/lib/command_kit/command_name.rb +3 -1
  15. data/lib/command_kit/commands/auto_load/subcommand.rb +3 -1
  16. data/lib/command_kit/commands/auto_load.rb +3 -3
  17. data/lib/command_kit/commands/auto_require.rb +5 -3
  18. data/lib/command_kit/commands/command.rb +4 -2
  19. data/lib/command_kit/commands/help.rb +2 -2
  20. data/lib/command_kit/commands/parent_command.rb +2 -0
  21. data/lib/command_kit/commands/subcommand.rb +2 -0
  22. data/lib/command_kit/commands.rb +8 -8
  23. data/lib/command_kit/completion/install.rb +5 -4
  24. data/lib/command_kit/description.rb +3 -1
  25. data/lib/command_kit/edit.rb +1 -1
  26. data/lib/command_kit/env/home.rb +1 -1
  27. data/lib/command_kit/env/path.rb +1 -1
  28. data/lib/command_kit/env/prefix.rb +1 -1
  29. data/lib/command_kit/env/shell.rb +1 -1
  30. data/lib/command_kit/env.rb +2 -0
  31. data/lib/command_kit/examples.rb +4 -2
  32. data/lib/command_kit/exception_handler.rb +4 -2
  33. data/lib/command_kit/file_utils.rb +2 -0
  34. data/lib/command_kit/help/man.rb +4 -4
  35. data/lib/command_kit/help.rb +2 -0
  36. data/lib/command_kit/interactive.rb +1 -1
  37. data/lib/command_kit/main.rb +2 -0
  38. data/lib/command_kit/open_app.rb +4 -2
  39. data/lib/command_kit/options/option.rb +3 -1
  40. data/lib/command_kit/options/option_value.rb +2 -2
  41. data/lib/command_kit/options/parser.rb +3 -3
  42. data/lib/command_kit/options/quiet.rb +3 -1
  43. data/lib/command_kit/options/verbose.rb +3 -1
  44. data/lib/command_kit/options/version.rb +3 -1
  45. data/lib/command_kit/options.rb +6 -4
  46. data/lib/command_kit/os/linux.rb +3 -1
  47. data/lib/command_kit/os.rb +2 -0
  48. data/lib/command_kit/package_manager.rb +6 -4
  49. data/lib/command_kit/pager.rb +4 -4
  50. data/lib/command_kit/printing/fields.rb +3 -1
  51. data/lib/command_kit/printing/indent.rb +2 -0
  52. data/lib/command_kit/printing/lists.rb +1 -1
  53. data/lib/command_kit/printing/tables/border_style.rb +2 -0
  54. data/lib/command_kit/printing/tables/row_builder.rb +3 -1
  55. data/lib/command_kit/printing/tables/style.rb +1 -1
  56. data/lib/command_kit/printing/tables/table_builder.rb +3 -1
  57. data/lib/command_kit/printing/tables.rb +4 -4
  58. data/lib/command_kit/printing.rb +1 -1
  59. data/lib/command_kit/program_name.rb +2 -0
  60. data/lib/command_kit/stdio.rb +2 -0
  61. data/lib/command_kit/sudo.rb +1 -1
  62. data/lib/command_kit/terminal.rb +4 -2
  63. data/lib/command_kit/usage.rb +4 -2
  64. data/lib/command_kit/version.rb +3 -1
  65. data/lib/command_kit/xdg.rb +4 -2
  66. data/lib/command_kit.rb +4 -2
  67. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f815869f166ce21da0c32699e8dcd7cebdb17cdbcc74fba1be3572ebb2d15a0
4
- data.tar.gz: 2e2db9a8f190308d473959274dad507095baba55e0e73f7fcd969a4f23267054
3
+ metadata.gz: 77d44bdde55ae89aeda2ce28446ae9916a2da06b4315e650c0d1cd76340df2c1
4
+ data.tar.gz: eaebe86478899a3da8574888c29596fc7e5bedd271afc5248fc9784ba424b2c3
5
5
  SHA512:
6
- metadata.gz: b0055ba75d1dc4aef15bf280ed86f5d4a514e5e95c00bc1285c9f29327d5b03ab4415a6001bc4ee05be04bb5504b2d6a0a8de0d33f6048a1ea333adb93915f54
7
- data.tar.gz: a198cc0fe966abb5f20f5025b52144bce290d06602e93afd13e2eca03d8aa87477511a598562f023ef921490084c200896c453e78b75d9061216dc8e548f923b
6
+ metadata.gz: 1eaf5bc70d5c16251e1016738616cccb5b8363763afe2ac9c1dfda4688f5e10792ea574d6d95edbc0793f21ee05ea003e27bb73bd59ae993222182ce6cff4345
7
+ data.tar.gz: 30fb59826cdf6c596a5f0f2895be7f1e1a64534d328c55bc985d20a3d29161a2ccb3453bfd65d4c2faec869256d70781b05b727bcb946e3f56ca519391f99a37
@@ -19,7 +19,7 @@ jobs:
19
19
  - truffleruby
20
20
  name: Ruby ${{ matrix.ruby }}
21
21
  steps:
22
- - uses: actions/checkout@v2
22
+ - uses: actions/checkout@v4
23
23
  - name: Set up Ruby
24
24
  uses: ruby/setup-ruby@v1
25
25
  with:
data/.rubocop.yml CHANGED
@@ -79,7 +79,6 @@ Naming/RescuedExceptionsVariableName: { Enabled: false } # Offense count: 11
79
79
  Style/BlockDelimiters: { Enabled: false } # Offense count: 17
80
80
  Style/ClassCheck: { Enabled: false } # Offense count: 10
81
81
  Style/ClassEqualityComparison: { Enabled: false } # Offense count: 16
82
- Style/FrozenStringLiteralComment: { Enabled: false } # Offense count: 77
83
82
  Style/GlobalStdStream: { Enabled: false } # Offense count: 13
84
83
  Style/GuardClause: { Enabled: false } # Offense count: 10
85
84
  Style/IfUnlessModifier: { Enabled: false } # Offense count: 13
@@ -138,6 +137,13 @@ Style/RescueStandardError: { Enabled: false } # Offense count: 1
138
137
  Style/SoleNestedConditional: { Enabled: false } # Offense count: 1
139
138
  Style/TrailingCommaInHashLiteral: { Enabled: false } # Offense count: 2
140
139
 
140
+ # enforce frozen_string_literal for lib/, but not examples/ or spec/.
141
+ Style/FrozenStringLiteralComment:
142
+ Exclude:
143
+ - 'examples/{**/,}*.rb'
144
+ - 'spec/spec_helper.rb'
145
+ - 'spec/{**/,}*_spec.rb'
146
+
141
147
  # rubocop cannot tell that rubygems_mfa_required is enabled in gemspec.yml
142
148
  Gemspec/RequireMFA: { Enabled: false }
143
149
 
data/ChangeLog.md CHANGED
@@ -1,3 +1,15 @@
1
+ ### 0.5.2 / 2024-03-07
2
+
3
+ #### CommandKit::Options
4
+
5
+ * Fixed the `--help` output for options with multi-line descriptions
6
+ (ex: `desc: ['Line 1', 'Line 2', ...]`).
7
+
8
+ ### 0.5.1 / 2024-01-24
9
+
10
+ * Switched to using `require_relative` to improve load-times.
11
+ * Added `# frozen_string_literal: true` to all files.
12
+
1
13
  ### 0.5.0 / 2024-01-04
2
14
 
3
15
  * Added {CommandKit::Env::Shell}.
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
 
3
5
  begin
data/command_kit.gemspec CHANGED
@@ -7,10 +7,7 @@ Gem::Specification.new do |gem|
7
7
 
8
8
  gem.name = gemspec.fetch('name')
9
9
  gem.version = gemspec.fetch('version') do
10
- lib_dir = File.join(File.dirname(__FILE__),'lib')
11
- $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
12
-
13
- require 'command_kit/version'
10
+ require_relative 'lib/command_kit/version'
14
11
  CommandKit::VERSION
15
12
  end
16
13
 
@@ -1,4 +1,6 @@
1
- require 'command_kit/arguments/argument_value'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'argument_value'
2
4
 
3
5
  module CommandKit
4
6
  module Arguments
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  module Arguments
3
5
  #
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/arguments/argument'
4
- require 'command_kit/usage'
5
- require 'command_kit/main'
6
- require 'command_kit/help'
7
- require 'command_kit/printing'
3
+ require_relative 'arguments/argument'
4
+ require_relative 'usage'
5
+ require_relative 'main'
6
+ require_relative 'help'
7
+ require_relative 'printing'
8
8
 
9
9
  module CommandKit
10
10
  #
@@ -1,5 +1,7 @@
1
- require 'command_kit/exception_handler'
2
- require 'command_kit/printing'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'exception_handler'
4
+ require_relative 'printing'
3
5
 
4
6
  module CommandKit
5
7
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/stdio'
4
- require 'command_kit/env'
3
+ require_relative 'stdio'
4
+ require_relative 'env'
5
5
 
6
6
  module CommandKit
7
7
  #
@@ -1,14 +1,16 @@
1
- require 'command_kit/main'
2
- require 'command_kit/env'
3
- require 'command_kit/stdio'
4
- require 'command_kit/printing'
5
- require 'command_kit/usage'
6
- require 'command_kit/arguments'
7
- require 'command_kit/options'
8
- require 'command_kit/examples'
9
- require 'command_kit/description'
10
- require 'command_kit/exception_handler'
11
- require 'command_kit/file_utils'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'main'
4
+ require_relative 'env'
5
+ require_relative 'stdio'
6
+ require_relative 'printing'
7
+ require_relative 'usage'
8
+ require_relative 'arguments'
9
+ require_relative 'options'
10
+ require_relative 'examples'
11
+ require_relative 'description'
12
+ require_relative 'exception_handler'
13
+ require_relative 'file_utils'
12
14
 
13
15
  module CommandKit
14
16
  #
@@ -1,4 +1,6 @@
1
- require 'command_kit/inflector'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'inflector'
2
4
 
3
5
  module CommandKit
4
6
  #
@@ -1,4 +1,6 @@
1
- require 'command_kit/commands/subcommand'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../subcommand'
2
4
 
3
5
  module CommandKit
4
6
  module Commands
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/commands'
4
- require 'command_kit/commands/auto_load/subcommand'
5
- require 'command_kit/inflector'
3
+ require_relative '../commands'
4
+ require_relative 'auto_load/subcommand'
5
+ require_relative '../inflector'
6
6
 
7
7
  module CommandKit
8
8
  module Commands
@@ -1,6 +1,8 @@
1
- require 'command_kit/commands'
2
- require 'command_kit/commands/subcommand'
3
- require 'command_kit/inflector'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../commands'
4
+ require_relative 'subcommand'
5
+ require_relative '../inflector'
4
6
 
5
7
  module CommandKit
6
8
  module Commands
@@ -1,5 +1,7 @@
1
- require 'command_kit/command'
2
- require 'command_kit/commands/parent_command'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../command'
4
+ require_relative 'parent_command'
3
5
 
4
6
  module CommandKit
5
7
  module Commands
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/command'
4
- require 'command_kit/commands/parent_command'
3
+ require_relative '../command'
4
+ require_relative 'parent_command'
5
5
 
6
6
  module CommandKit
7
7
  module Commands
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  module Commands
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  module Commands
3
5
  #
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/commands/subcommand'
4
- require 'command_kit/commands/parent_command'
5
- require 'command_kit/commands/help'
6
- require 'command_kit/command_name'
7
- require 'command_kit/usage'
8
- require 'command_kit/options'
9
- require 'command_kit/stdio'
10
- require 'command_kit/env'
3
+ require_relative 'commands/subcommand'
4
+ require_relative 'commands/parent_command'
5
+ require_relative 'commands/help'
6
+ require_relative 'command_name'
7
+ require_relative 'usage'
8
+ require_relative 'options'
9
+ require_relative 'stdio'
10
+ require_relative 'env'
11
11
 
12
12
  module CommandKit
13
13
  #
@@ -1,9 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/printing'
4
- require 'command_kit/env/home'
5
- require 'command_kit/env/shell'
6
- require 'command_kit/env/prefix'
3
+ require_relative '../printing'
4
+ require_relative '../env/home'
5
+ require_relative '../env/shell'
6
+ require_relative '../env/prefix'
7
+
7
8
  require 'fileutils'
8
9
 
9
10
  module CommandKit
@@ -1,4 +1,6 @@
1
- require 'command_kit/help'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'help'
2
4
 
3
5
  module CommandKit
4
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/env'
3
+ require_relative 'env'
4
4
 
5
5
  module CommandKit
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/env'
3
+ require_relative '../env'
4
4
 
5
5
  module CommandKit
6
6
  module Env
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/env'
3
+ require_relative '../env'
4
4
 
5
5
  module CommandKit
6
6
  module Env
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/env'
3
+ require_relative '../env'
4
4
 
5
5
  module CommandKit
6
6
  module Env
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/env'
3
+ require_relative '../env'
4
4
 
5
5
  module CommandKit
6
6
  module Env
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  #
3
5
  # Provides access to environment variables.
@@ -1,5 +1,7 @@
1
- require 'command_kit/help'
2
- require 'command_kit/command_name'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'help'
4
+ require_relative 'command_name'
3
5
 
4
6
  module CommandKit
5
7
  #
@@ -1,5 +1,7 @@
1
- require 'command_kit/main'
2
- require 'command_kit/printing'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'main'
4
+ require_relative 'printing'
3
5
 
4
6
  module CommandKit
5
7
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fileutils'
2
4
  require 'erb'
3
5
 
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/command_name'
4
- require 'command_kit/help'
5
- require 'command_kit/stdio'
6
- require 'command_kit/man'
3
+ require_relative '../command_name'
4
+ require_relative '../help'
5
+ require_relative '../stdio'
6
+ require_relative '../man'
7
7
 
8
8
  module CommandKit
9
9
  module Help
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  #
3
5
  # Defines a place-holder {Help#help help} method.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/stdio'
3
+ require_relative 'stdio'
4
4
 
5
5
  module CommandKit
6
6
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  #
3
5
  # Defines a `main` method.
@@ -1,5 +1,7 @@
1
- require 'command_kit/os'
2
- require 'command_kit/env/path'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'os'
4
+ require_relative 'env/path'
3
5
 
4
6
  module CommandKit
5
7
  #
@@ -1,4 +1,6 @@
1
- require 'command_kit/options/option_value'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'option_value'
2
4
 
3
5
  require 'optparse'
4
6
  require 'date'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/arguments/argument_value'
4
- require 'command_kit/inflector'
3
+ require_relative '../arguments/argument_value'
4
+ require_relative '../inflector'
5
5
 
6
6
  require 'optparse'
7
7
  require 'date'
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/main'
4
- require 'command_kit/usage'
5
- require 'command_kit/printing'
3
+ require_relative '../main'
4
+ require_relative '../usage'
5
+ require_relative '../printing'
6
6
 
7
7
  require 'optparse'
8
8
 
@@ -1,4 +1,6 @@
1
- require 'command_kit/options'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../options'
2
4
 
3
5
  module CommandKit
4
6
  module Options
@@ -1,4 +1,6 @@
1
- require 'command_kit/options'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../options'
2
4
 
3
5
  module CommandKit
4
6
  module Options
@@ -1,4 +1,6 @@
1
- require 'command_kit/options'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../options'
2
4
 
3
5
  module CommandKit
4
6
  module Options
@@ -1,6 +1,8 @@
1
- require 'command_kit/arguments'
2
- require 'command_kit/options/option'
3
- require 'command_kit/options/parser'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'arguments'
4
+ require_relative 'options/option'
5
+ require_relative 'options/parser'
4
6
 
5
7
  module CommandKit
6
8
  #
@@ -304,7 +306,7 @@ module CommandKit
304
306
 
305
307
  @options[option.name] = default_value unless default_value.nil?
306
308
 
307
- option_parser.on(*option.usage,option.type,option.desc) do |arg,*captures|
309
+ option_parser.on(*option.usage,option.type,*option.desc) do |arg,*captures|
308
310
  @options[option.name] = arg
309
311
 
310
312
  if option.block
@@ -1,4 +1,6 @@
1
- require 'command_kit/os'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../os'
2
4
 
3
5
  module CommandKit
4
6
  module OS
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  #
3
5
  # Provides methods for determining the current OS.
@@ -1,7 +1,9 @@
1
- require 'command_kit/os'
2
- require 'command_kit/os/linux'
3
- require 'command_kit/env/path'
4
- require 'command_kit/sudo'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'os'
4
+ require_relative 'os/linux'
5
+ require_relative 'env/path'
6
+ require_relative 'sudo'
5
7
 
6
8
  module CommandKit
7
9
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/env'
4
- require 'command_kit/env/path'
5
- require 'command_kit/stdio'
6
- require 'command_kit/terminal'
3
+ require_relative 'env'
4
+ require_relative 'env/path'
5
+ require_relative 'stdio'
6
+ require_relative 'terminal'
7
7
 
8
8
  require 'shellwords'
9
9
 
@@ -1,4 +1,6 @@
1
- require 'command_kit/printing/indent'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'indent'
2
4
 
3
5
  module CommandKit
4
6
  module Printing
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  module Printing
3
5
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/printing/indent'
3
+ require_relative 'indent'
4
4
 
5
5
  module CommandKit
6
6
  module Printing
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  module Printing
3
5
  module Tables
@@ -1,4 +1,6 @@
1
- require 'command_kit/printing/tables/cell_builder'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'cell_builder'
2
4
 
3
5
  module CommandKit
4
6
  module Printing
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/printing/tables/border_style'
3
+ require_relative 'border_style'
4
4
 
5
5
  module CommandKit
6
6
  module Printing
@@ -1,4 +1,6 @@
1
- require 'command_kit/printing/tables/row_builder'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'row_builder'
2
4
 
3
5
  module CommandKit
4
6
  module Printing
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/printing/indent'
4
- require 'command_kit/printing/tables/table_builder'
5
- require 'command_kit/printing/tables/style'
6
- require 'command_kit/printing/tables/table_formatter'
3
+ require_relative 'indent'
4
+ require_relative 'tables/table_builder'
5
+ require_relative 'tables/style'
6
+ require_relative 'tables/table_formatter'
7
7
 
8
8
  module CommandKit
9
9
  module Printing
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/stdio'
3
+ require_relative 'stdio'
4
4
 
5
5
  module CommandKit
6
6
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  #
3
5
  # Retrieves the current program name (`$PROGRAM_NAME`).
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  #
3
5
  # Provides access to stdin, stdout, and stderr streams.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'command_kit/os'
3
+ require_relative 'os'
4
4
 
5
5
  module CommandKit
6
6
  #
@@ -1,5 +1,7 @@
1
- require 'command_kit/stdio'
2
- require 'command_kit/env'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'stdio'
4
+ require_relative 'env'
3
5
 
4
6
  begin
5
7
  require 'io/console'
@@ -1,5 +1,7 @@
1
- require 'command_kit/command_name'
2
- require 'command_kit/help'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'command_name'
4
+ require_relative 'help'
3
5
 
4
6
  module CommandKit
5
7
  #
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CommandKit
2
4
  # command_kit version
3
- VERSION = "0.5.0"
5
+ VERSION = "0.5.2"
4
6
  end
@@ -1,5 +1,7 @@
1
- require 'command_kit/command_name'
2
- require 'command_kit/env/home'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'command_name'
4
+ require_relative 'env/home'
3
5
 
4
6
  module CommandKit
5
7
  #
data/lib/command_kit.rb CHANGED
@@ -1,2 +1,4 @@
1
- require 'command_kit/command'
2
- require 'command_kit/version'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'command_kit/command'
4
+ require_relative 'command_kit/version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler