{"action":"opened","number":1003,"pull_request":{"url":"https://api.github.com/repos/alexreisner/geocoder/pulls/1003","id":63401082,"html_url":"https://github.com/alexreisner/geocoder/pull/1003","diff_url":"https://github.com/alexreisner/geocoder/pull/1003.diff","patch_url":"https://github.com/alexreisner/geocoder/pull/1003.patch","issue_url":"https://api.github.com/repos/alexreisner/geocoder/issues/1003","number":1003,"state":"open","locked":false,"title":"Added scope :near! for strict results","user":{"login":"danielpclark","id":319081,"avatar_url":"https://avatars.githubusercontent.com/u/319081?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpclark","html_url":"https://github.com/danielpclark","followers_url":"https://api.github.com/users/danielpclark/followers","following_url":"https://api.github.com/users/danielpclark/following{/other_user}","gists_url":"https://api.github.com/users/danielpclark/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpclark/subscriptions","organizations_url":"https://api.github.com/users/danielpclark/orgs","repos_url":"https://api.github.com/users/danielpclark/repos","events_url":"https://api.github.com/users/danielpclark/events{/privacy}","received_events_url":"https://api.github.com/users/danielpclark/received_events","type":"User","site_admin":false},"body":"Provide strict scope :near! for ActiveRecord::Base instance methods\r\n\r\n**Current method implementation with invalid location input.**\r\n```ruby\r\nAddress.near(\"New York, VA\").to_sql\r\n# => \"SELECT addresses.*, NULL::text AS distance, NULL::text AS bearing FROM \\\"addresses\\\"  WHERE (false)\" \r\n```\r\n**New method with invalid location input.**\r\n```ruby\r\nAddress.near!(\"New York, VA\").to_sql\r\n#Geocoder::InvalidLocation: The provided location didn't return as valid\r\n\r\n```","created_at":"2016-03-18T16:31:12Z","updated_at":"2016-03-18T16:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alexreisner/geocoder/pulls/1003/commits","review_comments_url":"https://api.github.com/repos/alexreisner/geocoder/pulls/1003/comments","review_comment_url":"https://api.github.com/repos/alexreisner/geocoder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alexreisner/geocoder/issues/1003/comments","statuses_url":"https://api.github.com/repos/alexreisner/geocoder/statuses/62fa2c036b23bb024bff0f80a31681096dc953e2","head":{"label":"danielpclark:strict_near_option","ref":"strict_near_option","sha":"62fa2c036b23bb024bff0f80a31681096dc953e2","user":{"login":"danielpclark","id":319081,"avatar_url":"https://avatars.githubusercontent.com/u/319081?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpclark","html_url":"https://github.com/danielpclark","followers_url":"https://api.github.com/users/danielpclark/followers","following_url":"https://api.github.com/users/danielpclark/following{/other_user}","gists_url":"https://api.github.com/users/danielpclark/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpclark/subscriptions","organizations_url":"https://api.github.com/users/danielpclark/orgs","repos_url":"https://api.github.com/users/danielpclark/repos","events_url":"https://api.github.com/users/danielpclark/events{/privacy}","received_events_url":"https://api.github.com/users/danielpclark/received_events","type":"User","site_admin":false},"repo":{"id":54211264,"name":"geocoder","full_name":"danielpclark/geocoder","owner":{"login":"danielpclark","id":319081,"avatar_url":"https://avatars.githubusercontent.com/u/319081?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpclark","html_url":"https://github.com/danielpclark","followers_url":"https://api.github.com/users/danielpclark/followers","following_url":"https://api.github.com/users/danielpclark/following{/other_user}","gists_url":"https://api.github.com/users/danielpclark/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpclark/subscriptions","organizations_url":"https://api.github.com/users/danielpclark/orgs","repos_url":"https://api.github.com/users/danielpclark/repos","events_url":"https://api.github.com/users/danielpclark/events{/privacy}","received_events_url":"https://api.github.com/users/danielpclark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielpclark/geocoder","description":"Complete Ruby geocoding solution.","fork":true,"url":"https://api.github.com/repos/danielpclark/geocoder","forks_url":"https://api.github.com/repos/danielpclark/geocoder/forks","keys_url":"https://api.github.com/repos/danielpclark/geocoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielpclark/geocoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielpclark/geocoder/teams","hooks_url":"https://api.github.com/repos/danielpclark/geocoder/hooks","issue_events_url":"https://api.github.com/repos/danielpclark/geocoder/issues/events{/number}","events_url":"https://api.github.com/repos/danielpclark/geocoder/events","assignees_url":"https://api.github.com/repos/danielpclark/geocoder/assignees{/user}","branches_url":"https://api.github.com/repos/danielpclark/geocoder/branches{/branch}","tags_url":"https://api.github.com/repos/danielpclark/geocoder/tags","blobs_url":"https://api.github.com/repos/danielpclark/geocoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielpclark/geocoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielpclark/geocoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielpclark/geocoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielpclark/geocoder/statuses/{sha}","languages_url":"https://api.github.com/repos/danielpclark/geocoder/languages","stargazers_url":"https://api.github.com/repos/danielpclark/geocoder/stargazers","contributors_url":"https://api.github.com/repos/danielpclark/geocoder/contributors","subscribers_url":"https://api.github.com/repos/danielpclark/geocoder/subscribers","subscription_url":"https://api.github.com/repos/danielpclark/geocoder/subscription","commits_url":"https://api.github.com/repos/danielpclark/geocoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielpclark/geocoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielpclark/geocoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielpclark/geocoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielpclark/geocoder/contents/{+path}","compare_url":"https://api.github.com/repos/danielpclark/geocoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielpclark/geocoder/merges","archive_url":"https://api.github.com/repos/danielpclark/geocoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielpclark/geocoder/downloads","issues_url":"https://api.github.com/repos/danielpclark/geocoder/issues{/number}","pulls_url":"https://api.github.com/repos/danielpclark/geocoder/pulls{/number}","milestones_url":"https://api.github.com/repos/danielpclark/geocoder/milestones{/number}","notifications_url":"https://api.github.com/repos/danielpclark/geocoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielpclark/geocoder/labels{/name}","releases_url":"https://api.github.com/repos/danielpclark/geocoder/releases{/id}","deployments_url":"https://api.github.com/repos/danielpclark/geocoder/deployments","created_at":"2016-03-18T15:19:56Z","updated_at":"2016-03-18T15:19:58Z","pushed_at":"2016-03-18T16:25:15Z","git_url":"git://github.com/danielpclark/geocoder.git","ssh_url":"git@github.com:danielpclark/geocoder.git","clone_url":"https://github.com/danielpclark/geocoder.git","svn_url":"https://github.com/danielpclark/geocoder","homepage":"http://www.rubygeocoder.com","size":2488,"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":"alexreisner:master","ref":"master","sha":"5bd68b7c4f8a076dd71fd4823443568041ddcfcb","user":{"login":"alexreisner","id":32069,"avatar_url":"https://avatars.githubusercontent.com/u/32069?v=3","gravatar_id":"","url":"https://api.github.com/users/alexreisner","html_url":"https://github.com/alexreisner","followers_url":"https://api.github.com/users/alexreisner/followers","following_url":"https://api.github.com/users/alexreisner/following{/other_user}","gists_url":"https://api.github.com/users/alexreisner/gists{/gist_id}","starred_url":"https://api.github.com/users/alexreisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexreisner/subscriptions","organizations_url":"https://api.github.com/users/alexreisner/orgs","repos_url":"https://api.github.com/users/alexreisner/repos","events_url":"https://api.github.com/users/alexreisner/events{/privacy}","received_events_url":"https://api.github.com/users/alexreisner/received_events","type":"User","site_admin":false},"repo":{"id":176780,"name":"geocoder","full_name":"alexreisner/geocoder","owner":{"login":"alexreisner","id":32069,"avatar_url":"https://avatars.githubusercontent.com/u/32069?v=3","gravatar_id":"","url":"https://api.github.com/users/alexreisner","html_url":"https://github.com/alexreisner","followers_url":"https://api.github.com/users/alexreisner/followers","following_url":"https://api.github.com/users/alexreisner/following{/other_user}","gists_url":"https://api.github.com/users/alexreisner/gists{/gist_id}","starred_url":"https://api.github.com/users/alexreisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexreisner/subscriptions","organizations_url":"https://api.github.com/users/alexreisner/orgs","repos_url":"https://api.github.com/users/alexreisner/repos","events_url":"https://api.github.com/users/alexreisner/events{/privacy}","received_events_url":"https://api.github.com/users/alexreisner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexreisner/geocoder","description":"Complete Ruby geocoding solution.","fork":false,"url":"https://api.github.com/repos/alexreisner/geocoder","forks_url":"https://api.github.com/repos/alexreisner/geocoder/forks","keys_url":"https://api.github.com/repos/alexreisner/geocoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexreisner/geocoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexreisner/geocoder/teams","hooks_url":"https://api.github.com/repos/alexreisner/geocoder/hooks","issue_events_url":"https://api.github.com/repos/alexreisner/geocoder/issues/events{/number}","events_url":"https://api.github.com/repos/alexreisner/geocoder/events","assignees_url":"https://api.github.com/repos/alexreisner/geocoder/assignees{/user}","branches_url":"https://api.github.com/repos/alexreisner/geocoder/branches{/branch}","tags_url":"https://api.github.com/repos/alexreisner/geocoder/tags","blobs_url":"https://api.github.com/repos/alexreisner/geocoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexreisner/geocoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexreisner/geocoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexreisner/geocoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexreisner/geocoder/statuses/{sha}","languages_url":"https://api.github.com/repos/alexreisner/geocoder/languages","stargazers_url":"https://api.github.com/repos/alexreisner/geocoder/stargazers","contributors_url":"https://api.github.com/repos/alexreisner/geocoder/contributors","subscribers_url":"https://api.github.com/repos/alexreisner/geocoder/subscribers","subscription_url":"https://api.github.com/repos/alexreisner/geocoder/subscription","commits_url":"https://api.github.com/repos/alexreisner/geocoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexreisner/geocoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexreisner/geocoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexreisner/geocoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexreisner/geocoder/contents/{+path}","compare_url":"https://api.github.com/repos/alexreisner/geocoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexreisner/geocoder/merges","archive_url":"https://api.github.com/repos/alexreisner/geocoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexreisner/geocoder/downloads","issues_url":"https://api.github.com/repos/alexreisner/geocoder/issues{/number}","pulls_url":"https://api.github.com/repos/alexreisner/geocoder/pulls{/number}","milestones_url":"https://api.github.com/repos/alexreisner/geocoder/milestones{/number}","notifications_url":"https://api.github.com/repos/alexreisner/geocoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexreisner/geocoder/labels{/name}","releases_url":"https://api.github.com/repos/alexreisner/geocoder/releases{/id}","deployments_url":"https://api.github.com/repos/alexreisner/geocoder/deployments","created_at":"2009-04-15T16:38:04Z","updated_at":"2016-03-18T16:19:29Z","pushed_at":"2016-03-18T06:56:26Z","git_url":"git://github.com/alexreisner/geocoder.git","ssh_url":"git@github.com:alexreisner/geocoder.git","clone_url":"https://github.com/alexreisner/geocoder.git","svn_url":"https://github.com/alexreisner/geocoder","homepage":"http://www.rubygeocoder.com","size":15594,"stargazers_count":3836,"watchers_count":3836,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":783,"mirror_url":null,"open_issues_count":38,"forks":783,"open_issues":38,"watchers":3836,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexreisner/geocoder/pulls/1003"},"html":{"href":"https://github.com/alexreisner/geocoder/pull/1003"},"issue":{"href":"https://api.github.com/repos/alexreisner/geocoder/issues/1003"},"comments":{"href":"https://api.github.com/repos/alexreisner/geocoder/issues/1003/comments"},"review_comments":{"href":"https://api.github.com/repos/alexreisner/geocoder/pulls/1003/comments"},"review_comment":{"href":"https://api.github.com/repos/alexreisner/geocoder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alexreisner/geocoder/pulls/1003/commits"},"statuses":{"href":"https://api.github.com/repos/alexreisner/geocoder/statuses/62fa2c036b23bb024bff0f80a31681096dc953e2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":0,"changed_files":2}}