{"action":"created","comment":{"url":"https://api.github.com/repos/lenazh/scheduler/pulls/comments/35829727","id":35829727,"diff_hunk":"@@ -0,0 +1,62 @@\n+class ResourceList\r\n+  resourceLink = {}\r\n+  all = []\r\n+  name = ''\r\n+\r\n+  remove_from_list = (resource) ->\r\n+    id = all.indexOf resource\r\n+    return if id == -1\r\n+    all.splice id, 1\r\n+\r\n+  append_to_list = (resource) ->\r\n+    all.push resource\r\n+\r\n+  update_list = (id, resource) ->\r\n+    all[id] = resource\r\n+\r\n+  updateParams = (params) ->\r\n+    result = {}\r\n+    for key in Object.keys(params)\r\n+      result[\"#{name}[#{key}]\"] = params[key]\r\n+    result\r\n+\r\n+  # public interface\r\n+\r\n+  constructor: ($resource, path, resourceName) ->\r\n+    resourceLink = $resource path,\r\n+      { id: '@id' },\r\n+      {\r\n+        'update': { method:'PUT' },\r","path":"app/assets/javascripts/angular/helpers/resource_list.js.coffee","position":29,"original_position":29,"commit_id":"bbaa088e7f5753f2bcbd9f66051d91e1b70bcb28","original_commit_id":"bbaa088e7f5753f2bcbd9f66051d91e1b70bcb28","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":"Colon assignment without proper spacing","created_at":"2015-07-30T01:01:13Z","updated_at":"2015-07-30T01:01:13Z","html_url":"https://github.com/lenazh/scheduler/pull/11#discussion_r35829727","pull_request_url":"https://api.github.com/repos/lenazh/scheduler/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/lenazh/scheduler/pulls/comments/35829727"},"html":{"href":"https://github.com/lenazh/scheduler/pull/11#discussion_r35829727"},"pull_request":{"href":"https://api.github.com/repos/lenazh/scheduler/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/lenazh/scheduler/pulls/11","id":41188553,"html_url":"https://github.com/lenazh/scheduler/pull/11","diff_url":"https://github.com/lenazh/scheduler/pull/11.diff","patch_url":"https://github.com/lenazh/scheduler/pull/11.patch","issue_url":"https://api.github.com/repos/lenazh/scheduler/issues/11","number":11,"state":"open","locked":false,"title":"Frontend refactoring","user":{"login":"lenazh","id":10641698,"avatar_url":"https://avatars.githubusercontent.com/u/10641698?v=3","gravatar_id":"","url":"https://api.github.com/users/lenazh","html_url":"https://github.com/lenazh","followers_url":"https://api.github.com/users/lenazh/followers","following_url":"https://api.github.com/users/lenazh/following{/other_user}","gists_url":"https://api.github.com/users/lenazh/gists{/gist_id}","starred_url":"https://api.github.com/users/lenazh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenazh/subscriptions","organizations_url":"https://api.github.com/users/lenazh/orgs","repos_url":"https://api.github.com/users/lenazh/repos","events_url":"https://api.github.com/users/lenazh/events{/privacy}","received_events_url":"https://api.github.com/users/lenazh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-30T00:53:54Z","updated_at":"2015-07-30T01:01:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75d4258ab2ab206ca138ae87602a3225a2cd23cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lenazh/scheduler/pulls/11/commits","review_comments_url":"https://api.github.com/repos/lenazh/scheduler/pulls/11/comments","review_comment_url":"https://api.github.com/repos/lenazh/scheduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lenazh/scheduler/issues/11/comments","statuses_url":"https://api.github.com/repos/lenazh/scheduler/statuses/bbaa088e7f5753f2bcbd9f66051d91e1b70bcb28","head":{"label":"lenazh:frontend_refactoring","ref":"frontend_refactoring","sha":"bbaa088e7f5753f2bcbd9f66051d91e1b70bcb28","user":{"login":"lenazh","id":10641698,"avatar_url":"https://avatars.githubusercontent.com/u/10641698?v=3","gravatar_id":"","url":"https://api.github.com/users/lenazh","html_url":"https://github.com/lenazh","followers_url":"https://api.github.com/users/lenazh/followers","following_url":"https://api.github.com/users/lenazh/following{/other_user}","gists_url":"https://api.github.com/users/lenazh/gists{/gist_id}","starred_url":"https://api.github.com/users/lenazh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenazh/subscriptions","organizations_url":"https://api.github.com/users/lenazh/orgs","repos_url":"https://api.github.com/users/lenazh/repos","events_url":"https://api.github.com/users/lenazh/events{/privacy}","received_events_url":"https://api.github.com/users/lenazh/received_events","type":"User","site_admin":false},"repo":{"id":36823152,"name":"scheduler","full_name":"lenazh/scheduler","owner":{"login":"lenazh","id":10641698,"avatar_url":"https://avatars.githubusercontent.com/u/10641698?v=3","gravatar_id":"","url":"https://api.github.com/users/lenazh","html_url":"https://github.com/lenazh","followers_url":"https://api.github.com/users/lenazh/followers","following_url":"https://api.github.com/users/lenazh/following{/other_user}","gists_url":"https://api.github.com/users/lenazh/gists{/gist_id}","starred_url":"https://api.github.com/users/lenazh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenazh/subscriptions","organizations_url":"https://api.github.com/users/lenazh/orgs","repos_url":"https://api.github.com/users/lenazh/repos","events_url":"https://api.github.com/users/lenazh/events{/privacy}","received_events_url":"https://api.github.com/users/lenazh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lenazh/scheduler","description":"","fork":false,"url":"https://api.github.com/repos/lenazh/scheduler","forks_url":"https://api.github.com/repos/lenazh/scheduler/forks","keys_url":"https://api.github.com/repos/lenazh/scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lenazh/scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lenazh/scheduler/teams","hooks_url":"https://api.github.com/repos/lenazh/scheduler/hooks","issue_events_url":"https://api.github.com/repos/lenazh/scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/lenazh/scheduler/events","assignees_url":"https://api.github.com/repos/lenazh/scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/lenazh/scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/lenazh/scheduler/tags","blobs_url":"https://api.github.com/repos/lenazh/scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lenazh/scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lenazh/scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/lenazh/scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lenazh/scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/lenazh/scheduler/languages","stargazers_url":"https://api.github.com/repos/lenazh/scheduler/stargazers","contributors_url":"https://api.github.com/repos/lenazh/scheduler/contributors","subscribers_url":"https://api.github.com/repos/lenazh/scheduler/subscribers","subscription_url":"https://api.github.com/repos/lenazh/scheduler/subscription","commits_url":"https://api.github.com/repos/lenazh/scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/lenazh/scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/lenazh/scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/lenazh/scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/lenazh/scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/lenazh/scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lenazh/scheduler/merges","archive_url":"https://api.github.com/repos/lenazh/scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lenazh/scheduler/downloads","issues_url":"https://api.github.com/repos/lenazh/scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/lenazh/scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/lenazh/scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/lenazh/scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lenazh/scheduler/labels{/name}","releases_url":"https://api.github.com/repos/lenazh/scheduler/releases{/id}","created_at":"2015-06-03T18:42:28Z","updated_at":"2015-06-03T20:10:41Z","pushed_at":"2015-07-30T01:01:00Z","git_url":"git://github.com/lenazh/scheduler.git","ssh_url":"git@github.com:lenazh/scheduler.git","clone_url":"https://github.com/lenazh/scheduler.git","svn_url":"https://github.com/lenazh/scheduler","homepage":null,"size":592,"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":"lenazh:master","ref":"master","sha":"f77781a3cb80a1c2cea9440016779ad8409f0514","user":{"login":"lenazh","id":10641698,"avatar_url":"https://avatars.githubusercontent.com/u/10641698?v=3","gravatar_id":"","url":"https://api.github.com/users/lenazh","html_url":"https://github.com/lenazh","followers_url":"https://api.github.com/users/lenazh/followers","following_url":"https://api.github.com/users/lenazh/following{/other_user}","gists_url":"https://api.github.com/users/lenazh/gists{/gist_id}","starred_url":"https://api.github.com/users/lenazh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenazh/subscriptions","organizations_url":"https://api.github.com/users/lenazh/orgs","repos_url":"https://api.github.com/users/lenazh/repos","events_url":"https://api.github.com/users/lenazh/events{/privacy}","received_events_url":"https://api.github.com/users/lenazh/received_events","type":"User","site_admin":false},"repo":{"id":36823152,"name":"scheduler","full_name":"lenazh/scheduler","owner":{"login":"lenazh","id":10641698,"avatar_url":"https://avatars.githubusercontent.com/u/10641698?v=3","gravatar_id":"","url":"https://api.github.com/users/lenazh","html_url":"https://github.com/lenazh","followers_url":"https://api.github.com/users/lenazh/followers","following_url":"https://api.github.com/users/lenazh/following{/other_user}","gists_url":"https://api.github.com/users/lenazh/gists{/gist_id}","starred_url":"https://api.github.com/users/lenazh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenazh/subscriptions","organizations_url":"https://api.github.com/users/lenazh/orgs","repos_url":"https://api.github.com/users/lenazh/repos","events_url":"https://api.github.com/users/lenazh/events{/privacy}","received_events_url":"https://api.github.com/users/lenazh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lenazh/scheduler","description":"","fork":false,"url":"https://api.github.com/repos/lenazh/scheduler","forks_url":"https://api.github.com/repos/lenazh/scheduler/forks","keys_url":"https://api.github.com/repos/lenazh/scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lenazh/scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lenazh/scheduler/teams","hooks_url":"https://api.github.com/repos/lenazh/scheduler/hooks","issue_events_url":"https://api.github.com/repos/lenazh/scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/lenazh/scheduler/events","assignees_url":"https://api.github.com/repos/lenazh/scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/lenazh/scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/lenazh/scheduler/tags","blobs_url":"https://api.github.com/repos/lenazh/scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lenazh/scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lenazh/scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/lenazh/scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lenazh/scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/lenazh/scheduler/languages","stargazers_url":"https://api.github.com/repos/lenazh/scheduler/stargazers","contributors_url":"https://api.github.com/repos/lenazh/scheduler/contributors","subscribers_url":"https://api.github.com/repos/lenazh/scheduler/subscribers","subscription_url":"https://api.github.com/repos/lenazh/scheduler/subscription","commits_url":"https://api.github.com/repos/lenazh/scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/lenazh/scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/lenazh/scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/lenazh/scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/lenazh/scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/lenazh/scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lenazh/scheduler/merges","archive_url":"https://api.github.com/repos/lenazh/scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lenazh/scheduler/downloads","issues_url":"https://api.github.com/repos/lenazh/scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/lenazh/scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/lenazh/scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/lenazh/scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lenazh/scheduler/labels{/name}","releases_url":"https://api.github.com/repos/lenazh/scheduler/releases{/id}","created_at":"2015-06-03T18:42:28Z","updated_at":"2015-06-03T20:10:41Z","pushed_at":"2015-07-30T01:01:00Z","git_url":"git://github.com/lenazh/scheduler.git","ssh_url":"git@github.com:lenazh/scheduler.git","clone_url":"https://github.com/lenazh/scheduler.git","svn_url":"https://github.com/lenazh/scheduler","homepage":null,"size":592,"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/lenazh/scheduler/pulls/11"},"html":{"href":"https://github.com/lenazh/scheduler/pull/11"},"issue":{"href":"https://api.github.com/repos/lenazh/scheduler/issues/11"},"comments":{"href":"https://api.github.com/repos/lenazh/scheduler/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/lenazh/scheduler/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/lenazh/scheduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lenazh/scheduler/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/lenazh/scheduler/statuses/bbaa088e7f5753f2bcbd9f66051d91e1b70bcb28"}}}}