squared 0.3.10 → 0.4.0
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 +44 -103
- data/README.md +13 -2
- data/README.ruby.md +169 -89
- data/lib/squared/app.rb +1 -0
- data/lib/squared/common/base.rb +6 -1
- data/lib/squared/common/class.rb +1 -1
- data/lib/squared/common/format.rb +31 -19
- data/lib/squared/common/prompt.rb +3 -3
- data/lib/squared/common/shell.rb +53 -41
- data/lib/squared/common/utils.rb +55 -2
- data/lib/squared/config.rb +1 -1
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/application.rb +18 -15
- data/lib/squared/workspace/project/base.rb +458 -170
- data/lib/squared/workspace/project/docker.rb +572 -0
- data/lib/squared/workspace/project/git.rb +471 -230
- data/lib/squared/workspace/project/node.rb +51 -51
- data/lib/squared/workspace/project/python.rb +130 -41
- data/lib/squared/workspace/project/ruby.rb +47 -58
- data/lib/squared/workspace/project.rb +7 -1
- data/lib/squared/workspace/repo.rb +11 -4
- data/lib/squared/workspace/series.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a70feacca1b87fbe9d6da4e71045212f5dc5e9add78e93e8223a5f73b6f6d9
|
4
|
+
data.tar.gz: b73756bef57213d92fe4ed5f0763945645315a06a8d084bb32e40105ce78d64e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34c45acd9506ad1bc7018c0b0f73e1e2db7623d6b42b7b3199ee7cb7394716a1ec13484d15a71d343415ccd4090a1217579416fba8010b5977cbc324bbf7b849
|
7
|
+
data.tar.gz: 62ac8c5ea8289fcb08dbf1c5e2cca60e06ea5470eb1f8ec1ce667bcce5cc0eec5d67448ac1b2642a7b5af0c2f3e30530f6513374d2642baa2993aca3ad769608
|
data/CHANGELOG.md
CHANGED
@@ -1,103 +1,54 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [0.
|
3
|
+
## [0.4.0] - 2025-03-06
|
4
4
|
|
5
|
-
###
|
6
|
-
|
7
|
-
- Git command reset action commit used invalid delimeter.
|
8
|
-
- Git single option values were not merged as per specification.
|
9
|
-
- Project script task did not fire first and last callbacks.
|
10
|
-
- Git task status did not display branch information.
|
11
|
-
- Git checkout action commit did not include options.
|
12
|
-
|
13
|
-
### Removed
|
14
|
-
|
15
|
-
- Git command files action ignored could not be used alone.
|
16
|
-
|
17
|
-
## [0.2.10] - 2025-04-27
|
18
|
-
|
19
|
-
### Fixed
|
20
|
-
|
21
|
-
- Project run and script tasks did not fire first and last callbacks.
|
22
|
-
- Git command clone did not read booleans for recurse-submodules.
|
23
|
-
|
24
|
-
## [0.1.7] - 2025-04-27
|
25
|
-
|
26
|
-
### Fixed
|
27
|
-
|
28
|
-
- Project directory context method option pass was inverted.
|
29
|
-
- Shell options with spaces and without quotes were not escaped.
|
30
|
-
- Git task status did not display branch information.
|
31
|
-
- Ruby copy method argument include was ignored when used directly.
|
32
|
-
- Git commit could not push branch without same name as remote.
|
33
|
-
|
34
|
-
## [0.3.9] - 2025-04-17
|
35
|
-
|
36
|
-
### Fixed
|
37
|
-
|
38
|
-
- Project option parser did not separate custom values.
|
5
|
+
### Added
|
39
6
|
|
40
|
-
|
7
|
+
- Git global command revbuild was created.
|
8
|
+
- Git rev command action build was implemented.
|
9
|
+
- Log messages can be hidden with ENV setting LOG_LEVEL.
|
10
|
+
- Project base command unpack was created.
|
11
|
+
- Project global task archive was created.
|
12
|
+
- Workspace style subject was created.
|
13
|
+
- Python command build was implemented.
|
14
|
+
- Python command publish was implemented.
|
15
|
+
- Project base class Docker was created.
|
16
|
+
- Docker command container action run was implemented.
|
17
|
+
- Docker command container action exec was implemented.
|
18
|
+
- Docker command container targets were implemented.
|
19
|
+
- Project build args can be constructed from a hash.
|
20
|
+
- Docker commands commit with push were implemented.
|
21
|
+
- Docker images can be built from Compose or Bake.
|
22
|
+
- Docker command compose with actions were implemented.
|
23
|
+
- Docker default files for Compose and Bake are detected.
|
24
|
+
- Docker command compose action up was implemented.
|
25
|
+
- Project base tasks can call methods in a series.
|
26
|
+
- Docker command image action list with run was implemented.
|
27
|
+
- Repo build ENV option REPO_DRYRUN was created.
|
28
|
+
- Unicode borders can be activated using enable_aixterm.
|
29
|
+
- Git program options are available to sub-commands.
|
30
|
+
- Git command mv and rm were implemented.
|
31
|
+
- Git command clean was implemented.
|
32
|
+
- Git command merge was implemented.
|
33
|
+
- Git command revert was implemented.
|
34
|
+
- Git global command branch was created.
|
41
35
|
|
42
36
|
### Changed
|
43
37
|
|
44
|
-
-
|
38
|
+
- Node copy method will only override when key exists.
|
39
|
+
- Base command copy and clean can accept a hash.
|
40
|
+
- Character methods in Shell common module were removed.
|
41
|
+
- ENV build options are merged with base options.
|
42
|
+
- Git command diff action cached was removed.
|
43
|
+
- Git log and diff uses H0 alias for HEAD~n commit.
|
44
|
+
- Project events support multiple associated routines.
|
45
|
+
- Git command restore was relocated to "git" task namespace.
|
45
46
|
|
46
47
|
### Fixed
|
47
48
|
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
|
52
|
-
## [0.1.6] - 2025-04-17
|
53
|
-
|
54
|
-
### Fixed
|
55
|
-
|
56
|
-
- User-defined program paths were not reduced to bare name.
|
57
|
-
- Project path validation did not include separator.
|
58
|
-
|
59
|
-
## [0.3.8] - 2025-04-12
|
60
|
-
|
61
|
-
### Fixed
|
62
|
-
|
63
|
-
- Project class did not parse verbose string values.
|
64
|
-
|
65
|
-
## [0.2.8] - 2025-04-12
|
66
|
-
|
67
|
-
### Fixed
|
68
|
-
|
69
|
-
- User-defined program paths were not sanitized for ENV.
|
70
|
-
- Project clean task used incompatible rmtree flag.
|
71
|
-
- Git branch unset-upstream used undefined variable.
|
72
|
-
|
73
|
-
## [0.3.7] - 2025-04-08
|
74
|
-
|
75
|
-
- See `0.2.7`.
|
76
|
-
|
77
|
-
## [0.2.7] - 2025-04-08
|
78
|
-
|
79
|
-
### Fixed
|
80
|
-
|
81
|
-
- Paths that conflict with git options can be quoted.
|
82
|
-
- Bundle command update did not append package names.
|
83
|
-
- Git result status type was truncated.
|
84
|
-
- Log messages were concatenated without separator.
|
85
|
-
- Python pip environment options used undefined session.
|
86
|
-
- Regexp "o" modifier was not used properly.
|
87
|
-
- Rake did not run individual project Rakefile.
|
88
|
-
- Ruby commands did not delimit exec arguments.
|
89
|
-
|
90
|
-
## [0.3.6] - 2025-03-12
|
91
|
-
|
92
|
-
### Added
|
93
|
-
|
94
|
-
- Git command stash action clear was implemented.
|
95
|
-
|
96
|
-
### Fixed
|
97
|
-
|
98
|
-
- Git command stash did not validate index argument.
|
99
|
-
- Project graph command does not require arguments.
|
100
|
-
- Ruby gem command exec did not add project name.
|
49
|
+
- Git base class did not check for null Logger instance.
|
50
|
+
- Banner border width extended past terminal edge.
|
51
|
+
- Task program command options used unrecognized symbol.
|
101
52
|
|
102
53
|
## [0.3.5] - 2025-03-06
|
103
54
|
|
@@ -124,7 +75,6 @@
|
|
124
75
|
|
125
76
|
- Project exceptions were hard coded preventing override.
|
126
77
|
- Project clean events were called twice.
|
127
|
-
- Git events were fired for internal background tasks.
|
128
78
|
- Git list display did not support single grep pattern.
|
129
79
|
- Gem outdated did not pass -C option for PWD.
|
130
80
|
|
@@ -315,6 +265,7 @@
|
|
315
265
|
- Git commit hash uses string interpolation format.
|
316
266
|
- Git options ending with "!" use conventional "no-" prefix.
|
317
267
|
- Git pull and reset commands were reduced.
|
268
|
+
- Project graph uses ASCII characters by default.
|
318
269
|
|
319
270
|
### Fixed
|
320
271
|
|
@@ -322,7 +273,7 @@
|
|
322
273
|
- Node tasks without any action are not displayed.
|
323
274
|
- Git fetch commands that do not apply to pull are rejected.
|
324
275
|
|
325
|
-
## [0.1.3] -
|
276
|
+
## [0.1.3] - 2024-01-02
|
326
277
|
|
327
278
|
### Fixed
|
328
279
|
|
@@ -401,21 +352,13 @@
|
|
401
352
|
|
402
353
|
- Changelog was created.
|
403
354
|
|
404
|
-
[0.
|
405
|
-
[0.3.9]: https://github.com/anpham6/squared/releases/tag/v0.3.9-ruby
|
406
|
-
[0.3.8]: https://github.com/anpham6/squared/releases/tag/v0.3.8-ruby
|
407
|
-
[0.3.7]: https://github.com/anpham6/squared/releases/tag/v0.3.7-ruby
|
408
|
-
[0.3.6]: https://github.com/anpham6/squared/releases/tag/v0.3.6-ruby
|
355
|
+
[0.4.0]: https://github.com/anpham6/squared/releases/tag/v0.4.0-ruby
|
409
356
|
[0.3.5]: https://github.com/anpham6/squared/releases/tag/v0.3.5-ruby
|
410
357
|
[0.3.4]: https://github.com/anpham6/squared/releases/tag/v0.3.4-ruby
|
411
358
|
[0.3.3]: https://github.com/anpham6/squared/releases/tag/v0.3.3-ruby
|
412
359
|
[0.3.2]: https://github.com/anpham6/squared/releases/tag/v0.3.2-ruby
|
413
360
|
[0.3.1]: https://github.com/anpham6/squared/releases/tag/v0.3.1-ruby
|
414
361
|
[0.3.0]: https://github.com/anpham6/squared/releases/tag/v0.3.0-ruby
|
415
|
-
[0.2.10]: https://github.com/anpham6/squared/releases/tag/v0.2.10-ruby
|
416
|
-
[0.2.9]: https://github.com/anpham6/squared/releases/tag/v0.2.9-ruby
|
417
|
-
[0.2.8]: https://github.com/anpham6/squared/releases/tag/v0.2.8-ruby
|
418
|
-
[0.2.7]: https://github.com/anpham6/squared/releases/tag/v0.2.7-ruby
|
419
362
|
[0.2.6]: https://github.com/anpham6/squared/releases/tag/v0.2.6-ruby
|
420
363
|
[0.2.5]: https://github.com/anpham6/squared/releases/tag/v0.2.5-ruby
|
421
364
|
[0.2.4]: https://github.com/anpham6/squared/releases/tag/v0.2.4-ruby
|
@@ -423,8 +366,6 @@
|
|
423
366
|
[0.2.2]: https://github.com/anpham6/squared/releases/tag/v0.2.2-ruby
|
424
367
|
[0.2.1]: https://github.com/anpham6/squared/releases/tag/v0.2.1-ruby
|
425
368
|
[0.2.0]: https://github.com/anpham6/squared/releases/tag/v0.2.0-ruby
|
426
|
-
[0.1.7]: https://github.com/anpham6/squared/releases/tag/v0.1.7-ruby
|
427
|
-
[0.1.6]: https://github.com/anpham6/squared/releases/tag/v0.1.6-ruby
|
428
369
|
[0.1.5]: https://github.com/anpham6/squared/releases/tag/v0.1.5-ruby
|
429
370
|
[0.1.4]: https://github.com/anpham6/squared/releases/tag/v0.1.4-ruby
|
430
371
|
[0.1.3]: https://github.com/anpham6/squared/releases/tag/v0.1.3-ruby
|
data/README.md
CHANGED
@@ -137,19 +137,30 @@ rake clone # node + docs
|
|
137
137
|
# DEV={0,1,local}
|
138
138
|
# DOCS=any
|
139
139
|
# PIPE_FAIL={0,1}
|
140
|
+
# PORT=3000
|
140
141
|
docker build -t squared --build-arg MANIFEST=prod --build-arg SQUARED=prod .
|
141
142
|
docker build -t node --build-arg NODE_TAG=20 --build-arg NODE_INSTALL=pnpm -f Dockerfile.slim . # no docs
|
143
|
+
docker buildx bake node
|
142
144
|
# OR
|
143
145
|
# RUBY_TAG=latest
|
144
146
|
# NODE_VERSION=22.x
|
145
|
-
docker build -t ruby --build-arg RUBY_TAG=3.0 --build-arg NODE_VERSION=20.x --build-arg PIPE_FAIL=0 -f Dockerfile.ruby .
|
147
|
+
docker build -t ruby --build-arg RUBY_TAG=3.0.0 --build-arg NODE_VERSION=20.x --build-arg PIPE_FAIL=0 -f Dockerfile.ruby .
|
148
|
+
docker buildx bake ruby
|
149
|
+
# OR
|
150
|
+
# NGINX_VERSION=1.27
|
151
|
+
# NGINX_VARIANT=bookworm
|
152
|
+
docker build -t nginx --build-arg NGINX_VERSION=1.27 --build-arg PORT=3000 --build-arg NODE_VERSION=18.x -f Dockerfile.nginx .
|
153
|
+
docker buildx bake nginx
|
146
154
|
|
147
155
|
# Express
|
148
|
-
docker run -it --name express --rm -p
|
156
|
+
docker run -it --name express --rm -p 3000:3000 \
|
149
157
|
--mount type=bind,src=${PWD},dst=/workspaces/squared/.config \
|
150
158
|
--mount type=bind,src=${PWD}/html,dst=/workspaces/squared/www \
|
151
159
|
squared
|
152
160
|
|
161
|
+
docker run -it --name express --rm -p 443:443 --build-arg PORT=443 squared \
|
162
|
+
serve --access-all --https --env=production
|
163
|
+
|
153
164
|
# Terminal
|
154
165
|
docker run -it --name debian squared /bin/bash # irb
|
155
166
|
```
|