{"action":"created","comment":{"url":"https://api.github.com/repos/rgeo/rgeo/pulls/comments/49761134","id":49761134,"diff_hunk":"@@ -222,6 +222,39 @@ def test_polygon_coordinates\n           polygon = @factory.polygon ring, [inner_ring]\n           assert_equal(polygon.coordinates, coordinates)\n         end\n+\n+        def test_ignores_consecutive_repeated_points\n+          point1_ = @factory.point(0, 0)\n+          point2_ = @factory.point(0, 0)\n+          point3_ = @factory.point(0, 1)\n+          point4_ = @factory.point(0, 1)\n+          point5_ = @factory.point(0, 1)\n+          point6_ = @factory.point(1, 0)\n+          point7_ = @factory.point(1, 0)\n+          point8_ = @factory.point(1, 0)\n+          exterior_ = @factory.linear_ring([point1_, point2_, point3_, point4_, point5_, point6_, point7_, point8_])\n+\n+          poly1_ = @factory.polygon(exterior_)\n+          assert(!poly1_.nil?)\n+\n+          line_string = poly1_.exterior_ring\n+\n+            case line_string.class.name\n+            when \"RGeo::Tests::GeosCAPI::TestPolygon\"\n+            when \"RGeo::Geos::FFILinearRingImpl\"\n+            when \"RGeo::Geos::CAPILinearRingImpl\"\n+            when \"RGeo::Tests::GeosFFI::TestPolygon\"","path":"test/common/polygon_tests.rb","position":25,"original_position":25,"commit_id":"15241857b9864ebc4edd10e6de5498b50e6c8a7d","original_commit_id":"15241857b9864ebc4edd10e6de5498b50e6c8a7d","user":{"login":"alexeiemam","id":375570,"avatar_url":"https://avatars.githubusercontent.com/u/375570?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeiemam","html_url":"https://github.com/alexeiemam","followers_url":"https://api.github.com/users/alexeiemam/followers","following_url":"https://api.github.com/users/alexeiemam/following{/other_user}","gists_url":"https://api.github.com/users/alexeiemam/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeiemam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeiemam/subscriptions","organizations_url":"https://api.github.com/users/alexeiemam/orgs","repos_url":"https://api.github.com/users/alexeiemam/repos","events_url":"https://api.github.com/users/alexeiemam/events{/privacy}","received_events_url":"https://api.github.com/users/alexeiemam/received_events","type":"User","site_admin":false},"body":"This conditional was required in `0.3.20` but no longer appears to be relevant in `0.5.x`","created_at":"2016-01-14T18:06:23Z","updated_at":"2016-01-14T18:06:23Z","html_url":"https://github.com/rgeo/rgeo/pull/136#discussion_r49761134","pull_request_url":"https://api.github.com/repos/rgeo/rgeo/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/rgeo/rgeo/pulls/comments/49761134"},"html":{"href":"https://github.com/rgeo/rgeo/pull/136#discussion_r49761134"},"pull_request":{"href":"https://api.github.com/repos/rgeo/rgeo/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/rgeo/rgeo/pulls/136","id":55977590,"html_url":"https://github.com/rgeo/rgeo/pull/136","diff_url":"https://github.com/rgeo/rgeo/pull/136.diff","patch_url":"https://github.com/rgeo/rgeo/pull/136.patch","issue_url":"https://api.github.com/repos/rgeo/rgeo/issues/136","number":136,"state":"open","locked":false,"title":"[Addresses #74] Remove repeated consecutive points from line-strings","user":{"login":"alexeiemam","id":375570,"avatar_url":"https://avatars.githubusercontent.com/u/375570?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeiemam","html_url":"https://github.com/alexeiemam","followers_url":"https://api.github.com/users/alexeiemam/followers","following_url":"https://api.github.com/users/alexeiemam/following{/other_user}","gists_url":"https://api.github.com/users/alexeiemam/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeiemam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeiemam/subscriptions","organizations_url":"https://api.github.com/users/alexeiemam/orgs","repos_url":"https://api.github.com/users/alexeiemam/repos","events_url":"https://api.github.com/users/alexeiemam/events{/privacy}","received_events_url":"https://api.github.com/users/alexeiemam/received_events","type":"User","site_admin":false},"body":"`BasicLinearRingMethods#_validate_geometry` currently ensures first and last points are matching\r\nPR introduces a modification to ensure repeated consecutive coordinates are removed.\r\nUpdates PR #74 for `0.5.x` with more representative test.\r\n ","created_at":"2016-01-14T00:33:31Z","updated_at":"2016-01-14T18:06:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d53a736df2e4db61739330b0ad99aa41a66d833","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rgeo/rgeo/pulls/136/commits","review_comments_url":"https://api.github.com/repos/rgeo/rgeo/pulls/136/comments","review_comment_url":"https://api.github.com/repos/rgeo/rgeo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rgeo/rgeo/issues/136/comments","statuses_url":"https://api.github.com/repos/rgeo/rgeo/statuses/15241857b9864ebc4edd10e6de5498b50e6c8a7d","head":{"label":"ChapterMedia:master","ref":"master","sha":"15241857b9864ebc4edd10e6de5498b50e6c8a7d","user":{"login":"ChapterMedia","id":346901,"avatar_url":"https://avatars.githubusercontent.com/u/346901?v=3","gravatar_id":"","url":"https://api.github.com/users/ChapterMedia","html_url":"https://github.com/ChapterMedia","followers_url":"https://api.github.com/users/ChapterMedia/followers","following_url":"https://api.github.com/users/ChapterMedia/following{/other_user}","gists_url":"https://api.github.com/users/ChapterMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/ChapterMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChapterMedia/subscriptions","organizations_url":"https://api.github.com/users/ChapterMedia/orgs","repos_url":"https://api.github.com/users/ChapterMedia/repos","events_url":"https://api.github.com/users/ChapterMedia/events{/privacy}","received_events_url":"https://api.github.com/users/ChapterMedia/received_events","type":"Organization","site_admin":false},"repo":{"id":41065064,"name":"rgeo","full_name":"ChapterMedia/rgeo","owner":{"login":"ChapterMedia","id":346901,"avatar_url":"https://avatars.githubusercontent.com/u/346901?v=3","gravatar_id":"","url":"https://api.github.com/users/ChapterMedia","html_url":"https://github.com/ChapterMedia","followers_url":"https://api.github.com/users/ChapterMedia/followers","following_url":"https://api.github.com/users/ChapterMedia/following{/other_user}","gists_url":"https://api.github.com/users/ChapterMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/ChapterMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChapterMedia/subscriptions","organizations_url":"https://api.github.com/users/ChapterMedia/orgs","repos_url":"https://api.github.com/users/ChapterMedia/repos","events_url":"https://api.github.com/users/ChapterMedia/events{/privacy}","received_events_url":"https://api.github.com/users/ChapterMedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ChapterMedia/rgeo","description":"Geospatial data library for Ruby","fork":true,"url":"https://api.github.com/repos/ChapterMedia/rgeo","forks_url":"https://api.github.com/repos/ChapterMedia/rgeo/forks","keys_url":"https://api.github.com/repos/ChapterMedia/rgeo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChapterMedia/rgeo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChapterMedia/rgeo/teams","hooks_url":"https://api.github.com/repos/ChapterMedia/rgeo/hooks","issue_events_url":"https://api.github.com/repos/ChapterMedia/rgeo/issues/events{/number}","events_url":"https://api.github.com/repos/ChapterMedia/rgeo/events","assignees_url":"https://api.github.com/repos/ChapterMedia/rgeo/assignees{/user}","branches_url":"https://api.github.com/repos/ChapterMedia/rgeo/branches{/branch}","tags_url":"https://api.github.com/repos/ChapterMedia/rgeo/tags","blobs_url":"https://api.github.com/repos/ChapterMedia/rgeo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChapterMedia/rgeo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChapterMedia/rgeo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChapterMedia/rgeo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChapterMedia/rgeo/statuses/{sha}","languages_url":"https://api.github.com/repos/ChapterMedia/rgeo/languages","stargazers_url":"https://api.github.com/repos/ChapterMedia/rgeo/stargazers","contributors_url":"https://api.github.com/repos/ChapterMedia/rgeo/contributors","subscribers_url":"https://api.github.com/repos/ChapterMedia/rgeo/subscribers","subscription_url":"https://api.github.com/repos/ChapterMedia/rgeo/subscription","commits_url":"https://api.github.com/repos/ChapterMedia/rgeo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChapterMedia/rgeo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChapterMedia/rgeo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChapterMedia/rgeo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChapterMedia/rgeo/contents/{+path}","compare_url":"https://api.github.com/repos/ChapterMedia/rgeo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChapterMedia/rgeo/merges","archive_url":"https://api.github.com/repos/ChapterMedia/rgeo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChapterMedia/rgeo/downloads","issues_url":"https://api.github.com/repos/ChapterMedia/rgeo/issues{/number}","pulls_url":"https://api.github.com/repos/ChapterMedia/rgeo/pulls{/number}","milestones_url":"https://api.github.com/repos/ChapterMedia/rgeo/milestones{/number}","notifications_url":"https://api.github.com/repos/ChapterMedia/rgeo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChapterMedia/rgeo/labels{/name}","releases_url":"https://api.github.com/repos/ChapterMedia/rgeo/releases{/id}","created_at":"2015-08-19T23:39:54Z","updated_at":"2016-01-13T23:48:05Z","pushed_at":"2016-01-13T23:57:38Z","git_url":"git://github.com/ChapterMedia/rgeo.git","ssh_url":"git@github.com:ChapterMedia/rgeo.git","clone_url":"https://github.com/ChapterMedia/rgeo.git","svn_url":"https://github.com/ChapterMedia/rgeo","homepage":"","size":2577,"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":"rgeo:master","ref":"master","sha":"b25ba871a778dbf20279a8b5fbd9063e53e3c615","user":{"login":"rgeo","id":7430159,"avatar_url":"https://avatars.githubusercontent.com/u/7430159?v=3","gravatar_id":"","url":"https://api.github.com/users/rgeo","html_url":"https://github.com/rgeo","followers_url":"https://api.github.com/users/rgeo/followers","following_url":"https://api.github.com/users/rgeo/following{/other_user}","gists_url":"https://api.github.com/users/rgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/rgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgeo/subscriptions","organizations_url":"https://api.github.com/users/rgeo/orgs","repos_url":"https://api.github.com/users/rgeo/repos","events_url":"https://api.github.com/users/rgeo/events{/privacy}","received_events_url":"https://api.github.com/users/rgeo/received_events","type":"Organization","site_admin":false},"repo":{"id":1005013,"name":"rgeo","full_name":"rgeo/rgeo","owner":{"login":"rgeo","id":7430159,"avatar_url":"https://avatars.githubusercontent.com/u/7430159?v=3","gravatar_id":"","url":"https://api.github.com/users/rgeo","html_url":"https://github.com/rgeo","followers_url":"https://api.github.com/users/rgeo/followers","following_url":"https://api.github.com/users/rgeo/following{/other_user}","gists_url":"https://api.github.com/users/rgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/rgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgeo/subscriptions","organizations_url":"https://api.github.com/users/rgeo/orgs","repos_url":"https://api.github.com/users/rgeo/repos","events_url":"https://api.github.com/users/rgeo/events{/privacy}","received_events_url":"https://api.github.com/users/rgeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rgeo/rgeo","description":"Geospatial data library for Ruby","fork":false,"url":"https://api.github.com/repos/rgeo/rgeo","forks_url":"https://api.github.com/repos/rgeo/rgeo/forks","keys_url":"https://api.github.com/repos/rgeo/rgeo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rgeo/rgeo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rgeo/rgeo/teams","hooks_url":"https://api.github.com/repos/rgeo/rgeo/hooks","issue_events_url":"https://api.github.com/repos/rgeo/rgeo/issues/events{/number}","events_url":"https://api.github.com/repos/rgeo/rgeo/events","assignees_url":"https://api.github.com/repos/rgeo/rgeo/assignees{/user}","branches_url":"https://api.github.com/repos/rgeo/rgeo/branches{/branch}","tags_url":"https://api.github.com/repos/rgeo/rgeo/tags","blobs_url":"https://api.github.com/repos/rgeo/rgeo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rgeo/rgeo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rgeo/rgeo/git/refs{/sha}","trees_url":"https://api.github.com/repos/rgeo/rgeo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rgeo/rgeo/statuses/{sha}","languages_url":"https://api.github.com/repos/rgeo/rgeo/languages","stargazers_url":"https://api.github.com/repos/rgeo/rgeo/stargazers","contributors_url":"https://api.github.com/repos/rgeo/rgeo/contributors","subscribers_url":"https://api.github.com/repos/rgeo/rgeo/subscribers","subscription_url":"https://api.github.com/repos/rgeo/rgeo/subscription","commits_url":"https://api.github.com/repos/rgeo/rgeo/commits{/sha}","git_commits_url":"https://api.github.com/repos/rgeo/rgeo/git/commits{/sha}","comments_url":"https://api.github.com/repos/rgeo/rgeo/comments{/number}","issue_comment_url":"https://api.github.com/repos/rgeo/rgeo/issues/comments{/number}","contents_url":"https://api.github.com/repos/rgeo/rgeo/contents/{+path}","compare_url":"https://api.github.com/repos/rgeo/rgeo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rgeo/rgeo/merges","archive_url":"https://api.github.com/repos/rgeo/rgeo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rgeo/rgeo/downloads","issues_url":"https://api.github.com/repos/rgeo/rgeo/issues{/number}","pulls_url":"https://api.github.com/repos/rgeo/rgeo/pulls{/number}","milestones_url":"https://api.github.com/repos/rgeo/rgeo/milestones{/number}","notifications_url":"https://api.github.com/repos/rgeo/rgeo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rgeo/rgeo/labels{/name}","releases_url":"https://api.github.com/repos/rgeo/rgeo/releases{/id}","created_at":"2010-10-19T05:07:01Z","updated_at":"2016-01-07T01:58:51Z","pushed_at":"2016-01-14T00:33:31Z","git_url":"git://github.com/rgeo/rgeo.git","ssh_url":"git@github.com:rgeo/rgeo.git","clone_url":"https://github.com/rgeo/rgeo.git","svn_url":"https://github.com/rgeo/rgeo","homepage":"","size":2667,"stargazers_count":571,"watchers_count":571,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":87,"mirror_url":null,"open_issues_count":41,"forks":87,"open_issues":41,"watchers":571,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rgeo/rgeo/pulls/136"},"html":{"href":"https://github.com/rgeo/rgeo/pull/136"},"issue":{"href":"https://api.github.com/repos/rgeo/rgeo/issues/136"},"comments":{"href":"https://api.github.com/repos/rgeo/rgeo/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/rgeo/rgeo/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/rgeo/rgeo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rgeo/rgeo/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/rgeo/rgeo/statuses/15241857b9864ebc4edd10e6de5498b50e6c8a7d"}}}}