squared 0.7.12 → 0.7.13

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: a1f82d48ab79c1dc869f6c34dbef07e57c7b1bd9cc0ce8b54582d2029d5e9889
4
- data.tar.gz: 55526a1592b3b6ef2aec992288fd74b7772837abc733d4eb6dc69f9e7a208cc6
3
+ metadata.gz: 493f110582768ad2833f1a7a9f873cc5efd129866bf9acd4576b745bbfb6569a
4
+ data.tar.gz: 0bcd73d87fa78c2aea93b73bbbef7443fbcac9d4401414c4c62c19813709906a
5
5
  SHA512:
6
- metadata.gz: 4b60c4bd1db9d601b87ae2e686c3d7ec2190cf766307186a682e10f0e200e5e5280196a7eb55d3c9821707189e9953b6ba1a76c2757ad1f10fec3c96e0d88a83
7
- data.tar.gz: b4527aff9694bf17460b65f0395d30147faaf5ccaee9042ac47e5d81d5f988470ff8e878e20f6a8dc22c39d7bcc166e15e953443a0785d46a71c5cb2aece8871
6
+ metadata.gz: e0f39d08c1481ce320e263ebd17127616d3056bc96d720a55f68a0a279f70babb88f52366a481d12348ce7884b69642db88d4d1b1d6b82907b326f528942579f
7
+ data.tar.gz: 0623ff277e624a6e553b2ff3879b48868ab450e7cff1eee030ab06dc09c982dc01e7e18ca9b33d8f2f6a596f0a3c8e2815624426a1399bcc2149081e03a82aef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.13] - 2026-09-25
4
+
5
+ ### Fixed
6
+
7
+ - OptionPartition did not parse quoted option values.
8
+
9
+ ## [0.6.20] - 2026-09-25
10
+
11
+ ### Added
12
+
13
+ - Prompt choice optional selection can be bypassed with a single dash.
14
+
15
+ ### Fixed
16
+
17
+ - Git interactive commit selection did not accept additional values.
18
+
3
19
  ## [0.7.12] - 2026-09-23
4
20
 
5
21
  ### Fixed
@@ -2018,6 +2034,7 @@
2018
2034
 
2019
2035
  - Changelog was created.
2020
2036
 
2037
+ [0.7.13]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.13
2021
2038
  [0.7.12]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.12
2022
2039
  [0.7.11]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.11
2023
2040
  [0.7.10]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.10
@@ -2031,6 +2048,7 @@
2031
2048
  [0.7.2]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.2
2032
2049
  [0.7.1]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.1
2033
2050
  [0.7.0]: https://github.com/anpham6/squared-ruby/releases/tag/v0.7.0
2051
+ [0.6.20]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.20
2034
2052
  [0.6.19]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.19
2035
2053
  [0.6.18]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.18
2036
2054
  [0.6.17]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.17
@@ -86,7 +86,9 @@ module Squared
86
86
  while (ch = Readline.readline(msg))
87
87
  ch.strip!
88
88
  unless ch.empty?
89
- if multiple
89
+ if ch == '-' && !force
90
+ break
91
+ elsif multiple
90
92
  k = if ch == '*'
91
93
  (min..max).to_a
92
94
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Squared
4
- VERSION = '0.7.12'
4
+ VERSION = '0.7.13'
5
5
  end
@@ -1528,7 +1528,7 @@ module Squared
1528
1528
  end
1529
1529
  if (n = op.index('>'))
1530
1530
  patch = op.slice!(n, 2)[1]
1531
- elsif !op.exist?(op.last)
1531
+ elsif !op.last.include?('*') && !op.exist?(op.last)
1532
1532
  patch ||= op.pop
1533
1533
  end
1534
1534
  append_pathspec op.extras
@@ -2104,7 +2104,7 @@ module Squared
2104
2104
  ret = choice_index('Choose a commit', git_spawn(cmd, stdout: false), column: /^(\S+)/, force: force, **kwargs)
2105
2105
  case ret
2106
2106
  when Array
2107
- ret.map { |val| val&.stripstyle }
2107
+ ret.map { |val| val.is_a?(Array) ? val.map { |s| s&.stripstyle } : val&.stripstyle }
2108
2108
  when String
2109
2109
  ret.stripstyle
2110
2110
  else
@@ -379,7 +379,7 @@ module Squared
379
379
  if has.call(e) || (has.call(bl) && %w[true false].include?(val))
380
380
  add shell_option(key, val, **kwargs)
381
381
  elsif has.call(q)
382
- kwargs[:double] = true if has.call(qq, key)
382
+ kwargs[:double] = true if has.call(qq)
383
383
  add quote_option(key, val, **kwargs)
384
384
  elsif has.call(p)
385
385
  if !double.nil?
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.7.12
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - An Pham
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 4.0.21
128
+ rubygems_version: 4.0.20
129
129
  specification_version: 4
130
130
  summary: Rake task generator for managing multi-language workspaces.
131
131
  test_files: []