appydave-tools 0.37.0 → 0.38.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 +13 -0
- data/docs/code-quality/README.md +177 -0
- data/docs/code-quality/implementation-plan.md +712 -0
- data/docs/code-quality/report-2025-01-21.md +342 -0
- data/lib/appydave/tools/dam/errors.rb +31 -0
- data/lib/appydave/tools/dam/file_helper.rb +43 -0
- data/lib/appydave/tools/dam/git_helper.rb +89 -0
- data/lib/appydave/tools/dam/project_listing.rb +4 -25
- data/lib/appydave/tools/dam/repo_push.rb +2 -7
- data/lib/appydave/tools/dam/repo_status.rb +7 -24
- data/lib/appydave/tools/dam/s3_operations.rb +1 -5
- data/lib/appydave/tools/dam/status.rb +6 -19
- data/lib/appydave/tools/dam/sync_from_ssd.rb +1 -7
- data/lib/appydave/tools/version.rb +1 -1
- data/lib/appydave/tools.rb +3 -0
- data/package.json +1 -1
- metadata +7 -1
|
@@ -241,40 +241,27 @@ module Appydave
|
|
|
241
241
|
end
|
|
242
242
|
|
|
243
243
|
def current_branch
|
|
244
|
-
|
|
245
|
-
rescue StandardError
|
|
246
|
-
'unknown'
|
|
244
|
+
GitHelper.current_branch(brand_path)
|
|
247
245
|
end
|
|
248
246
|
|
|
249
247
|
def remote_url
|
|
250
|
-
|
|
251
|
-
result.empty? ? nil : result
|
|
252
|
-
rescue StandardError
|
|
253
|
-
nil
|
|
248
|
+
GitHelper.remote_url(brand_path)
|
|
254
249
|
end
|
|
255
250
|
|
|
256
251
|
def modified_files_count
|
|
257
|
-
|
|
258
|
-
rescue StandardError
|
|
259
|
-
0
|
|
252
|
+
GitHelper.modified_files_count(brand_path)
|
|
260
253
|
end
|
|
261
254
|
|
|
262
255
|
def untracked_files_count
|
|
263
|
-
|
|
264
|
-
rescue StandardError
|
|
265
|
-
0
|
|
256
|
+
GitHelper.untracked_files_count(brand_path)
|
|
266
257
|
end
|
|
267
258
|
|
|
268
259
|
def commits_ahead
|
|
269
|
-
|
|
270
|
-
rescue StandardError
|
|
271
|
-
0
|
|
260
|
+
GitHelper.commits_ahead(brand_path)
|
|
272
261
|
end
|
|
273
262
|
|
|
274
263
|
def commits_behind
|
|
275
|
-
|
|
276
|
-
rescue StandardError
|
|
277
|
-
0
|
|
264
|
+
GitHelper.commits_behind(brand_path)
|
|
278
265
|
end
|
|
279
266
|
end
|
|
280
267
|
end
|
|
@@ -268,13 +268,7 @@ module Appydave
|
|
|
268
268
|
|
|
269
269
|
# Format bytes into human-readable format
|
|
270
270
|
def format_bytes(bytes)
|
|
271
|
-
|
|
272
|
-
"#{bytes}B"
|
|
273
|
-
elsif bytes < 1024 * 1024
|
|
274
|
-
"#{(bytes / 1024.0).round(1)}KB"
|
|
275
|
-
else
|
|
276
|
-
"#{(bytes / 1024.0 / 1024.0).round(1)}MB"
|
|
277
|
-
end
|
|
271
|
+
FileHelper.format_size(bytes)
|
|
278
272
|
end
|
|
279
273
|
end
|
|
280
274
|
end
|
data/lib/appydave/tools.rb
CHANGED
|
@@ -52,6 +52,9 @@ require 'appydave/tools/prompt_tools/prompt_completion'
|
|
|
52
52
|
require 'appydave/tools/subtitle_processor/clean'
|
|
53
53
|
require 'appydave/tools/subtitle_processor/join'
|
|
54
54
|
|
|
55
|
+
require 'appydave/tools/dam/errors'
|
|
56
|
+
require 'appydave/tools/dam/file_helper'
|
|
57
|
+
require 'appydave/tools/dam/git_helper'
|
|
55
58
|
require 'appydave/tools/dam/config'
|
|
56
59
|
require 'appydave/tools/dam/project_resolver'
|
|
57
60
|
require 'appydave/tools/dam/config_loader'
|
data/package.json
CHANGED
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.
|
|
4
|
+
version: 0.38.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Cruwys
|
|
@@ -250,6 +250,9 @@ files:
|
|
|
250
250
|
- docs/archive/test-coverage-quick-wins.md
|
|
251
251
|
- docs/archive/tool-discovery.md
|
|
252
252
|
- docs/archive/tool-documentation-analysis.md
|
|
253
|
+
- docs/code-quality/README.md
|
|
254
|
+
- docs/code-quality/implementation-plan.md
|
|
255
|
+
- docs/code-quality/report-2025-01-21.md
|
|
253
256
|
- docs/guides/configuration-setup.md
|
|
254
257
|
- docs/guides/platforms/windows/README.md
|
|
255
258
|
- docs/guides/platforms/windows/dam-testing-plan-windows-powershell.md
|
|
@@ -296,6 +299,9 @@ files:
|
|
|
296
299
|
- lib/appydave/tools/configuration/openai.rb
|
|
297
300
|
- lib/appydave/tools/dam/config.rb
|
|
298
301
|
- lib/appydave/tools/dam/config_loader.rb
|
|
302
|
+
- lib/appydave/tools/dam/errors.rb
|
|
303
|
+
- lib/appydave/tools/dam/file_helper.rb
|
|
304
|
+
- lib/appydave/tools/dam/git_helper.rb
|
|
299
305
|
- lib/appydave/tools/dam/manifest_generator.rb
|
|
300
306
|
- lib/appydave/tools/dam/project_listing.rb
|
|
301
307
|
- lib/appydave/tools/dam/project_resolver.rb
|