{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/4","id":44692596,"html_url":"https://github.com/peter-edge/smartystreets_ruby/pull/4","diff_url":"https://github.com/peter-edge/smartystreets_ruby/pull/4.diff","patch_url":"https://github.com/peter-edge/smartystreets_ruby/pull/4.patch","issue_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues/4","number":4,"state":"closed","locked":false,"title":"Correctly parse integer latitude and longitude values","user":{"login":"geoff2k","id":39923,"avatar_url":"https://avatars.githubusercontent.com/u/39923?v=3","gravatar_id":"","url":"https://api.github.com/users/geoff2k","html_url":"https://github.com/geoff2k","followers_url":"https://api.github.com/users/geoff2k/followers","following_url":"https://api.github.com/users/geoff2k/following{/other_user}","gists_url":"https://api.github.com/users/geoff2k/gists{/gist_id}","starred_url":"https://api.github.com/users/geoff2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoff2k/subscriptions","organizations_url":"https://api.github.com/users/geoff2k/orgs","repos_url":"https://api.github.com/users/geoff2k/repos","events_url":"https://api.github.com/users/geoff2k/events{/privacy}","received_events_url":"https://api.github.com/users/geoff2k/received_events","type":"User","site_admin":false},"body":"## The Problem\r\n\r\nThe smartystreets_ruby gem cannot handle latitudes and longitudes that are whole numbers.  Even though we don't use those fields, it is unable to properly handle a response that looks like this:\r\n\r\n```json\r\n[\r\n    {\r\n        \"input_index\": 0,\r\n        \"candidate_index\": 0,\r\n        \"delivery_line_1\": \"2316 B Ave NE\",\r\n        \"last_line\": \"Cedar Rapids IA 52402-4939\",\r\n        \"delivery_point_barcode\": \"524024939165\",\r\n...\r\n        \"metadata\": {\r\n            \"record_type\": \"S\",\r\n            \"zip_type\": \"Standard\",\r\n            \"county_fips\": \"19113\",\r\n            \"county_name\": \"Linn\",\r\n            \"carrier_route\": \"C057\",\r\n            \"congressional_district\": \"01\",\r\n            \"rdi\": \"Residential\",\r\n            \"elot_sequence\": \"0140\",\r\n            \"elot_sort\": \"D\",\r\n            \"latitude\": 42, // <<- PROBLEM AREA\r\n            \"longitude\": -91.63937,\r\n            \"precision\": \"Zip9\",\r\n            \"time_zone\": \"Central\",\r\n            \"utc_offset\": -6,\r\n            \"dst\": true\r\n        },\r\n...\r\n    }\r\n]\r\n```\r\n\r\n## The Solution\r\n\r\nAnother enterprising user of the gem submitted a [pull request in May](https://github.com/peter-edge/smartystreets_ruby/pull/3) that the author of the gem has ignored, but fixes the problem.  I've added a test that fails against the current master but succeeds with the patch.\r\n\r\nWho would have thought we'd have clients living directly under parallels or meridians???\r\n","created_at":"2015-09-10T16:58:00Z","updated_at":"2015-09-10T17:22:57Z","closed_at":"2015-09-10T17:22:57Z","merged_at":null,"merge_commit_sha":"0665f5267129ca0a2775163083629076648e8dcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/4/commits","review_comments_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/4/comments","review_comment_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues/4/comments","statuses_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/statuses/c3436d9e89efb890ad6d3247b2e8edb0b898ff3c","head":{"label":"stitchfix:task/allow_integer_lat_long","ref":"task/allow_integer_lat_long","sha":"c3436d9e89efb890ad6d3247b2e8edb0b898ff3c","user":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"repo":{"id":42252830,"name":"smartystreets_ruby","full_name":"stitchfix/smartystreets_ruby","owner":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stitchfix/smartystreets_ruby","description":"SmartyStreets API Wrapper for Ruby. Wraps both the Street Address API and Zipcode API.","fork":true,"url":"https://api.github.com/repos/stitchfix/smartystreets_ruby","forks_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/forks","keys_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/teams","hooks_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/hooks","issue_events_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/issues/events{/number}","events_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/events","assignees_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/assignees{/user}","branches_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/branches{/branch}","tags_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/tags","blobs_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/languages","stargazers_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/stargazers","contributors_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/contributors","subscribers_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/subscribers","subscription_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/subscription","commits_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/contents/{+path}","compare_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/merges","archive_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/downloads","issues_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/issues{/number}","pulls_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/labels{/name}","releases_url":"https://api.github.com/repos/stitchfix/smartystreets_ruby/releases{/id}","created_at":"2015-09-10T15:22:53Z","updated_at":"2015-09-10T15:22:54Z","pushed_at":"2015-09-10T16:48:36Z","git_url":"git://github.com/stitchfix/smartystreets_ruby.git","ssh_url":"git@github.com:stitchfix/smartystreets_ruby.git","clone_url":"https://github.com/stitchfix/smartystreets_ruby.git","svn_url":"https://github.com/stitchfix/smartystreets_ruby","homepage":"","size":133,"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":"peter-edge:master","ref":"master","sha":"f66543b140f5a800dfc8b64a28a5151a44f690b5","user":{"login":"peter-edge","id":4228796,"avatar_url":"https://avatars.githubusercontent.com/u/4228796?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-edge","html_url":"https://github.com/peter-edge","followers_url":"https://api.github.com/users/peter-edge/followers","following_url":"https://api.github.com/users/peter-edge/following{/other_user}","gists_url":"https://api.github.com/users/peter-edge/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-edge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-edge/subscriptions","organizations_url":"https://api.github.com/users/peter-edge/orgs","repos_url":"https://api.github.com/users/peter-edge/repos","events_url":"https://api.github.com/users/peter-edge/events{/privacy}","received_events_url":"https://api.github.com/users/peter-edge/received_events","type":"User","site_admin":false},"repo":{"id":12760360,"name":"smartystreets_ruby","full_name":"peter-edge/smartystreets_ruby","owner":{"login":"peter-edge","id":4228796,"avatar_url":"https://avatars.githubusercontent.com/u/4228796?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-edge","html_url":"https://github.com/peter-edge","followers_url":"https://api.github.com/users/peter-edge/followers","following_url":"https://api.github.com/users/peter-edge/following{/other_user}","gists_url":"https://api.github.com/users/peter-edge/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-edge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-edge/subscriptions","organizations_url":"https://api.github.com/users/peter-edge/orgs","repos_url":"https://api.github.com/users/peter-edge/repos","events_url":"https://api.github.com/users/peter-edge/events{/privacy}","received_events_url":"https://api.github.com/users/peter-edge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peter-edge/smartystreets_ruby","description":"SmartyStreets API Wrapper for Ruby. Wraps both the Street Address API and Zipcode API.","fork":false,"url":"https://api.github.com/repos/peter-edge/smartystreets_ruby","forks_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/forks","keys_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/teams","hooks_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/hooks","issue_events_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues/events{/number}","events_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/events","assignees_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/assignees{/user}","branches_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/branches{/branch}","tags_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/tags","blobs_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/languages","stargazers_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/stargazers","contributors_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/contributors","subscribers_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/subscribers","subscription_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/subscription","commits_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/contents/{+path}","compare_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/merges","archive_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/downloads","issues_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues{/number}","pulls_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/labels{/name}","releases_url":"https://api.github.com/repos/peter-edge/smartystreets_ruby/releases{/id}","created_at":"2013-09-11T15:44:58Z","updated_at":"2015-09-10T15:25:15Z","pushed_at":"2015-09-10T16:58:01Z","git_url":"git://github.com/peter-edge/smartystreets_ruby.git","ssh_url":"git@github.com:peter-edge/smartystreets_ruby.git","clone_url":"https://github.com/peter-edge/smartystreets_ruby.git","svn_url":"https://github.com/peter-edge/smartystreets_ruby","homepage":"","size":449,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/4"},"html":{"href":"https://github.com/peter-edge/smartystreets_ruby/pull/4"},"issue":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues/4"},"comments":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/peter-edge/smartystreets_ruby/statuses/c3436d9e89efb890ad6d3247b2e8edb0b898ff3c"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":57,"deletions":2,"changed_files":3}}