Skip to content

Conversation

@myronmarston
Copy link

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