squared 0.6.12 → 0.6.13

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: 05f58e158cd533725a7c9e6eaacead60da71dddbf311e2f63a4f69f2e51ec998
4
- data.tar.gz: 4d400ce46ffaf7dd7c2a7a48ea28019bca1e313c46cef7dc666f64be492808e7
3
+ metadata.gz: 94097556aa9d578868291a94e79b77bb4c647f25a732c18168af747ef159d176
4
+ data.tar.gz: c5546efd99a127548fe59d3c43b19fe44c0328470b89549ad6c094898ca60599
5
5
  SHA512:
6
- metadata.gz: 0dd82a720a4f3d63a8d342ee09cb582c818299d6a25922dd4a366602392afb47a89b6138a69f8d30875e617b18a0b3e929de554c0a9512a8bfe10b526569c33a
7
- data.tar.gz: 0e99a815e0c8e769edc40171d9e3f039f82fcd366b6d66a094ef35425dc0cb44cc83eb67cad605dd8a7bf25dbf6daf15e18ee2605da866b57e2ed1f8a4011849
6
+ metadata.gz: 03f8156021daa593832a7366a4cca5e3c62451bbdba1c4c2138cde0549c3fa9f4f584fc6ab7a89f3dd0abb5fb618b0e87a8f01bbab44202b320e17062379deb4
7
+ data.tar.gz: eab421c80afe78291ec52442e26fd9e99467ee934d76afa9d04843e5670cd9e67720e5e63247f625a17889fb2ef0fffa1699ae4d733b28ef12b694960bd8c6f4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.13] - 2026-05-04
4
+
5
+ ### Added
6
+
7
+ - Application project commands can be defined without a reference.
8
+
9
+ ### Fixed
10
+
11
+ - Application methods log and exclude were non-functional.
12
+ - Project base tasks did not detect build scripts using Arrays.
13
+
3
14
  ## [0.6.12] - 2026-04-29
4
15
 
5
16
  ### Fixed
@@ -1664,6 +1675,7 @@
1664
1675
 
1665
1676
  - Changelog was created.
1666
1677
 
1678
+ [0.6.13]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.13
1667
1679
  [0.6.12]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.12
1668
1680
  [0.6.11]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.11
1669
1681
  [0.6.10]: https://github.com/anpham6/squared-ruby/releases/tag/v0.6.10
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Squared
4
- VERSION = '0.6.12'
4
+ VERSION = '0.6.13'
5
5
  end
@@ -867,7 +867,7 @@ module Squared
867
867
  log_console(*args, pipe: kwargs[:pipe] || pipe)
868
868
  end
869
869
 
870
- def script_command(task, val, group, ref, on, &blk)
870
+ def script_command(task, val, group, ref, on = nil, &blk)
871
871
  if block_given?
872
872
  val = Struct::RunData.new(val, blk)
873
873
  elsif !val
@@ -878,7 +878,7 @@ module Squared
878
878
  as_a group, :to_sym
879
879
  else
880
880
  label = :ref
881
- as_a ref, :to_sym
881
+ as_a(ref || :_, :to_sym)
882
882
  end.each do |name|
883
883
  @script[label][name][task] = val
884
884
  @events[label][name][task] = on if on.is_a?(Hash)
@@ -910,6 +910,8 @@ module Squared
910
910
  nil
911
911
  elsif ref && target[:ref].key?(ref)
912
912
  target[:ref][ref]
913
+ else
914
+ target[:ref][:_]
913
915
  end
914
916
  end
915
917
 
@@ -1249,7 +1249,7 @@ module Squared
1249
1249
  else
1250
1250
  if series?(obj)
1251
1251
  obj.each(&:call)
1252
- elsif obj.is_a?(Array) && obj.none?(String)
1252
+ elsif obj.is_a?(Array) && obj.any? { |val| val.nil? || !val.is_a?(String) }
1253
1253
  build(*obj, **kwargs)
1254
1254
  elsif obj
1255
1255
  run_s(*Array(obj), **kwargs)
@@ -857,13 +857,18 @@ module Squared
857
857
  package(:update, from: :update)
858
858
  end
859
859
 
860
- def publish(flag = nil, *, sync: invoked_sync?('publish', flag), otp: nil, tag: nil, access: nil, dryrun: nil)
860
+ def publish(flag = nil, *, sync: invoked_sync?('publish', flag), otp: nil, tag: nil, access: nil, dryrun: nil,
861
+ workspace: false)
861
862
  if read_package('private')
863
+ return if workspace
864
+
862
865
  ws = children.select { |proj| proj.ref?(Node.ref) }
863
866
  if ws.empty?
864
867
  print_error('nothing to publish', subject: name, hint: 'private')
865
868
  elsif confirm_basic('Publish workspace?', ws.map(&:name).join(', '), 'N')
866
- ws.each { |proj| proj.publish(flag, sync: sync, otp: otp, tag: tag, access: access, dryrun: dryrun) }
869
+ ws.each do |proj|
870
+ proj.publish(flag, sync: sync, otp: otp, tag: tag, access: access, dryrun: dryrun, workspace: true)
871
+ end
867
872
  end
868
873
  return
869
874
  end
@@ -204,7 +204,7 @@ module Squared
204
204
  end
205
205
  next if found.anybits?(1)
206
206
 
207
- puts log_message(found == 0 ? Logger::INFO : Logger.WARN,
207
+ puts log_message(found == 0 ? Logger::INFO : Logger::WARN,
208
208
  "no scripts #{found == 0 ? 'found' : 'executed'}",
209
209
  subject: name, hint: pyprojectfile)
210
210
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squared
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - An Pham
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 4.0.6
127
+ rubygems_version: 4.0.11
128
128
  specification_version: 4
129
129
  summary: Rake task generator for managing multi-language workspaces.
130
130
  test_files: []