{"action":"created","comment":{"url":"https://api.github.com/repos/gvoz/flashcards/pulls/comments/76436056","id":76436056,"diff_hunk":"@@ -12,4 +12,18 @@ def original_and_translated_text_not_equal\n         original_text.mb_chars.downcase == translated_text.mb_chars.downcase\n     end\n   end\n+\n+  def self.check_translate(id, user_text)\n+    @card = Card.find(id)\n+    if user_text.mb_chars.downcase == @card.original_text.mb_chars.downcase","path":"app/models/card.rb","position":7,"original_position":7,"commit_id":"529e1763e1e69547e439bf1be61923f8e9599dae","original_commit_id":"529e1763e1e69547e439bf1be61923f8e9599dae","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":"Use `casecmp` instead of `downcase ==`.","created_at":"2016-08-26T15:17:19Z","updated_at":"2016-08-26T15:17:19Z","html_url":"https://github.com/gvoz/flashcards/pull/7#discussion_r76436056","pull_request_url":"https://api.github.com/repos/gvoz/flashcards/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/comments/76436056"},"html":{"href":"https://github.com/gvoz/flashcards/pull/7#discussion_r76436056"},"pull_request":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/gvoz/flashcards/pulls/7","id":82905712,"html_url":"https://github.com/gvoz/flashcards/pull/7","diff_url":"https://github.com/gvoz/flashcards/pull/7.diff","patch_url":"https://github.com/gvoz/flashcards/pull/7.patch","issue_url":"https://api.github.com/repos/gvoz/flashcards/issues/7","number":7,"state":"open","locked":false,"title":"Five task","user":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-26T15:17:15Z","updated_at":"2016-08-26T15:17:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8566669ac2b05c250b608cd504083db68a97fd8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gvoz/flashcards/pulls/7/commits","review_comments_url":"https://api.github.com/repos/gvoz/flashcards/pulls/7/comments","review_comment_url":"https://api.github.com/repos/gvoz/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gvoz/flashcards/issues/7/comments","statuses_url":"https://api.github.com/repos/gvoz/flashcards/statuses/529e1763e1e69547e439bf1be61923f8e9599dae","head":{"label":"gvoz:five-task","ref":"five-task","sha":"529e1763e1e69547e439bf1be61923f8e9599dae","user":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"repo":{"id":66264501,"name":"flashcards","full_name":"gvoz/flashcards","owner":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gvoz/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/gvoz/flashcards","forks_url":"https://api.github.com/repos/gvoz/flashcards/forks","keys_url":"https://api.github.com/repos/gvoz/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvoz/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvoz/flashcards/teams","hooks_url":"https://api.github.com/repos/gvoz/flashcards/hooks","issue_events_url":"https://api.github.com/repos/gvoz/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/gvoz/flashcards/events","assignees_url":"https://api.github.com/repos/gvoz/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/gvoz/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/gvoz/flashcards/tags","blobs_url":"https://api.github.com/repos/gvoz/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvoz/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvoz/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvoz/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvoz/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/gvoz/flashcards/languages","stargazers_url":"https://api.github.com/repos/gvoz/flashcards/stargazers","contributors_url":"https://api.github.com/repos/gvoz/flashcards/contributors","subscribers_url":"https://api.github.com/repos/gvoz/flashcards/subscribers","subscription_url":"https://api.github.com/repos/gvoz/flashcards/subscription","commits_url":"https://api.github.com/repos/gvoz/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvoz/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvoz/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvoz/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvoz/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/gvoz/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvoz/flashcards/merges","archive_url":"https://api.github.com/repos/gvoz/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvoz/flashcards/downloads","issues_url":"https://api.github.com/repos/gvoz/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/gvoz/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/gvoz/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/gvoz/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvoz/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/gvoz/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/gvoz/flashcards/deployments","created_at":"2016-08-22T10:48:58Z","updated_at":"2016-08-22T11:00:34Z","pushed_at":"2016-08-26T15:17:15Z","git_url":"git://github.com/gvoz/flashcards.git","ssh_url":"git@github.com:gvoz/flashcards.git","clone_url":"https://github.com/gvoz/flashcards.git","svn_url":"https://github.com/gvoz/flashcards","homepage":null,"size":125,"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":"gvoz:master","ref":"master","sha":"568944c61cbdde0252a6dab098904118d49e77dd","user":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"repo":{"id":66264501,"name":"flashcards","full_name":"gvoz/flashcards","owner":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gvoz/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/gvoz/flashcards","forks_url":"https://api.github.com/repos/gvoz/flashcards/forks","keys_url":"https://api.github.com/repos/gvoz/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvoz/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvoz/flashcards/teams","hooks_url":"https://api.github.com/repos/gvoz/flashcards/hooks","issue_events_url":"https://api.github.com/repos/gvoz/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/gvoz/flashcards/events","assignees_url":"https://api.github.com/repos/gvoz/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/gvoz/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/gvoz/flashcards/tags","blobs_url":"https://api.github.com/repos/gvoz/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvoz/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvoz/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvoz/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvoz/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/gvoz/flashcards/languages","stargazers_url":"https://api.github.com/repos/gvoz/flashcards/stargazers","contributors_url":"https://api.github.com/repos/gvoz/flashcards/contributors","subscribers_url":"https://api.github.com/repos/gvoz/flashcards/subscribers","subscription_url":"https://api.github.com/repos/gvoz/flashcards/subscription","commits_url":"https://api.github.com/repos/gvoz/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvoz/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvoz/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvoz/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvoz/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/gvoz/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvoz/flashcards/merges","archive_url":"https://api.github.com/repos/gvoz/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvoz/flashcards/downloads","issues_url":"https://api.github.com/repos/gvoz/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/gvoz/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/gvoz/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/gvoz/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvoz/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/gvoz/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/gvoz/flashcards/deployments","created_at":"2016-08-22T10:48:58Z","updated_at":"2016-08-22T11:00:34Z","pushed_at":"2016-08-26T15:17:15Z","git_url":"git://github.com/gvoz/flashcards.git","ssh_url":"git@github.com:gvoz/flashcards.git","clone_url":"https://github.com/gvoz/flashcards.git","svn_url":"https://github.com/gvoz/flashcards","homepage":null,"size":125,"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/gvoz/flashcards/pulls/7"},"html":{"href":"https://github.com/gvoz/flashcards/pull/7"},"issue":{"href":"https://api.github.com/repos/gvoz/flashcards/issues/7"},"comments":{"href":"https://api.github.com/repos/gvoz/flashcards/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/gvoz/flashcards/statuses/529e1763e1e69547e439bf1be61923f8e9599dae"}}}}
{"actor":{"display_login":"houndci-bot"}}