{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments/58261424","id":58261424,"diff_hunk":"@@ -101,98 +101,96 @@ def self.supported_types\n \n       private\n \n-      ##\n-      # Creates an embargo message to be displayed, customized for stanford\n-      # only embargoed items\n-      # @return [String]\n-      def embargo_message\n-        message = ['Access is restricted', pretty_embargo_date]\n-        if @purl_object.stanford_only_unrestricted?\n-          message[0] << ' to Stanford-affiliated patrons'\n+        ##\n+        # Creates an embargo message to be displayed, customized for stanford\n+        # only embargoed items\n+        # @return [String]\n+        def embargo_message\n+          message = ['Access is restricted', pretty_embargo_date]\n+          message[0] << ' to Stanford-affiliated patrons' if @purl_object.stanford_only_unrestricted?\n+          message.compact.join(' until ')\n         end\n-        message.compact.join(' until ')\n-      end\n \n-      ##\n-      # Creates a pretty date for display\n-      # @return [String] date in dd-mon-year format\n-      def pretty_embargo_date\n-        sul_pretty_date(@purl_object.embargo_release_date)\n-      end\n+        ##\n+        # Creates a pretty date for display\n+        # @return [String] date in dd-mon-year format\n+        def pretty_embargo_date","path":"lib/embed/viewer/file.rb","position":33,"original_position":33,"commit_id":"e29bbba63e4b2824ecacdf997fca53ea7c5f13b0","original_commit_id":"e29bbba63e4b2824ecacdf997fca53ea7c5f13b0","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.","created_at":"2016-04-01T20:16:57Z","updated_at":"2016-04-01T20:16:57Z","html_url":"https://github.com/sul-dlss/sul-embed/pull/528#discussion_r58261424","pull_request_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments/58261424"},"html":{"href":"https://github.com/sul-dlss/sul-embed/pull/528#discussion_r58261424"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528","id":64999240,"html_url":"https://github.com/sul-dlss/sul-embed/pull/528","diff_url":"https://github.com/sul-dlss/sul-embed/pull/528.diff","patch_url":"https://github.com/sul-dlss/sul-embed/pull/528.patch","issue_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/528","number":528,"state":"open","locked":false,"title":"Install and configure DLSS Cops","user":{"login":"jkeck","id":96776,"avatar_url":"https://avatars.githubusercontent.com/u/96776?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeck","html_url":"https://github.com/jkeck","followers_url":"https://api.github.com/users/jkeck/followers","following_url":"https://api.github.com/users/jkeck/following{/other_user}","gists_url":"https://api.github.com/users/jkeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeck/subscriptions","organizations_url":"https://api.github.com/users/jkeck/orgs","repos_url":"https://api.github.com/users/jkeck/repos","events_url":"https://api.github.com/users/jkeck/events{/privacy}","received_events_url":"https://api.github.com/users/jkeck/received_events","type":"User","site_admin":false},"body":"There are commits that include running the autocorrector as well as some non-functional fixes that could not be addressed simply via autocorrecting.\r\n\r\nThis PR also changes the CI build to run rubocop.\r\n\r\nCloses #515","created_at":"2016-04-01T20:16:44Z","updated_at":"2016-04-01T20:16:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80622dbae786fb45bf63282af5061da16307c576","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/528/comments","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/e29bbba63e4b2824ecacdf997fca53ea7c5f13b0","head":{"label":"sul-dlss:515-dlss-cops","ref":"515-dlss-cops","sha":"e29bbba63e4b2824ecacdf997fca53ea7c5f13b0","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":24868135,"name":"sul-embed","full_name":"sul-dlss/sul-embed","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-embed","description":"An oEmbed Service for Stanford University Libraries","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-embed","forks_url":"https://api.github.com/repos/sul-dlss/sul-embed/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-embed/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-embed/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-embed/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-embed/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-embed/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-embed/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-embed/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-embed/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-embed/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-embed/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-embed/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-embed/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-embed/releases{/id}","deployments_url":"https://api.github.com/repos/sul-dlss/sul-embed/deployments","created_at":"2014-10-06T22:54:10Z","updated_at":"2016-02-23T01:27:29Z","pushed_at":"2016-04-01T20:16:44Z","git_url":"git://github.com/sul-dlss/sul-embed.git","ssh_url":"git@github.com:sul-dlss/sul-embed.git","clone_url":"https://github.com/sul-dlss/sul-embed.git","svn_url":"https://github.com/sul-dlss/sul-embed","homepage":null,"size":1204,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":72,"forks":0,"open_issues":72,"watchers":6,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"8afd6d1a8c78ddb377105002f6d92ad7ad5f0882","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":24868135,"name":"sul-embed","full_name":"sul-dlss/sul-embed","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-embed","description":"An oEmbed Service for Stanford University Libraries","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-embed","forks_url":"https://api.github.com/repos/sul-dlss/sul-embed/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-embed/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-embed/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-embed/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-embed/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-embed/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-embed/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-embed/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-embed/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-embed/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-embed/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-embed/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-embed/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-embed/releases{/id}","deployments_url":"https://api.github.com/repos/sul-dlss/sul-embed/deployments","created_at":"2014-10-06T22:54:10Z","updated_at":"2016-02-23T01:27:29Z","pushed_at":"2016-04-01T20:16:44Z","git_url":"git://github.com/sul-dlss/sul-embed.git","ssh_url":"git@github.com:sul-dlss/sul-embed.git","clone_url":"https://github.com/sul-dlss/sul-embed.git","svn_url":"https://github.com/sul-dlss/sul-embed","homepage":null,"size":1204,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":72,"forks":0,"open_issues":72,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528"},"html":{"href":"https://github.com/sul-dlss/sul-embed/pull/528"},"issue":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/issues/528"},"comments":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/e29bbba63e4b2824ecacdf997fca53ea7c5f13b0"}}}}