squared 0.1.7 → 0.1.8
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 +10 -0
- 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/node.rb +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2de07baaee5e8dab48b40441f8ec83a471e1b54c464fe8d06bb360eeef06c6d0
|
4
|
+
data.tar.gz: 3f2fab32edfcbec1cd13a0f320ce540f174d8da54b89e70c29eff9033c3b8244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9199678633fe880e68d0adc7d9a2bb61cef4b9d7298b395e4d34621669f8db4b74f38321bc644f5113783d4b722a0547228e21d53c36ea22d5f25f34778aff1
|
7
|
+
data.tar.gz: 6c4905fd7a1d74e68951644633c40f78e3acc6dde48ac8ba397c853759101439ef7d43ef5a2e446cc1c99eb73ef237ebd3caf22764b9593331c44b87b764b034
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.1.8] - 2025-05-15
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Disabled batch and alias tasks were not hidden.
|
8
|
+
- Log messages were written to terminal twice when emphasized.
|
9
|
+
- Node outdated interactive for major would sometimes deactivate.
|
10
|
+
- Node outdated interactive for major was mislabeled as minor.
|
11
|
+
|
3
12
|
## [0.1.7] - 2025-04-27
|
4
13
|
|
5
14
|
### Fixed
|
@@ -118,6 +127,7 @@
|
|
118
127
|
|
119
128
|
- Changelog was created.
|
120
129
|
|
130
|
+
[0.1.8]: https://github.com/anpham6/squared/releases/tag/v0.1.8-ruby
|
121
131
|
[0.1.7]: https://github.com/anpham6/squared/releases/tag/v0.1.7-ruby
|
122
132
|
[0.1.6]: https://github.com/anpham6/squared/releases/tag/v0.1.6-ruby
|
123
133
|
[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
@@ -343,7 +343,7 @@ module Squared
|
|
343
343
|
tasks << key if obj.has?(key, baseref)
|
344
344
|
elsif (batch = series.batch_get(key))
|
345
345
|
obj.allref.each do |ref|
|
346
|
-
next unless (data = batch[ref])
|
346
|
+
next unless obj.has?(key, ref) && (data = batch[ref])
|
347
347
|
|
348
348
|
data.each do |val|
|
349
349
|
if (items = task_resolve(obj, val)).empty?
|
@@ -362,7 +362,7 @@ module Squared
|
|
362
362
|
return [] if (base && !obj.ref?(baseref)) || !(data = series.alias_get(key))
|
363
363
|
|
364
364
|
obj.allref.each do |ref|
|
365
|
-
next unless (alt = data[ref])
|
365
|
+
next unless obj.has?(key, ref) && (alt = data[ref])
|
366
366
|
|
367
367
|
ret = task_resolve(obj, alt)
|
368
368
|
break unless ret.empty?
|
@@ -340,7 +340,7 @@ module Squared
|
|
340
340
|
index = if a != c
|
341
341
|
1
|
342
342
|
elsif b != d
|
343
|
-
3
|
343
|
+
a == '0' ? 1 : 3
|
344
344
|
else
|
345
345
|
5
|
346
346
|
end
|
@@ -373,7 +373,8 @@ module Squared
|
|
373
373
|
col2 = size_col.(found, 1) + 4
|
374
374
|
found.each_with_index do |item, i|
|
375
375
|
a, b, c, d, e = item
|
376
|
-
|
376
|
+
f = inter && (rev != :major || e || semmajor?(item[5], item[6]))
|
377
|
+
if f && !confirm_outdated(a, c, d, e)
|
377
378
|
cur = -1
|
378
379
|
else
|
379
380
|
cur = modified
|
@@ -532,6 +533,10 @@ module Squared
|
|
532
533
|
dependfile.exist?
|
533
534
|
end
|
534
535
|
|
536
|
+
def refresh?
|
537
|
+
!Node.prod?
|
538
|
+
end
|
539
|
+
|
535
540
|
def yarn?
|
536
541
|
(@pm[:yarn] ||= if basepath('yarn.lock', ascend: dependext).exist?
|
537
542
|
if (rc = basepath('.yarnrc.yml', ascend: dependext)).exist?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- An Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
125
|
+
rubygems_version: 3.1.6
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Rake task generator for managing multi-language workspaces.
|