-
Notifications
You must be signed in to change notification settings - Fork 88
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
added name for all GB countries #35
Conversation
looks great! For additions like this, I generally prefer to have tests added that specifically test what you're adding/fixing. In this case, adding mocha tests to see results if pulled by ISO, the fail/success cases for referencing by name. If you could add those in, I can see about getting it merged in. |
Thanks for reminding me to test! done. I think GB raises some interesting questions for your API though, specifically, what data should be returned for ISO queries with multiple countries? Example:
I think this really should be returning an array? I'd propose that info() always return an array of countries, with the country name as the key. It's a breaking change though, which is a shame for a special case. What are your thoughts on this? |
more info... |
I'd probably end up opting for a simple array of results, since name is specific to one language alone, and I don't want to be making assumptions about the preferred language of the user. It would be a breaking change :/ I don't think there's any way around that though, the current return is inconsistent. |
I guess I know what I'm working on this weekend :P |
This has been merged with a commit. |
differentiate the 3 Great Britain countries by name