{"action":"created","comment":{"url":"https://api.github.com/repos/geokit/geokit-rails/pulls/comments/175477620","pull_request_review_id":105012116,"id":175477620,"diff_hunk":"@@ -3,6 +3,11 @@ module Adapters\n     class PostgreSQL < Abstract\n       \n       def sphere_distance_sql(lat, lng, multiplier)\n+        lat = \"CAST(#{lat} AS FLOAT)\"\n+        lng = \"CAST(#{lng} AS FLOAT)\"\n+        qualified_lat_column_name = \"CAST(#{qualified_lat_column_name} AS FLOAT)\"","path":"lib/geokit-rails/adapters/postgresql.rb","position":6,"original_position":6,"commit_id":"71bbb643bd2f827c3c021e13c3ee759b4a205670","original_commit_id":"71bbb643bd2f827c3c021e13c3ee759b4a205670","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [81/80]","created_at":"2018-03-19T15:30:20Z","updated_at":"2018-03-19T15:30:20Z","html_url":"https://github.com/geokit/geokit-rails/pull/132#discussion_r175477620","pull_request_url":"https://api.github.com/repos/geokit/geokit-rails/pulls/132","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/geokit/geokit-rails/pulls/comments/175477620"},"html":{"href":"https://github.com/geokit/geokit-rails/pull/132#discussion_r175477620"},"pull_request":{"href":"https://api.github.com/repos/geokit/geokit-rails/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/geokit/geokit-rails/pulls/132","id":175931166,"html_url":"https://github.com/geokit/geokit-rails/pull/132","diff_url":"https://github.com/geokit/geokit-rails/pull/132.diff","patch_url":"https://github.com/geokit/geokit-rails/pull/132.patch","issue_url":"https://api.github.com/repos/geokit/geokit-rails/issues/132","number":132,"state":"open","locked":false,"title":"Change field Type for Calculations","user":{"login":"diegomonteiro","id":5667573,"avatar_url":"https://avatars2.githubusercontent.com/u/5667573?v=4","gravatar_id":"","url":"https://api.github.com/users/diegomonteiro","html_url":"https://github.com/diegomonteiro","followers_url":"https://api.github.com/users/diegomonteiro/followers","following_url":"https://api.github.com/users/diegomonteiro/following{/other_user}","gists_url":"https://api.github.com/users/diegomonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/diegomonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegomonteiro/subscriptions","organizations_url":"https://api.github.com/users/diegomonteiro/orgs","repos_url":"https://api.github.com/users/diegomonteiro/repos","events_url":"https://api.github.com/users/diegomonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/diegomonteiro/received_events","type":"User","site_admin":false},"body":"Desse jeito mesmo que os campos sejam do tipo string serão convertidos para float.","created_at":"2018-03-19T15:13:50Z","updated_at":"2018-03-19T15:30:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ff638c583a39432cab397461608c98dcc28f9ec","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/geokit/geokit-rails/pulls/132/commits","review_comments_url":"https://api.github.com/repos/geokit/geokit-rails/pulls/132/comments","review_comment_url":"https://api.github.com/repos/geokit/geokit-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geokit/geokit-rails/issues/132/comments","statuses_url":"https://api.github.com/repos/geokit/geokit-rails/statuses/71bbb643bd2f827c3c021e13c3ee759b4a205670","head":{"label":"diegomonteiro:master","ref":"master","sha":"71bbb643bd2f827c3c021e13c3ee759b4a205670","user":{"login":"diegomonteiro","id":5667573,"avatar_url":"https://avatars2.githubusercontent.com/u/5667573?v=4","gravatar_id":"","url":"https://api.github.com/users/diegomonteiro","html_url":"https://github.com/diegomonteiro","followers_url":"https://api.github.com/users/diegomonteiro/followers","following_url":"https://api.github.com/users/diegomonteiro/following{/other_user}","gists_url":"https://api.github.com/users/diegomonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/diegomonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegomonteiro/subscriptions","organizations_url":"https://api.github.com/users/diegomonteiro/orgs","repos_url":"https://api.github.com/users/diegomonteiro/repos","events_url":"https://api.github.com/users/diegomonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/diegomonteiro/received_events","type":"User","site_admin":false},"repo":{"id":125874726,"name":"geokit-rails","full_name":"diegomonteiro/geokit-rails","owner":{"login":"diegomonteiro","id":5667573,"avatar_url":"https://avatars2.githubusercontent.com/u/5667573?v=4","gravatar_id":"","url":"https://api.github.com/users/diegomonteiro","html_url":"https://github.com/diegomonteiro","followers_url":"https://api.github.com/users/diegomonteiro/followers","following_url":"https://api.github.com/users/diegomonteiro/following{/other_user}","gists_url":"https://api.github.com/users/diegomonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/diegomonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegomonteiro/subscriptions","organizations_url":"https://api.github.com/users/diegomonteiro/orgs","repos_url":"https://api.github.com/users/diegomonteiro/repos","events_url":"https://api.github.com/users/diegomonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/diegomonteiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diegomonteiro/geokit-rails","description":"Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.","fork":true,"url":"https://api.github.com/repos/diegomonteiro/geokit-rails","forks_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/forks","keys_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/teams","hooks_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/hooks","issue_events_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/issues/events{/number}","events_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/events","assignees_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/assignees{/user}","branches_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/branches{/branch}","tags_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/tags","blobs_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/languages","stargazers_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/stargazers","contributors_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/contributors","subscribers_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/subscribers","subscription_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/subscription","commits_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/contents/{+path}","compare_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/merges","archive_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/downloads","issues_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/issues{/number}","pulls_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/labels{/name}","releases_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/releases{/id}","deployments_url":"https://api.github.com/repos/diegomonteiro/geokit-rails/deployments","created_at":"2018-03-19T14:54:54Z","updated_at":"2018-03-19T15:30:01Z","pushed_at":"2018-03-19T15:29:59Z","git_url":"git://github.com/diegomonteiro/geokit-rails.git","ssh_url":"git@github.com:diegomonteiro/geokit-rails.git","clone_url":"https://github.com/diegomonteiro/geokit-rails.git","svn_url":"https://github.com/diegomonteiro/geokit-rails","homepage":"","size":294,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"geokit:master","ref":"master","sha":"9e5251afb76f14a5a2cd975023f0a0fab1e0cc80","user":{"login":"geokit","id":1250694,"avatar_url":"https://avatars3.githubusercontent.com/u/1250694?v=4","gravatar_id":"","url":"https://api.github.com/users/geokit","html_url":"https://github.com/geokit","followers_url":"https://api.github.com/users/geokit/followers","following_url":"https://api.github.com/users/geokit/following{/other_user}","gists_url":"https://api.github.com/users/geokit/gists{/gist_id}","starred_url":"https://api.github.com/users/geokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geokit/subscriptions","organizations_url":"https://api.github.com/users/geokit/orgs","repos_url":"https://api.github.com/users/geokit/repos","events_url":"https://api.github.com/users/geokit/events{/privacy}","received_events_url":"https://api.github.com/users/geokit/received_events","type":"Organization","site_admin":false},"repo":{"id":93340,"name":"geokit-rails","full_name":"geokit/geokit-rails","owner":{"login":"geokit","id":1250694,"avatar_url":"https://avatars3.githubusercontent.com/u/1250694?v=4","gravatar_id":"","url":"https://api.github.com/users/geokit","html_url":"https://github.com/geokit","followers_url":"https://api.github.com/users/geokit/followers","following_url":"https://api.github.com/users/geokit/following{/other_user}","gists_url":"https://api.github.com/users/geokit/gists{/gist_id}","starred_url":"https://api.github.com/users/geokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geokit/subscriptions","organizations_url":"https://api.github.com/users/geokit/orgs","repos_url":"https://api.github.com/users/geokit/repos","events_url":"https://api.github.com/users/geokit/events{/privacy}","received_events_url":"https://api.github.com/users/geokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geokit/geokit-rails","description":"Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.","fork":false,"url":"https://api.github.com/repos/geokit/geokit-rails","forks_url":"https://api.github.com/repos/geokit/geokit-rails/forks","keys_url":"https://api.github.com/repos/geokit/geokit-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geokit/geokit-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geokit/geokit-rails/teams","hooks_url":"https://api.github.com/repos/geokit/geokit-rails/hooks","issue_events_url":"https://api.github.com/repos/geokit/geokit-rails/issues/events{/number}","events_url":"https://api.github.com/repos/geokit/geokit-rails/events","assignees_url":"https://api.github.com/repos/geokit/geokit-rails/assignees{/user}","branches_url":"https://api.github.com/repos/geokit/geokit-rails/branches{/branch}","tags_url":"https://api.github.com/repos/geokit/geokit-rails/tags","blobs_url":"https://api.github.com/repos/geokit/geokit-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geokit/geokit-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geokit/geokit-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/geokit/geokit-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geokit/geokit-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/geokit/geokit-rails/languages","stargazers_url":"https://api.github.com/repos/geokit/geokit-rails/stargazers","contributors_url":"https://api.github.com/repos/geokit/geokit-rails/contributors","subscribers_url":"https://api.github.com/repos/geokit/geokit-rails/subscribers","subscription_url":"https://api.github.com/repos/geokit/geokit-rails/subscription","commits_url":"https://api.github.com/repos/geokit/geokit-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/geokit/geokit-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/geokit/geokit-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/geokit/geokit-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/geokit/geokit-rails/contents/{+path}","compare_url":"https://api.github.com/repos/geokit/geokit-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geokit/geokit-rails/merges","archive_url":"https://api.github.com/repos/geokit/geokit-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geokit/geokit-rails/downloads","issues_url":"https://api.github.com/repos/geokit/geokit-rails/issues{/number}","pulls_url":"https://api.github.com/repos/geokit/geokit-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/geokit/geokit-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/geokit/geokit-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geokit/geokit-rails/labels{/name}","releases_url":"https://api.github.com/repos/geokit/geokit-rails/releases{/id}","deployments_url":"https://api.github.com/repos/geokit/geokit-rails/deployments","created_at":"2008-12-19T01:56:49Z","updated_at":"2018-03-16T20:19:18Z","pushed_at":"2018-03-19T15:30:01Z","git_url":"git://github.com/geokit/geokit-rails.git","ssh_url":"git@github.com:geokit/geokit-rails.git","clone_url":"https://github.com/geokit/geokit-rails.git","svn_url":"https://github.com/geokit/geokit-rails","homepage":"","size":294,"stargazers_count":1312,"watchers_count":1312,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":209,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":209,"open_issues":63,"watchers":1312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geokit/geokit-rails/pulls/132"},"html":{"href":"https://github.com/geokit/geokit-rails/pull/132"},"issue":{"href":"https://api.github.com/repos/geokit/geokit-rails/issues/132"},"comments":{"href":"https://api.github.com/repos/geokit/geokit-rails/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/geokit/geokit-rails/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/geokit/geokit-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geokit/geokit-rails/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/geokit/geokit-rails/statuses/71bbb643bd2f827c3c021e13c3ee759b4a205670"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}