{"action":"created","comment":{"url":"https://api.github.com/repos/boddhisattva/exercism/pulls/comments/59107485","id":59107485,"diff_hunk":"@@ -0,0 +1,46 @@\n+FIRST_PRIME_NUMBER = 2\n+POSITION_OF_FIRST_PRIME_NUMBER_IN_A_COLLECTION = 1\n+\n+class Prime\n+  class << self\n+    def nth(nth_prime_position)\n+      raise ArgumentError if nth_prime_position.zero?\n+\n+      number, prime_numbers, prime_numbers_index = setup_initial_data\n+\n+      prime_numbers = get_nth_prime(nth_prime_position, number, prime_numbers,\n+                                         prime_numbers_index)\n+\n+      prime_numbers.last\n+    end\n+\n+    private\n+\n+      def setup_initial_data\n+        return FIRST_PRIME_NUMBER, [FIRST_PRIME_NUMBER], POSITION_OF_FIRST_PRIME_NUMBER_IN_A_COLLECTION\n+      end\n+\n+      def get_nth_prime(nth_prime_position, number, prime_numbers, prime_numbers_index)\n+        while prime_numbers_index != nth_prime_position\n+          number += 1\n+\n+          unless divisible_by_a_prime?(number, prime_numbers)\n+            prime_numbers_index = add_to_prime_numbers_collection(prime_numbers,\n+                                                                       number,\n+                                                                       prime_numbers_index)\n+          end\n+        end\n+\n+        prime_numbers\n+      end\n+\n+      def add_to_prime_numbers_collection(prime_numbers, number, prime_numbers_index)\n+        prime_numbers << number\n+        prime_numbers.index(number) + 1\n+      end\n+\n+      def divisible_by_a_prime?(number, prime_numbers)","path":"ruby/nth-prime/nth_prime.rb","position":42,"original_position":42,"commit_id":"584908c0c9fe80716bcf25f0573bdf97c93244b4","original_commit_id":"584908c0c9fe80716bcf25f0573bdf97c93244b4","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Inconsistent indentation detected.","created_at":"2016-04-09T01:26:34Z","updated_at":"2016-04-09T01:26:34Z","html_url":"https://github.com/boddhisattva/exercism/pull/5#discussion_r59107485","pull_request_url":"https://api.github.com/repos/boddhisattva/exercism/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/boddhisattva/exercism/pulls/comments/59107485"},"html":{"href":"https://github.com/boddhisattva/exercism/pull/5#discussion_r59107485"},"pull_request":{"href":"https://api.github.com/repos/boddhisattva/exercism/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/boddhisattva/exercism/pulls/5","id":65728543,"html_url":"https://github.com/boddhisattva/exercism/pull/5","diff_url":"https://github.com/boddhisattva/exercism/pull/5.diff","patch_url":"https://github.com/boddhisattva/exercism/pull/5.patch","issue_url":"https://api.github.com/repos/boddhisattva/exercism/issues/5","number":5,"state":"open","locked":false,"title":"Nth prime","user":{"login":"boddhisattva","id":655963,"avatar_url":"https://avatars.githubusercontent.com/u/655963?v=3","gravatar_id":"","url":"https://api.github.com/users/boddhisattva","html_url":"https://github.com/boddhisattva","followers_url":"https://api.github.com/users/boddhisattva/followers","following_url":"https://api.github.com/users/boddhisattva/following{/other_user}","gists_url":"https://api.github.com/users/boddhisattva/gists{/gist_id}","starred_url":"https://api.github.com/users/boddhisattva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boddhisattva/subscriptions","organizations_url":"https://api.github.com/users/boddhisattva/orgs","repos_url":"https://api.github.com/users/boddhisattva/repos","events_url":"https://api.github.com/users/boddhisattva/events{/privacy}","received_events_url":"https://api.github.com/users/boddhisattva/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-08T02:25:27Z","updated_at":"2016-04-09T01:26:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5a41086f7e827a485891e803f889398a17fa613","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/boddhisattva/exercism/pulls/5/commits","review_comments_url":"https://api.github.com/repos/boddhisattva/exercism/pulls/5/comments","review_comment_url":"https://api.github.com/repos/boddhisattva/exercism/pulls/comments{/number}","comments_url":"https://api.github.com/repos/boddhisattva/exercism/issues/5/comments","statuses_url":"https://api.github.com/repos/boddhisattva/exercism/statuses/584908c0c9fe80716bcf25f0573bdf97c93244b4","head":{"label":"boddhisattva:nth-prime","ref":"nth-prime","sha":"584908c0c9fe80716bcf25f0573bdf97c93244b4","user":{"login":"boddhisattva","id":655963,"avatar_url":"https://avatars.githubusercontent.com/u/655963?v=3","gravatar_id":"","url":"https://api.github.com/users/boddhisattva","html_url":"https://github.com/boddhisattva","followers_url":"https://api.github.com/users/boddhisattva/followers","following_url":"https://api.github.com/users/boddhisattva/following{/other_user}","gists_url":"https://api.github.com/users/boddhisattva/gists{/gist_id}","starred_url":"https://api.github.com/users/boddhisattva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boddhisattva/subscriptions","organizations_url":"https://api.github.com/users/boddhisattva/orgs","repos_url":"https://api.github.com/users/boddhisattva/repos","events_url":"https://api.github.com/users/boddhisattva/events{/privacy}","received_events_url":"https://api.github.com/users/boddhisattva/received_events","type":"User","site_admin":false},"repo":{"id":51878114,"name":"exercism","full_name":"boddhisattva/exercism","owner":{"login":"boddhisattva","id":655963,"avatar_url":"https://avatars.githubusercontent.com/u/655963?v=3","gravatar_id":"","url":"https://api.github.com/users/boddhisattva","html_url":"https://github.com/boddhisattva","followers_url":"https://api.github.com/users/boddhisattva/followers","following_url":"https://api.github.com/users/boddhisattva/following{/other_user}","gists_url":"https://api.github.com/users/boddhisattva/gists{/gist_id}","starred_url":"https://api.github.com/users/boddhisattva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boddhisattva/subscriptions","organizations_url":"https://api.github.com/users/boddhisattva/orgs","repos_url":"https://api.github.com/users/boddhisattva/repos","events_url":"https://api.github.com/users/boddhisattva/events{/privacy}","received_events_url":"https://api.github.com/users/boddhisattva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boddhisattva/exercism","description":"My solutions to exercises on Exercism(http://exercism.io/)","fork":false,"url":"https://api.github.com/repos/boddhisattva/exercism","forks_url":"https://api.github.com/repos/boddhisattva/exercism/forks","keys_url":"https://api.github.com/repos/boddhisattva/exercism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boddhisattva/exercism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boddhisattva/exercism/teams","hooks_url":"https://api.github.com/repos/boddhisattva/exercism/hooks","issue_events_url":"https://api.github.com/repos/boddhisattva/exercism/issues/events{/number}","events_url":"https://api.github.com/repos/boddhisattva/exercism/events","assignees_url":"https://api.github.com/repos/boddhisattva/exercism/assignees{/user}","branches_url":"https://api.github.com/repos/boddhisattva/exercism/branches{/branch}","tags_url":"https://api.github.com/repos/boddhisattva/exercism/tags","blobs_url":"https://api.github.com/repos/boddhisattva/exercism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boddhisattva/exercism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boddhisattva/exercism/git/refs{/sha}","trees_url":"https://api.github.com/repos/boddhisattva/exercism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boddhisattva/exercism/statuses/{sha}","languages_url":"https://api.github.com/repos/boddhisattva/exercism/languages","stargazers_url":"https://api.github.com/repos/boddhisattva/exercism/stargazers","contributors_url":"https://api.github.com/repos/boddhisattva/exercism/contributors","subscribers_url":"https://api.github.com/repos/boddhisattva/exercism/subscribers","subscription_url":"https://api.github.com/repos/boddhisattva/exercism/subscription","commits_url":"https://api.github.com/repos/boddhisattva/exercism/commits{/sha}","git_commits_url":"https://api.github.com/repos/boddhisattva/exercism/git/commits{/sha}","comments_url":"https://api.github.com/repos/boddhisattva/exercism/comments{/number}","issue_comment_url":"https://api.github.com/repos/boddhisattva/exercism/issues/comments{/number}","contents_url":"https://api.github.com/repos/boddhisattva/exercism/contents/{+path}","compare_url":"https://api.github.com/repos/boddhisattva/exercism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boddhisattva/exercism/merges","archive_url":"https://api.github.com/repos/boddhisattva/exercism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boddhisattva/exercism/downloads","issues_url":"https://api.github.com/repos/boddhisattva/exercism/issues{/number}","pulls_url":"https://api.github.com/repos/boddhisattva/exercism/pulls{/number}","milestones_url":"https://api.github.com/repos/boddhisattva/exercism/milestones{/number}","notifications_url":"https://api.github.com/repos/boddhisattva/exercism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boddhisattva/exercism/labels{/name}","releases_url":"https://api.github.com/repos/boddhisattva/exercism/releases{/id}","deployments_url":"https://api.github.com/repos/boddhisattva/exercism/deployments","created_at":"2016-02-16T23:25:39Z","updated_at":"2016-04-04T03:14:59Z","pushed_at":"2016-04-09T01:26:31Z","git_url":"git://github.com/boddhisattva/exercism.git","ssh_url":"git@github.com:boddhisattva/exercism.git","clone_url":"https://github.com/boddhisattva/exercism.git","svn_url":"https://github.com/boddhisattva/exercism","homepage":"","size":63,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"boddhisattva:master","ref":"master","sha":"ae068d2abcd903f5888f0d79b90dc6c07be256dc","user":{"login":"boddhisattva","id":655963,"avatar_url":"https://avatars.githubusercontent.com/u/655963?v=3","gravatar_id":"","url":"https://api.github.com/users/boddhisattva","html_url":"https://github.com/boddhisattva","followers_url":"https://api.github.com/users/boddhisattva/followers","following_url":"https://api.github.com/users/boddhisattva/following{/other_user}","gists_url":"https://api.github.com/users/boddhisattva/gists{/gist_id}","starred_url":"https://api.github.com/users/boddhisattva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boddhisattva/subscriptions","organizations_url":"https://api.github.com/users/boddhisattva/orgs","repos_url":"https://api.github.com/users/boddhisattva/repos","events_url":"https://api.github.com/users/boddhisattva/events{/privacy}","received_events_url":"https://api.github.com/users/boddhisattva/received_events","type":"User","site_admin":false},"repo":{"id":51878114,"name":"exercism","full_name":"boddhisattva/exercism","owner":{"login":"boddhisattva","id":655963,"avatar_url":"https://avatars.githubusercontent.com/u/655963?v=3","gravatar_id":"","url":"https://api.github.com/users/boddhisattva","html_url":"https://github.com/boddhisattva","followers_url":"https://api.github.com/users/boddhisattva/followers","following_url":"https://api.github.com/users/boddhisattva/following{/other_user}","gists_url":"https://api.github.com/users/boddhisattva/gists{/gist_id}","starred_url":"https://api.github.com/users/boddhisattva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boddhisattva/subscriptions","organizations_url":"https://api.github.com/users/boddhisattva/orgs","repos_url":"https://api.github.com/users/boddhisattva/repos","events_url":"https://api.github.com/users/boddhisattva/events{/privacy}","received_events_url":"https://api.github.com/users/boddhisattva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boddhisattva/exercism","description":"My solutions to exercises on Exercism(http://exercism.io/)","fork":false,"url":"https://api.github.com/repos/boddhisattva/exercism","forks_url":"https://api.github.com/repos/boddhisattva/exercism/forks","keys_url":"https://api.github.com/repos/boddhisattva/exercism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boddhisattva/exercism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boddhisattva/exercism/teams","hooks_url":"https://api.github.com/repos/boddhisattva/exercism/hooks","issue_events_url":"https://api.github.com/repos/boddhisattva/exercism/issues/events{/number}","events_url":"https://api.github.com/repos/boddhisattva/exercism/events","assignees_url":"https://api.github.com/repos/boddhisattva/exercism/assignees{/user}","branches_url":"https://api.github.com/repos/boddhisattva/exercism/branches{/branch}","tags_url":"https://api.github.com/repos/boddhisattva/exercism/tags","blobs_url":"https://api.github.com/repos/boddhisattva/exercism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boddhisattva/exercism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boddhisattva/exercism/git/refs{/sha}","trees_url":"https://api.github.com/repos/boddhisattva/exercism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boddhisattva/exercism/statuses/{sha}","languages_url":"https://api.github.com/repos/boddhisattva/exercism/languages","stargazers_url":"https://api.github.com/repos/boddhisattva/exercism/stargazers","contributors_url":"https://api.github.com/repos/boddhisattva/exercism/contributors","subscribers_url":"https://api.github.com/repos/boddhisattva/exercism/subscribers","subscription_url":"https://api.github.com/repos/boddhisattva/exercism/subscription","commits_url":"https://api.github.com/repos/boddhisattva/exercism/commits{/sha}","git_commits_url":"https://api.github.com/repos/boddhisattva/exercism/git/commits{/sha}","comments_url":"https://api.github.com/repos/boddhisattva/exercism/comments{/number}","issue_comment_url":"https://api.github.com/repos/boddhisattva/exercism/issues/comments{/number}","contents_url":"https://api.github.com/repos/boddhisattva/exercism/contents/{+path}","compare_url":"https://api.github.com/repos/boddhisattva/exercism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boddhisattva/exercism/merges","archive_url":"https://api.github.com/repos/boddhisattva/exercism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boddhisattva/exercism/downloads","issues_url":"https://api.github.com/repos/boddhisattva/exercism/issues{/number}","pulls_url":"https://api.github.com/repos/boddhisattva/exercism/pulls{/number}","milestones_url":"https://api.github.com/repos/boddhisattva/exercism/milestones{/number}","notifications_url":"https://api.github.com/repos/boddhisattva/exercism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boddhisattva/exercism/labels{/name}","releases_url":"https://api.github.com/repos/boddhisattva/exercism/releases{/id}","deployments_url":"https://api.github.com/repos/boddhisattva/exercism/deployments","created_at":"2016-02-16T23:25:39Z","updated_at":"2016-04-04T03:14:59Z","pushed_at":"2016-04-09T01:26:31Z","git_url":"git://github.com/boddhisattva/exercism.git","ssh_url":"git@github.com:boddhisattva/exercism.git","clone_url":"https://github.com/boddhisattva/exercism.git","svn_url":"https://github.com/boddhisattva/exercism","homepage":"","size":63,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/boddhisattva/exercism/pulls/5"},"html":{"href":"https://github.com/boddhisattva/exercism/pull/5"},"issue":{"href":"https://api.github.com/repos/boddhisattva/exercism/issues/5"},"comments":{"href":"https://api.github.com/repos/boddhisattva/exercism/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/boddhisattva/exercism/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/boddhisattva/exercism/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/boddhisattva/exercism/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/boddhisattva/exercism/statuses/584908c0c9fe80716bcf25f0573bdf97c93244b4"}}}}