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

Made sure we require timeout before using it #385

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

iainbeeston
Copy link
Contributor

If you run JSON::Validator.validate(metaschema, "http://a/%%30%30")
then you'll see the error "uninitialized constant Timeout". This is
happening because we reference Timeout in Validator without
requiring it.

Interestingly I can't reproduce this error in the test suite because
something else (probably webmock?) is already requiring timeout for
us, and this error does not occur.

Fixes #384

@iainbeeston
Copy link
Contributor Author

@RST-J Could I please get a review of this too?

If you run `JSON::Validator.validate(metaschema, "http://a/%%30%30")`
then you'll see the error "uninitialized constant Timeout". This is
happening because we reference `Timeout` in `Validator` without
requiring it.

Interestingly I can't reproduce this error in the test suite because
something else (probably webmock?) is already requiring timeout for
us, and this error does not occur.

Fixes voxpupuli#384
@iainbeeston iainbeeston force-pushed the absolute-class-for-timeout branch from 9f72fa9 to 0fbbb4e Compare July 6, 2017 07:48
@ghoneycutt ghoneycutt merged commit b0983fa into voxpupuli:master Feb 16, 2022
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.

Uninitialized constant JSON::Validator::Timeout
2 participants