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

Add Support for Hashdiff 1.0.0 #215

Merged
merged 4 commits into from
Oct 31, 2019

Conversation

speer
Copy link
Contributor

@speer speer commented Jul 16, 2019

Overview

This pull request introduces support for Hashdiff version 1.0.0.

When using Hashdiff version 1.0.0, octocatalog-diff failed with the following error:
uninitialized constant OctocatalogDiff::CatalogDiff::Differ::HashDiff (NameError).

See also: liufengyun/hashdiff#45

Hashdiff 1.0.0 was released on July, 15 2019 and replaced the constant "HashDiff" with "Hashdiff".

This commit fixes this error and keeps octocatalog-diff backwards compatible to older versions
of HashDiff.

Checklist

  • Make sure that all of the tests pass, and fix any that don't. Just run rake in your checkout directory, or review the CI job triggered whenever you push to a pull request.
  • Make sure that there is 100% test coverage by running rake coverage:spec or ignoring untestable sections of code with # :nocov comments. If you need help getting to 100% coverage please ask; however, don't just submit code with no tests.
  • If you have added a new command line option, we would greatly appreciate a corresponding integration test that exercises it from start to finish. This is optional but recommended.
  • If you have added any new gem dependencies, make sure those gems are licensed under the MIT or Apache 2.0 license. We cannot add any dependencies on gems licensed under GPL.
  • If you have added any new gem dependencies, make sure you've checked in a copy of the .gem file into the vendor/cache directory.

When using Hashdiff version 1.0.0, octocatalog-diff failed with the following error:
`uninitialized constant OctocatalogDiff::CatalogDiff::Differ::HashDiff (NameError)`

Hashdiff 1.0.0 was released on July, 15 2019 and replaced the constant "HashDiff" with "Hashdiff".

This commit fixes this error and keeps octocatalog-diff backwards compatible to older versions
of HashDiff.
@speer speer force-pushed the fix-compatibility-issue-hashdiff-1.0.0 branch from 8f30cfa to 1ce938e Compare July 16, 2019 12:34
@BarnumD
Copy link

BarnumD commented Jul 17, 2019

I need this fix as well.

@olasd olasd mentioned this pull request Sep 19, 2019
Copy link
Contributor

@ahayworth ahayworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me. We'll target this for 1.6.0 later this week, unless internal testing shows something unexpected.

Thank you for your patience, I know nothing has happened on this repo for awhile. ❤️

@ahayworth ahayworth merged commit e81de2d into github:master Oct 31, 2019
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.

None yet

4 participants