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

I18n support/IP verification #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

tf
Copy link

@tf tf commented Jul 13, 2016

This PR contains two new features.

I'd be happy if you could review my changes. I can split it into two separate PRs. But since the commits build on one another, I wanted to get your feedback first.

Add support for localized error messages

  • Pass symbol to errors.add method, to trigger translation lookup
  • Provide custom messages and default fallback via :message option
  • Test that translations are actually used as expected

Add a :same_ip_as option to :verify_dns

Given a SaaS website which lets users setup their own CNAME to access
some resource, we want to ensure that the DNS record is not only
present but points to the correct domain. To do this, we can check
that the domain resolves to the same IP as the target domain for the
CNAME.

tf added 3 commits July 13, 2016 13:45
`options[:message]` would only be used here if `:verify_dns` option is
a hash but does not contain a `:message` key.
* Pass symbol to `errors.add` method, to trigger translation lookup
* Provide custom messages and default fallback via `:message` option
* Test that translations are actually used as expected
Given a SaaS website which lets user setup their own CNAME to access
some resource, we want to ensure that the DNS record is not only
present but points to the correct domain. To do this, we can check
that the domain resolves to the same IP as the target domain for the
CNAME.
@kyledayton kyledayton self-assigned this Sep 7, 2016
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