Skip to content

Refactor checksum handling and introduce Checksum Class#65

Open
bobvanoorschot wants to merge 27 commits intomainfrom
Checksum-class
Open

Refactor checksum handling and introduce Checksum Class#65
bobvanoorschot wants to merge 27 commits intomainfrom
Checksum-class

Conversation

@bobvanoorschot
Copy link
Copy Markdown
Collaborator

@bobvanoorschot bobvanoorschot commented Nov 26, 2024

This pull request introduces a new Checksum class to handle checksum operations in the StorageTables module. The changes refactor various parts of the codebase to use this new class, replacing direct checksum manipulations with methods from the Checksum class. This improves code readability, maintainability, and ensures consistent checksum handling across the application.

Introduction of Checksum class:

  • app/models/storage_tables/checksum.rb: Added a new Checksum class that encapsulates checksum operations, including creation from strings, IO objects, and file paths, as well as validation and sanitization.

Refactoring to use Checksum class:

Test updates:

@bobvanoorschot bobvanoorschot changed the title Refactor checksum handling in storage tables and introduce Checksum c… Refactor checksum handling in storage tables and introduce Checksum Nov 26, 2024
@bobvanoorschot bobvanoorschot marked this pull request as ready for review November 26, 2024 15:37
… and tests for improved consistency and clarity
@bobvanoorschot bobvanoorschot changed the title Refactor checksum handling in storage tables and introduce Checksum Refactor checksum handling in storage tables and introduce Checksum Class Jan 13, 2025
@bobvanoorschot bobvanoorschot changed the title Refactor checksum handling in storage tables and introduce Checksum Class Refactor checksum handling and introduce Checksum Class Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant