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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31313668ea571125fb5d78028fab7fcf4ca9790c43031ca62d592c40c2cb795a
4
- data.tar.gz: 161c917a9b7f06c07506a40c34cca50135d0a8076e8b80b08ac2eef59131f95a
3
+ metadata.gz: 8439a56238b48735afadc97928a12c11fb9771861694ed1936ea61f51426f9a3
4
+ data.tar.gz: f3212b0b09de7fddd6946df6c8df80f648ca3fabcd83c8fd8d1b91cc42589384
5
5
  SHA512:
6
- metadata.gz: 82e18ea51b52107e13791156e787c6e209c9fa27f06ab758a51dfb73007a40ab9f036f7b5176059cb7ee06d11ed7af18f20d0444421f5c1169b1f64c8d223d51
7
- data.tar.gz: 174f057cfa04c88f6c0ac53062ee604461e60d2fa68552b13977ba86960dd1c627f7c281c6883b1644067ef13d88e3dbe6abd3021044b1a3a6be6c1f36b3836c
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 '-' * 100
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|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.62.0'
5
+ VERSION = '0.64.0'
6
6
  end
7
7
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appydave-tools",
3
- "version": "0.62.0",
3
+ "version": "0.64.0",
4
4
  "description": "AppyDave YouTube Automation Tools",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appydave-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.62.0
4
+ version: 0.64.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys