squared 0.3.3 → 0.3.5
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 +29 -7
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/project/base.rb +6 -4
- data/lib/squared/workspace/project/git.rb +2 -2
- data/lib/squared/workspace/project/ruby.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: 0bc9a21d89644d6af172db450fcd7e4221df93564e8a047791f47cb536d27abd
|
4
|
+
data.tar.gz: 3e2b746efc3797971655d80430135e2a599018e6c8037ebaab3d70200409e74b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7351e9a9aeef1cd2016d3406d6d71408a6e7ae1b51d9e0973e56eae5bf290c3ecf633e12ddec196bf5b21f53a7c97e0762f5fdfc78e4c22c9f54bd2e9a235a
|
7
|
+
data.tar.gz: 7c699292f19f06c8a03e8e92a7ccc2e82fe7ce640acd268a60c31b12e2a4dc9fa10669b357222e3b3c3ee2227b7846f9e5fa91f6da9d499d7b6ff8340e440958
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [0.3.
|
3
|
+
## [0.3.5] - 2025-03-06
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- See `0.2.6`.
|
8
|
+
|
9
|
+
## [0.2.6] - 2025-03-06
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Git rebase did not include flag with pull command.
|
14
|
+
|
15
|
+
## [0.3.4] - 2025-03-06
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- Ruby bundle sub-commands used undefined method.
|
20
|
+
- Project graph did not display main tree branch.
|
21
|
+
|
22
|
+
## [0.3.3] - 2025-03-02
|
4
23
|
|
5
24
|
### Fixed
|
6
25
|
|
@@ -10,19 +29,19 @@
|
|
10
29
|
- Git list display did not support single grep pattern.
|
11
30
|
- Gem outdated did not pass -C option for PWD.
|
12
31
|
|
13
|
-
## [0.3.2] -
|
32
|
+
## [0.3.2] - 2025-02-25
|
14
33
|
|
15
34
|
### Fixed
|
16
35
|
|
17
36
|
- Task program command options used unrecognized symbol.
|
18
37
|
|
19
|
-
## [0.2.5] -
|
38
|
+
## [0.2.5] - 2025-02-25
|
20
39
|
|
21
40
|
### Fixed
|
22
41
|
|
23
42
|
- See `0.1.5`.
|
24
43
|
|
25
|
-
## [0.1.5] -
|
44
|
+
## [0.1.5] - 2025-02-25
|
26
45
|
|
27
46
|
### Fixed
|
28
47
|
|
@@ -107,7 +126,7 @@
|
|
107
126
|
|
108
127
|
- Project hash options duplicated dash prefix.
|
109
128
|
|
110
|
-
## [0.1.4] -
|
129
|
+
## [0.1.4] - 2025-02-05
|
111
130
|
|
112
131
|
### Fixed
|
113
132
|
|
@@ -204,7 +223,7 @@
|
|
204
223
|
- Node tasks without any action are not displayed.
|
205
224
|
- Git fetch commands that do not apply to pull are rejected.
|
206
225
|
|
207
|
-
## [0.1.3] -
|
226
|
+
## [0.1.3] - 2025-01-02
|
208
227
|
|
209
228
|
### Fixed
|
210
229
|
|
@@ -233,7 +252,7 @@
|
|
233
252
|
- Workspace did not check base project for Windows filename.
|
234
253
|
- Regexp for SemVer did not recognize package names.
|
235
254
|
|
236
|
-
## [0.1.1] -
|
255
|
+
## [0.1.1] - 2024-12-14
|
237
256
|
|
238
257
|
### Added
|
239
258
|
|
@@ -283,10 +302,13 @@
|
|
283
302
|
|
284
303
|
- Changelog was created.
|
285
304
|
|
305
|
+
[0.3.5]: https://github.com/anpham6/squared/releases/tag/v0.3.5-ruby
|
306
|
+
[0.3.4]: https://github.com/anpham6/squared/releases/tag/v0.3.4-ruby
|
286
307
|
[0.3.3]: https://github.com/anpham6/squared/releases/tag/v0.3.3-ruby
|
287
308
|
[0.3.2]: https://github.com/anpham6/squared/releases/tag/v0.3.2-ruby
|
288
309
|
[0.3.1]: https://github.com/anpham6/squared/releases/tag/v0.3.1-ruby
|
289
310
|
[0.3.0]: https://github.com/anpham6/squared/releases/tag/v0.3.0-ruby
|
311
|
+
[0.2.6]: https://github.com/anpham6/squared/releases/tag/v0.2.6-ruby
|
290
312
|
[0.2.5]: https://github.com/anpham6/squared/releases/tag/v0.2.5-ruby
|
291
313
|
[0.2.4]: https://github.com/anpham6/squared/releases/tag/v0.2.4-ruby
|
292
314
|
[0.2.3]: https://github.com/anpham6/squared/releases/tag/v0.2.3-ruby
|
data/lib/squared/version.rb
CHANGED
@@ -718,8 +718,8 @@ module Squared
|
|
718
718
|
end
|
719
719
|
end
|
720
720
|
|
721
|
-
def graph_branch(target, data, tasks = nil, out = nil, sync: true, pass: [], done: [], depth: 0,
|
722
|
-
single: false)
|
721
|
+
def graph_branch(target, data, tasks = nil, out = nil, sync: true, pass: [], done: [], depth: 0,
|
722
|
+
single: false, last: false, context: nil)
|
723
723
|
tag = ->(proj) { "#{proj.name}#{SEM_VER =~ proj.version ? "@#{proj.version}" : ''}" }
|
724
724
|
check = ->(deps) { deps.reject { |val| done.include?(val) } }
|
725
725
|
dedupe = lambda do |name|
|
@@ -768,7 +768,7 @@ module Squared
|
|
768
768
|
end
|
769
769
|
unless start == proj.name || (none = check.(t).empty?)
|
770
770
|
graph_branch(proj, data, tasks, out, sync: sync, pass: pass, done: done, depth: depth.succ,
|
771
|
-
single: single, last: j == true)
|
771
|
+
single: single, last: j == true, context: target)
|
772
772
|
end
|
773
773
|
if !out
|
774
774
|
if !tasks && (script = workspace.script_get(:graph, group: proj.group, ref: proj.allref))
|
@@ -790,8 +790,10 @@ module Squared
|
|
790
790
|
else
|
791
791
|
s = ''.dup
|
792
792
|
k = 0
|
793
|
+
final = data.keys.last
|
793
794
|
while k < depth
|
794
|
-
|
795
|
+
indent = k > 0 && ((last && !j) || (j && k == depth - 1) || single)
|
796
|
+
s += "#{indent || (last && data[final].last == context) ? ' ' : a} "
|
795
797
|
k += 1
|
796
798
|
end
|
797
799
|
s + "#{j ? d : c}#{b * 3} #{tag.(proj)}"
|
@@ -565,7 +565,7 @@ module Squared
|
|
565
565
|
end
|
566
566
|
|
567
567
|
def pull(flag = nil, opts = [], sync: invoked_sync?('pull', flag), remote: nil)
|
568
|
-
cmd = git_session 'pull'
|
568
|
+
cmd = git_session 'pull', flag && "--#{flag}"
|
569
569
|
if (val = option('rebase', ignore: false))
|
570
570
|
cmd << case val
|
571
571
|
when '0'
|
@@ -1203,7 +1203,7 @@ module Squared
|
|
1203
1203
|
if size > 0
|
1204
1204
|
styles = theme.fetch(:banner, []).reject { |s| s.to_s.end_with?('!') }
|
1205
1205
|
styles << :bold if styles.size <= 1
|
1206
|
-
puts print_footer("#{size} #{size == 1 ? type.sub(/s\z/, '') : type}",
|
1206
|
+
puts print_footer("#{size} #{size == 1 ? type.sub(/e?s\z/, '') : type}",
|
1207
1207
|
sub: { pat: /\A(\d+)(.+)\z/, styles: styles })
|
1208
1208
|
else
|
1209
1209
|
puts empty_status("No #{type} were #{action}", 'grep', grep.is_a?(Array) ? case grep.size
|
@@ -505,7 +505,7 @@ module Squared
|
|
505
505
|
args = option_sanitize(args, OPT_BUNDLE[flag.to_sym] + OPT_BUNDLE[:common]).first
|
506
506
|
end
|
507
507
|
raise_error('bundle', flag, hint: 'no command given') unless !args.empty? || flag == 'check'
|
508
|
-
cmd.merge
|
508
|
+
cmd.merge(args)
|
509
509
|
run(from: :"bundle:#{flag}")
|
510
510
|
end
|
511
511
|
|
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.5
|
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-06 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|