{"action":"created","comment":{"url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/comments/50882452","id":50882452,"diff_hunk":"@@ -0,0 +1,37 @@\n+/**\n+ * @file List of country codes legally considered part of the EU region.","path":"lib/region/europe/countryCodes.js","position":2,"original_position":2,"commit_id":"8d41c94766af03a8bdd6626474bde167612feaa4","original_commit_id":"8d41c94766af03a8bdd6626474bde167612feaa4","user":{"login":"taylormck","id":2374670,"avatar_url":"https://avatars.githubusercontent.com/u/2374670?v=3","gravatar_id":"","url":"https://api.github.com/users/taylormck","html_url":"https://github.com/taylormck","followers_url":"https://api.github.com/users/taylormck/followers","following_url":"https://api.github.com/users/taylormck/following{/other_user}","gists_url":"https://api.github.com/users/taylormck/gists{/gist_id}","starred_url":"https://api.github.com/users/taylormck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylormck/subscriptions","organizations_url":"https://api.github.com/users/taylormck/orgs","repos_url":"https://api.github.com/users/taylormck/repos","events_url":"https://api.github.com/users/taylormck/events{/privacy}","received_events_url":"https://api.github.com/users/taylormck/received_events","type":"User","site_admin":false},"body":"We had the BV legal team come up with a list and email it to me.","created_at":"2016-01-26T19:03:38Z","updated_at":"2016-01-26T19:03:38Z","html_url":"https://github.com/bazaarvoice/bv-ui-core/pull/51#discussion_r50882452","pull_request_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/comments/50882452"},"html":{"href":"https://github.com/bazaarvoice/bv-ui-core/pull/51#discussion_r50882452"},"pull_request":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51","id":56649010,"html_url":"https://github.com/bazaarvoice/bv-ui-core/pull/51","diff_url":"https://github.com/bazaarvoice/bv-ui-core/pull/51.diff","patch_url":"https://github.com/bazaarvoice/bv-ui-core/pull/51.patch","issue_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues/51","number":51,"state":"open","locked":false,"title":"JST-7: Add region module","user":{"login":"taylormck","id":2374670,"avatar_url":"https://avatars.githubusercontent.com/u/2374670?v=3","gravatar_id":"","url":"https://api.github.com/users/taylormck","html_url":"https://github.com/taylormck","followers_url":"https://api.github.com/users/taylormck/followers","following_url":"https://api.github.com/users/taylormck/following{/other_user}","gists_url":"https://api.github.com/users/taylormck/gists{/gist_id}","starred_url":"https://api.github.com/users/taylormck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylormck/subscriptions","organizations_url":"https://api.github.com/users/taylormck/orgs","repos_url":"https://api.github.com/users/taylormck/repos","events_url":"https://api.github.com/users/taylormck/events{/privacy}","received_events_url":"https://api.github.com/users/taylormck/received_events","type":"User","site_admin":false},"body":"## What's in this PR ?\r\n\r\nNew laws in the EU require that identifying information stay physically located in the EU. In order to comply with this, we'll need to be able to tell when we're running in the EU. It has been determined that the onus of providing the correct locale is on the client, so we can safely rely on the base locale of an implementation.\r\n\r\nThis PR adds a module that UI projects can use to determine if it's in EU or not. It has been designed with extensibility in mind, in case we want to add support for detecting other regions in the future.\r\n\r\n## How to verify\r\n\r\n1. Check out this PR\r\n1. In the `bv-ui-core` repo, run `node`.\r\n1. Run `var region = require('./lib/region');` to get a reference to the root module.\r\n1. Run `region.isEULocale('en_US');`. Should return `false`.\r\n1. Run `region.isEULocale('en_GB');`. Should return `true`.\r\n1. If you prefer, instead of the \"generic\" module, you can run `var isEULocale = require('./lib/region/EU');` to load the EU specific module. Useful if you're trying to keep file size down and aren't worried about detecting other regions in the future.\r\n1. Feel free to try it out with a bunch of different locales. The list of country codes provided in this PR is intended to be the official EU list.\r\n\r\n## Unit tests\r\n\r\nSo long as you have the npm modules installed, you can run the unit tests with a simple `npm test`.","created_at":"2016-01-20T18:39:14Z","updated_at":"2016-01-26T19:03:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f87e0cadca3b9b7628f08b965886637606c11859","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51/commits","review_comments_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51/comments","review_comment_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues/51/comments","statuses_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/statuses/8d41c94766af03a8bdd6626474bde167612feaa4","head":{"label":"taylormck:jst-7","ref":"jst-7","sha":"8d41c94766af03a8bdd6626474bde167612feaa4","user":{"login":"taylormck","id":2374670,"avatar_url":"https://avatars.githubusercontent.com/u/2374670?v=3","gravatar_id":"","url":"https://api.github.com/users/taylormck","html_url":"https://github.com/taylormck","followers_url":"https://api.github.com/users/taylormck/followers","following_url":"https://api.github.com/users/taylormck/following{/other_user}","gists_url":"https://api.github.com/users/taylormck/gists{/gist_id}","starred_url":"https://api.github.com/users/taylormck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylormck/subscriptions","organizations_url":"https://api.github.com/users/taylormck/orgs","repos_url":"https://api.github.com/users/taylormck/repos","events_url":"https://api.github.com/users/taylormck/events{/privacy}","received_events_url":"https://api.github.com/users/taylormck/received_events","type":"User","site_admin":false},"repo":{"id":50044099,"name":"bv-ui-core","full_name":"taylormck/bv-ui-core","owner":{"login":"taylormck","id":2374670,"avatar_url":"https://avatars.githubusercontent.com/u/2374670?v=3","gravatar_id":"","url":"https://api.github.com/users/taylormck","html_url":"https://github.com/taylormck","followers_url":"https://api.github.com/users/taylormck/followers","following_url":"https://api.github.com/users/taylormck/following{/other_user}","gists_url":"https://api.github.com/users/taylormck/gists{/gist_id}","starred_url":"https://api.github.com/users/taylormck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylormck/subscriptions","organizations_url":"https://api.github.com/users/taylormck/orgs","repos_url":"https://api.github.com/users/taylormck/repos","events_url":"https://api.github.com/users/taylormck/events{/privacy}","received_events_url":"https://api.github.com/users/taylormck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/taylormck/bv-ui-core","description":"A Node module for common Bazaarvoice UI code.","fork":true,"url":"https://api.github.com/repos/taylormck/bv-ui-core","forks_url":"https://api.github.com/repos/taylormck/bv-ui-core/forks","keys_url":"https://api.github.com/repos/taylormck/bv-ui-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taylormck/bv-ui-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taylormck/bv-ui-core/teams","hooks_url":"https://api.github.com/repos/taylormck/bv-ui-core/hooks","issue_events_url":"https://api.github.com/repos/taylormck/bv-ui-core/issues/events{/number}","events_url":"https://api.github.com/repos/taylormck/bv-ui-core/events","assignees_url":"https://api.github.com/repos/taylormck/bv-ui-core/assignees{/user}","branches_url":"https://api.github.com/repos/taylormck/bv-ui-core/branches{/branch}","tags_url":"https://api.github.com/repos/taylormck/bv-ui-core/tags","blobs_url":"https://api.github.com/repos/taylormck/bv-ui-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taylormck/bv-ui-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taylormck/bv-ui-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/taylormck/bv-ui-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taylormck/bv-ui-core/statuses/{sha}","languages_url":"https://api.github.com/repos/taylormck/bv-ui-core/languages","stargazers_url":"https://api.github.com/repos/taylormck/bv-ui-core/stargazers","contributors_url":"https://api.github.com/repos/taylormck/bv-ui-core/contributors","subscribers_url":"https://api.github.com/repos/taylormck/bv-ui-core/subscribers","subscription_url":"https://api.github.com/repos/taylormck/bv-ui-core/subscription","commits_url":"https://api.github.com/repos/taylormck/bv-ui-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/taylormck/bv-ui-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/taylormck/bv-ui-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/taylormck/bv-ui-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/taylormck/bv-ui-core/contents/{+path}","compare_url":"https://api.github.com/repos/taylormck/bv-ui-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taylormck/bv-ui-core/merges","archive_url":"https://api.github.com/repos/taylormck/bv-ui-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taylormck/bv-ui-core/downloads","issues_url":"https://api.github.com/repos/taylormck/bv-ui-core/issues{/number}","pulls_url":"https://api.github.com/repos/taylormck/bv-ui-core/pulls{/number}","milestones_url":"https://api.github.com/repos/taylormck/bv-ui-core/milestones{/number}","notifications_url":"https://api.github.com/repos/taylormck/bv-ui-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taylormck/bv-ui-core/labels{/name}","releases_url":"https://api.github.com/repos/taylormck/bv-ui-core/releases{/id}","deployments_url":"https://api.github.com/repos/taylormck/bv-ui-core/deployments","created_at":"2016-01-20T16:42:33Z","updated_at":"2016-01-20T16:42:35Z","pushed_at":"2016-01-22T21:19:58Z","git_url":"git://github.com/taylormck/bv-ui-core.git","ssh_url":"git@github.com:taylormck/bv-ui-core.git","clone_url":"https://github.com/taylormck/bv-ui-core.git","svn_url":"https://github.com/taylormck/bv-ui-core","homepage":"","size":90,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bazaarvoice:master","ref":"master","sha":"fe3486d0cc04afca145836d81b72828526368361","user":{"login":"bazaarvoice","id":152469,"avatar_url":"https://avatars.githubusercontent.com/u/152469?v=3","gravatar_id":"","url":"https://api.github.com/users/bazaarvoice","html_url":"https://github.com/bazaarvoice","followers_url":"https://api.github.com/users/bazaarvoice/followers","following_url":"https://api.github.com/users/bazaarvoice/following{/other_user}","gists_url":"https://api.github.com/users/bazaarvoice/gists{/gist_id}","starred_url":"https://api.github.com/users/bazaarvoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazaarvoice/subscriptions","organizations_url":"https://api.github.com/users/bazaarvoice/orgs","repos_url":"https://api.github.com/users/bazaarvoice/repos","events_url":"https://api.github.com/users/bazaarvoice/events{/privacy}","received_events_url":"https://api.github.com/users/bazaarvoice/received_events","type":"Organization","site_admin":false},"repo":{"id":39015617,"name":"bv-ui-core","full_name":"bazaarvoice/bv-ui-core","owner":{"login":"bazaarvoice","id":152469,"avatar_url":"https://avatars.githubusercontent.com/u/152469?v=3","gravatar_id":"","url":"https://api.github.com/users/bazaarvoice","html_url":"https://github.com/bazaarvoice","followers_url":"https://api.github.com/users/bazaarvoice/followers","following_url":"https://api.github.com/users/bazaarvoice/following{/other_user}","gists_url":"https://api.github.com/users/bazaarvoice/gists{/gist_id}","starred_url":"https://api.github.com/users/bazaarvoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazaarvoice/subscriptions","organizations_url":"https://api.github.com/users/bazaarvoice/orgs","repos_url":"https://api.github.com/users/bazaarvoice/repos","events_url":"https://api.github.com/users/bazaarvoice/events{/privacy}","received_events_url":"https://api.github.com/users/bazaarvoice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bazaarvoice/bv-ui-core","description":"A Node module for common Bazaarvoice UI code.","fork":false,"url":"https://api.github.com/repos/bazaarvoice/bv-ui-core","forks_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/forks","keys_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/teams","hooks_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/hooks","issue_events_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues/events{/number}","events_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/events","assignees_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/assignees{/user}","branches_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/branches{/branch}","tags_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/tags","blobs_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/statuses/{sha}","languages_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/languages","stargazers_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/stargazers","contributors_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/contributors","subscribers_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/subscribers","subscription_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/subscription","commits_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/contents/{+path}","compare_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/merges","archive_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/downloads","issues_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues{/number}","pulls_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls{/number}","milestones_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/milestones{/number}","notifications_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/labels{/name}","releases_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/releases{/id}","deployments_url":"https://api.github.com/repos/bazaarvoice/bv-ui-core/deployments","created_at":"2015-07-13T14:03:45Z","updated_at":"2015-10-23T15:59:12Z","pushed_at":"2016-01-22T21:19:58Z","git_url":"git://github.com/bazaarvoice/bv-ui-core.git","ssh_url":"git@github.com:bazaarvoice/bv-ui-core.git","clone_url":"https://github.com/bazaarvoice/bv-ui-core.git","svn_url":"https://github.com/bazaarvoice/bv-ui-core","homepage":"","size":105,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51"},"html":{"href":"https://github.com/bazaarvoice/bv-ui-core/pull/51"},"issue":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues/51"},"comments":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/bazaarvoice/bv-ui-core/statuses/8d41c94766af03a8bdd6626474bde167612feaa4"}}}}