Skip to content

Conversation

@vitallium
Copy link
Collaborator

This refactoring improves the architecture and testability of the Ruby extension by introducing abstractions for command execution. Key changes:

  • Add CommandExecutor trait for bundle commands with default impl
  • Add GemCommandExecutor trait for gem commands with default impl
  • Refactor Bundler and Gemset to accept executors via DI

The refactoring enables better testing through mock implementations while keeping the original functionality intact.

@cla-bot cla-bot bot added the cla-signed label May 7, 2025
@vitallium vitallium force-pushed the vs/add-tests branch 3 times, most recently from 765c6c1 to b81c552 Compare May 8, 2025 08:08
This refactoring improves the architecture and testability of the Ruby
extension by introducing abstractions for command execution. Key changes:

- Add `CommandExecutor` trait for bundle commands with default impl
- Add `GemCommandExecutor` trait for gem commands with default impl
- Refactor Bundler and Gemset to accept executors via DI

The refactoring enables better testing through mock implementations while
keeping the original functionality intact.
@vitallium vitallium merged commit f7da1e6 into main May 8, 2025
3 checks passed
@vitallium vitallium deleted the vs/add-tests branch May 8, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants