{"action":"created","comment":{"url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments/31413313","id":31413313,"diff_hunk":"@@ -43,6 +45,25 @@ def get_flickr_images\n                                                  'url_sq, url_m', 10, 1)\n   end\n \n+  def parsing_html\n+    @parse = CardsService.parsing_html(current_user.id,\n+                                      parsing_html_params[:block_id],\n+                                      parsing_html_params[:url],\n+                                      parsing_html_params[:css_original],\n+                                      parsing_html_params[:css_translated])\n+\n+    if @parse\n+      flash.now[:notice] = 'Задача на парсинг сайта успешно поставлена в очередь.'\n+    else\n+      flash.now[:alert] = 'Проверьте правильность введенных данных.'","path":"app/controllers/dashboard/cards_controller.rb","position":21,"original_position":21,"commit_id":"302bdc51ca02c70c5eda99496289536564ed7b35","original_commit_id":"302bdc51ca02c70c5eda99496289536564ed7b35","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-06-01T10:07:47Z","updated_at":"2015-06-01T10:07:47Z","html_url":"https://github.com/elavretskiy/flashcards/pull/30#discussion_r31413313","pull_request_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments/31413313"},"html":{"href":"https://github.com/elavretskiy/flashcards/pull/30#discussion_r31413313"},"pull_request":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30","id":36417460,"html_url":"https://github.com/elavretskiy/flashcards/pull/30","diff_url":"https://github.com/elavretskiy/flashcards/pull/30.diff","patch_url":"https://github.com/elavretskiy/flashcards/pull/30.patch","issue_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/30","number":30,"state":"open","locked":false,"title":"Background Jobs","user":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-28T15:14:20Z","updated_at":"2015-06-01T10:07:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b9cf7b9031c85dcd738f9849ec5ff2c463544d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30/commits","review_comments_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30/comments","review_comment_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/30/comments","statuses_url":"https://api.github.com/repos/elavretskiy/flashcards/statuses/302bdc51ca02c70c5eda99496289536564ed7b35","head":{"label":"elavretskiy:background-jobs","ref":"background-jobs","sha":"302bdc51ca02c70c5eda99496289536564ed7b35","user":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"repo":{"id":32740872,"name":"flashcards","full_name":"elavretskiy/flashcards","owner":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elavretskiy/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/elavretskiy/flashcards","forks_url":"https://api.github.com/repos/elavretskiy/flashcards/forks","keys_url":"https://api.github.com/repos/elavretskiy/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elavretskiy/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elavretskiy/flashcards/teams","hooks_url":"https://api.github.com/repos/elavretskiy/flashcards/hooks","issue_events_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/elavretskiy/flashcards/events","assignees_url":"https://api.github.com/repos/elavretskiy/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/elavretskiy/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/elavretskiy/flashcards/tags","blobs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elavretskiy/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/elavretskiy/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elavretskiy/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/elavretskiy/flashcards/languages","stargazers_url":"https://api.github.com/repos/elavretskiy/flashcards/stargazers","contributors_url":"https://api.github.com/repos/elavretskiy/flashcards/contributors","subscribers_url":"https://api.github.com/repos/elavretskiy/flashcards/subscribers","subscription_url":"https://api.github.com/repos/elavretskiy/flashcards/subscription","commits_url":"https://api.github.com/repos/elavretskiy/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/elavretskiy/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/elavretskiy/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/elavretskiy/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/elavretskiy/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elavretskiy/flashcards/merges","archive_url":"https://api.github.com/repos/elavretskiy/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elavretskiy/flashcards/downloads","issues_url":"https://api.github.com/repos/elavretskiy/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/elavretskiy/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/elavretskiy/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elavretskiy/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/elavretskiy/flashcards/releases{/id}","created_at":"2015-03-23T15:28:49Z","updated_at":"2015-04-22T09:56:50Z","pushed_at":"2015-06-01T10:07:43Z","git_url":"git://github.com/elavretskiy/flashcards.git","ssh_url":"git@github.com:elavretskiy/flashcards.git","clone_url":"https://github.com/elavretskiy/flashcards.git","svn_url":"https://github.com/elavretskiy/flashcards","homepage":null,"size":1528,"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":"elavretskiy:master","ref":"master","sha":"5ae44753ded43569352448fb44f0e205384a9cdc","user":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"repo":{"id":32740872,"name":"flashcards","full_name":"elavretskiy/flashcards","owner":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elavretskiy/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/elavretskiy/flashcards","forks_url":"https://api.github.com/repos/elavretskiy/flashcards/forks","keys_url":"https://api.github.com/repos/elavretskiy/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elavretskiy/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elavretskiy/flashcards/teams","hooks_url":"https://api.github.com/repos/elavretskiy/flashcards/hooks","issue_events_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/elavretskiy/flashcards/events","assignees_url":"https://api.github.com/repos/elavretskiy/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/elavretskiy/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/elavretskiy/flashcards/tags","blobs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elavretskiy/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/elavretskiy/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elavretskiy/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/elavretskiy/flashcards/languages","stargazers_url":"https://api.github.com/repos/elavretskiy/flashcards/stargazers","contributors_url":"https://api.github.com/repos/elavretskiy/flashcards/contributors","subscribers_url":"https://api.github.com/repos/elavretskiy/flashcards/subscribers","subscription_url":"https://api.github.com/repos/elavretskiy/flashcards/subscription","commits_url":"https://api.github.com/repos/elavretskiy/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/elavretskiy/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/elavretskiy/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/elavretskiy/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/elavretskiy/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elavretskiy/flashcards/merges","archive_url":"https://api.github.com/repos/elavretskiy/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elavretskiy/flashcards/downloads","issues_url":"https://api.github.com/repos/elavretskiy/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/elavretskiy/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/elavretskiy/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elavretskiy/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/elavretskiy/flashcards/releases{/id}","created_at":"2015-03-23T15:28:49Z","updated_at":"2015-04-22T09:56:50Z","pushed_at":"2015-06-01T10:07:43Z","git_url":"git://github.com/elavretskiy/flashcards.git","ssh_url":"git@github.com:elavretskiy/flashcards.git","clone_url":"https://github.com/elavretskiy/flashcards.git","svn_url":"https://github.com/elavretskiy/flashcards","homepage":null,"size":1528,"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/elavretskiy/flashcards/pulls/30"},"html":{"href":"https://github.com/elavretskiy/flashcards/pull/30"},"issue":{"href":"https://api.github.com/repos/elavretskiy/flashcards/issues/30"},"comments":{"href":"https://api.github.com/repos/elavretskiy/flashcards/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/elavretskiy/flashcards/statuses/302bdc51ca02c70c5eda99496289536564ed7b35"}}}}