appydave-tools 0.52.0 → 0.54.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: 01006517a470b9c7589a4d8b7207e642769f51428b6800143906495540475e7c
4
- data.tar.gz: 642fa25c89298af77407dbbe28cc9e6cb6beb9bd58bfcb69a1b9140f71bf0e7c
3
+ metadata.gz: ad89af91a1c5f675f56c18a4ae9847a697f707c498761babdc2150bc967f24e3
4
+ data.tar.gz: 396854a45828e0bddc16d5e84772a8f73dc43a18d54483012d4bb5a7cfed675f
5
5
  SHA512:
6
- metadata.gz: eb4da4a9d9bb8e0140e7f3bd07729758e176018c7b465c7dbc342329b1f3bd19fa2a81c818a45e484e493ad94130391dc7478b43d7f312eea4bea2584c0d7409
7
- data.tar.gz: baf8b089824ffe45efe97b44e0fd4c1a0984be18d7d63c57c47a0e521146617f8c3ff7070fd5802caaad242ea6056f973285e566d3b92f28955cc6cbf229131f
6
+ metadata.gz: 697f5b020e091548cf5b1986a59f801caf4e75ccf007581cd8cd41ecddbc85c9b4dd5f6cc4f0dd99747340bfd722dbe47204e6f2b12ec972735489aa5bd598cc
7
+ data.tar.gz: 60eb9b9eeb63abb866b865525242a387eebc9eb5e0b1d4bf104a41ee9de7d42a7f72e9665099321be1c5f48973f39e79a90add357f5accd1657745dba86baa32
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [0.53.0](https://github.com/appydave/appydave-tools/compare/v0.52.0...v0.53.0) (2025-11-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * improve s3-status error messages to distinguish non-existent projects from empty projects ([6c9db58](https://github.com/appydave/appydave-tools/commit/6c9db586f78b143c7bd71c86be34de95069d21b4))
7
+
8
+ # [0.52.0](https://github.com/appydave/appydave-tools/compare/v0.51.0...v0.52.0) (2025-11-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * add --verbose flag to manifest command to show detailed validation warnings ([00ed288](https://github.com/appydave/appydave-tools/commit/00ed288ae36462d87c16568c4f9ee73ad8b6fd2c))
14
+
1
15
  # [0.51.0](https://github.com/appydave/appydave-tools/compare/v0.50.0...v0.51.0) (2025-11-21)
2
16
 
3
17
 
@@ -68,6 +68,9 @@ module Appydave
68
68
  # Only expand brand for display purposes
69
69
  brand = Config.expand_brand(brand_arg)
70
70
 
71
+ # Show brand context header
72
+ show_brand_header(brand_arg, brand)
73
+
71
74
  if projects.empty?
72
75
  puts "⚠️ No projects found for brand: #{brand}"
73
76
  puts ''
@@ -188,6 +191,42 @@ module Appydave
188
191
 
189
192
  # Helper methods
190
193
 
194
+ # Show brand context header with git, S3, and SSD info
195
+ def self.show_brand_header(brand_arg, brand)
196
+ Appydave::Tools::Configuration::Config.configure
197
+ brand_info = Appydave::Tools::Configuration::Config.brands.get_brand(brand_arg)
198
+ brand_path = Config.brand_path(brand_arg)
199
+
200
+ puts "📂 Brand: #{brand}"
201
+ puts ''
202
+
203
+ # Git status
204
+ if Dir.exist?(File.join(brand_path, '.git'))
205
+ branch = GitHelper.current_branch(brand_path)
206
+ puts " Git: #{branch} branch"
207
+ else
208
+ puts ' Git: Not a git repository'
209
+ end
210
+
211
+ # S3 configuration
212
+ s3_bucket = brand_info.aws.s3_bucket
213
+ if s3_bucket && !s3_bucket.empty? && s3_bucket != 'NOT-SET'
214
+ puts " S3: Configured (#{s3_bucket})"
215
+ else
216
+ puts ' S3: Not configured'
217
+ end
218
+
219
+ # SSD backup path
220
+ ssd_backup = brand_info.locations.ssd_backup
221
+ if ssd_backup && !ssd_backup.empty? && ssd_backup != 'NOT-SET'
222
+ puts " SSD: #{shorten_path(ssd_backup)}"
223
+ else
224
+ puts ' SSD: Not configured'
225
+ end
226
+
227
+ puts ''
228
+ end
229
+
191
230
  # Calculate total size of all projects in a brand
192
231
  def self.calculate_total_size(brand, projects)
193
232
  projects.sum do |project|
@@ -260,6 +260,19 @@ module Appydave
260
260
  project_dir = project_directory_path
261
261
  staging_dir = File.join(project_dir, 's3-staging')
262
262
 
263
+ # Check if project directory exists
264
+ unless Dir.exist?(project_dir)
265
+ puts "❌ Project not found: #{brand}/#{project_id}"
266
+ puts ''
267
+ puts ' This project does not exist locally.'
268
+ puts ' Possible causes:'
269
+ puts ' - Project name might be misspelled'
270
+ puts ' - Project may not exist in this brand'
271
+ puts ''
272
+ puts " Try: dam list #{brand} # See all projects for this brand"
273
+ return
274
+ end
275
+
263
276
  s3_files = list_s3_files
264
277
  local_files = list_local_files(staging_dir)
265
278
 
@@ -270,9 +283,13 @@ module Appydave
270
283
  end
271
284
 
272
285
  if s3_files.empty? && local_files.empty?
273
- puts "No files found in S3 or locally for #{brand}/#{project_id}"
274
- puts ' This project has no heavy files in s3-staging/ or S3.'
275
- puts " Tip: Add files to #{File.basename(staging_dir)}/ folder, then run: dam s3-up"
286
+ puts "ℹ️ No files in S3 or s3-staging/ for #{brand}/#{project_id}"
287
+ puts ''
288
+ puts ' This project exists but has no heavy files ready for S3 sync.'
289
+ puts ''
290
+ puts ' Next steps:'
291
+ puts " 1. Add video files to: #{staging_dir}/"
292
+ puts " 2. Upload to S3: dam s3-up #{brand} #{project_id}"
276
293
  return
277
294
  end
278
295
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.52.0'
5
+ VERSION = '0.54.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.52.0",
3
+ "version": "0.54.0",
4
4
  "description": "AppyDave YouTube Automation Tools",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appydave-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-21 00:00:00.000000000 Z
11
+ date: 2025-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel