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 +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/squared/common/prompt.rb +5 -2
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/project/git.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb99c8ca17b63b3aa50d1fff702d84c9a3b878ad49bac62ff385b1da86e2870f
|
|
4
|
+
data.tar.gz: 3abf7aae865ba509a9e194532a3d5537be98f1fdc90994e6a6f24acd874ff45d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
89
|
-
|
|
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
|
data/lib/squared/version.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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: []
|