appydave-tools 0.62.0 → 0.64.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 +19 -0
- data/lib/appydave/tools/dam/project_listing.rb +37 -5
- 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: 8439a56238b48735afadc97928a12c11fb9771861694ed1936ea61f51426f9a3
|
|
4
|
+
data.tar.gz: f3212b0b09de7fddd6946df6c8df80f648ca3fabcd83c8fd8d1b91cc42589384
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b311cb11c59c874f7204090a1ddb3ec71b2afcedfdc6a1b4ebdf2dc3f914c5200efe44b6abc1fdc50d675493d9df4885fbbafe38233ef5d6ae8ceb19f0728a5
|
|
7
|
+
data.tar.gz: 9e6a49b3bf11aa5cf13259cc52956c5db80ba26b23796d4182a6d5bc59dbb46e918341a3d5170e40c1cc8b859c86d2ecaf9da9843f8bdee4b3b3cccf84d3db30
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [0.63.0](https://github.com/appydave/appydave-tools/compare/v0.62.0...v0.63.0) (2025-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* rename project_has_changes? to calculate_project_git_status to follow rubocop naming convention ([f8f63fc](https://github.com/appydave/appydave-tools/commit/f8f63fc2c54e7a4b1d15ff418e038ee3a6a3b3c0))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add GIT column to project list showing uncommitted changes status per project ([3da9b8d](https://github.com/appydave/appydave-tools/commit/3da9b8df089548fbc71248fabc061ad47f9ee83f))
|
|
12
|
+
|
|
13
|
+
# [0.62.0](https://github.com/appydave/appydave-tools/compare/v0.61.0...v0.62.0) (2025-11-22)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add S3 SYNC column to brand list showing count of projects with s3-staging folders ([23ceff2](https://github.com/appydave/appydave-tools/commit/23ceff2feda3d2f792c85b7af6a2b04f71d9ccdf))
|
|
19
|
+
|
|
1
20
|
# [0.61.0](https://github.com/appydave/appydave-tools/compare/v0.60.0...v0.61.0) (2025-11-22)
|
|
2
21
|
|
|
3
22
|
|
|
@@ -75,18 +75,37 @@ module Appydave
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
# Gather project data
|
|
78
|
+
brand_path = Config.brand_path(brand_arg)
|
|
79
|
+
is_git_repo = Dir.exist?(File.join(brand_path, '.git'))
|
|
80
|
+
|
|
78
81
|
project_data = projects.map do |project|
|
|
79
82
|
project_path = Config.project_path(brand_arg, project)
|
|
80
83
|
size = FileHelper.calculate_directory_size(project_path)
|
|
81
84
|
modified = File.mtime(project_path)
|
|
82
85
|
|
|
86
|
+
# Check if project has uncommitted changes (if brand is git repo)
|
|
87
|
+
git_status = if is_git_repo
|
|
88
|
+
calculate_project_git_status(brand_path, project)
|
|
89
|
+
else
|
|
90
|
+
'N/A'
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check if project has s3-staging folder
|
|
94
|
+
s3_sync = if Dir.exist?(File.join(project_path, 's3-staging'))
|
|
95
|
+
'✓ staged'
|
|
96
|
+
else
|
|
97
|
+
'none'
|
|
98
|
+
end
|
|
99
|
+
|
|
83
100
|
{
|
|
84
101
|
name: project,
|
|
85
102
|
path: project_path,
|
|
86
103
|
size: size,
|
|
87
104
|
modified: modified,
|
|
88
105
|
age: format_age(modified),
|
|
89
|
-
stale: stale?(modified)
|
|
106
|
+
stale: stale?(modified),
|
|
107
|
+
git_status: git_status,
|
|
108
|
+
s3_sync: s3_sync
|
|
90
109
|
}
|
|
91
110
|
end
|
|
92
111
|
|
|
@@ -95,17 +114,19 @@ module Appydave
|
|
|
95
114
|
puts ''
|
|
96
115
|
puts 'ℹ️ Note: Lists only projects with files, not empty directories'
|
|
97
116
|
puts ''
|
|
98
|
-
puts 'PROJECT SIZE AGE'
|
|
99
|
-
puts '-' *
|
|
117
|
+
puts 'PROJECT SIZE AGE GIT S3'
|
|
118
|
+
puts '-' * 130
|
|
100
119
|
|
|
101
120
|
# Print table rows
|
|
102
121
|
project_data.each do |data|
|
|
103
122
|
age_display = data[:stale] ? "#{data[:age]} ⚠️" : data[:age]
|
|
104
123
|
puts format(
|
|
105
|
-
'%-45s %12s %15s',
|
|
124
|
+
'%-45s %12s %15s %-15s %-10s',
|
|
106
125
|
data[:name],
|
|
107
126
|
format_size(data[:size]),
|
|
108
|
-
age_display
|
|
127
|
+
age_display,
|
|
128
|
+
data[:git_status],
|
|
129
|
+
data[:s3_sync]
|
|
109
130
|
)
|
|
110
131
|
end
|
|
111
132
|
|
|
@@ -285,6 +306,17 @@ module Appydave
|
|
|
285
306
|
end
|
|
286
307
|
end
|
|
287
308
|
|
|
309
|
+
# Calculate git status for a specific project
|
|
310
|
+
def self.calculate_project_git_status(brand_path, project)
|
|
311
|
+
# Use git status --short to check for changes in project folder
|
|
312
|
+
result = `cd "#{brand_path}" && git status --short "#{project}" 2>/dev/null`
|
|
313
|
+
if result.empty?
|
|
314
|
+
'✓ clean'
|
|
315
|
+
else
|
|
316
|
+
'⚠️ changes'
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
|
|
288
320
|
# Calculate total size of all projects in a brand
|
|
289
321
|
def self.calculate_total_size(brand, projects)
|
|
290
322
|
projects.sum do |project|
|
data/package.json
CHANGED