appydave-tools 0.48.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/appydave/tools/dam/status.rb +46 -4
- data/lib/appydave/tools/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5463729b129f23fd94b8966f0202a7b98b9e6619432ce00791c554cefe305ba4
|
|
4
|
+
data.tar.gz: b9b46417c310966bffc62d318dbdbde6279f4594663df779368a879e7c4c5c88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fa7ffa5b0f96972d363e0f75411408bc43e191a71b675053ab051d01cf63f3f13a9656b8abc3bd79c56458a7977669f08a7e2b47abced895a341c18b3c0aeba
|
|
7
|
+
data.tar.gz: bf7cdf85e9f522651775bc0f039d7e627d27fc19a1c311085b48f9b44a8abf69d510c174790d0e4b9ecba9125fd7e3825b4450f455fd3a4f119ded25889a1ed5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
# [0.47.0](https://github.com/appydave/appydave-tools/compare/v0.46.0...v0.47.0) (2025-11-21)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -40,7 +40,8 @@ module Appydave
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def show_project_status
|
|
43
|
-
|
|
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
|
-
|
|
108
|
-
|
|
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
|
data/package.json
CHANGED