{"action":"created","comment":{"url":"https://api.github.com/repos/mindspecdev/flashcards/pulls/comments/31199252","id":31199252,"diff_hunk":"@@ -1,2 +1,16 @@\n class Card < ActiveRecord::Base\n+  validates :original_text, :translated_text, :review_date, presence: true\n+  validate :original_cannot_be_translated\n+\n+  before_create :set_default_review_date\n+ \n+  def original_cannot_be_translated\n+    if original_text.mb_chars.downcase.strip == translated_text.mb_chars.downcase.strip","path":"app/models/card.rb","position":8,"original_position":8,"commit_id":"6c8d35800737ca6fa2b702b98eabd8b0081c1efb","original_commit_id":"6c8d35800737ca6fa2b702b98eabd8b0081c1efb","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":"Line is too long. [87/80]","created_at":"2015-05-28T02:36:31Z","updated_at":"2015-05-28T02:36:31Z","html_url":"https://github.com/mindspecdev/flashcards/pull/3#discussion_r31199252","pull_request_url":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/mindspecdev/flashcards/pulls/comments/31199252"},"html":{"href":"https://github.com/mindspecdev/flashcards/pull/3#discussion_r31199252"},"pull_request":{"href":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3","id":36265841,"html_url":"https://github.com/mindspecdev/flashcards/pull/3","diff_url":"https://github.com/mindspecdev/flashcards/pull/3.diff","patch_url":"https://github.com/mindspecdev/flashcards/pull/3.patch","issue_url":"https://api.github.com/repos/mindspecdev/flashcards/issues/3","number":3,"state":"open","locked":false,"title":"third_task","user":{"login":"mindspecdev","id":574984,"avatar_url":"https://avatars.githubusercontent.com/u/574984?v=3","gravatar_id":"","url":"https://api.github.com/users/mindspecdev","html_url":"https://github.com/mindspecdev","followers_url":"https://api.github.com/users/mindspecdev/followers","following_url":"https://api.github.com/users/mindspecdev/following{/other_user}","gists_url":"https://api.github.com/users/mindspecdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mindspecdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindspecdev/subscriptions","organizations_url":"https://api.github.com/users/mindspecdev/orgs","repos_url":"https://api.github.com/users/mindspecdev/repos","events_url":"https://api.github.com/users/mindspecdev/events{/privacy}","received_events_url":"https://api.github.com/users/mindspecdev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-27T03:15:13Z","updated_at":"2015-05-28T02:36:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51a909bfc2047643d349e71b8f4cb76203aa65e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3/commits","review_comments_url":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3/comments","review_comment_url":"https://api.github.com/repos/mindspecdev/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mindspecdev/flashcards/issues/3/comments","statuses_url":"https://api.github.com/repos/mindspecdev/flashcards/statuses/6c8d35800737ca6fa2b702b98eabd8b0081c1efb","head":{"label":"mindspecdev:third-task","ref":"third-task","sha":"6c8d35800737ca6fa2b702b98eabd8b0081c1efb","user":{"login":"mindspecdev","id":574984,"avatar_url":"https://avatars.githubusercontent.com/u/574984?v=3","gravatar_id":"","url":"https://api.github.com/users/mindspecdev","html_url":"https://github.com/mindspecdev","followers_url":"https://api.github.com/users/mindspecdev/followers","following_url":"https://api.github.com/users/mindspecdev/following{/other_user}","gists_url":"https://api.github.com/users/mindspecdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mindspecdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindspecdev/subscriptions","organizations_url":"https://api.github.com/users/mindspecdev/orgs","repos_url":"https://api.github.com/users/mindspecdev/repos","events_url":"https://api.github.com/users/mindspecdev/events{/privacy}","received_events_url":"https://api.github.com/users/mindspecdev/received_events","type":"User","site_admin":false},"repo":{"id":35735909,"name":"flashcards","full_name":"mindspecdev/flashcards","owner":{"login":"mindspecdev","id":574984,"avatar_url":"https://avatars.githubusercontent.com/u/574984?v=3","gravatar_id":"","url":"https://api.github.com/users/mindspecdev","html_url":"https://github.com/mindspecdev","followers_url":"https://api.github.com/users/mindspecdev/followers","following_url":"https://api.github.com/users/mindspecdev/following{/other_user}","gists_url":"https://api.github.com/users/mindspecdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mindspecdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindspecdev/subscriptions","organizations_url":"https://api.github.com/users/mindspecdev/orgs","repos_url":"https://api.github.com/users/mindspecdev/repos","events_url":"https://api.github.com/users/mindspecdev/events{/privacy}","received_events_url":"https://api.github.com/users/mindspecdev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mindspecdev/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/mindspecdev/flashcards","forks_url":"https://api.github.com/repos/mindspecdev/flashcards/forks","keys_url":"https://api.github.com/repos/mindspecdev/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mindspecdev/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mindspecdev/flashcards/teams","hooks_url":"https://api.github.com/repos/mindspecdev/flashcards/hooks","issue_events_url":"https://api.github.com/repos/mindspecdev/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/mindspecdev/flashcards/events","assignees_url":"https://api.github.com/repos/mindspecdev/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/mindspecdev/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/mindspecdev/flashcards/tags","blobs_url":"https://api.github.com/repos/mindspecdev/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mindspecdev/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mindspecdev/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/mindspecdev/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mindspecdev/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/mindspecdev/flashcards/languages","stargazers_url":"https://api.github.com/repos/mindspecdev/flashcards/stargazers","contributors_url":"https://api.github.com/repos/mindspecdev/flashcards/contributors","subscribers_url":"https://api.github.com/repos/mindspecdev/flashcards/subscribers","subscription_url":"https://api.github.com/repos/mindspecdev/flashcards/subscription","commits_url":"https://api.github.com/repos/mindspecdev/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/mindspecdev/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/mindspecdev/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/mindspecdev/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/mindspecdev/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/mindspecdev/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mindspecdev/flashcards/merges","archive_url":"https://api.github.com/repos/mindspecdev/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mindspecdev/flashcards/downloads","issues_url":"https://api.github.com/repos/mindspecdev/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/mindspecdev/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/mindspecdev/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/mindspecdev/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mindspecdev/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/mindspecdev/flashcards/releases{/id}","created_at":"2015-05-16T18:48:44Z","updated_at":"2015-05-20T23:24:57Z","pushed_at":"2015-05-28T02:36:21Z","git_url":"git://github.com/mindspecdev/flashcards.git","ssh_url":"git@github.com:mindspecdev/flashcards.git","clone_url":"https://github.com/mindspecdev/flashcards.git","svn_url":"https://github.com/mindspecdev/flashcards","homepage":null,"size":212,"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":"mindspecdev:master","ref":"master","sha":"093e093393b24e9abbd009d59c51810d2c97022f","user":{"login":"mindspecdev","id":574984,"avatar_url":"https://avatars.githubusercontent.com/u/574984?v=3","gravatar_id":"","url":"https://api.github.com/users/mindspecdev","html_url":"https://github.com/mindspecdev","followers_url":"https://api.github.com/users/mindspecdev/followers","following_url":"https://api.github.com/users/mindspecdev/following{/other_user}","gists_url":"https://api.github.com/users/mindspecdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mindspecdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindspecdev/subscriptions","organizations_url":"https://api.github.com/users/mindspecdev/orgs","repos_url":"https://api.github.com/users/mindspecdev/repos","events_url":"https://api.github.com/users/mindspecdev/events{/privacy}","received_events_url":"https://api.github.com/users/mindspecdev/received_events","type":"User","site_admin":false},"repo":{"id":35735909,"name":"flashcards","full_name":"mindspecdev/flashcards","owner":{"login":"mindspecdev","id":574984,"avatar_url":"https://avatars.githubusercontent.com/u/574984?v=3","gravatar_id":"","url":"https://api.github.com/users/mindspecdev","html_url":"https://github.com/mindspecdev","followers_url":"https://api.github.com/users/mindspecdev/followers","following_url":"https://api.github.com/users/mindspecdev/following{/other_user}","gists_url":"https://api.github.com/users/mindspecdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mindspecdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindspecdev/subscriptions","organizations_url":"https://api.github.com/users/mindspecdev/orgs","repos_url":"https://api.github.com/users/mindspecdev/repos","events_url":"https://api.github.com/users/mindspecdev/events{/privacy}","received_events_url":"https://api.github.com/users/mindspecdev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mindspecdev/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/mindspecdev/flashcards","forks_url":"https://api.github.com/repos/mindspecdev/flashcards/forks","keys_url":"https://api.github.com/repos/mindspecdev/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mindspecdev/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mindspecdev/flashcards/teams","hooks_url":"https://api.github.com/repos/mindspecdev/flashcards/hooks","issue_events_url":"https://api.github.com/repos/mindspecdev/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/mindspecdev/flashcards/events","assignees_url":"https://api.github.com/repos/mindspecdev/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/mindspecdev/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/mindspecdev/flashcards/tags","blobs_url":"https://api.github.com/repos/mindspecdev/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mindspecdev/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mindspecdev/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/mindspecdev/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mindspecdev/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/mindspecdev/flashcards/languages","stargazers_url":"https://api.github.com/repos/mindspecdev/flashcards/stargazers","contributors_url":"https://api.github.com/repos/mindspecdev/flashcards/contributors","subscribers_url":"https://api.github.com/repos/mindspecdev/flashcards/subscribers","subscription_url":"https://api.github.com/repos/mindspecdev/flashcards/subscription","commits_url":"https://api.github.com/repos/mindspecdev/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/mindspecdev/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/mindspecdev/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/mindspecdev/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/mindspecdev/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/mindspecdev/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mindspecdev/flashcards/merges","archive_url":"https://api.github.com/repos/mindspecdev/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mindspecdev/flashcards/downloads","issues_url":"https://api.github.com/repos/mindspecdev/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/mindspecdev/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/mindspecdev/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/mindspecdev/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mindspecdev/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/mindspecdev/flashcards/releases{/id}","created_at":"2015-05-16T18:48:44Z","updated_at":"2015-05-20T23:24:57Z","pushed_at":"2015-05-28T02:36:21Z","git_url":"git://github.com/mindspecdev/flashcards.git","ssh_url":"git@github.com:mindspecdev/flashcards.git","clone_url":"https://github.com/mindspecdev/flashcards.git","svn_url":"https://github.com/mindspecdev/flashcards","homepage":null,"size":212,"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/mindspecdev/flashcards/pulls/3"},"html":{"href":"https://github.com/mindspecdev/flashcards/pull/3"},"issue":{"href":"https://api.github.com/repos/mindspecdev/flashcards/issues/3"},"comments":{"href":"https://api.github.com/repos/mindspecdev/flashcards/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/mindspecdev/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mindspecdev/flashcards/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/mindspecdev/flashcards/statuses/6c8d35800737ca6fa2b702b98eabd8b0081c1efb"}}}}