{"action":"created","comment":{"url":"https://api.github.com/repos/mcfiredrill/forttree/pulls/comments/48131619","id":48131619,"diff_hunk":"@@ -0,0 +1,145 @@\n+/*!\n+ * JavaScript Cookie v2.0.4\n+ * https://github.com/js-cookie/js-cookie\n+ *\n+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n+ * Released under the MIT license\n+ */\n+(function (factory) {\n+\tif (typeof define === 'function' && define.amd) {\n+\t\tdefine(factory);\n+\t} else if (typeof exports === 'object') {\n+\t\tmodule.exports = factory();\n+\t} else {\n+\t\tvar _OldCookies = window.Cookies;\n+\t\tvar api = window.Cookies = factory();\n+\t\tapi.noConflict = function () {\n+\t\t\twindow.Cookies = _OldCookies;\n+\t\t\treturn api;\n+\t\t};\n+\t}\n+}(function () {\n+\tfunction extend () {\n+\t\tvar i = 0;\n+\t\tvar result = {};\n+\t\tfor (; i < arguments.length; i++) {\n+\t\t\tvar attributes = arguments[ i ];\n+\t\t\tfor (var key in attributes) {\n+\t\t\t\tresult[key] = attributes[key];\n+\t\t\t}\n+\t\t}\n+\t\treturn result;\n+\t}\n+\n+\tfunction init (converter) {\n+\t\tfunction api (key, value, attributes) {\n+\t\t\tvar result;\n+\n+\t\t\t// Write\n+\n+\t\t\tif (arguments.length > 1) {\n+\t\t\t\tattributes = extend({\n+\t\t\t\t\tpath: '/'\n+\t\t\t\t}, api.defaults, attributes);\n+\n+\t\t\t\tif (typeof attributes.expires === 'number') {\n+\t\t\t\t\tvar expires = new Date();\n+\t\t\t\t\texpires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);\n+\t\t\t\t\tattributes.expires = expires;\n+\t\t\t\t}\n+\n+\t\t\t\ttry {\n+\t\t\t\t\tresult = JSON.stringify(value);\n+\t\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n+\t\t\t\t\t\tvalue = result;\n+\t\t\t\t\t}\n+\t\t\t\t} catch (e) {}\n+\n+\t\t\t\tif (!converter.write) {\n+\t\t\t\t\tvalue = encodeURIComponent(String(value))\n+\t\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n+\t\t\t\t} else {\n+\t\t\t\t\tvalue = converter.write(value, key);\n+\t\t\t\t}\n+\n+\t\t\t\tkey = encodeURIComponent(String(key));\n+\t\t\t\tkey = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);\n+\t\t\t\tkey = key.replace(/[\\(\\)]/g, escape);\n+\n+\t\t\t\treturn (document.cookie = [\n+\t\t\t\t\tkey, '=', value,\n+\t\t\t\t\tattributes.expires && '; expires=' + attributes.expires.toUTCString(), // use expires attribute, max-age is not supported by IE\n+\t\t\t\t\tattributes.path    && '; path=' + attributes.path,\n+\t\t\t\t\tattributes.domain  && '; domain=' + attributes.domain,\n+\t\t\t\t\tattributes.secure ? '; secure' : ''\n+\t\t\t\t].join(''));\n+\t\t\t}\n+\n+\t\t\t// Read\n+\n+\t\t\tif (!key) {\n+\t\t\t\tresult = {};\n+\t\t\t}\n+\n+\t\t\t// To prevent the for loop in the first place assign an empty array\n+\t\t\t// in case there are no cookies at all. Also prevents odd result when","path":"app/assets/javascripts/js-cookie/js.cookie.js","position":85,"original_position":85,"commit_id":"3e6214ba4658a6ebc5f452feb2b3e4bcb2eff815","original_commit_id":"3e6214ba4658a6ebc5f452feb2b3e4bcb2eff815","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":"Line is too long.","created_at":"2015-12-21T10:09:43Z","updated_at":"2015-12-21T10:09:43Z","html_url":"https://github.com/mcfiredrill/forttree/pull/48#discussion_r48131619","pull_request_url":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/mcfiredrill/forttree/pulls/comments/48131619"},"html":{"href":"https://github.com/mcfiredrill/forttree/pull/48#discussion_r48131619"},"pull_request":{"href":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48","id":54239250,"html_url":"https://github.com/mcfiredrill/forttree/pull/48","diff_url":"https://github.com/mcfiredrill/forttree/pull/48.diff","patch_url":"https://github.com/mcfiredrill/forttree/pull/48.patch","issue_url":"https://api.github.com/repos/mcfiredrill/forttree/issues/48","number":48,"state":"open","locked":false,"title":"Switch to js-cookie","user":{"login":"nikolas","id":59292,"avatar_url":"https://avatars.githubusercontent.com/u/59292?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolas","html_url":"https://github.com/nikolas","followers_url":"https://api.github.com/users/nikolas/followers","following_url":"https://api.github.com/users/nikolas/following{/other_user}","gists_url":"https://api.github.com/users/nikolas/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolas/subscriptions","organizations_url":"https://api.github.com/users/nikolas/orgs","repos_url":"https://api.github.com/users/nikolas/repos","events_url":"https://api.github.com/users/nikolas/events{/privacy}","received_events_url":"https://api.github.com/users/nikolas/received_events","type":"User","site_admin":false},"body":"jquery-cookie is deprecated","created_at":"2015-12-21T10:09:38Z","updated_at":"2015-12-21T10:09:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b3c8310f1ed03d1ec469b222744d702b41cff6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48/commits","review_comments_url":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48/comments","review_comment_url":"https://api.github.com/repos/mcfiredrill/forttree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mcfiredrill/forttree/issues/48/comments","statuses_url":"https://api.github.com/repos/mcfiredrill/forttree/statuses/3e6214ba4658a6ebc5f452feb2b3e4bcb2eff815","head":{"label":"nikolas:js-cookie","ref":"js-cookie","sha":"3e6214ba4658a6ebc5f452feb2b3e4bcb2eff815","user":{"login":"nikolas","id":59292,"avatar_url":"https://avatars.githubusercontent.com/u/59292?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolas","html_url":"https://github.com/nikolas","followers_url":"https://api.github.com/users/nikolas/followers","following_url":"https://api.github.com/users/nikolas/following{/other_user}","gists_url":"https://api.github.com/users/nikolas/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolas/subscriptions","organizations_url":"https://api.github.com/users/nikolas/orgs","repos_url":"https://api.github.com/users/nikolas/repos","events_url":"https://api.github.com/users/nikolas/events{/privacy}","received_events_url":"https://api.github.com/users/nikolas/received_events","type":"User","site_admin":false},"repo":{"id":6715728,"name":"forttree","full_name":"nikolas/forttree","owner":{"login":"nikolas","id":59292,"avatar_url":"https://avatars.githubusercontent.com/u/59292?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolas","html_url":"https://github.com/nikolas","followers_url":"https://api.github.com/users/nikolas/followers","following_url":"https://api.github.com/users/nikolas/following{/other_user}","gists_url":"https://api.github.com/users/nikolas/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolas/subscriptions","organizations_url":"https://api.github.com/users/nikolas/orgs","repos_url":"https://api.github.com/users/nikolas/repos","events_url":"https://api.github.com/users/nikolas/events{/privacy}","received_events_url":"https://api.github.com/users/nikolas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikolas/forttree","description":"wakaba/kareha imageboard clone","fork":true,"url":"https://api.github.com/repos/nikolas/forttree","forks_url":"https://api.github.com/repos/nikolas/forttree/forks","keys_url":"https://api.github.com/repos/nikolas/forttree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikolas/forttree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikolas/forttree/teams","hooks_url":"https://api.github.com/repos/nikolas/forttree/hooks","issue_events_url":"https://api.github.com/repos/nikolas/forttree/issues/events{/number}","events_url":"https://api.github.com/repos/nikolas/forttree/events","assignees_url":"https://api.github.com/repos/nikolas/forttree/assignees{/user}","branches_url":"https://api.github.com/repos/nikolas/forttree/branches{/branch}","tags_url":"https://api.github.com/repos/nikolas/forttree/tags","blobs_url":"https://api.github.com/repos/nikolas/forttree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikolas/forttree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikolas/forttree/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikolas/forttree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikolas/forttree/statuses/{sha}","languages_url":"https://api.github.com/repos/nikolas/forttree/languages","stargazers_url":"https://api.github.com/repos/nikolas/forttree/stargazers","contributors_url":"https://api.github.com/repos/nikolas/forttree/contributors","subscribers_url":"https://api.github.com/repos/nikolas/forttree/subscribers","subscription_url":"https://api.github.com/repos/nikolas/forttree/subscription","commits_url":"https://api.github.com/repos/nikolas/forttree/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikolas/forttree/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikolas/forttree/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikolas/forttree/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikolas/forttree/contents/{+path}","compare_url":"https://api.github.com/repos/nikolas/forttree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikolas/forttree/merges","archive_url":"https://api.github.com/repos/nikolas/forttree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikolas/forttree/downloads","issues_url":"https://api.github.com/repos/nikolas/forttree/issues{/number}","pulls_url":"https://api.github.com/repos/nikolas/forttree/pulls{/number}","milestones_url":"https://api.github.com/repos/nikolas/forttree/milestones{/number}","notifications_url":"https://api.github.com/repos/nikolas/forttree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikolas/forttree/labels{/name}","releases_url":"https://api.github.com/repos/nikolas/forttree/releases{/id}","created_at":"2012-11-16T03:10:37Z","updated_at":"2015-05-04T21:04:28Z","pushed_at":"2015-12-21T10:09:13Z","git_url":"git://github.com/nikolas/forttree.git","ssh_url":"git@github.com:nikolas/forttree.git","clone_url":"https://github.com/nikolas/forttree.git","svn_url":"https://github.com/nikolas/forttree","homepage":"","size":4580,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"mcfiredrill:master","ref":"master","sha":"e6114ae3219cd0288740db0f22687500792fb5a9","user":{"login":"mcfiredrill","id":66243,"avatar_url":"https://avatars.githubusercontent.com/u/66243?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfiredrill","html_url":"https://github.com/mcfiredrill","followers_url":"https://api.github.com/users/mcfiredrill/followers","following_url":"https://api.github.com/users/mcfiredrill/following{/other_user}","gists_url":"https://api.github.com/users/mcfiredrill/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfiredrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfiredrill/subscriptions","organizations_url":"https://api.github.com/users/mcfiredrill/orgs","repos_url":"https://api.github.com/users/mcfiredrill/repos","events_url":"https://api.github.com/users/mcfiredrill/events{/privacy}","received_events_url":"https://api.github.com/users/mcfiredrill/received_events","type":"User","site_admin":false},"repo":{"id":1136307,"name":"forttree","full_name":"mcfiredrill/forttree","owner":{"login":"mcfiredrill","id":66243,"avatar_url":"https://avatars.githubusercontent.com/u/66243?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfiredrill","html_url":"https://github.com/mcfiredrill","followers_url":"https://api.github.com/users/mcfiredrill/followers","following_url":"https://api.github.com/users/mcfiredrill/following{/other_user}","gists_url":"https://api.github.com/users/mcfiredrill/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfiredrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfiredrill/subscriptions","organizations_url":"https://api.github.com/users/mcfiredrill/orgs","repos_url":"https://api.github.com/users/mcfiredrill/repos","events_url":"https://api.github.com/users/mcfiredrill/events{/privacy}","received_events_url":"https://api.github.com/users/mcfiredrill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcfiredrill/forttree","description":"wakaba/kareha imageboard clone","fork":false,"url":"https://api.github.com/repos/mcfiredrill/forttree","forks_url":"https://api.github.com/repos/mcfiredrill/forttree/forks","keys_url":"https://api.github.com/repos/mcfiredrill/forttree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcfiredrill/forttree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcfiredrill/forttree/teams","hooks_url":"https://api.github.com/repos/mcfiredrill/forttree/hooks","issue_events_url":"https://api.github.com/repos/mcfiredrill/forttree/issues/events{/number}","events_url":"https://api.github.com/repos/mcfiredrill/forttree/events","assignees_url":"https://api.github.com/repos/mcfiredrill/forttree/assignees{/user}","branches_url":"https://api.github.com/repos/mcfiredrill/forttree/branches{/branch}","tags_url":"https://api.github.com/repos/mcfiredrill/forttree/tags","blobs_url":"https://api.github.com/repos/mcfiredrill/forttree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcfiredrill/forttree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcfiredrill/forttree/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcfiredrill/forttree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcfiredrill/forttree/statuses/{sha}","languages_url":"https://api.github.com/repos/mcfiredrill/forttree/languages","stargazers_url":"https://api.github.com/repos/mcfiredrill/forttree/stargazers","contributors_url":"https://api.github.com/repos/mcfiredrill/forttree/contributors","subscribers_url":"https://api.github.com/repos/mcfiredrill/forttree/subscribers","subscription_url":"https://api.github.com/repos/mcfiredrill/forttree/subscription","commits_url":"https://api.github.com/repos/mcfiredrill/forttree/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcfiredrill/forttree/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcfiredrill/forttree/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcfiredrill/forttree/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcfiredrill/forttree/contents/{+path}","compare_url":"https://api.github.com/repos/mcfiredrill/forttree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcfiredrill/forttree/merges","archive_url":"https://api.github.com/repos/mcfiredrill/forttree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcfiredrill/forttree/downloads","issues_url":"https://api.github.com/repos/mcfiredrill/forttree/issues{/number}","pulls_url":"https://api.github.com/repos/mcfiredrill/forttree/pulls{/number}","milestones_url":"https://api.github.com/repos/mcfiredrill/forttree/milestones{/number}","notifications_url":"https://api.github.com/repos/mcfiredrill/forttree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcfiredrill/forttree/labels{/name}","releases_url":"https://api.github.com/repos/mcfiredrill/forttree/releases{/id}","created_at":"2010-12-03T20:20:33Z","updated_at":"2015-06-05T12:07:41Z","pushed_at":"2015-12-21T10:09:38Z","git_url":"git://github.com/mcfiredrill/forttree.git","ssh_url":"git@github.com:mcfiredrill/forttree.git","clone_url":"https://github.com/mcfiredrill/forttree.git","svn_url":"https://github.com/mcfiredrill/forttree","homepage":"","size":4596,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48"},"html":{"href":"https://github.com/mcfiredrill/forttree/pull/48"},"issue":{"href":"https://api.github.com/repos/mcfiredrill/forttree/issues/48"},"comments":{"href":"https://api.github.com/repos/mcfiredrill/forttree/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/mcfiredrill/forttree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mcfiredrill/forttree/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/mcfiredrill/forttree/statuses/3e6214ba4658a6ebc5f452feb2b3e4bcb2eff815"}}}}