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 4 new predicates #2

Merged
merged 4 commits into from Apr 21, 2020
Merged

add 4 new predicates #2

merged 4 commits into from Apr 21, 2020

Conversation

kyleVsteger
Copy link
Collaborator

  • adds 4 new predicates:
  • EnvVarIn
  • EnvVarNotIn
  • AppConfigIn
  • AppConfigNotIn

defmodule Unplug.Predicates.AppConfigIn do
@moduledoc """
Given an application and a key, execute the plug if the configured value
matches the expected value.
Copy link
Owner

Choose a reason for hiding this comment

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

For the In style predicates, I would just update the moduledoc to make it clear that the configured value is in an enumerable of values. Something like if the value is in the the provided list of values.

Copy link
Owner

@akoutmos akoutmos left a comment

Choose a reason for hiding this comment

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

Overall looks good to me...just a small nitpick on the moduledocs

@akoutmos akoutmos merged commit 0062ac9 into master Apr 21, 2020
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

3 participants