{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments/33887866","id":33887866,"diff_hunk":"@@ -0,0 +1,2324 @@\n+// swagger-ui.js\n+// version 2.0.24\n+$(function() {\n+\n+\t// Helper function for vertically aligning DOM elements\n+\t// http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/\n+\t$.fn.vAlign = function() {\n+\t\treturn this.each(function(i){\n+\t\tvar ah = $(this).height();\n+\t\tvar ph = $(this).parent().height();\n+\t\tvar mh = (ph - ah) / 2;\n+\t\t$(this).css('margin-top', mh);\n+\t\t});\n+\t};\n+\n+\t$.fn.stretchFormtasticInputWidthToParent = function() {\n+\t\treturn this.each(function(i){\n+\t\tvar p_width = $(this).closest(\"form\").innerWidth();\n+\t\tvar p_padding = parseInt($(this).closest(\"form\").css('padding-left') ,10) + parseInt($(this).closest(\"form\").css('padding-right'), 10);\n+\t\tvar this_padding = parseInt($(this).css('padding-left'), 10) + parseInt($(this).css('padding-right'), 10);\n+\t\t$(this).css('width', p_width - p_padding - this_padding);\n+\t\t});\n+\t};\n+\n+\t$('form.formtastic li.string input, form.formtastic textarea').stretchFormtasticInputWidthToParent();\n+\n+\t// Vertically center these paragraphs\n+\t// Parent may need a min-height for this to work..\n+\t$('ul.downplayed li div.content p').vAlign();\n+\n+\t// When a sandbox form is submitted..\n+\t$(\"form.sandbox\").submit(function(){\n+\n+\t\tvar error_free = true;\n+\n+\t\t// Cycle through the forms required inputs\n+ \t\t$(this).find(\"input.required\").each(function() {\n+\n+\t\t\t// Remove any existing error styles from the input\n+\t\t\t$(this).removeClass('error');\n+\n+\t\t\t// Tack the error style on if the input is empty..\n+\t\t\tif ($(this).val() == '') {\n+\t\t\t\t$(this).addClass('error');\n+\t\t\t\t$(this).wiggle();\n+\t\t\t\terror_free = false;\n+\t\t\t}\n+\n+\t\t});\n+\n+\t\treturn error_free;\n+\t});\n+\n+});\n+\n+function clippyCopiedCallback(a) {\n+  $('#api_key_copied').fadeIn().delay(1000).fadeOut();\n+\n+  // var b = $(\"#clippy_tooltip_\" + a);\n+  // b.length != 0 && (b.attr(\"title\", \"copied!\").trigger(\"tipsy.reload\"), setTimeout(function() {\n+  //   b.attr(\"title\", \"copy to clipboard\")\n+  // },\n+  // 500))\n+}\n+\n+// Logging function that accounts for browsers that don't have window.console\n+log = function(){\n+  log.history = log.history || [];\n+  log.history.push(arguments);\n+  if(this.console){\n+    console.log( Array.prototype.slice.call(arguments)[0] );\n+  }\n+};\n+\n+// Handle browsers that do console incorrectly (IE9 and below, see http://stackoverflow.com/a/5539378/7913)\n+if (Function.prototype.bind && console && typeof console.log == \"object\") {\n+    [\n+      \"log\",\"info\",\"warn\",\"error\",\"assert\",\"dir\",\"clear\",\"profile\",\"profileEnd\"\n+    ].forEach(function (method) {\n+        console[method] = this.bind(console[method], console);\n+    }, Function.prototype.call);\n+}\n+\n+var Docs = {\n+\n+\tshebang: function() {\n+\n+\t\t// If shebang has an operation nickname in it..\n+\t\t// e.g. /docs/#!/words/get_search\n+\t\tvar fragments = $.param.fragment().split('/');\n+\t\tfragments.shift(); // get rid of the bang\n+\n+\t\tswitch (fragments.length) {\n+\t\t\tcase 1:\n+\t\t\t\t// Expand all operations for the resource and scroll to it\n+\t\t\t\tlog('shebang resource:' + fragments[0]);\n+\t\t\t\tvar dom_id = 'resource_' + fragments[0];\n+\n+\t\t\t\tDocs.expandEndpointListForResource(fragments[0]);\n+\t\t\t\t$(\"#\"+dom_id).slideto({highlight: false});\n+\t\t\t\tbreak;\n+\t\t\tcase 2:\n+\t\t\t\t// Refer to the endpoint DOM element, e.g. #words_get_search\n+\t\t\t\tlog('shebang endpoint: ' + fragments.join('_'));\n+\n+        // Expand Resource\n+        Docs.expandEndpointListForResource(fragments[0]);\n+        $(\"#\"+dom_id).slideto({highlight: false});","path":"lib/assets/javascripts/swagger-ui.js","position":108,"original_position":108,"commit_id":"1c8223726017c44234d84ac7e19d3b8ced9a2aeb","original_commit_id":"1c8223726017c44234d84ac7e19d3b8ced9a2aeb","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":"Mixed double and single quotes.<br>Identifier 'dom_id' is not in camel case.","created_at":"2015-07-04T14:31:44Z","updated_at":"2015-07-04T14:31:44Z","html_url":"https://github.com/evercam/evercam-admin/pull/5#discussion_r33887866","pull_request_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments/33887866"},"html":{"href":"https://github.com/evercam/evercam-admin/pull/5#discussion_r33887866"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-admin/pulls/5","id":39208519,"html_url":"https://github.com/evercam/evercam-admin/pull/5","diff_url":"https://github.com/evercam/evercam-admin/pull/5.diff","patch_url":"https://github.com/evercam/evercam-admin/pull/5.patch","issue_url":"https://api.github.com/repos/evercam/evercam-admin/issues/5","number":5,"state":"open","locked":false,"title":"Added authentication and prepared for deployment","user":{"login":"pbrudny","id":29052,"avatar_url":"https://avatars.githubusercontent.com/u/29052?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrudny","html_url":"https://github.com/pbrudny","followers_url":"https://api.github.com/users/pbrudny/followers","following_url":"https://api.github.com/users/pbrudny/following{/other_user}","gists_url":"https://api.github.com/users/pbrudny/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrudny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrudny/subscriptions","organizations_url":"https://api.github.com/users/pbrudny/orgs","repos_url":"https://api.github.com/users/pbrudny/repos","events_url":"https://api.github.com/users/pbrudny/events{/privacy}","received_events_url":"https://api.github.com/users/pbrudny/received_events","type":"User","site_admin":false},"body":"* Added Devise authentication\r\n* Added seeds\r\n* Modified assets\r\n","created_at":"2015-07-04T14:30:29Z","updated_at":"2015-07-04T14:31:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"599f994128543c1d8be7c92205cd11daf2d459d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/5/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/5/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-admin/issues/5/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-admin/statuses/1c8223726017c44234d84ac7e19d3b8ced9a2aeb","head":{"label":"pbrudny:master","ref":"master","sha":"1c8223726017c44234d84ac7e19d3b8ced9a2aeb","user":{"login":"pbrudny","id":29052,"avatar_url":"https://avatars.githubusercontent.com/u/29052?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrudny","html_url":"https://github.com/pbrudny","followers_url":"https://api.github.com/users/pbrudny/followers","following_url":"https://api.github.com/users/pbrudny/following{/other_user}","gists_url":"https://api.github.com/users/pbrudny/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrudny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrudny/subscriptions","organizations_url":"https://api.github.com/users/pbrudny/orgs","repos_url":"https://api.github.com/users/pbrudny/repos","events_url":"https://api.github.com/users/pbrudny/events{/privacy}","received_events_url":"https://api.github.com/users/pbrudny/received_events","type":"User","site_admin":false},"repo":{"id":38536419,"name":"evercam-admin","full_name":"pbrudny/evercam-admin","owner":{"login":"pbrudny","id":29052,"avatar_url":"https://avatars.githubusercontent.com/u/29052?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrudny","html_url":"https://github.com/pbrudny","followers_url":"https://api.github.com/users/pbrudny/followers","following_url":"https://api.github.com/users/pbrudny/following{/other_user}","gists_url":"https://api.github.com/users/pbrudny/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrudny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrudny/subscriptions","organizations_url":"https://api.github.com/users/pbrudny/orgs","repos_url":"https://api.github.com/users/pbrudny/repos","events_url":"https://api.github.com/users/pbrudny/events{/privacy}","received_events_url":"https://api.github.com/users/pbrudny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pbrudny/evercam-admin","description":"Rails Application for Admin Area for User & Camera Management","fork":true,"url":"https://api.github.com/repos/pbrudny/evercam-admin","forks_url":"https://api.github.com/repos/pbrudny/evercam-admin/forks","keys_url":"https://api.github.com/repos/pbrudny/evercam-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbrudny/evercam-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbrudny/evercam-admin/teams","hooks_url":"https://api.github.com/repos/pbrudny/evercam-admin/hooks","issue_events_url":"https://api.github.com/repos/pbrudny/evercam-admin/issues/events{/number}","events_url":"https://api.github.com/repos/pbrudny/evercam-admin/events","assignees_url":"https://api.github.com/repos/pbrudny/evercam-admin/assignees{/user}","branches_url":"https://api.github.com/repos/pbrudny/evercam-admin/branches{/branch}","tags_url":"https://api.github.com/repos/pbrudny/evercam-admin/tags","blobs_url":"https://api.github.com/repos/pbrudny/evercam-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbrudny/evercam-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbrudny/evercam-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbrudny/evercam-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbrudny/evercam-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/pbrudny/evercam-admin/languages","stargazers_url":"https://api.github.com/repos/pbrudny/evercam-admin/stargazers","contributors_url":"https://api.github.com/repos/pbrudny/evercam-admin/contributors","subscribers_url":"https://api.github.com/repos/pbrudny/evercam-admin/subscribers","subscription_url":"https://api.github.com/repos/pbrudny/evercam-admin/subscription","commits_url":"https://api.github.com/repos/pbrudny/evercam-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbrudny/evercam-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbrudny/evercam-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbrudny/evercam-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbrudny/evercam-admin/contents/{+path}","compare_url":"https://api.github.com/repos/pbrudny/evercam-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbrudny/evercam-admin/merges","archive_url":"https://api.github.com/repos/pbrudny/evercam-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbrudny/evercam-admin/downloads","issues_url":"https://api.github.com/repos/pbrudny/evercam-admin/issues{/number}","pulls_url":"https://api.github.com/repos/pbrudny/evercam-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/pbrudny/evercam-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/pbrudny/evercam-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbrudny/evercam-admin/labels{/name}","releases_url":"https://api.github.com/repos/pbrudny/evercam-admin/releases{/id}","created_at":"2015-07-04T14:26:04Z","updated_at":"2015-07-04T14:26:05Z","pushed_at":"2015-07-04T14:28:32Z","git_url":"git://github.com/pbrudny/evercam-admin.git","ssh_url":"git@github.com:pbrudny/evercam-admin.git","clone_url":"https://github.com/pbrudny/evercam-admin.git","svn_url":"https://github.com/pbrudny/evercam-admin","homepage":null,"size":2282,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"b646482eb263667e071c841b24222302c58a655c","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":38099607,"name":"evercam-admin","full_name":"evercam/evercam-admin","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-admin","description":"Rails Application for Admin Area for User & Camera Management","fork":false,"url":"https://api.github.com/repos/evercam/evercam-admin","forks_url":"https://api.github.com/repos/evercam/evercam-admin/forks","keys_url":"https://api.github.com/repos/evercam/evercam-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-admin/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-admin/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-admin/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-admin/events","assignees_url":"https://api.github.com/repos/evercam/evercam-admin/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-admin/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-admin/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-admin/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-admin/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-admin/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-admin/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-admin/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-admin/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-admin/merges","archive_url":"https://api.github.com/repos/evercam/evercam-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-admin/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-admin/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-admin/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-admin/releases{/id}","created_at":"2015-06-26T08:22:15Z","updated_at":"2015-06-26T13:30:08Z","pushed_at":"2015-07-04T14:30:29Z","git_url":"git://github.com/evercam/evercam-admin.git","ssh_url":"git@github.com:evercam/evercam-admin.git","clone_url":"https://github.com/evercam/evercam-admin.git","svn_url":"https://github.com/evercam/evercam-admin","homepage":null,"size":2282,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/5"},"html":{"href":"https://github.com/evercam/evercam-admin/pull/5"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-admin/issues/5"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-admin/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-admin/statuses/1c8223726017c44234d84ac7e19d3b8ced9a2aeb"}}}}