appydave-tools 0.60.0 → 0.61.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: 17aeed0febc1cb3b7a03c4296598d1d565afcaf0291eab4cee517b10423022f6
4
- data.tar.gz: c12a755661cfd98cb229dfeb37e7b06f1e74aca5b9b994dd1eec74a2537c1204
3
+ metadata.gz: 864eafb1a55d6472a520b956d7f209c5b936f9bc07dcb9d9755aa9e852e7f86c
4
+ data.tar.gz: 609a7a60b4aec7a278fdd3020bb0c5f4e4882e5334d8ebf6474f8c5d44da29e8
5
5
  SHA512:
6
- metadata.gz: dfd436195b2e4e959b351b2f89294608ed621f402ea6d75db1df782362a7a29b5f9d2ede6f8988b0333f09c67bbdba635ace5cf6d206aa11f5e36938ce0293a3
7
- data.tar.gz: c8f217cc38051e9a1adf1c2f05c40809cce39609275810d68136741de7588b90c6c2f6a937c3ad34f76f1d669daf124e16e04645b8f35c3c9fa455e9ee7e5535
6
+ metadata.gz: 0fa499e33391e28eb1e206d1da8110f919b8c769909e40baa84e25b5fa0565485858efdd49705a92487f6e5ab77d13e2edb338ecc3f606bb902b65bbc4d05220
7
+ data.tar.gz: f5d8a1fec87d8f224ec8df22f2fc94d00cfd12d8742c66a11f50406afeec0c2770c1009405a498c6116958ccc02324d57f05b1de341d75085b4290aef6c5f356
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.60.0](https://github.com/appydave/appydave-tools/compare/v0.59.0...v0.60.0) (2025-11-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * remove PATH column from brand list default view to focus on key metadata ([2920537](https://github.com/appydave/appydave-tools/commit/2920537e8fcf93f6472b50a7a6b3d8ae23426489))
7
+
1
8
  # [0.59.0](https://github.com/appydave/appydave-tools/compare/v0.58.0...v0.59.0) (2025-11-22)
2
9
 
3
10
 
@@ -19,35 +19,11 @@ module Appydave
19
19
  end
20
20
 
21
21
  # Gather brand data
22
- brand_data = brands.map do |brand|
23
- Appydave::Tools::Configuration::Config.configure
24
- brand_info = Appydave::Tools::Configuration::Config.brands.get_brand(brand)
25
- brand_path = Config.brand_path(brand)
26
- projects = ProjectResolver.list_projects(brand)
27
- total_size = calculate_total_size(brand, projects)
28
- last_modified = find_last_modified(brand, projects)
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
-
37
- {
38
- shortcut: shortcut || key,
39
- key: key,
40
- name: name || key.capitalize,
41
- path: brand_path,
42
- count: projects.size,
43
- size: total_size,
44
- modified: last_modified
45
- }
46
- end
22
+ brand_data = brands.map { |brand| collect_brand_data(brand) }
47
23
 
48
24
  # Print table header
49
- puts 'BRAND KEY PROJECTS SIZE LAST MODIFIED'
50
- puts '-' * 100
25
+ puts 'BRAND KEY PROJECTS SIZE LAST MODIFIED GIT'
26
+ puts '-' * 115
51
27
 
52
28
  # Print table rows
53
29
  brand_data.each do |data|
@@ -55,12 +31,13 @@ module Appydave
55
31
  brand_display = "#{data[:shortcut]} - #{data[:name]}"
56
32
 
57
33
  puts format(
58
- '%-30s %-12s %10d %12s %20s',
34
+ '%-30s %-12s %10d %12s %20s %-15s',
59
35
  brand_display,
60
36
  data[:key],
61
37
  data[:count],
62
38
  format_size(data[:size]),
63
- format_date(data[:modified])
39
+ format_date(data[:modified]),
40
+ data[:git_status]
64
41
  )
65
42
  end
66
43
 
@@ -241,6 +218,52 @@ module Appydave
241
218
  puts ''
242
219
  end
243
220
 
221
+ # Collect brand data for display
222
+ def self.collect_brand_data(brand)
223
+ Appydave::Tools::Configuration::Config.configure
224
+ brand_info = Appydave::Tools::Configuration::Config.brands.get_brand(brand)
225
+ brand_path = Config.brand_path(brand)
226
+ projects = ProjectResolver.list_projects(brand)
227
+ total_size = calculate_total_size(brand, projects)
228
+ last_modified = find_last_modified(brand, projects)
229
+
230
+ # Get shortcut, key, and name with fallbacks
231
+ shortcut = brand_info.shortcut&.strip
232
+ shortcut = nil if shortcut&.empty?
233
+ key = brand_info.key
234
+ name = brand_info.name&.strip
235
+ name = nil if name&.empty?
236
+
237
+ # Get git status
238
+ git_status = calculate_git_status(brand_path)
239
+
240
+ {
241
+ shortcut: shortcut || key,
242
+ key: key,
243
+ name: name || key.capitalize,
244
+ path: brand_path,
245
+ count: projects.size,
246
+ size: total_size,
247
+ modified: last_modified,
248
+ git_status: git_status
249
+ }
250
+ end
251
+
252
+ # Calculate git status for a brand
253
+ def self.calculate_git_status(brand_path)
254
+ if Dir.exist?(File.join(brand_path, '.git'))
255
+ modified = GitHelper.modified_files_count(brand_path)
256
+ untracked = GitHelper.untracked_files_count(brand_path)
257
+ if modified.positive? || untracked.positive?
258
+ '⚠️ changes'
259
+ else
260
+ '✓ clean'
261
+ end
262
+ else
263
+ 'N/A'
264
+ end
265
+ end
266
+
244
267
  # Calculate total size of all projects in a brand
245
268
  def self.calculate_total_size(brand, projects)
246
269
  projects.sum do |project|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.60.0'
5
+ VERSION = '0.61.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.60.0",
3
+ "version": "0.61.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.60.0
4
+ version: 0.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys