squared 0.3.4 → 0.3.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b59f278e65c23dac20a5c1e9b297190c54f780684979b6573b02acbf26656ac1
|
4
|
+
data.tar.gz: f932dfb230ca2e002f011c14c216e85360165911bd70524d1a7462b9fec3357d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ab1e6ee032fef15a6ccef5f1f2024336d6e97f0bd3b99e1c13e95a71825c3d732ce44a7e429cc172501764d2838c41a1ea126a10f8dde2391d8f3047998d7b
|
7
|
+
data.tar.gz: 570232bd61ade909d6d1b7d68d9a367f77b66d6aacdac116896a8109195a74eb2047f58b66f4bcadf208fdb0819cedbc7ad535b4ac03456e4cdfb29581aa62a1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.3.6] - 2025-03-12
|
4
|
+
|
5
|
+
### Added
|
6
|
+
|
7
|
+
- Git command stash action clear was implemented.
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Git command stash did not validate index argument.
|
12
|
+
- Project graph command does not require arguments.
|
13
|
+
- Ruby gem command exec did not add project name.
|
14
|
+
|
15
|
+
## [0.3.5] - 2025-03-06
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- See `0.2.6`.
|
20
|
+
|
21
|
+
## [0.2.6] - 2025-03-06
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
- Git rebase did not include flag with pull command.
|
26
|
+
|
3
27
|
## [0.3.4] - 2025-03-06
|
4
28
|
|
5
29
|
### Fixed
|
@@ -290,11 +314,14 @@
|
|
290
314
|
|
291
315
|
- Changelog was created.
|
292
316
|
|
317
|
+
[0.3.6]: https://github.com/anpham6/squared/releases/tag/v0.3.6-ruby
|
318
|
+
[0.3.5]: https://github.com/anpham6/squared/releases/tag/v0.3.5-ruby
|
293
319
|
[0.3.4]: https://github.com/anpham6/squared/releases/tag/v0.3.4-ruby
|
294
320
|
[0.3.3]: https://github.com/anpham6/squared/releases/tag/v0.3.3-ruby
|
295
321
|
[0.3.2]: https://github.com/anpham6/squared/releases/tag/v0.3.2-ruby
|
296
322
|
[0.3.1]: https://github.com/anpham6/squared/releases/tag/v0.3.1-ruby
|
297
323
|
[0.3.0]: https://github.com/anpham6/squared/releases/tag/v0.3.0-ruby
|
324
|
+
[0.2.6]: https://github.com/anpham6/squared/releases/tag/v0.2.6-ruby
|
298
325
|
[0.2.5]: https://github.com/anpham6/squared/releases/tag/v0.2.5-ruby
|
299
326
|
[0.2.4]: https://github.com/anpham6/squared/releases/tag/v0.2.4-ruby
|
300
327
|
[0.2.3]: https://github.com/anpham6/squared/releases/tag/v0.2.3-ruby
|
data/lib/squared/version.rb
CHANGED
@@ -254,7 +254,7 @@ module Squared
|
|
254
254
|
|
255
255
|
format_desc action, flag, '(-)project*'
|
256
256
|
task flag do |_, args|
|
257
|
-
args =
|
257
|
+
args = args.to_a.reject { |val| name == val.to_s }
|
258
258
|
if flag == :run
|
259
259
|
graph args
|
260
260
|
else
|
@@ -684,7 +684,7 @@ module Squared
|
|
684
684
|
log&.warn "ENV was discarded: #{var}" if var
|
685
685
|
task_invoke(cmd, exception: exception, warning: warning?)
|
686
686
|
else
|
687
|
-
print_item format_banner(cmd, banner: banner) if sync
|
687
|
+
print_item format_banner(cmd, banner: banner) if sync && !env('BANNER', equals: '0')
|
688
688
|
args = var.is_a?(Hash) ? [var, cmd] : [cmd]
|
689
689
|
shell(*args, chdir: chdir, exception: exception)
|
690
690
|
end
|
@@ -778,7 +778,13 @@ module Squared
|
|
778
778
|
next if pass.include?(meth)
|
779
779
|
|
780
780
|
if workspace.task_defined?(cmd = task_join(proj.name, meth))
|
781
|
+
if ENV.key?(key = "BANNER_#{proj.name.upcase}")
|
782
|
+
key = nil
|
783
|
+
else
|
784
|
+
ENV[key] = '0'
|
785
|
+
end
|
781
786
|
run(cmd, sync: false, banner: false)
|
787
|
+
ENV.delete(key) if key
|
782
788
|
elsif proj.has?(meth, tasks || group ? nil : workspace.baseref)
|
783
789
|
proj.__send__(meth.to_sym, sync: sync)
|
784
790
|
end
|
@@ -72,6 +72,8 @@ module Squared
|
|
72
72
|
|
73
73
|
module Project
|
74
74
|
class Git < Base
|
75
|
+
include Prompt
|
76
|
+
|
75
77
|
OPT_GIT = {
|
76
78
|
branch: %w[a|all create-reflog i|ignore-case q|quiet r|remotes v|verbose abbrev=i color=b column=b
|
77
79
|
contains=e format=q merged=e no-contains=e no-merged=e points-at=e u|set-upstream-to=e sort=q
|
@@ -236,7 +238,7 @@ module Squared
|
|
236
238
|
'restore' => %i[source worktree staged overlay].freeze,
|
237
239
|
'rev' => %i[commit branch output parseopt].freeze,
|
238
240
|
'show' => %i[format oneline].freeze,
|
239
|
-
'stash' => %i[push pop apply drop list].freeze,
|
241
|
+
'stash' => %i[push pop apply drop clear list].freeze,
|
240
242
|
'tag' => %i[add delete list].freeze
|
241
243
|
}.freeze
|
242
244
|
|
@@ -565,7 +567,7 @@ module Squared
|
|
565
567
|
end
|
566
568
|
|
567
569
|
def pull(flag = nil, opts = [], sync: invoked_sync?('pull', flag), remote: nil)
|
568
|
-
cmd = git_session 'pull'
|
570
|
+
cmd = git_session 'pull', flag && "--#{flag}"
|
569
571
|
if (val = option('rebase', ignore: false))
|
570
572
|
cmd << case val
|
571
573
|
when '0'
|
@@ -656,8 +658,15 @@ module Squared
|
|
656
658
|
when :push
|
657
659
|
append_pathspec refs
|
658
660
|
when :pop, :apply, :drop
|
659
|
-
|
660
|
-
|
661
|
+
unless refs.empty?
|
662
|
+
cmd << shell_escape(refs.pop)
|
663
|
+
option_clear refs
|
664
|
+
end
|
665
|
+
when :clear
|
666
|
+
if confirm("Remove #{sub_style('all', styles: theme[:active])} the stash entries? [y/N] ", 'N')
|
667
|
+
source(stdout: true)
|
668
|
+
end
|
669
|
+
return
|
661
670
|
when :list
|
662
671
|
out, banner, from = source(io: true)
|
663
672
|
print_item banner
|
@@ -892,7 +892,7 @@ module Squared
|
|
892
892
|
b = sub_style("#{pkg} #{ver}", styles: theme[:inline])
|
893
893
|
c, d = rev == 1 || lock ? ['y/N', 'N'] : ['Y/n', 'Y']
|
894
894
|
e = lock ? " #{sub_style('(locked)', styles: color(:red))}" : ''
|
895
|
-
|
895
|
+
confirm("Upgrade to #{a}? #{b + e} [#{c}] ", d, timeout: 60)
|
896
896
|
end
|
897
897
|
|
898
898
|
def dryrun?(prefix = dependbin, **)
|
@@ -155,7 +155,7 @@ module Squared
|
|
155
155
|
when 'gem'
|
156
156
|
case flag
|
157
157
|
when :outdated, :build, :push, :exec
|
158
|
-
format_desc
|
158
|
+
format_desc(action, flag, 'opts*', before: flag == :exec ? 'command+' : nil)
|
159
159
|
task flag do |_, args|
|
160
160
|
gemx flag, args.to_a
|
161
161
|
end
|
@@ -470,7 +470,7 @@ module Squared
|
|
470
470
|
end
|
471
471
|
when :exec
|
472
472
|
raise_error('gem', flag, hint: 'no command given') if out.empty?
|
473
|
-
cmd << out.join(' ')
|
473
|
+
cmd << project << out.join(' ')
|
474
474
|
else
|
475
475
|
if out.empty? && cmd.none? { |val| val =~ /^--system(?:=|$)/ }
|
476
476
|
raise_error('gem', flag, hint: 'no gemname given')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- An Pham
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|