appydave-tools 0.57.0 → 0.58.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 +7 -0
- data/lib/appydave/tools/dam/project_listing.rb +23 -4
- data/lib/appydave/tools/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f5b4b713f5cf5c0895e255d25cfc3019187592f551fb0845604c85a7a4d3f45
|
|
4
|
+
data.tar.gz: add70858eea26dd40bce3ee5855cbd9584fe790a8350067f1b36ad2ba85216fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba5dcf4b13bbdc0664f3f833d4dc3b271329342240516fcc079fe8a0f29346b0037881a3fc2ab64b5214cf7aea52316844df8d521fc923e57e8c2df45637a78a
|
|
7
|
+
data.tar.gz: 40425a7f12e81f247993753791a4c27b6723e284dc162e882455af6b58bfb53b407152ebd6d0dcc38709a50fcc9c1e8fac6d1a9ad8b48eac282f478500bd5d2f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [0.57.0](https://github.com/appydave/appydave-tools/compare/v0.56.0...v0.57.0) (2025-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add last modified timestamp to project status header ([805484d](https://github.com/appydave/appydave-tools/commit/805484d6f34e1fcc47fe7113480dd5c982b2471c)), closes [#49](https://github.com/appydave/appydave-tools/issues/49)
|
|
7
|
+
|
|
1
8
|
# [0.56.0](https://github.com/appydave/appydave-tools/compare/v0.55.0...v0.56.0) (2025-11-22)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -20,13 +20,24 @@ module Appydave
|
|
|
20
20
|
|
|
21
21
|
# Gather brand data
|
|
22
22
|
brand_data = brands.map do |brand|
|
|
23
|
+
Appydave::Tools::Configuration::Config.configure
|
|
24
|
+
brand_info = Appydave::Tools::Configuration::Config.brands.get_brand(brand)
|
|
23
25
|
brand_path = Config.brand_path(brand)
|
|
24
26
|
projects = ProjectResolver.list_projects(brand)
|
|
25
27
|
total_size = calculate_total_size(brand, projects)
|
|
26
28
|
last_modified = find_last_modified(brand, projects)
|
|
27
29
|
|
|
30
|
+
# Get shortcut, key, and name with fallbacks
|
|
31
|
+
shortcut = brand_info.shortcut&.strip
|
|
32
|
+
shortcut = nil if shortcut&.empty?
|
|
33
|
+
key = brand_info.key
|
|
34
|
+
name = brand_info.name&.strip
|
|
35
|
+
name = nil if name&.empty?
|
|
36
|
+
|
|
28
37
|
{
|
|
29
|
-
|
|
38
|
+
shortcut: shortcut || key,
|
|
39
|
+
key: key,
|
|
40
|
+
name: name || key.capitalize,
|
|
30
41
|
path: brand_path,
|
|
31
42
|
count: projects.size,
|
|
32
43
|
size: total_size,
|
|
@@ -35,14 +46,22 @@ module Appydave
|
|
|
35
46
|
end
|
|
36
47
|
|
|
37
48
|
# Print table header
|
|
38
|
-
puts 'BRAND
|
|
49
|
+
puts 'BRAND PROJECTS SIZE LAST MODIFIED PATH'
|
|
39
50
|
puts '-' * 120
|
|
40
51
|
|
|
41
52
|
# Print table rows
|
|
42
53
|
brand_data.each do |data|
|
|
54
|
+
# Format: "shortcut (key) - Name"
|
|
55
|
+
# If shortcut == key, just show "key - Name" to avoid redundancy
|
|
56
|
+
brand_display = if data[:shortcut] == data[:key]
|
|
57
|
+
"#{data[:key]} - #{data[:name]}"
|
|
58
|
+
else
|
|
59
|
+
"#{data[:shortcut]} (#{data[:key]}) - #{data[:name]}"
|
|
60
|
+
end
|
|
61
|
+
|
|
43
62
|
puts format(
|
|
44
|
-
'%-
|
|
45
|
-
|
|
63
|
+
'%-40s %10d %12s %20s %s',
|
|
64
|
+
brand_display,
|
|
46
65
|
data[:count],
|
|
47
66
|
format_size(data[:size]),
|
|
48
67
|
format_date(data[:modified]),
|
data/package.json
CHANGED