squared 0.2.10 → 0.2.11
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 +19 -1
- data/lib/squared/common/format.rb +3 -1
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/application.rb +2 -2
- data/lib/squared/workspace/project/git.rb +5 -1
- data/lib/squared/workspace/project/node.rb +7 -2
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a71c2dd60f8ae407c47d764959de398fe63e62b62069a858ffa10ef75ca861b4
|
4
|
+
data.tar.gz: afb4976839a8bdb581086c82190fc30a369f2e025561fa95a4e8e1f573094d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07ea068884c72590aeb5317b64f1a754e8aa74d7f99692dcdb0990c0a21196c45e45b636c291506f591c5aac11f4f0ddc0d6cf7c8e521c8db1abdf1e5c286350
|
7
|
+
data.tar.gz: e289d5c37484e6bfe7045629f0be5cb5a1effeaaf70cd74b943353912a7754c4e87560cd607abfd6fb8dc6cf7149f3d01c68e9704162d1f58d46867ac91a4515
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.2.11] - 2025-05-15
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Disabled batch and alias tasks were not hidden.
|
8
|
+
- Workspace git did not parse multiple download URIs.
|
9
|
+
|
10
|
+
## [0.1.8] - 2025-05-15
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Disabled batch and alias tasks were not hidden.
|
15
|
+
- Log messages were written to terminal twice when emphasized.
|
16
|
+
- Node outdated interactive for major would sometimes deactivate.
|
17
|
+
- Node outdated interactive for major was mislabeled as minor.
|
18
|
+
|
3
19
|
## [0.2.10] - 2025-04-27
|
4
20
|
|
5
21
|
### Fixed
|
@@ -190,7 +206,7 @@
|
|
190
206
|
- Node tasks without any action are not displayed.
|
191
207
|
- Git fetch commands that do not apply to pull are rejected.
|
192
208
|
|
193
|
-
## [0.1.3] -
|
209
|
+
## [0.1.3] - 2025-01-02
|
194
210
|
|
195
211
|
### Fixed
|
196
212
|
|
@@ -269,6 +285,7 @@
|
|
269
285
|
|
270
286
|
- Changelog was created.
|
271
287
|
|
288
|
+
[0.2.11]: https://github.com/anpham6/squared/releases/tag/v0.2.11-ruby
|
272
289
|
[0.2.10]: https://github.com/anpham6/squared/releases/tag/v0.2.10-ruby
|
273
290
|
[0.2.9]: https://github.com/anpham6/squared/releases/tag/v0.2.9-ruby
|
274
291
|
[0.2.8]: https://github.com/anpham6/squared/releases/tag/v0.2.8-ruby
|
@@ -280,6 +297,7 @@
|
|
280
297
|
[0.2.2]: https://github.com/anpham6/squared/releases/tag/v0.2.2-ruby
|
281
298
|
[0.2.1]: https://github.com/anpham6/squared/releases/tag/v0.2.1-ruby
|
282
299
|
[0.2.0]: https://github.com/anpham6/squared/releases/tag/v0.2.0-ruby
|
300
|
+
[0.1.8]: https://github.com/anpham6/squared/releases/tag/v0.1.8-ruby
|
283
301
|
[0.1.7]: https://github.com/anpham6/squared/releases/tag/v0.1.7-ruby
|
284
302
|
[0.1.6]: https://github.com/anpham6/squared/releases/tag/v0.1.6-ruby
|
285
303
|
[0.1.5]: https://github.com/anpham6/squared/releases/tag/v0.1.5-ruby
|
@@ -171,7 +171,7 @@ module Squared
|
|
171
171
|
if args.size > 1
|
172
172
|
title = log_title(level, color: false)
|
173
173
|
sub = { pat: /^(#{title})(.+)$/, styles: __get__(:theme)[:logger][log_sym(level)] } if color
|
174
|
-
emphasize(args, title: title + (subject ? " #{subject}" : ''), sub: sub)
|
174
|
+
emphasize(args, title: title + (subject ? " #{subject}" : ''), sub: sub, pipe: -1)
|
175
175
|
else
|
176
176
|
msg = [log_title(level, color: color)]
|
177
177
|
msg << (color ? sub_style(subject, :underline) : subject) if subject
|
@@ -257,6 +257,8 @@ module Squared
|
|
257
257
|
yield out
|
258
258
|
elsif pipe
|
259
259
|
case pipe
|
260
|
+
when -1
|
261
|
+
return out
|
260
262
|
when 0
|
261
263
|
pipe = $stdin
|
262
264
|
when 2
|
data/lib/squared/version.rb
CHANGED
@@ -427,7 +427,7 @@ module Squared
|
|
427
427
|
tasks << key if obj.has?(key, baseref)
|
428
428
|
elsif (batch = series.batch_get(key))
|
429
429
|
obj.allref.each do |ref|
|
430
|
-
next unless (data = batch[ref])
|
430
|
+
next unless obj.has?(key, ref) && (data = batch[ref])
|
431
431
|
|
432
432
|
data.each do |val|
|
433
433
|
if (items = task_resolve(obj, val)).empty?
|
@@ -446,7 +446,7 @@ module Squared
|
|
446
446
|
return [] if (base && !obj.ref?(baseref)) || !(data = series.alias_get(key))
|
447
447
|
|
448
448
|
obj.allref.each do |ref|
|
449
|
-
next unless (alt = data[ref])
|
449
|
+
next unless obj.has?(key, ref) && (alt = data[ref])
|
450
450
|
|
451
451
|
ret = task_resolve(obj, alt)
|
452
452
|
break unless ret.empty?
|
@@ -12,7 +12,11 @@ module Squared
|
|
12
12
|
check = ->(proj) { proj.is_a?(Project::Git) && !proj.exclude?(Project::Git.ref) && git_clone?(proj.path) }
|
13
13
|
if uri.is_a?(Array)
|
14
14
|
base = name
|
15
|
-
uri.each
|
15
|
+
uri.each do |val|
|
16
|
+
if (proj = @project[val.to_s]) && check.(proj)
|
17
|
+
repo << proj
|
18
|
+
end
|
19
|
+
end
|
16
20
|
elsif uri
|
17
21
|
data[name.to_s] = uri
|
18
22
|
elsif name.is_a?(Enumerable)
|
@@ -403,7 +403,7 @@ module Squared
|
|
403
403
|
index = if a != c
|
404
404
|
1
|
405
405
|
elsif b != d
|
406
|
-
3
|
406
|
+
a == '0' ? 1 : 3
|
407
407
|
else
|
408
408
|
5
|
409
409
|
end
|
@@ -437,7 +437,8 @@ module Squared
|
|
437
437
|
col2 = size_col.(found, 1) + 4
|
438
438
|
found.each_with_index do |item, i|
|
439
439
|
a, b, c, d, e = item
|
440
|
-
|
440
|
+
f = inter && (rev != :major || e || semmajor?(item[5], item[6]))
|
441
|
+
if f && !confirm_outdated(a, c, d, e)
|
441
442
|
cur = -1
|
442
443
|
else
|
443
444
|
cur = modified
|
@@ -605,6 +606,10 @@ module Squared
|
|
605
606
|
dependfile.exist?
|
606
607
|
end
|
607
608
|
|
609
|
+
def refresh?
|
610
|
+
!Node.prod?
|
611
|
+
end
|
612
|
+
|
608
613
|
def yarn?
|
609
614
|
(@pm[:yarn] ||= if basepath('yarn.lock', ascend: dependext).exist?
|
610
615
|
if (rc = basepath('.yarnrc.yml', ascend: dependext)).exist?
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- An Pham
|
8
|
+
autorequire:
|
8
9
|
bindir: exe
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-
|
11
|
+
date: 2025-05-15 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: rake
|
@@ -106,6 +107,7 @@ metadata:
|
|
106
107
|
homepage_uri: https://github.com/anpham6/squared
|
107
108
|
source_code_uri: https://github.com/anpham6/squared
|
108
109
|
documentation_uri: https://squared.readthedocs.io
|
110
|
+
post_install_message:
|
109
111
|
rdoc_options: []
|
110
112
|
require_paths:
|
111
113
|
- lib
|
@@ -120,7 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
122
|
- !ruby/object:Gem::Version
|
121
123
|
version: '0'
|
122
124
|
requirements: []
|
123
|
-
rubygems_version: 3.6
|
125
|
+
rubygems_version: 3.1.6
|
126
|
+
signing_key:
|
124
127
|
specification_version: 4
|
125
128
|
summary: Rake task generator for managing multi-language workspaces.
|
126
129
|
test_files: []
|