appydave-tools 0.55.0 → 0.57.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: d2ee9f523cadcc7a664c9eb568dbafd833363a011e60f006bcb249e5fa45e768
4
- data.tar.gz: 11f6b4a34e4a13969674557b2bc56f19f4e4ae1a56487fc62e9e5279bab305a2
3
+ metadata.gz: 3aee3f399bf110dccfd53195a11006bc0430e0bfffdd4bbf8059a960023cf0e3
4
+ data.tar.gz: 796119562e6695aa8d3987626c3559867b48283d3ace69b43639b24700043a58
5
5
  SHA512:
6
- metadata.gz: b7a9ca99ce9fe351eb0440f353f6ded07bed8aa6dd675cc24dc9a92bb0321b33825ce2e03a5bc746acd294dda454b6b3f8a5360507f3282742cffbc0233cb674
7
- data.tar.gz: fb0c3d660664c9eb0aaff6e5818a197cf4e278f383208c3037420d81f9dfc12af0296506aa946b2144bff9cc158fc492085b7a590fc17dbf9ad6bd6bba094a20
6
+ metadata.gz: bc3b9ecd61a80302a04ad6e2980e31393c9bf70acb135f16086e1dd5d316ab0016a9de3e95b8e06957c2560306a977290f704ae0b11f2f6ea1ef50c2cec65ed3
7
+ data.tar.gz: fcb6f31b35119a44324e54bb8141ea4d4009b1dda7a2714c57940e2604eba0bbd6e7126356a0353f386bd7d678558e127789922e7514564104a8de97801e5fcf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [0.56.0](https://github.com/appydave/appydave-tools/compare/v0.55.0...v0.56.0) (2025-11-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * add last sync time to SSD backup section in project status ([cebe0f4](https://github.com/appydave/appydave-tools/commit/cebe0f4965729674b9ec7feb024c9d3718a65a87)), closes [#47](https://github.com/appydave/appydave-tools/issues/47)
7
+
8
+ # [0.55.0](https://github.com/appydave/appydave-tools/compare/v0.54.0...v0.55.0) (2025-11-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * add suggestions section to brand status with actionable commands ([2bb51f8](https://github.com/appydave/appydave-tools/commit/2bb51f851dc424f37af85448a00a67a6b2e65847)), closes [#42](https://github.com/appydave/appydave-tools/issues/42) [#43](https://github.com/appydave/appydave-tools/issues/43)
14
+
1
15
  # [0.54.0](https://github.com/appydave/appydave-tools/compare/v0.53.0...v0.54.0) (2025-11-22)
2
16
 
3
17
 
@@ -41,7 +41,11 @@ module Appydave
41
41
 
42
42
  def show_project_status
43
43
  project_size = calculate_project_size
44
+ last_modified = File.mtime(project_path)
45
+ age = format_age(last_modified)
46
+
44
47
  puts "📊 Status: v-#{brand}/#{File.basename(project_path)} (#{format_size(project_size)})"
48
+ puts " Last modified: #{age} ago"
45
49
  puts ''
46
50
 
47
51
  manifest = load_manifest
@@ -143,7 +147,19 @@ module Appydave
143
147
 
144
148
  def show_ssd_status(project_entry)
145
149
  puts ' 💾 SSD Backup: ✓ exists'
146
- puts " Path: #{project_entry[:storage][:ssd][:path]}"
150
+
151
+ ssd_path = project_entry[:storage][:ssd][:path]
152
+ if ssd_path
153
+ ssd_full_path = File.join(brand_info.locations.ssd_backup, ssd_path)
154
+ puts " Path: #{ssd_path}"
155
+
156
+ if Dir.exist?(ssd_full_path)
157
+ last_modified = File.mtime(ssd_full_path)
158
+ age = format_age(last_modified)
159
+ puts " Last synced: #{age} ago"
160
+ end
161
+ end
162
+
147
163
  puts ''
148
164
  end
149
165
 
@@ -320,6 +336,31 @@ module Appydave
320
336
  FileHelper.format_size(bytes)
321
337
  end
322
338
 
339
+ def format_age(time)
340
+ return 'N/A' if time.nil?
341
+
342
+ seconds = Time.now - time
343
+ return 'just now' if seconds < 60
344
+
345
+ minutes = seconds / 60
346
+ return "#{minutes.round}m" if minutes < 60
347
+
348
+ hours = minutes / 60
349
+ return "#{hours.round}h" if hours < 24
350
+
351
+ days = hours / 24
352
+ return "#{days.round}d" if days < 7
353
+
354
+ weeks = days / 7
355
+ return "#{weeks.round}w" if weeks < 4
356
+
357
+ months = days / 30
358
+ return "#{months.round}mo" if months < 12
359
+
360
+ years = days / 365
361
+ "#{years.round}y"
362
+ end
363
+
323
364
  def calculate_manifest_age(last_updated_str)
324
365
  last_updated = Time.parse(last_updated_str)
325
366
  Time.now - last_updated
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.55.0'
5
+ VERSION = '0.57.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.55.0",
3
+ "version": "0.57.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.55.0
4
+ version: 0.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys