appydave-tools 0.47.0 → 0.49.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: 80d7f2ef51336f68b58b2053d44b32037c1adf675fad06133257aa60eee0f9d8
4
- data.tar.gz: 20eb3bd8ed58cdb48785c8914284f12f0eb54083dfa8fb6f70b38590a8f3dd03
3
+ metadata.gz: 5463729b129f23fd94b8966f0202a7b98b9e6619432ce00791c554cefe305ba4
4
+ data.tar.gz: b9b46417c310966bffc62d318dbdbde6279f4594663df779368a879e7c4c5c88
5
5
  SHA512:
6
- metadata.gz: 57bbd014f73ce2a51b9da0d95c3a20c5cac638acfdc91480f0521c9cedaa2d39c57ec6bd81cbd4e7b76116f5caead1e7ae43776485af78d0e456d030845e8669
7
- data.tar.gz: cc700f2e7f62eeecb9f2183bf0d8c0a1dad9f1d48fb6794f894c918c407083a8978aa3bb2d823133ac1cf3e6f191b6332a218ea384d7e83223fddb84294584da
6
+ metadata.gz: 0fa7ffa5b0f96972d363e0f75411408bc43e191a71b675053ab051d01cf63f3f13a9656b8abc3bd79c56458a7977669f08a7e2b47abced895a341c18b3c0aeba
7
+ data.tar.gz: bf7cdf85e9f522651775bc0f039d7e627d27fc19a1c311085b48f9b44a8abf69d510c174790d0e4b9ecba9125fd7e3825b4450f455fd3a4f119ded25889a1ed5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [0.48.0](https://github.com/appydave/appydave-tools/compare/v0.47.0...v0.48.0) (2025-11-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * remove PATH column from project lists and add note about file-only listing ([4cd3c67](https://github.com/appydave/appydave-tools/commit/4cd3c67196c08998fdbc172ff262a94abcfa8beb))
7
+
8
+ # [0.47.0](https://github.com/appydave/appydave-tools/compare/v0.46.0...v0.47.0) (2025-11-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * add manifest timestamp and next steps guidance ([33c0e2f](https://github.com/appydave/appydave-tools/commit/33c0e2f85961fbbc63dd4ccfa3c103dfb2c4fdee))
14
+
1
15
  # [0.46.0](https://github.com/appydave/appydave-tools/compare/v0.45.1...v0.46.0) (2025-11-21)
2
16
 
3
17
 
@@ -88,18 +88,20 @@ module Appydave
88
88
 
89
89
  # Print table header
90
90
  puts "Projects in #{brand}:"
91
- puts 'PROJECT SIZE AGE PATH'
92
- puts '-' * 120
91
+ puts ''
92
+ puts 'ℹ️ Note: Lists only projects with files, not empty directories'
93
+ puts ''
94
+ puts 'PROJECT SIZE AGE'
95
+ puts '-' * 100
93
96
 
94
97
  # Print table rows
95
98
  project_data.each do |data|
96
99
  age_display = data[:stale] ? "#{data[:age]} ⚠️" : data[:age]
97
100
  puts format(
98
- '%-45s %12s %15s %s',
101
+ '%-45s %12s %15s',
99
102
  data[:name],
100
103
  format_size(data[:size]),
101
- age_display,
102
- shorten_path(data[:path])
104
+ age_display
103
105
  )
104
106
  end
105
107
 
@@ -150,18 +152,17 @@ module Appydave
150
152
  # Print table header
151
153
  match_count = matches.size
152
154
  puts "#{match_count} project#{'s' if match_count != 1} matching '#{pattern}' in #{brand}:"
153
- puts 'PROJECT SIZE AGE PATH'
154
- puts '-' * 120
155
+ puts 'PROJECT SIZE AGE'
156
+ puts '-' * 100
155
157
 
156
158
  # Print table rows
157
159
  project_data.each do |data|
158
160
  age_display = data[:stale] ? "#{data[:age]} ⚠️" : data[:age]
159
161
  puts format(
160
- '%-45s %12s %15s %s',
162
+ '%-45s %12s %15s',
161
163
  data[:name],
162
164
  format_size(data[:size]),
163
- age_display,
164
- shorten_path(data[:path])
165
+ age_display
165
166
  )
166
167
  end
167
168
 
@@ -40,7 +40,8 @@ module Appydave
40
40
  end
41
41
 
42
42
  def show_project_status
43
- puts "📊 Status: v-#{brand}/#{File.basename(project_path)}"
43
+ project_size = calculate_project_size
44
+ puts "📊 Status: v-#{brand}/#{File.basename(project_path)} (#{format_size(project_size)})"
44
45
  puts ''
45
46
 
46
47
  manifest = load_manifest
@@ -57,7 +58,6 @@ module Appydave
57
58
  end
58
59
 
59
60
  show_storage_status(project_entry)
60
- show_git_status if git_repo?
61
61
  end
62
62
 
63
63
  def show_brand_status
@@ -104,8 +104,22 @@ module Appydave
104
104
 
105
105
  if local[:exists]
106
106
  puts ' 📁 Local: ✓ exists'
107
- puts " Heavy files: #{local[:has_heavy_files] ? 'yes' : 'no'}"
108
- puts " Light files: #{local[:has_light_files] ? 'yes' : 'no'}"
107
+
108
+ # Show heavy files with count and size
109
+ if local[:has_heavy_files]
110
+ heavy_info = count_and_size_heavy_files
111
+ puts " Heavy files: #{heavy_info[:count]} (#{format_size(heavy_info[:size])})"
112
+ else
113
+ puts ' Heavy files: none'
114
+ end
115
+
116
+ # Show light files with count and size
117
+ if local[:has_light_files]
118
+ light_info = count_and_size_light_files
119
+ puts " Light files: #{light_info[:count]} (#{format_size(light_info[:size])})"
120
+ else
121
+ puts ' Light files: none'
122
+ end
109
123
  else
110
124
  puts ' 📁 Local: ✗ does not exist'
111
125
  end
@@ -258,6 +272,34 @@ module Appydave
258
272
  def commits_behind
259
273
  GitHelper.commits_behind(brand_path)
260
274
  end
275
+
276
+ def calculate_project_size
277
+ FileHelper.calculate_directory_size(project_path)
278
+ end
279
+
280
+ def count_and_size_heavy_files
281
+ count = 0
282
+ size = 0
283
+ Dir.glob(File.join(project_path, '*.{mp4,mov,avi,mkv,webm}')).each do |file|
284
+ count += 1
285
+ size += File.size(file)
286
+ end
287
+ { count: count, size: size }
288
+ end
289
+
290
+ def count_and_size_light_files
291
+ count = 0
292
+ size = 0
293
+ Dir.glob(File.join(project_path, '**/*.{srt,vtt,jpg,png,md,txt,json,yml}')).each do |file|
294
+ count += 1
295
+ size += File.size(file)
296
+ end
297
+ { count: count, size: size }
298
+ end
299
+
300
+ def format_size(bytes)
301
+ FileHelper.format_size(bytes)
302
+ end
261
303
  end
262
304
  end
263
305
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.47.0'
5
+ VERSION = '0.49.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.47.0",
3
+ "version": "0.49.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.47.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys