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

Simplified #validator_for methods #346

Merged

Conversation

iainbeeston
Copy link
Contributor

Right now there is:

  • #validator_for
  • #validator_for_uri
  • #validator_for_name
  • #validators_for_names

But in reality all delegate to either #validator_for_uri or
#validator_for_name. This is confusing, and obfuscates what's really
going on.

I've removed #validators_for_names (which was a private method anyway)
and deprecated the alias of #validator_for.

@iainbeeston iainbeeston force-pushed the simplify-validator-for-methods branch from 0d73a7a to 56f4569 Compare September 29, 2016 14:36
@iainbeeston iainbeeston force-pushed the simplify-validator-for-methods branch from 56f4569 to 3a25e8b Compare October 5, 2016 13:15
Right now there is:

* `#validator_for`
* `#validator_for_uri`
* `#validator_for_name`
* `#validators_for_names`

But in reality all delegate to either `#validator_for_uri` or
`#validator_for_name`. This is confusing, and obfuscates what's really
going on.

I've removed `#validators_for_names` (which was a private method anyway)
and deprecated the alias of `#validator_for`.
@iainbeeston iainbeeston force-pushed the simplify-validator-for-methods branch from 3a25e8b to fd45475 Compare October 5, 2016 13:18
@iainbeeston iainbeeston merged commit 9d25c9a into voxpupuli:master Oct 5, 2016
@iainbeeston iainbeeston deleted the simplify-validator-for-methods branch October 5, 2016 13:22
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.

1 participant