appydave-tools 0.55.0 → 0.56.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: fafd02235869c298307606541d4d8fa65642964ca8e6cc52c292265c346cba39
4
+ data.tar.gz: eec45f118b09d96eaa42a4a0690b0945184e9a60f73f31a552be6382043eb1aa
5
5
  SHA512:
6
- metadata.gz: b7a9ca99ce9fe351eb0440f353f6ded07bed8aa6dd675cc24dc9a92bb0321b33825ce2e03a5bc746acd294dda454b6b3f8a5360507f3282742cffbc0233cb674
7
- data.tar.gz: fb0c3d660664c9eb0aaff6e5818a197cf4e278f383208c3037420d81f9dfc12af0296506aa946b2144bff9cc158fc492085b7a590fc17dbf9ad6bd6bba094a20
6
+ metadata.gz: 9ee64e573e7c8f33bbe7922c9047a6cef639492a23179e7893951fe49940d25e32736c910db6c9203f5e48f125cbe068506237f296d93a1f2d5bdae00acf0561
7
+ data.tar.gz: 2fb3b1733efdf3f3a68d3e7ee3c3e86b6abe30e560e8038495ad0093a2ee5f1c046db036d1bf2f35d5658e8c886c5c9a24f24715c09d6538a7108d40f29adf45
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.55.0](https://github.com/appydave/appydave-tools/compare/v0.54.0...v0.55.0) (2025-11-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * 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)
7
+
1
8
  # [0.54.0](https://github.com/appydave/appydave-tools/compare/v0.53.0...v0.54.0) (2025-11-22)
2
9
 
3
10
 
@@ -143,7 +143,19 @@ module Appydave
143
143
 
144
144
  def show_ssd_status(project_entry)
145
145
  puts ' 💾 SSD Backup: ✓ exists'
146
- puts " Path: #{project_entry[:storage][:ssd][:path]}"
146
+
147
+ ssd_path = project_entry[:storage][:ssd][:path]
148
+ if ssd_path
149
+ ssd_full_path = File.join(brand_info.locations.ssd_backup, ssd_path)
150
+ puts " Path: #{ssd_path}"
151
+
152
+ if Dir.exist?(ssd_full_path)
153
+ last_modified = File.mtime(ssd_full_path)
154
+ age = format_age(last_modified)
155
+ puts " Last synced: #{age} ago"
156
+ end
157
+ end
158
+
147
159
  puts ''
148
160
  end
149
161
 
@@ -320,6 +332,31 @@ module Appydave
320
332
  FileHelper.format_size(bytes)
321
333
  end
322
334
 
335
+ def format_age(time)
336
+ return 'N/A' if time.nil?
337
+
338
+ seconds = Time.now - time
339
+ return 'just now' if seconds < 60
340
+
341
+ minutes = seconds / 60
342
+ return "#{minutes.round}m" if minutes < 60
343
+
344
+ hours = minutes / 60
345
+ return "#{hours.round}h" if hours < 24
346
+
347
+ days = hours / 24
348
+ return "#{days.round}d" if days < 7
349
+
350
+ weeks = days / 7
351
+ return "#{weeks.round}w" if weeks < 4
352
+
353
+ months = days / 30
354
+ return "#{months.round}mo" if months < 12
355
+
356
+ years = days / 365
357
+ "#{years.round}y"
358
+ end
359
+
323
360
  def calculate_manifest_age(last_updated_str)
324
361
  last_updated = Time.parse(last_updated_str)
325
362
  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.56.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.56.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.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys