appydave-tools 0.62.0 → 0.63.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: 4ffbf1cb222c3f823e32f6fbb4973df1a5be14bc8bbb091c9c429f74eef529ce
4
+ data.tar.gz: 0404b4f1b75204c1938776b19fbc6bf836245a115cb6ef45660a0572f160da83
5
5
  SHA512:
6
- metadata.gz: 82e18ea51b52107e13791156e787c6e209c9fa27f06ab758a51dfb73007a40ab9f036f7b5176059cb7ee06d11ed7af18f20d0444421f5c1169b1f64c8d223d51
7
- data.tar.gz: 174f057cfa04c88f6c0ac53062ee604461e60d2fa68552b13977ba86960dd1c627f7c281c6883b1644067ef13d88e3dbe6abd3021044b1a3a6be6c1f36b3836c
6
+ metadata.gz: 42103e93dc4df198799ad9803b43bd7d185180410512ad90cd5406143f6d07aff7ae152bc6ee5f9c4e78d072fc8e00949f69030ec6be8a8a66490bdadd841b4d
7
+ data.tar.gz: f9bbaf72fb235ffe21c7c5786553074fbcca5ed82c9b0f3f8773b2e8b8dac66738e24ce8abb6645c8b395cd1b1b6fe05cf6b2fbac40ef26d0da70d5536e351e6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.62.0](https://github.com/appydave/appydave-tools/compare/v0.61.0...v0.62.0) (2025-11-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * add S3 SYNC column to brand list showing count of projects with s3-staging folders ([23ceff2](https://github.com/appydave/appydave-tools/commit/23ceff2feda3d2f792c85b7af6a2b04f71d9ccdf))
7
+
1
8
  # [0.61.0](https://github.com/appydave/appydave-tools/compare/v0.60.0...v0.61.0) (2025-11-22)
2
9
 
3
10
 
@@ -75,18 +75,29 @@ 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
+
83
93
  {
84
94
  name: project,
85
95
  path: project_path,
86
96
  size: size,
87
97
  modified: modified,
88
98
  age: format_age(modified),
89
- stale: stale?(modified)
99
+ stale: stale?(modified),
100
+ git_status: git_status
90
101
  }
91
102
  end
92
103
 
@@ -95,17 +106,18 @@ module Appydave
95
106
  puts ''
96
107
  puts 'ℹ️ Note: Lists only projects with files, not empty directories'
97
108
  puts ''
98
- puts 'PROJECT SIZE AGE'
99
- puts '-' * 100
109
+ puts 'PROJECT SIZE AGE GIT'
110
+ puts '-' * 115
100
111
 
101
112
  # Print table rows
102
113
  project_data.each do |data|
103
114
  age_display = data[:stale] ? "#{data[:age]} ⚠️" : data[:age]
104
115
  puts format(
105
- '%-45s %12s %15s',
116
+ '%-45s %12s %15s %-15s',
106
117
  data[:name],
107
118
  format_size(data[:size]),
108
- age_display
119
+ age_display,
120
+ data[:git_status]
109
121
  )
110
122
  end
111
123
 
@@ -285,6 +297,17 @@ module Appydave
285
297
  end
286
298
  end
287
299
 
300
+ # Calculate git status for a specific project
301
+ def self.calculate_project_git_status(brand_path, project)
302
+ # Use git status --short to check for changes in project folder
303
+ result = `cd "#{brand_path}" && git status --short "#{project}" 2>/dev/null`
304
+ if result.empty?
305
+ '✓ clean'
306
+ else
307
+ '⚠️ changes'
308
+ end
309
+ end
310
+
288
311
  # Calculate total size of all projects in a brand
289
312
  def self.calculate_total_size(brand, projects)
290
313
  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.63.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.63.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.63.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys