{"action":"closed","number":35,"pull_request":{"url":"https://api.github.com/repos/sstephenson/global_phone/pulls/35","id":38679226,"html_url":"https://github.com/sstephenson/global_phone/pull/35","diff_url":"https://github.com/sstephenson/global_phone/pull/35.diff","patch_url":"https://github.com/sstephenson/global_phone/pull/35.patch","issue_url":"https://api.github.com/repos/sstephenson/global_phone/issues/35","number":35,"state":"closed","locked":false,"title":"Strip leading country code without leading plus","user":{"login":"cgunther","id":107416,"avatar_url":"https://avatars.githubusercontent.com/u/107416?v=3","gravatar_id":"","url":"https://api.github.com/users/cgunther","html_url":"https://github.com/cgunther","followers_url":"https://api.github.com/users/cgunther/followers","following_url":"https://api.github.com/users/cgunther/following{/other_user}","gists_url":"https://api.github.com/users/cgunther/gists{/gist_id}","starred_url":"https://api.github.com/users/cgunther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgunther/subscriptions","organizations_url":"https://api.github.com/users/cgunther/orgs","repos_url":"https://api.github.com/users/cgunther/repos","events_url":"https://api.github.com/users/cgunther/events{/privacy}","received_events_url":"https://api.github.com/users/cgunther/received_events","type":"User","site_admin":false},"body":"Given a country like Honduras with a country code of 504, if a number is formatted like (504) 2221-6592, it will not parse as it's an international string, however it does not start with a plus or the international prefix.\r\n\r\nNow the territory will check if it starts with the country code before parsing and strip the country code when it is prefixed.","created_at":"2015-06-26T18:59:54Z","updated_at":"2015-10-04T16:43:21Z","closed_at":"2015-10-04T16:43:21Z","merged_at":"2015-10-04T16:43:21Z","merge_commit_sha":"9731d620b1dee305f809ba7654769b6a92e751f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sstephenson/global_phone/pulls/35/commits","review_comments_url":"https://api.github.com/repos/sstephenson/global_phone/pulls/35/comments","review_comment_url":"https://api.github.com/repos/sstephenson/global_phone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sstephenson/global_phone/issues/35/comments","statuses_url":"https://api.github.com/repos/sstephenson/global_phone/statuses/a9d5147b6e66664403e388d6d903ff5e8bef0474","head":{"label":"cgunther:strip-leading-country-code-without-plus","ref":"strip-leading-country-code-without-plus","sha":"a9d5147b6e66664403e388d6d903ff5e8bef0474","user":{"login":"cgunther","id":107416,"avatar_url":"https://avatars.githubusercontent.com/u/107416?v=3","gravatar_id":"","url":"https://api.github.com/users/cgunther","html_url":"https://github.com/cgunther","followers_url":"https://api.github.com/users/cgunther/followers","following_url":"https://api.github.com/users/cgunther/following{/other_user}","gists_url":"https://api.github.com/users/cgunther/gists{/gist_id}","starred_url":"https://api.github.com/users/cgunther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgunther/subscriptions","organizations_url":"https://api.github.com/users/cgunther/orgs","repos_url":"https://api.github.com/users/cgunther/repos","events_url":"https://api.github.com/users/cgunther/events{/privacy}","received_events_url":"https://api.github.com/users/cgunther/received_events","type":"User","site_admin":false},"repo":{"id":38128404,"name":"global_phone","full_name":"cgunther/global_phone","owner":{"login":"cgunther","id":107416,"avatar_url":"https://avatars.githubusercontent.com/u/107416?v=3","gravatar_id":"","url":"https://api.github.com/users/cgunther","html_url":"https://github.com/cgunther","followers_url":"https://api.github.com/users/cgunther/followers","following_url":"https://api.github.com/users/cgunther/following{/other_user}","gists_url":"https://api.github.com/users/cgunther/gists{/gist_id}","starred_url":"https://api.github.com/users/cgunther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgunther/subscriptions","organizations_url":"https://api.github.com/users/cgunther/orgs","repos_url":"https://api.github.com/users/cgunther/repos","events_url":"https://api.github.com/users/cgunther/events{/privacy}","received_events_url":"https://api.github.com/users/cgunther/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgunther/global_phone","description":"Parse, validate, and format phone numbers in Ruby using Google's libphonenumber database","fork":true,"url":"https://api.github.com/repos/cgunther/global_phone","forks_url":"https://api.github.com/repos/cgunther/global_phone/forks","keys_url":"https://api.github.com/repos/cgunther/global_phone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgunther/global_phone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgunther/global_phone/teams","hooks_url":"https://api.github.com/repos/cgunther/global_phone/hooks","issue_events_url":"https://api.github.com/repos/cgunther/global_phone/issues/events{/number}","events_url":"https://api.github.com/repos/cgunther/global_phone/events","assignees_url":"https://api.github.com/repos/cgunther/global_phone/assignees{/user}","branches_url":"https://api.github.com/repos/cgunther/global_phone/branches{/branch}","tags_url":"https://api.github.com/repos/cgunther/global_phone/tags","blobs_url":"https://api.github.com/repos/cgunther/global_phone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgunther/global_phone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgunther/global_phone/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgunther/global_phone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgunther/global_phone/statuses/{sha}","languages_url":"https://api.github.com/repos/cgunther/global_phone/languages","stargazers_url":"https://api.github.com/repos/cgunther/global_phone/stargazers","contributors_url":"https://api.github.com/repos/cgunther/global_phone/contributors","subscribers_url":"https://api.github.com/repos/cgunther/global_phone/subscribers","subscription_url":"https://api.github.com/repos/cgunther/global_phone/subscription","commits_url":"https://api.github.com/repos/cgunther/global_phone/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgunther/global_phone/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgunther/global_phone/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgunther/global_phone/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgunther/global_phone/contents/{+path}","compare_url":"https://api.github.com/repos/cgunther/global_phone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgunther/global_phone/merges","archive_url":"https://api.github.com/repos/cgunther/global_phone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgunther/global_phone/downloads","issues_url":"https://api.github.com/repos/cgunther/global_phone/issues{/number}","pulls_url":"https://api.github.com/repos/cgunther/global_phone/pulls{/number}","milestones_url":"https://api.github.com/repos/cgunther/global_phone/milestones{/number}","notifications_url":"https://api.github.com/repos/cgunther/global_phone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgunther/global_phone/labels{/name}","releases_url":"https://api.github.com/repos/cgunther/global_phone/releases{/id}","created_at":"2015-06-26T18:57:29Z","updated_at":"2015-06-26T18:57:29Z","pushed_at":"2015-06-26T18:59:40Z","git_url":"git://github.com/cgunther/global_phone.git","ssh_url":"git@github.com:cgunther/global_phone.git","clone_url":"https://github.com/cgunther/global_phone.git","svn_url":"https://github.com/cgunther/global_phone","homepage":"","size":116,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"sstephenson:master","ref":"master","sha":"9b2772c4678dc9e323c58d9258663812bbd9fc73","user":{"login":"sstephenson","id":2603,"avatar_url":"https://avatars.githubusercontent.com/u/2603?v=3","gravatar_id":"","url":"https://api.github.com/users/sstephenson","html_url":"https://github.com/sstephenson","followers_url":"https://api.github.com/users/sstephenson/followers","following_url":"https://api.github.com/users/sstephenson/following{/other_user}","gists_url":"https://api.github.com/users/sstephenson/gists{/gist_id}","starred_url":"https://api.github.com/users/sstephenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstephenson/subscriptions","organizations_url":"https://api.github.com/users/sstephenson/orgs","repos_url":"https://api.github.com/users/sstephenson/repos","events_url":"https://api.github.com/users/sstephenson/events{/privacy}","received_events_url":"https://api.github.com/users/sstephenson/received_events","type":"User","site_admin":false},"repo":{"id":10342875,"name":"global_phone","full_name":"sstephenson/global_phone","owner":{"login":"sstephenson","id":2603,"avatar_url":"https://avatars.githubusercontent.com/u/2603?v=3","gravatar_id":"","url":"https://api.github.com/users/sstephenson","html_url":"https://github.com/sstephenson","followers_url":"https://api.github.com/users/sstephenson/followers","following_url":"https://api.github.com/users/sstephenson/following{/other_user}","gists_url":"https://api.github.com/users/sstephenson/gists{/gist_id}","starred_url":"https://api.github.com/users/sstephenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstephenson/subscriptions","organizations_url":"https://api.github.com/users/sstephenson/orgs","repos_url":"https://api.github.com/users/sstephenson/repos","events_url":"https://api.github.com/users/sstephenson/events{/privacy}","received_events_url":"https://api.github.com/users/sstephenson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sstephenson/global_phone","description":"Parse, validate, and format phone numbers in Ruby using Google's libphonenumber database","fork":false,"url":"https://api.github.com/repos/sstephenson/global_phone","forks_url":"https://api.github.com/repos/sstephenson/global_phone/forks","keys_url":"https://api.github.com/repos/sstephenson/global_phone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sstephenson/global_phone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sstephenson/global_phone/teams","hooks_url":"https://api.github.com/repos/sstephenson/global_phone/hooks","issue_events_url":"https://api.github.com/repos/sstephenson/global_phone/issues/events{/number}","events_url":"https://api.github.com/repos/sstephenson/global_phone/events","assignees_url":"https://api.github.com/repos/sstephenson/global_phone/assignees{/user}","branches_url":"https://api.github.com/repos/sstephenson/global_phone/branches{/branch}","tags_url":"https://api.github.com/repos/sstephenson/global_phone/tags","blobs_url":"https://api.github.com/repos/sstephenson/global_phone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sstephenson/global_phone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sstephenson/global_phone/git/refs{/sha}","trees_url":"https://api.github.com/repos/sstephenson/global_phone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sstephenson/global_phone/statuses/{sha}","languages_url":"https://api.github.com/repos/sstephenson/global_phone/languages","stargazers_url":"https://api.github.com/repos/sstephenson/global_phone/stargazers","contributors_url":"https://api.github.com/repos/sstephenson/global_phone/contributors","subscribers_url":"https://api.github.com/repos/sstephenson/global_phone/subscribers","subscription_url":"https://api.github.com/repos/sstephenson/global_phone/subscription","commits_url":"https://api.github.com/repos/sstephenson/global_phone/commits{/sha}","git_commits_url":"https://api.github.com/repos/sstephenson/global_phone/git/commits{/sha}","comments_url":"https://api.github.com/repos/sstephenson/global_phone/comments{/number}","issue_comment_url":"https://api.github.com/repos/sstephenson/global_phone/issues/comments{/number}","contents_url":"https://api.github.com/repos/sstephenson/global_phone/contents/{+path}","compare_url":"https://api.github.com/repos/sstephenson/global_phone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sstephenson/global_phone/merges","archive_url":"https://api.github.com/repos/sstephenson/global_phone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sstephenson/global_phone/downloads","issues_url":"https://api.github.com/repos/sstephenson/global_phone/issues{/number}","pulls_url":"https://api.github.com/repos/sstephenson/global_phone/pulls{/number}","milestones_url":"https://api.github.com/repos/sstephenson/global_phone/milestones{/number}","notifications_url":"https://api.github.com/repos/sstephenson/global_phone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sstephenson/global_phone/labels{/name}","releases_url":"https://api.github.com/repos/sstephenson/global_phone/releases{/id}","created_at":"2013-05-28T18:51:57Z","updated_at":"2015-09-30T18:20:41Z","pushed_at":"2015-10-04T16:43:22Z","git_url":"git://github.com/sstephenson/global_phone.git","ssh_url":"git@github.com:sstephenson/global_phone.git","clone_url":"https://github.com/sstephenson/global_phone.git","svn_url":"https://github.com/sstephenson/global_phone","homepage":"","size":500,"stargazers_count":372,"watchers_count":372,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":21,"forks":62,"open_issues":21,"watchers":372,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sstephenson/global_phone/pulls/35"},"html":{"href":"https://github.com/sstephenson/global_phone/pull/35"},"issue":{"href":"https://api.github.com/repos/sstephenson/global_phone/issues/35"},"comments":{"href":"https://api.github.com/repos/sstephenson/global_phone/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/sstephenson/global_phone/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/sstephenson/global_phone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sstephenson/global_phone/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/sstephenson/global_phone/statuses/a9d5147b6e66664403e388d6d903ff5e8bef0474"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"eileencodes","id":1080678,"avatar_url":"https://avatars.githubusercontent.com/u/1080678?v=3","gravatar_id":"","url":"https://api.github.com/users/eileencodes","html_url":"https://github.com/eileencodes","followers_url":"https://api.github.com/users/eileencodes/followers","following_url":"https://api.github.com/users/eileencodes/following{/other_user}","gists_url":"https://api.github.com/users/eileencodes/gists{/gist_id}","starred_url":"https://api.github.com/users/eileencodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eileencodes/subscriptions","organizations_url":"https://api.github.com/users/eileencodes/orgs","repos_url":"https://api.github.com/users/eileencodes/repos","events_url":"https://api.github.com/users/eileencodes/events{/privacy}","received_events_url":"https://api.github.com/users/eileencodes/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":2,"changed_files":2}}