squared 0.3.0 → 0.3.1
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 +23 -1
- data/lib/squared/common/format.rb +1 -1
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/project/base.rb +1 -1
- data/lib/squared/workspace/project/git.rb +7 -6
- data/lib/squared/workspace/project/node.rb +1 -1
- 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: 73841385e6cf27c4865e2e1ff419fb6b2c7a4364fb2dbc45ea6be3e160fa4a8a
|
4
|
+
data.tar.gz: 49182d71ec996c4e0404e91ceb286ff0c51ef27c128ce4797951f613bedcd97d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff95d1a348a9755d2cc80a7797be77cb693e5381923a83e29c2952d240b8ecae9f047c4cd18257ab6a4d7c5b3716a03574a4ddbad81263d4fb1a5231a9a6ab1
|
7
|
+
data.tar.gz: 00fea0a58cebde46cae1b67c1a58b6f7e8cd5f685e28220910d5a3c768be76a931cae175806e050b5fa3ef48b40cf8945ae69ef2d2896dec512727a52793a68f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.3.1] - 2025-02-12
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Build ENV options error message used undeclared variable.
|
8
|
+
|
9
|
+
## [0.2.4] - 2025-02-12
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Git status did not show ignored or untracked files.
|
14
|
+
- Caller locations were not compatible with Ruby 2.4.
|
15
|
+
|
3
16
|
## [0.3.0] - 2025-02-07
|
4
17
|
|
5
18
|
### Added
|
@@ -61,7 +74,13 @@
|
|
61
74
|
### Fixed
|
62
75
|
|
63
76
|
- Project hash options duplicated dash prefix.
|
64
|
-
|
77
|
+
|
78
|
+
## [0.1.4] - 2024-02-05
|
79
|
+
|
80
|
+
### Fixed
|
81
|
+
|
82
|
+
- Build options with array args were not recognized.
|
83
|
+
- Pip upgrade did not append package names.
|
65
84
|
|
66
85
|
## [0.2.2] - 2025-01-19
|
67
86
|
|
@@ -232,11 +251,14 @@
|
|
232
251
|
|
233
252
|
- Changelog was created.
|
234
253
|
|
254
|
+
[0.3.1]: https://github.com/anpham6/squared/releases/tag/v0.3.1-ruby
|
235
255
|
[0.3.0]: https://github.com/anpham6/squared/releases/tag/v0.3.0-ruby
|
256
|
+
[0.2.4]: https://github.com/anpham6/squared/releases/tag/v0.2.4-ruby
|
236
257
|
[0.2.3]: https://github.com/anpham6/squared/releases/tag/v0.2.3-ruby
|
237
258
|
[0.2.2]: https://github.com/anpham6/squared/releases/tag/v0.2.2-ruby
|
238
259
|
[0.2.1]: https://github.com/anpham6/squared/releases/tag/v0.2.1-ruby
|
239
260
|
[0.2.0]: https://github.com/anpham6/squared/releases/tag/v0.2.0-ruby
|
261
|
+
[0.1.4]: https://github.com/anpham6/squared/releases/tag/v0.1.4-ruby
|
240
262
|
[0.1.3]: https://github.com/anpham6/squared/releases/tag/v0.1.3-ruby
|
241
263
|
[0.1.2]: https://github.com/anpham6/squared/releases/tag/v0.1.2-ruby
|
242
264
|
[0.1.1]: https://github.com/anpham6/squared/releases/tag/v0.1.1-ruby
|
@@ -279,7 +279,7 @@ module Squared
|
|
279
279
|
end
|
280
280
|
|
281
281
|
def raise_error(*args, hint: nil, kind: ArgumentError)
|
282
|
-
raise kind, message(*args, hint: hint, empty: true), caller_locations(1)
|
282
|
+
raise kind, message(*args, hint: hint, empty: true), caller_locations(1).map(&:to_s)
|
283
283
|
end
|
284
284
|
end
|
285
285
|
end
|
data/lib/squared/version.rb
CHANGED
@@ -208,7 +208,7 @@ module Squared
|
|
208
208
|
if @output[2] != false && (val = env('BUILD', suffix: 'ENV'))
|
209
209
|
begin
|
210
210
|
data = JSON.parse(val)
|
211
|
-
raise_error('invalid JSON object', val, hint: "#{
|
211
|
+
raise_error('invalid JSON object', val, hint: "BUILD_#{@envname}_ENV") unless data.is_a?(Hash)
|
212
212
|
rescue StandardError => e
|
213
213
|
log.warn e
|
214
214
|
else
|
@@ -674,7 +674,8 @@ module Squared
|
|
674
674
|
end
|
675
675
|
|
676
676
|
def status(*, sync: invoked_sync?('status'), **)
|
677
|
-
cmd = git_session 'status'
|
677
|
+
cmd = git_session 'status'
|
678
|
+
cmd << (option('long') ? '--long' : '--short')
|
678
679
|
if (val = option('ignore-submodules', ignore: false))
|
679
680
|
cmd << basic_option('ignore-submodules', case val
|
680
681
|
when '0', 'none'
|
@@ -695,8 +696,8 @@ module Squared
|
|
695
696
|
end
|
696
697
|
ret = write_lines(out, banner: banner, sub: if verbose
|
697
698
|
[
|
698
|
-
{ pat: /^(.)([A-Z])(.+)$/, styles: :red, index: 2 },
|
699
|
-
{ pat: /^([A-Z])(.+)$/, styles: :green },
|
699
|
+
{ pat: /^(.)([A-Z?!])(.+)$/, styles: :red, index: 2 },
|
700
|
+
{ pat: /^([A-Z?!])(.+)$/, styles: :green },
|
700
701
|
{ pat: /^(\?\?)(.+)$/, styles: :red },
|
701
702
|
{ pat: /^(## )(.+)(\.{3})(.+)$/,
|
702
703
|
styles: [nil, :green, nil, :red], index: -1 }
|
@@ -895,14 +896,14 @@ module Squared
|
|
895
896
|
origin = nil
|
896
897
|
branch = nil
|
897
898
|
upstream = nil
|
898
|
-
source(git_output('fetch
|
899
|
-
source(git_output('branch
|
899
|
+
source(git_output('fetch --no-tags --quiet'), io: true, banner: false)
|
900
|
+
source(git_output('branch -vv --list'), io: true, banner: false).first.each do |val|
|
900
901
|
next unless (data = /^\*\s(\S+)\s+(\h+)(?:\s\[(.+?)(?=\]\s)\])?\s/.match(val))
|
901
902
|
|
902
903
|
branch = data[1]
|
903
904
|
if !data[3]
|
904
905
|
unless (origin = option('repository', prefix: 'git', ignore: false))
|
905
|
-
out = source(git_output('log
|
906
|
+
out = source(git_output('log -n1 --format=%h%d'), io: true, stdout: true, banner: false).first
|
906
907
|
if out =~ /^#{data[2]} \(HEAD -> #{Regexp.escape(branch)}, (.+?)\)$/
|
907
908
|
split_escape($1).each do |val|
|
908
909
|
next unless val.end_with?("/#{branch}")
|
@@ -5,7 +5,7 @@ module Squared
|
|
5
5
|
module Project
|
6
6
|
class Node < Git
|
7
7
|
OPT_NPM = {
|
8
|
-
common: %w[dry-run include-workspace-root workspaces w|workspace=s].freeze,
|
8
|
+
common: %w[dry-run include-workspace-root workspaces=b? w|workspace=s].freeze,
|
9
9
|
install: %w[prefer-dedupe package-lock-only cpu=q libc=e os=q].freeze,
|
10
10
|
install_base: %w[ignore-scripts install-links strict-peer-deps include=b omit=b install-strategy=b].freeze,
|
11
11
|
install_no: %w[audit bin-links fund package-lock].freeze,
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- An Pham
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
rubygems_version: 3.6.
|
109
|
+
rubygems_version: 3.6.2
|
110
110
|
specification_version: 4
|
111
111
|
summary: Rake task generator for managing multi-language workspaces.
|
112
112
|
test_files: []
|