command_kit 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f84fffcb26bb3b32c2d87e9e881ce6a29d8632b62aba64d6b47c7aef45ee170
4
- data.tar.gz: 2c0de71142b1f4f7c28986f5b1fcc5bc15939f438daeb00f726809378feb42f8
3
+ metadata.gz: 451095b9c9d71806fd4d49247e733f44aaa1f167d30a7ab76992f55c589cc6c1
4
+ data.tar.gz: bfd419a0c92961eadc07978dec3d136bd9c8375981aa50fd6b0ea855c2c150e3
5
5
  SHA512:
6
- metadata.gz: 3db3a4eab3b425d5d516d39275b71ea552b75e5c41d17e070b8e252b9ecfafa606a0355c32a489ee56549a60f14a40a97ed47f0816e3d5a4581068aede96b44f
7
- data.tar.gz: cc9b154d81e142f46be9452e8b8c98b435e582319e572b1ebb059c2ba03140486b6c8a1a33988f16725e6baabc3451f96d43cb5c9c006c298e275996eb73222e
6
+ metadata.gz: 123a22e7e3cba24445153008600a52fcfc138f10f2a82251e8a712dd9313e53363d2de4be865aa53b5777b75dc4eec2e00f95da1721f9733d2c09f4165161aef
7
+ data.tar.gz: 854ac314927a60b2d667555f0f20ffbdd66ac10badbdac81486cb65dc38b2ac2a50d7b52c87a739885cb7058dafa10b969b49cd23aa4e616650d5def428a6194
data/ChangeLog.md CHANGED
@@ -1,3 +1,17 @@
1
+ ### 0.5.3 / 2024-03-12
2
+
3
+ #### CommandKit::Interactive
4
+
5
+ * Fixed {CommandKit::Interactive#ask} to remove the newline from the read user
6
+ input.
7
+
8
+ ### 0.5.2 / 2024-03-07
9
+
10
+ #### CommandKit::Options
11
+
12
+ * Fixed the `--help` output for options with multi-line descriptions
13
+ (ex: `desc: ['Line 1', 'Line 2', ...]`).
14
+
1
15
  ### 0.5.1 / 2024-01-24
2
16
 
3
17
  * Switched to using `require_relative` to improve load-times.
@@ -77,7 +77,7 @@ module CommandKit
77
77
  stdout.print(prompt)
78
78
 
79
79
  loop do
80
- value = stdin.gets
80
+ value = stdin.gets(chomp: true)
81
81
  value ||= '' # convert nil values (ctrl^D) to an empty String
82
82
 
83
83
  if value.empty?
@@ -306,7 +306,7 @@ module CommandKit
306
306
 
307
307
  @options[option.name] = default_value unless default_value.nil?
308
308
 
309
- 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|
310
310
  @options[option.name] = arg
311
311
 
312
312
  if option.block
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CommandKit
4
4
  # command_kit version
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.3"
6
6
  end
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.1
4
+ version: 0.5.3
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-25 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler