squared 0.6.19 → 0.6.20

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf207dc466cef74e15ff2d1af3918d40f2d11f284c968662dacd705560a5c2b
4
- data.tar.gz: abc405b0b839704fa1d0d52116f3e58ce32f02851c399b5126ad934b37e07572
3
+ metadata.gz: bb99c8ca17b63b3aa50d1fff702d84c9a3b878ad49bac62ff385b1da86e2870f
4
+ data.tar.gz: 3abf7aae865ba509a9e194532a3d5537be98f1fdc90994e6a6f24acd874ff45d
5
5
  SHA512:
6
- metadata.gz: 81b918aab70520897e8b6894aeb6714ab6ede54d5cb11c907b2bb87ff595a0b62b782f6e848ea7b69bab0b88f4a6b6d05f5e28ca18af40c561db7e9cb75e8ded
7
- data.tar.gz: 48edbabfd70cc21e8dad5db4d8f916d7c5875d94f6dcd5c60cfb974f5dee5f953cd210f1c06e2147d995655551125f51404ea386ee0354af285d0b5bb14035ec
6
+ metadata.gz: ebe845b8986e0a760156f11a42e837ce874859da1392890a8e1419df66964d501b8aa57e24ade1f02928e6b324ba2c25b61c2be86e0238bc96fa6f142e428a57
7
+ data.tar.gz: b9ed85962f324e1bfccbccb16ac6d8d01b4ba15bf5b058769d99f92288fb75b51f7b8c338fbb2c8a14ac9aa7155f33ef4903ac4e92c199c71f0cefcd6b877cab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.20] - 2026-09-25
4
+
5
+ ### Added
6
+
7
+ - Prompt choice optional selection can be bypassed with a single dash.
8
+
9
+ ### Fixed
10
+
11
+ - Git interactive commit selection did not accept additional values.
12
+
3
13
  ## [0.6.19] - 2026-09-23
4
14
 
5
15
  ### Fixed
@@ -31,7 +41,6 @@
31
41
  ### Fixed
32
42
 
33
43
  - Git action grep did not recognize format and max-count.
34
- - Node command nvm did not quote executable path.
35
44
 
36
45
  ## [0.5.26] - 2026-09-04
37
46
 
@@ -1813,6 +1822,7 @@
1813
1822
 
1814
1823
  - Changelog was created.
1815
1824
 
1825
+ [0.6.20]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.20
1816
1826
  [0.6.19]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.19
1817
1827
  [0.6.18]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.18
1818
1828
  [0.6.17]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.17
@@ -85,8 +85,11 @@ module Squared
85
85
  between = ->(s) { s.match?(/^\d+$/) && s.to_i.between?(min, max <= min ? Float::INFINITY : max) }
86
86
  Timeout.timeout(timeout) do
87
87
  while (ch = Readline.readline(msg))
88
- unless (ch = ch.strip).empty?
89
- if multiple
88
+ ch.strip!
89
+ unless ch.empty?
90
+ if ch == '-' && !force
91
+ break
92
+ elsif multiple
90
93
  k = if ch == '*'
91
94
  (min..max).to_a
92
95
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Squared
4
- VERSION = '0.6.19'
4
+ VERSION = '0.6.20'
5
5
  end
@@ -2021,7 +2021,7 @@ module Squared
2021
2021
  ret = choice_index('Choose a commit', git_spawn(cmd, stdout: false), column: /^(\S+)/, force: force, **kwargs)
2022
2022
  case ret
2023
2023
  when Array
2024
- ret.map { |val| val&.stripstyle }
2024
+ ret.map { |val| val.is_a?(Array) ? val.map { |s| s&.stripstyle } : val&.stripstyle }
2025
2025
  when String
2026
2026
  ret.stripstyle
2027
2027
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squared
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.19
4
+ version: 0.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - An Pham
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 4.0.21
127
+ rubygems_version: 4.0.20
128
128
  specification_version: 4
129
129
  summary: Rake task generator for managing multi-language workspaces.
130
130
  test_files: []