Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In attempting to detail the architecture of this codebase, I realized that it would be easier if the parts of SuperDiff that implemented differs, inspection tree builders, operation tree builders, operation tree flatteners, and operation trees for Ruby objects were split off into their own directory. To that end, alongside RSpec, ActiveRecord, and ActiveSupport, there is now a "Basic" feature module. In addition, to make the file structure a little flatter, I've also renamed
InspectionTreeBuildersin various feature modules up one level (so,ObjectInspection::InspectionTreeBuildersis now simplyInspectionTreeBuilders).Following this change, SuperDiff can now be divided into 4 layers (here I'm putting CSI in brackets because it's not a public module):
Here is a full list of renames:
SuperDiffare now located underSuperDiff::Core:ColorizedDocumentExtensionsConfigurationGemVersionHelpersImplementationChecksLineRecursionGuardTieredLinesTieredLinesEliderTieredLinesFormatterSuperDiff::Differsis now underSuperDiff::Basic::DiffersSuperDiff::Errorshave been moved out and are now directly underSuperDiff::CoreSuperDiff::ObjectInspection::InspectionTreeis nowSuperDiff::Core::InspectionTreeSuperDiff::ObjectInspection::InspectionTreeBuildersis now underSuperDiff::Core::InspectionTreeBuildersSuperDiff::ObjectInspection::Nodesis now underSuperDiff::Core::InspectionTreeNodesSuperDiff::OperationTreeBuildersis now underSuperDiff::Basic::OperationTreeBuildersSuperDiff::OperationTreeFlattenersis now underSuperDiff::Basic::OperationTreeFlattenersSuperDiff::OperationTreesis now underSuperDiff::Basic::OperationTreesSuperDiff::Operationshas been moved out and is now directly underSuperDiff::CoreSuperDiff::ActiveRecord::ObjectInspection::InspectionTreeBuildersis now underSuperDiff::ActiveRecord::InspectionTreeBuildersSuperDiff::ActiveSupport::ObjectInspection::InspectionTreeBuildersis now underSuperDiff::ActiveSupport::InspectionTreeBuildersSuperDiff::RSpec::ObjectInspection::InspectionTreeBuildersis now underSuperDiff::RSpec::InspectionTreeBuildersTo maintain backward compatibility, I've left all of the original constants in place, but they will now print deprecation warnings when used. I will remove them in 1.0.0.