{"action":"created","comment":{"url":"https://api.github.com/repos/Leonidas777/course-app/pulls/comments/56244140","id":56244140,"diff_hunk":"@@ -0,0 +1,49 @@\n+.row\n+  .col-sm-6.col-md-6.col-lg-6\n+    = simple_form_for [:course, lesson] do |f|\n+      .box-body\n+        .form-group\n+          = f.input :title, placeholder: 'Enter title', input_html: { class: 'form-control' }\n+        .form-group\n+          = f.input :description, as: :text, placeholder: 'Enter a short description of your new lesson', input_html: { class: 'form-control', style: 'height: 140px' }\n+        .form-group\n+          .row\n+            .col-xs-6.col-sm-4.col-md-4.col-lg-3\n+              = f.input :position, input_html: { class: 'form-control' }\n+        .form-group\n+          = f.input :picture, as: :file\n+        .form-group\n+          = f.input :summary, as: :text, placeholder: 'Compose a short summary about your new lesson', input_html: { class: 'form-control', style: 'height: 140px' }\n+        .form-group\n+          = f.input :homework, as: :text, placeholder: 'Compose homework for your students', input_html: { class: 'form-control', style: 'height: 140px' }\n+\n+        = f.submit 'Save', class: 'btn btn-primary'\n+","path":"app/views/lessons/_form.html.haml","position":21,"original_position":21,"commit_id":"fb3e8d95d89ffc56fa0728eb40f3312c5dfb87be","original_commit_id":"fb3e8d95d89ffc56fa0728eb40f3312c5dfb87be","user":{"login":"c3gdlk","id":3253437,"avatar_url":"https://avatars.githubusercontent.com/u/3253437?v=3","gravatar_id":"","url":"https://api.github.com/users/c3gdlk","html_url":"https://github.com/c3gdlk","followers_url":"https://api.github.com/users/c3gdlk/followers","following_url":"https://api.github.com/users/c3gdlk/following{/other_user}","gists_url":"https://api.github.com/users/c3gdlk/gists{/gist_id}","starred_url":"https://api.github.com/users/c3gdlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c3gdlk/subscriptions","organizations_url":"https://api.github.com/users/c3gdlk/orgs","repos_url":"https://api.github.com/users/c3gdlk/repos","events_url":"https://api.github.com/users/c3gdlk/events{/privacy}","received_events_url":"https://api.github.com/users/c3gdlk/received_events","type":"User","site_admin":false},"body":"закомментированный текст и пропуски надо удалять","created_at":"2016-03-15T21:28:27Z","updated_at":"2016-03-15T21:28:27Z","html_url":"https://github.com/Leonidas777/course-app/pull/10#discussion_r56244140","pull_request_url":"https://api.github.com/repos/Leonidas777/course-app/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/Leonidas777/course-app/pulls/comments/56244140"},"html":{"href":"https://github.com/Leonidas777/course-app/pull/10#discussion_r56244140"},"pull_request":{"href":"https://api.github.com/repos/Leonidas777/course-app/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Leonidas777/course-app/pulls/10","id":61659827,"html_url":"https://github.com/Leonidas777/course-app/pull/10","diff_url":"https://github.com/Leonidas777/course-app/pull/10.diff","patch_url":"https://github.com/Leonidas777/course-app/pull/10.patch","issue_url":"https://api.github.com/repos/Leonidas777/course-app/issues/10","number":10,"state":"open","locked":false,"title":"Lesson 3","user":{"login":"Leonidas777","id":7677893,"avatar_url":"https://avatars.githubusercontent.com/u/7677893?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidas777","html_url":"https://github.com/Leonidas777","followers_url":"https://api.github.com/users/Leonidas777/followers","following_url":"https://api.github.com/users/Leonidas777/following{/other_user}","gists_url":"https://api.github.com/users/Leonidas777/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidas777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidas777/subscriptions","organizations_url":"https://api.github.com/users/Leonidas777/orgs","repos_url":"https://api.github.com/users/Leonidas777/repos","events_url":"https://api.github.com/users/Leonidas777/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidas777/received_events","type":"User","site_admin":false},"body":"![2016-03-07 15-13-18](https://cloud.githubusercontent.com/assets/7677893/13569116/292aaf0a-e477-11e5-850c-34913b147637.png)\r\nНе разобрался, как устранить эти замечания Rubocop-а.\r\n1 замечание: подумал, что можно сделать тернарником, но получиться очень длинное выражение.\r\n2 замечание: заменить unless на if?\r\n3 замечание: разложил условие из двух операндов на два, но это не помогло.\r\n\r\n\r\nНе сделал еще таск \"Пользователь должен иметь возможность сдать ДЗ\". \r\n\r\n[РЕШЕНО]\r\n\r\npivotal: https://www.pivotaltracker.com/n/projects/1536149","created_at":"2016-03-04T02:45:11Z","updated_at":"2016-03-15T21:28:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"369b708068143075ec21e65b47c1684509775072","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Leonidas777/course-app/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Leonidas777/course-app/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Leonidas777/course-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Leonidas777/course-app/issues/10/comments","statuses_url":"https://api.github.com/repos/Leonidas777/course-app/statuses/fb3e8d95d89ffc56fa0728eb40f3312c5dfb87be","head":{"label":"Leonidas777:lesson-3","ref":"lesson-3","sha":"fb3e8d95d89ffc56fa0728eb40f3312c5dfb87be","user":{"login":"Leonidas777","id":7677893,"avatar_url":"https://avatars.githubusercontent.com/u/7677893?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidas777","html_url":"https://github.com/Leonidas777","followers_url":"https://api.github.com/users/Leonidas777/followers","following_url":"https://api.github.com/users/Leonidas777/following{/other_user}","gists_url":"https://api.github.com/users/Leonidas777/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidas777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidas777/subscriptions","organizations_url":"https://api.github.com/users/Leonidas777/orgs","repos_url":"https://api.github.com/users/Leonidas777/repos","events_url":"https://api.github.com/users/Leonidas777/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidas777/received_events","type":"User","site_admin":false},"repo":{"id":51768115,"name":"course-app","full_name":"Leonidas777/course-app","owner":{"login":"Leonidas777","id":7677893,"avatar_url":"https://avatars.githubusercontent.com/u/7677893?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidas777","html_url":"https://github.com/Leonidas777","followers_url":"https://api.github.com/users/Leonidas777/followers","following_url":"https://api.github.com/users/Leonidas777/following{/other_user}","gists_url":"https://api.github.com/users/Leonidas777/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidas777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidas777/subscriptions","organizations_url":"https://api.github.com/users/Leonidas777/orgs","repos_url":"https://api.github.com/users/Leonidas777/repos","events_url":"https://api.github.com/users/Leonidas777/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidas777/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Leonidas777/course-app","description":"This is a test web app for training in JetRuby company.","fork":false,"url":"https://api.github.com/repos/Leonidas777/course-app","forks_url":"https://api.github.com/repos/Leonidas777/course-app/forks","keys_url":"https://api.github.com/repos/Leonidas777/course-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leonidas777/course-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leonidas777/course-app/teams","hooks_url":"https://api.github.com/repos/Leonidas777/course-app/hooks","issue_events_url":"https://api.github.com/repos/Leonidas777/course-app/issues/events{/number}","events_url":"https://api.github.com/repos/Leonidas777/course-app/events","assignees_url":"https://api.github.com/repos/Leonidas777/course-app/assignees{/user}","branches_url":"https://api.github.com/repos/Leonidas777/course-app/branches{/branch}","tags_url":"https://api.github.com/repos/Leonidas777/course-app/tags","blobs_url":"https://api.github.com/repos/Leonidas777/course-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leonidas777/course-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leonidas777/course-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leonidas777/course-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leonidas777/course-app/statuses/{sha}","languages_url":"https://api.github.com/repos/Leonidas777/course-app/languages","stargazers_url":"https://api.github.com/repos/Leonidas777/course-app/stargazers","contributors_url":"https://api.github.com/repos/Leonidas777/course-app/contributors","subscribers_url":"https://api.github.com/repos/Leonidas777/course-app/subscribers","subscription_url":"https://api.github.com/repos/Leonidas777/course-app/subscription","commits_url":"https://api.github.com/repos/Leonidas777/course-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leonidas777/course-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leonidas777/course-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leonidas777/course-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leonidas777/course-app/contents/{+path}","compare_url":"https://api.github.com/repos/Leonidas777/course-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leonidas777/course-app/merges","archive_url":"https://api.github.com/repos/Leonidas777/course-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leonidas777/course-app/downloads","issues_url":"https://api.github.com/repos/Leonidas777/course-app/issues{/number}","pulls_url":"https://api.github.com/repos/Leonidas777/course-app/pulls{/number}","milestones_url":"https://api.github.com/repos/Leonidas777/course-app/milestones{/number}","notifications_url":"https://api.github.com/repos/Leonidas777/course-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leonidas777/course-app/labels{/name}","releases_url":"https://api.github.com/repos/Leonidas777/course-app/releases{/id}","deployments_url":"https://api.github.com/repos/Leonidas777/course-app/deployments","created_at":"2016-02-15T16:20:37Z","updated_at":"2016-02-17T22:17:58Z","pushed_at":"2016-03-15T19:33:51Z","git_url":"git://github.com/Leonidas777/course-app.git","ssh_url":"git@github.com:Leonidas777/course-app.git","clone_url":"https://github.com/Leonidas777/course-app.git","svn_url":"https://github.com/Leonidas777/course-app","homepage":null,"size":4949,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Leonidas777:master","ref":"master","sha":"f66f6d964d9e8a398500a7a8f288d95ec4fc52ce","user":{"login":"Leonidas777","id":7677893,"avatar_url":"https://avatars.githubusercontent.com/u/7677893?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidas777","html_url":"https://github.com/Leonidas777","followers_url":"https://api.github.com/users/Leonidas777/followers","following_url":"https://api.github.com/users/Leonidas777/following{/other_user}","gists_url":"https://api.github.com/users/Leonidas777/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidas777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidas777/subscriptions","organizations_url":"https://api.github.com/users/Leonidas777/orgs","repos_url":"https://api.github.com/users/Leonidas777/repos","events_url":"https://api.github.com/users/Leonidas777/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidas777/received_events","type":"User","site_admin":false},"repo":{"id":51768115,"name":"course-app","full_name":"Leonidas777/course-app","owner":{"login":"Leonidas777","id":7677893,"avatar_url":"https://avatars.githubusercontent.com/u/7677893?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidas777","html_url":"https://github.com/Leonidas777","followers_url":"https://api.github.com/users/Leonidas777/followers","following_url":"https://api.github.com/users/Leonidas777/following{/other_user}","gists_url":"https://api.github.com/users/Leonidas777/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidas777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidas777/subscriptions","organizations_url":"https://api.github.com/users/Leonidas777/orgs","repos_url":"https://api.github.com/users/Leonidas777/repos","events_url":"https://api.github.com/users/Leonidas777/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidas777/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Leonidas777/course-app","description":"This is a test web app for training in JetRuby company.","fork":false,"url":"https://api.github.com/repos/Leonidas777/course-app","forks_url":"https://api.github.com/repos/Leonidas777/course-app/forks","keys_url":"https://api.github.com/repos/Leonidas777/course-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leonidas777/course-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leonidas777/course-app/teams","hooks_url":"https://api.github.com/repos/Leonidas777/course-app/hooks","issue_events_url":"https://api.github.com/repos/Leonidas777/course-app/issues/events{/number}","events_url":"https://api.github.com/repos/Leonidas777/course-app/events","assignees_url":"https://api.github.com/repos/Leonidas777/course-app/assignees{/user}","branches_url":"https://api.github.com/repos/Leonidas777/course-app/branches{/branch}","tags_url":"https://api.github.com/repos/Leonidas777/course-app/tags","blobs_url":"https://api.github.com/repos/Leonidas777/course-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leonidas777/course-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leonidas777/course-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leonidas777/course-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leonidas777/course-app/statuses/{sha}","languages_url":"https://api.github.com/repos/Leonidas777/course-app/languages","stargazers_url":"https://api.github.com/repos/Leonidas777/course-app/stargazers","contributors_url":"https://api.github.com/repos/Leonidas777/course-app/contributors","subscribers_url":"https://api.github.com/repos/Leonidas777/course-app/subscribers","subscription_url":"https://api.github.com/repos/Leonidas777/course-app/subscription","commits_url":"https://api.github.com/repos/Leonidas777/course-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leonidas777/course-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leonidas777/course-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leonidas777/course-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leonidas777/course-app/contents/{+path}","compare_url":"https://api.github.com/repos/Leonidas777/course-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leonidas777/course-app/merges","archive_url":"https://api.github.com/repos/Leonidas777/course-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leonidas777/course-app/downloads","issues_url":"https://api.github.com/repos/Leonidas777/course-app/issues{/number}","pulls_url":"https://api.github.com/repos/Leonidas777/course-app/pulls{/number}","milestones_url":"https://api.github.com/repos/Leonidas777/course-app/milestones{/number}","notifications_url":"https://api.github.com/repos/Leonidas777/course-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leonidas777/course-app/labels{/name}","releases_url":"https://api.github.com/repos/Leonidas777/course-app/releases{/id}","deployments_url":"https://api.github.com/repos/Leonidas777/course-app/deployments","created_at":"2016-02-15T16:20:37Z","updated_at":"2016-02-17T22:17:58Z","pushed_at":"2016-03-15T19:33:51Z","git_url":"git://github.com/Leonidas777/course-app.git","ssh_url":"git@github.com:Leonidas777/course-app.git","clone_url":"https://github.com/Leonidas777/course-app.git","svn_url":"https://github.com/Leonidas777/course-app","homepage":null,"size":4949,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Leonidas777/course-app/pulls/10"},"html":{"href":"https://github.com/Leonidas777/course-app/pull/10"},"issue":{"href":"https://api.github.com/repos/Leonidas777/course-app/issues/10"},"comments":{"href":"https://api.github.com/repos/Leonidas777/course-app/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Leonidas777/course-app/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Leonidas777/course-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Leonidas777/course-app/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Leonidas777/course-app/statuses/fb3e8d95d89ffc56fa0728eb40f3312c5dfb87be"}}}}