{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/comments/31755517","id":31755517,"diff_hunk":"@@ -0,0 +1,51 @@\n+// Inspired by and modified from http://railsapps.github.io/rails-google-analytics.html\n+\n+GoogleAnalytics = (function() {\n+  function GoogleAnalytics() {}\n+\n+  GoogleAnalytics.load = function() {\n+    var firstScript, ga;\n+    window._gaq = [];\n+    GoogleAnalytics.analyticsId = GoogleAnalytics.getAnalyticsId();\n+    window._gaq.push([\"_setAccount\", GoogleAnalytics.analyticsId]);\n+    ga = document.createElement(\"script\");\n+    ga.type = \"text/javascript\";\n+    ga.async = true;\n+    ga.src = (\"https:\" === document.location.protocol ? \"https://ssl\" : \"http://www\") + \".google-analytics.com/ga.js\";\n+    firstScript = document.getElementsByTagName(\"script\")[0];\n+    firstScript.parentNode.insertBefore(ga, firstScript);\n+  };\n+\n+  GoogleAnalytics.trackPageview = function(url) {\n+    if (!GoogleAnalytics.isLocalRequest()) {\n+      if (url) {\n+        window._gaq.push([\"_trackPageview\", url]);\n+      } else {\n+        window._gaq.push([\"_trackPageview\"]);\n+      }\n+      return window._gaq.push([\"_trackPageLoadTime\"]);\n+    }\n+  };\n+\n+  GoogleAnalytics.isLocalRequest = function() {\n+    return GoogleAnalytics.documentDomainIncludes(\"local\");\n+  };\n+\n+  GoogleAnalytics.documentDomainIncludes = function(str) {\n+    return document.domain.indexOf(str) !== -1;\n+  };\n+\n+  GoogleAnalytics.getAnalyticsId = function() {\n+    return $(\"[data-analytics-id]\").data('analytics-id');\n+  };\n+\n+  return GoogleAnalytics;\n+\n+})();\n+\n+$(document).on('ready page:load', function(){","path":"app/assets/javascripts/analytics.js","position":46,"original_position":46,"commit_id":"ec4424d7ee2bd915314dffc955e277100133a569","original_commit_id":"ec4424d7ee2bd915314dffc955e277100133a569","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.","created_at":"2015-06-04T19:20:38Z","updated_at":"2015-06-04T19:20:38Z","html_url":"https://github.com/sul-dlss/sul-requests/pull/167#discussion_r31755517","pull_request_url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/comments/31755517"},"html":{"href":"https://github.com/sul-dlss/sul-requests/pull/167#discussion_r31755517"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167","id":36968076,"html_url":"https://github.com/sul-dlss/sul-requests/pull/167","diff_url":"https://github.com/sul-dlss/sul-requests/pull/167.diff","patch_url":"https://github.com/sul-dlss/sul-requests/pull/167.patch","issue_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues/167","number":167,"state":"open","locked":false,"title":"Add is_it_working and squash plugins","user":{"login":"cbeer","id":111218,"avatar_url":"https://avatars.githubusercontent.com/u/111218?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeer","html_url":"https://github.com/cbeer","followers_url":"https://api.github.com/users/cbeer/followers","following_url":"https://api.github.com/users/cbeer/following{/other_user}","gists_url":"https://api.github.com/users/cbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeer/subscriptions","organizations_url":"https://api.github.com/users/cbeer/orgs","repos_url":"https://api.github.com/users/cbeer/repos","events_url":"https://api.github.com/users/cbeer/events{/privacy}","received_events_url":"https://api.github.com/users/cbeer/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-04T19:14:51Z","updated_at":"2015-06-04T19:20:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7bd4869d4a2254128d2e8ae14c1080149b9e670","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues/167/comments","statuses_url":"https://api.github.com/repos/sul-dlss/sul-requests/statuses/ec4424d7ee2bd915314dffc955e277100133a569","head":{"label":"sul-dlss:monitoring","ref":"monitoring","sha":"ec4424d7ee2bd915314dffc955e277100133a569","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":33213527,"name":"sul-requests","full_name":"sul-dlss/sul-requests","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/sul-requests","description":"Rails application for requesting materials from Stanford University Library","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-requests","forks_url":"https://api.github.com/repos/sul-dlss/sul-requests/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-requests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-requests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-requests/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-requests/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-requests/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-requests/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-requests/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-requests/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-requests/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-requests/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-requests/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-requests/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-requests/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-requests/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-requests/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-requests/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-requests/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-requests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-requests/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-requests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-requests/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-requests/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-requests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-requests/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-requests/releases{/id}","created_at":"2015-03-31T22:27:27Z","updated_at":"2015-05-08T19:12:58Z","pushed_at":"2015-06-04T19:20:25Z","git_url":"git://github.com/sul-dlss/sul-requests.git","ssh_url":"git@github.com:sul-dlss/sul-requests.git","clone_url":"https://github.com/sul-dlss/sul-requests.git","svn_url":"https://github.com/sul-dlss/sul-requests","homepage":null,"size":3723,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":2,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"0d7ae4eb677b4a1403ffaf063bbd96a97faee02a","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":33213527,"name":"sul-requests","full_name":"sul-dlss/sul-requests","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/sul-requests","description":"Rails application for requesting materials from Stanford University Library","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-requests","forks_url":"https://api.github.com/repos/sul-dlss/sul-requests/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-requests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-requests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-requests/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-requests/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-requests/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-requests/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-requests/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-requests/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-requests/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-requests/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-requests/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-requests/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-requests/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-requests/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-requests/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-requests/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-requests/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-requests/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-requests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-requests/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-requests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-requests/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-requests/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-requests/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-requests/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-requests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-requests/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-requests/releases{/id}","created_at":"2015-03-31T22:27:27Z","updated_at":"2015-05-08T19:12:58Z","pushed_at":"2015-06-04T19:20:25Z","git_url":"git://github.com/sul-dlss/sul-requests.git","ssh_url":"git@github.com:sul-dlss/sul-requests.git","clone_url":"https://github.com/sul-dlss/sul-requests.git","svn_url":"https://github.com/sul-dlss/sul-requests","homepage":null,"size":3723,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167"},"html":{"href":"https://github.com/sul-dlss/sul-requests/pull/167"},"issue":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/issues/167"},"comments":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/sul-requests/statuses/ec4424d7ee2bd915314dffc955e277100133a569"}}}}