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 missing stdlib requires. #98

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

myronmarston
Copy link
Contributor

When using super_diff in an RSpec suite that does not load set
or delegate from the standard library, I was getting errors:

  • NameError: uninitialized constant SuperDiff::RecursionGuard::Set
  • NameError: uninitialized constant SuperDiff::OperationTrees::SimpleDelegator

The requires added here fix these errors.

super_diff should load all parts of the stdlib it uses rather than
assuming other things load them.

When using super_diff in an RSpec suite that does not load `set`
or `delegate` from the standard library, I was getting errors:

* `NameError: uninitialized constant SuperDiff::RecursionGuard::Set`
* `NameError: uninitialized constant SuperDiff::OperationTrees::SimpleDelegator`

The requires added here fix these errors.

super_diff should load all parts of the stdlib it uses rather than
assuming other things load them.
@mcmire
Copy link
Collaborator

mcmire commented Sep 3, 2020

Hi @myronmarston! Good catch. Looks like I need to change the integration tests to catch these kinds of things in the future. In the meantime, thanks for the fix!

@mcmire mcmire merged commit c705384 into splitwise:master Sep 3, 2020
@myronmarston myronmarston deleted the add-missing-requires branch September 3, 2020 17:33
@mcmire
Copy link
Collaborator

mcmire commented Sep 4, 2020

Just released 0.5.2 which includes this fix.

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.

2 participants