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.
@@ -241,40 +241,27 @@ module Appydave
241
241
  end
242
242
 
243
243
  def current_branch
244
- `git -C "#{brand_path}" rev-parse --abbrev-ref HEAD 2>/dev/null`.strip
245
- rescue StandardError
246
- 'unknown'
244
+ GitHelper.current_branch(brand_path)
247
245
  end
248
246
 
249
247
  def remote_url
250
- result = `git -C "#{brand_path}" remote get-url origin 2>/dev/null`.strip
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
- `git -C "#{brand_path}" status --porcelain 2>/dev/null | grep -E "^.M|^M" | wc -l`.strip.to_i
258
- rescue StandardError
259
- 0
252
+ GitHelper.modified_files_count(brand_path)
260
253
  end
261
254
 
262
255
  def untracked_files_count
263
- `git -C "#{brand_path}" status --porcelain 2>/dev/null | grep -E "^\\?\\?" | wc -l`.strip.to_i
264
- rescue StandardError
265
- 0
256
+ GitHelper.untracked_files_count(brand_path)
266
257
  end
267
258
 
268
259
  def commits_ahead
269
- `git -C "#{brand_path}" rev-list --count @{upstream}..HEAD 2>/dev/null`.strip.to_i
270
- rescue StandardError
271
- 0
260
+ GitHelper.commits_ahead(brand_path)
272
261
  end
273
262
 
274
263
  def commits_behind
275
- `git -C "#{brand_path}" rev-list --count HEAD..@{upstream} 2>/dev/null`.strip.to_i
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
- if bytes < 1024
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.37.0'
5
+ VERSION = '0.38.0'
6
6
  end
7
7
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appydave-tools",
3
- "version": "0.37.0",
3
+ "version": "0.38.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.37.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