appydave-tools 0.57.0 → 0.58.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: 3aee3f399bf110dccfd53195a11006bc0430e0bfffdd4bbf8059a960023cf0e3
4
- data.tar.gz: 796119562e6695aa8d3987626c3559867b48283d3ace69b43639b24700043a58
3
+ metadata.gz: 1f5b4b713f5cf5c0895e255d25cfc3019187592f551fb0845604c85a7a4d3f45
4
+ data.tar.gz: add70858eea26dd40bce3ee5855cbd9584fe790a8350067f1b36ad2ba85216fc
5
5
  SHA512:
6
- metadata.gz: bc3b9ecd61a80302a04ad6e2980e31393c9bf70acb135f16086e1dd5d316ab0016a9de3e95b8e06957c2560306a977290f704ae0b11f2f6ea1ef50c2cec65ed3
7
- data.tar.gz: fcb6f31b35119a44324e54bb8141ea4d4009b1dda7a2714c57940e2604eba0bbd6e7126356a0353f386bd7d678558e127789922e7514564104a8de97801e5fcf
6
+ metadata.gz: ba5dcf4b13bbdc0664f3f833d4dc3b271329342240516fcc079fe8a0f29346b0037881a3fc2ab64b5214cf7aea52316844df8d521fc923e57e8c2df45637a78a
7
+ data.tar.gz: 40425a7f12e81f247993753791a4c27b6723e284dc162e882455af6b58bfb53b407152ebd6d0dcc38709a50fcc9c1e8fac6d1a9ad8b48eac282f478500bd5d2f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.57.0](https://github.com/appydave/appydave-tools/compare/v0.56.0...v0.57.0) (2025-11-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * add last modified timestamp to project status header ([805484d](https://github.com/appydave/appydave-tools/commit/805484d6f34e1fcc47fe7113480dd5c982b2471c)), closes [#49](https://github.com/appydave/appydave-tools/issues/49)
7
+
1
8
  # [0.56.0](https://github.com/appydave/appydave-tools/compare/v0.55.0...v0.56.0) (2025-11-22)
2
9
 
3
10
 
@@ -20,13 +20,24 @@ module Appydave
20
20
 
21
21
  # Gather brand data
22
22
  brand_data = brands.map do |brand|
23
+ Appydave::Tools::Configuration::Config.configure
24
+ brand_info = Appydave::Tools::Configuration::Config.brands.get_brand(brand)
23
25
  brand_path = Config.brand_path(brand)
24
26
  projects = ProjectResolver.list_projects(brand)
25
27
  total_size = calculate_total_size(brand, projects)
26
28
  last_modified = find_last_modified(brand, projects)
27
29
 
30
+ # Get shortcut, key, and name with fallbacks
31
+ shortcut = brand_info.shortcut&.strip
32
+ shortcut = nil if shortcut&.empty?
33
+ key = brand_info.key
34
+ name = brand_info.name&.strip
35
+ name = nil if name&.empty?
36
+
28
37
  {
29
- name: brand,
38
+ shortcut: shortcut || key,
39
+ key: key,
40
+ name: name || key.capitalize,
30
41
  path: brand_path,
31
42
  count: projects.size,
32
43
  size: total_size,
@@ -35,14 +46,22 @@ module Appydave
35
46
  end
36
47
 
37
48
  # Print table header
38
- puts 'BRAND PROJECTS SIZE LAST MODIFIED PATH'
49
+ puts 'BRAND PROJECTS SIZE LAST MODIFIED PATH'
39
50
  puts '-' * 120
40
51
 
41
52
  # Print table rows
42
53
  brand_data.each do |data|
54
+ # Format: "shortcut (key) - Name"
55
+ # If shortcut == key, just show "key - Name" to avoid redundancy
56
+ brand_display = if data[:shortcut] == data[:key]
57
+ "#{data[:key]} - #{data[:name]}"
58
+ else
59
+ "#{data[:shortcut]} (#{data[:key]}) - #{data[:name]}"
60
+ end
61
+
43
62
  puts format(
44
- '%-20s %10d %12s %20s %s',
45
- data[:name],
63
+ '%-40s %10d %12s %20s %s',
64
+ brand_display,
46
65
  data[:count],
47
66
  format_size(data[:size]),
48
67
  format_date(data[:modified]),
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.57.0'
5
+ VERSION = '0.58.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.57.0",
3
+ "version": "0.58.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.57.0
4
+ version: 0.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys