Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do some reorganizing #84

Merged
merged 1 commit into from
May 23, 2020
Merged

Do some reorganizing #84

merged 1 commit into from
May 23, 2020

Conversation

mcmire
Copy link
Collaborator

@mcmire mcmire commented May 23, 2020

  • Rename "function" classes to Main, e.g., Differ -> Differs::Main.
    This makes it easier to Ctrl-P for the right files (if you were
    looking for differ.rb you might get differs/something_else.rb).
  • Change inspector classes so that what they return match what they're
    named after. That is, previously an Inspector actually was an
    InspectionTree object, and now the InspectionTree lives inside the
    Inspector.
  • Remove the inspector Map, as well as the MapExtensions which are used
    by extension modules such as super_diff/rspec,
    super_diff/active_record, etc., in favor of the same registry
    mechanism that differs, operational sequencers, etc. use.
  • Pluralize extension points in the Configuration object so that you can
    provide more than one custom differ, operational sequencer, etc., at a
    time.

This reorganization is in preparation for introducing new classes in the
future around eliding diff output.

@mcmire mcmire changed the title WIP: Reorganize a bit Do some reorganizing May 23, 2020
* Rename "function" classes to Main, e.g., Differ -> Differs::Main.
  This makes it easier to Ctrl-P for the right files (if you were
  looking for differ.rb you might get differs/something_else.rb).
* Change inspector classes so that what they return match what they're
  named after. That is, previously an Inspector actually was an
  InspectionTree object, and now the InspectionTree lives inside the
  Inspector.
* Remove the inspector Map, as well as the MapExtensions which are used
  by extension modules such as `super_diff/rspec`,
  `super_diff/active_record`, etc., in favor of the same registry
  mechanism that differs, operational sequencers, etc. use.
* Pluralize extension points in the Configuration object so that you can
  provide more than one custom differ, operational sequencer, etc., at a
  time.

This reorganization is in preparation for introducing new classes in the
future around eliding diff output.
@mcmire mcmire merged commit 8845c20 into master May 23, 2020
@mcmire mcmire deleted the reorganize branch May 23, 2020 08:13
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