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

Retrigger Travis build for debugging #25

Merged
merged 18 commits into from
Dec 1, 2012
Merged

Retrigger Travis build for debugging #25

merged 18 commits into from
Dec 1, 2012

Conversation

jch
Copy link
Contributor

@jch jch commented Nov 30, 2012

No description provided.

This way developers will see any potential missing context without
running the entire filter, which may not ever encounter a case where
it needs the context.
Declaring required contexts has been simplified.
validates_context_presence no longer requires self to be passed in.
Instead it will attempt to build the caller name by using
Kernel::caller.

Tests have been added for filters that require context.
Noted in filters if a context is required. Updated README to include info about
required contexts.
Using a singleton to remove the reliance on a class variable.

Removed unnecessary calling_class method and just using self instead.
This way developers will see any potential missing context without
running the entire filter, which may not ever encounter a case where
it needs the context.
Declaring required contexts has been simplified.
validates_context_presence no longer requires self to be passed in.
Instead it will attempt to build the caller name by using
Kernel::caller.

Tests have been added for filters that require context.
Noted in filters if a context is required. Updated README to include info about
required contexts.
Using a singleton to remove the reliance on a class variable.

Removed unnecessary calling_class method and just using self instead.
Removed declarative code in favor of a validation hook. It's up to subclasses
to implement the validate method. Validate will be called by Filter after
initialization so @context is available.

Reverted README.md to remove the additions about validation.
Changed required context method name to 'needs.' Updated needs to use
@jbarnette's concise version of needs.

Made validate a noop method instead of checking if a filter respond_to?
validate.
@jch jch merged commit 011aa07 into master Dec 1, 2012
@gjtorikian gjtorikian deleted the context_validation branch June 3, 2022 19:58
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