{"action":"created","comment":{"url":"https://api.github.com/repos/ventskus-roman/cards/pulls/comments/30055611","id":30055611,"diff_hunk":"@@ -4,12 +4,24 @@ class Card < ActiveRecord::Base\n \n   before_validation :set_default_review_date, :strip_whitespaces, on: :create\n \n+  scope :need_to_review, -> { where(\"review_date <= ?\", Time.zone.now )\n+                              .order(\"RANDOM()\")}","path":"app/models/card.rb","position":5,"original_position":5,"commit_id":"b90e0adf20c48b90d92fd680f0915bc0c245b7a1","original_commit_id":"b90e0adf20c48b90d92fd680f0915bc0c245b7a1","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Expression at 8, 49 should be on its own line.<br>Place the . on the previous line, together with the method call receiver.<br>Use 2 (not 28) spaces for indenting an expression spanning multiple lines.","created_at":"2015-05-11T16:31:28Z","updated_at":"2015-05-11T16:31:28Z","html_url":"https://github.com/ventskus-roman/cards/pull/5#discussion_r30055611","pull_request_url":"https://api.github.com/repos/ventskus-roman/cards/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ventskus-roman/cards/pulls/comments/30055611"},"html":{"href":"https://github.com/ventskus-roman/cards/pull/5#discussion_r30055611"},"pull_request":{"href":"https://api.github.com/repos/ventskus-roman/cards/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ventskus-roman/cards/pulls/5","id":35084048,"html_url":"https://github.com/ventskus-roman/cards/pull/5","diff_url":"https://github.com/ventskus-roman/cards/pull/5.diff","patch_url":"https://github.com/ventskus-roman/cards/pull/5.patch","issue_url":"https://api.github.com/repos/ventskus-roman/cards/issues/5","number":5,"state":"open","locked":false,"title":"Simple trainer","user":{"login":"ventskus-roman","id":959926,"avatar_url":"https://avatars.githubusercontent.com/u/959926?v=3","gravatar_id":"","url":"https://api.github.com/users/ventskus-roman","html_url":"https://github.com/ventskus-roman","followers_url":"https://api.github.com/users/ventskus-roman/followers","following_url":"https://api.github.com/users/ventskus-roman/following{/other_user}","gists_url":"https://api.github.com/users/ventskus-roman/gists{/gist_id}","starred_url":"https://api.github.com/users/ventskus-roman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventskus-roman/subscriptions","organizations_url":"https://api.github.com/users/ventskus-roman/orgs","repos_url":"https://api.github.com/users/ventskus-roman/repos","events_url":"https://api.github.com/users/ventskus-roman/events{/privacy}","received_events_url":"https://api.github.com/users/ventskus-roman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-10T15:22:20Z","updated_at":"2015-05-11T16:31:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9a0745d078776f41bf36253d6948f6dd15e6e3c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ventskus-roman/cards/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ventskus-roman/cards/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ventskus-roman/cards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ventskus-roman/cards/issues/5/comments","statuses_url":"https://api.github.com/repos/ventskus-roman/cards/statuses/b90e0adf20c48b90d92fd680f0915bc0c245b7a1","head":{"label":"ventskus-roman:simple_trainer","ref":"simple_trainer","sha":"b90e0adf20c48b90d92fd680f0915bc0c245b7a1","user":{"login":"ventskus-roman","id":959926,"avatar_url":"https://avatars.githubusercontent.com/u/959926?v=3","gravatar_id":"","url":"https://api.github.com/users/ventskus-roman","html_url":"https://github.com/ventskus-roman","followers_url":"https://api.github.com/users/ventskus-roman/followers","following_url":"https://api.github.com/users/ventskus-roman/following{/other_user}","gists_url":"https://api.github.com/users/ventskus-roman/gists{/gist_id}","starred_url":"https://api.github.com/users/ventskus-roman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventskus-roman/subscriptions","organizations_url":"https://api.github.com/users/ventskus-roman/orgs","repos_url":"https://api.github.com/users/ventskus-roman/repos","events_url":"https://api.github.com/users/ventskus-roman/events{/privacy}","received_events_url":"https://api.github.com/users/ventskus-roman/received_events","type":"User","site_admin":false},"repo":{"id":35053822,"name":"cards","full_name":"ventskus-roman/cards","owner":{"login":"ventskus-roman","id":959926,"avatar_url":"https://avatars.githubusercontent.com/u/959926?v=3","gravatar_id":"","url":"https://api.github.com/users/ventskus-roman","html_url":"https://github.com/ventskus-roman","followers_url":"https://api.github.com/users/ventskus-roman/followers","following_url":"https://api.github.com/users/ventskus-roman/following{/other_user}","gists_url":"https://api.github.com/users/ventskus-roman/gists{/gist_id}","starred_url":"https://api.github.com/users/ventskus-roman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventskus-roman/subscriptions","organizations_url":"https://api.github.com/users/ventskus-roman/orgs","repos_url":"https://api.github.com/users/ventskus-roman/repos","events_url":"https://api.github.com/users/ventskus-roman/events{/privacy}","received_events_url":"https://api.github.com/users/ventskus-roman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ventskus-roman/cards","description":"","fork":false,"url":"https://api.github.com/repos/ventskus-roman/cards","forks_url":"https://api.github.com/repos/ventskus-roman/cards/forks","keys_url":"https://api.github.com/repos/ventskus-roman/cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ventskus-roman/cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ventskus-roman/cards/teams","hooks_url":"https://api.github.com/repos/ventskus-roman/cards/hooks","issue_events_url":"https://api.github.com/repos/ventskus-roman/cards/issues/events{/number}","events_url":"https://api.github.com/repos/ventskus-roman/cards/events","assignees_url":"https://api.github.com/repos/ventskus-roman/cards/assignees{/user}","branches_url":"https://api.github.com/repos/ventskus-roman/cards/branches{/branch}","tags_url":"https://api.github.com/repos/ventskus-roman/cards/tags","blobs_url":"https://api.github.com/repos/ventskus-roman/cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ventskus-roman/cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ventskus-roman/cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ventskus-roman/cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ventskus-roman/cards/statuses/{sha}","languages_url":"https://api.github.com/repos/ventskus-roman/cards/languages","stargazers_url":"https://api.github.com/repos/ventskus-roman/cards/stargazers","contributors_url":"https://api.github.com/repos/ventskus-roman/cards/contributors","subscribers_url":"https://api.github.com/repos/ventskus-roman/cards/subscribers","subscription_url":"https://api.github.com/repos/ventskus-roman/cards/subscription","commits_url":"https://api.github.com/repos/ventskus-roman/cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ventskus-roman/cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ventskus-roman/cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ventskus-roman/cards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ventskus-roman/cards/contents/{+path}","compare_url":"https://api.github.com/repos/ventskus-roman/cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ventskus-roman/cards/merges","archive_url":"https://api.github.com/repos/ventskus-roman/cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ventskus-roman/cards/downloads","issues_url":"https://api.github.com/repos/ventskus-roman/cards/issues{/number}","pulls_url":"https://api.github.com/repos/ventskus-roman/cards/pulls{/number}","milestones_url":"https://api.github.com/repos/ventskus-roman/cards/milestones{/number}","notifications_url":"https://api.github.com/repos/ventskus-roman/cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ventskus-roman/cards/labels{/name}","releases_url":"https://api.github.com/repos/ventskus-roman/cards/releases{/id}","created_at":"2015-05-04T19:07:59Z","updated_at":"2015-05-05T17:40:33Z","pushed_at":"2015-05-11T16:31:23Z","git_url":"git://github.com/ventskus-roman/cards.git","ssh_url":"git@github.com:ventskus-roman/cards.git","clone_url":"https://github.com/ventskus-roman/cards.git","svn_url":"https://github.com/ventskus-roman/cards","homepage":null,"size":0,"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":"ventskus-roman:master","ref":"master","sha":"34102b22da309dc0d75ceb77b0894c8ba1dfb370","user":{"login":"ventskus-roman","id":959926,"avatar_url":"https://avatars.githubusercontent.com/u/959926?v=3","gravatar_id":"","url":"https://api.github.com/users/ventskus-roman","html_url":"https://github.com/ventskus-roman","followers_url":"https://api.github.com/users/ventskus-roman/followers","following_url":"https://api.github.com/users/ventskus-roman/following{/other_user}","gists_url":"https://api.github.com/users/ventskus-roman/gists{/gist_id}","starred_url":"https://api.github.com/users/ventskus-roman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventskus-roman/subscriptions","organizations_url":"https://api.github.com/users/ventskus-roman/orgs","repos_url":"https://api.github.com/users/ventskus-roman/repos","events_url":"https://api.github.com/users/ventskus-roman/events{/privacy}","received_events_url":"https://api.github.com/users/ventskus-roman/received_events","type":"User","site_admin":false},"repo":{"id":35053822,"name":"cards","full_name":"ventskus-roman/cards","owner":{"login":"ventskus-roman","id":959926,"avatar_url":"https://avatars.githubusercontent.com/u/959926?v=3","gravatar_id":"","url":"https://api.github.com/users/ventskus-roman","html_url":"https://github.com/ventskus-roman","followers_url":"https://api.github.com/users/ventskus-roman/followers","following_url":"https://api.github.com/users/ventskus-roman/following{/other_user}","gists_url":"https://api.github.com/users/ventskus-roman/gists{/gist_id}","starred_url":"https://api.github.com/users/ventskus-roman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventskus-roman/subscriptions","organizations_url":"https://api.github.com/users/ventskus-roman/orgs","repos_url":"https://api.github.com/users/ventskus-roman/repos","events_url":"https://api.github.com/users/ventskus-roman/events{/privacy}","received_events_url":"https://api.github.com/users/ventskus-roman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ventskus-roman/cards","description":"","fork":false,"url":"https://api.github.com/repos/ventskus-roman/cards","forks_url":"https://api.github.com/repos/ventskus-roman/cards/forks","keys_url":"https://api.github.com/repos/ventskus-roman/cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ventskus-roman/cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ventskus-roman/cards/teams","hooks_url":"https://api.github.com/repos/ventskus-roman/cards/hooks","issue_events_url":"https://api.github.com/repos/ventskus-roman/cards/issues/events{/number}","events_url":"https://api.github.com/repos/ventskus-roman/cards/events","assignees_url":"https://api.github.com/repos/ventskus-roman/cards/assignees{/user}","branches_url":"https://api.github.com/repos/ventskus-roman/cards/branches{/branch}","tags_url":"https://api.github.com/repos/ventskus-roman/cards/tags","blobs_url":"https://api.github.com/repos/ventskus-roman/cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ventskus-roman/cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ventskus-roman/cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ventskus-roman/cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ventskus-roman/cards/statuses/{sha}","languages_url":"https://api.github.com/repos/ventskus-roman/cards/languages","stargazers_url":"https://api.github.com/repos/ventskus-roman/cards/stargazers","contributors_url":"https://api.github.com/repos/ventskus-roman/cards/contributors","subscribers_url":"https://api.github.com/repos/ventskus-roman/cards/subscribers","subscription_url":"https://api.github.com/repos/ventskus-roman/cards/subscription","commits_url":"https://api.github.com/repos/ventskus-roman/cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ventskus-roman/cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ventskus-roman/cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ventskus-roman/cards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ventskus-roman/cards/contents/{+path}","compare_url":"https://api.github.com/repos/ventskus-roman/cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ventskus-roman/cards/merges","archive_url":"https://api.github.com/repos/ventskus-roman/cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ventskus-roman/cards/downloads","issues_url":"https://api.github.com/repos/ventskus-roman/cards/issues{/number}","pulls_url":"https://api.github.com/repos/ventskus-roman/cards/pulls{/number}","milestones_url":"https://api.github.com/repos/ventskus-roman/cards/milestones{/number}","notifications_url":"https://api.github.com/repos/ventskus-roman/cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ventskus-roman/cards/labels{/name}","releases_url":"https://api.github.com/repos/ventskus-roman/cards/releases{/id}","created_at":"2015-05-04T19:07:59Z","updated_at":"2015-05-05T17:40:33Z","pushed_at":"2015-05-11T16:31:23Z","git_url":"git://github.com/ventskus-roman/cards.git","ssh_url":"git@github.com:ventskus-roman/cards.git","clone_url":"https://github.com/ventskus-roman/cards.git","svn_url":"https://github.com/ventskus-roman/cards","homepage":null,"size":0,"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/ventskus-roman/cards/pulls/5"},"html":{"href":"https://github.com/ventskus-roman/cards/pull/5"},"issue":{"href":"https://api.github.com/repos/ventskus-roman/cards/issues/5"},"comments":{"href":"https://api.github.com/repos/ventskus-roman/cards/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ventskus-roman/cards/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ventskus-roman/cards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ventskus-roman/cards/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ventskus-roman/cards/statuses/b90e0adf20c48b90d92fd680f0915bc0c245b7a1"}}}}