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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8b2e8a394034cfe323c5997a02b1e7c3f9ea0e2c9df925a87801fc8b9a61061
4
- data.tar.gz: c30e2dcd5d3cea0526eea68f47ae8740949a4eb3b32ff1e76f9a15fc5e115f85
3
+ metadata.gz: a71c2dd60f8ae407c47d764959de398fe63e62b62069a858ffa10ef75ca861b4
4
+ data.tar.gz: afb4976839a8bdb581086c82190fc30a369f2e025561fa95a4e8e1f573094d91
5
5
  SHA512:
6
- metadata.gz: 4ec98cbf7dd9a4f0c63d316650fd3163cc0ec78934c30f638bbc531c31c8bfec075c8911c28a3af1b5f74ae1b5cdb92721f5f17e4e0973e3a7ecdbd326664a0b
7
- data.tar.gz: 4b4f4270e87a1a427c30ed8c2f1fadeea9aad227592bd2268117f303919c27ec14adb596fb7668f611bbad20000376cf936050537f202533613ba333330b48c5
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] - 2024-01-02
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Squared
4
- VERSION = '0.2.10'
4
+ VERSION = '0.2.11'
5
5
  end
@@ -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 { |val| repo << proj if (proj = @project[val.to_s]) && check.(proj) }
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
- if inter && (rev != :major || e || semmajor?(item[5], item[6])) && !confirm_outdated(a, c, d, e)
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.10
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-04-28 00:00:00.000000000 Z
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.2
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: []