{"action":"created","comment":{"url":"https://api.github.com/repos/openmcac/basechurch/pulls/comments/30662509","id":30662509,"diff_hunk":"@@ -0,0 +1,15 @@\n+require 'rails_helper'\n+\n+describe RandomFilename do\n+  before { allow(SecureRandom).to receive(:uuid).and_return('uuid') }\n+\n+  describe \".for_file_type\" do\n+    subject { RandomFilename.new(file_type).generate }\n+\n+    context \"when file type is image/jpeg\" do\n+      let(:file_type) { 'image/jpeg' }","path":"spec/test_app/app/lib/random_filename_spec.rb","position":10,"original_position":10,"commit_id":"dad9de7b98e99e9a417db3bc2ee78e0189abfd4d","original_commit_id":"dad9de7b98e99e9a417db3bc2ee78e0189abfd4d","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-05-20T00:34:58Z","updated_at":"2015-05-20T00:34:58Z","html_url":"https://github.com/openmcac/basechurch/pull/25#discussion_r30662509","pull_request_url":"https://api.github.com/repos/openmcac/basechurch/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/openmcac/basechurch/pulls/comments/30662509"},"html":{"href":"https://github.com/openmcac/basechurch/pull/25#discussion_r30662509"},"pull_request":{"href":"https://api.github.com/repos/openmcac/basechurch/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/openmcac/basechurch/pulls/25","id":35390449,"html_url":"https://github.com/openmcac/basechurch/pull/25","diff_url":"https://github.com/openmcac/basechurch/pull/25.diff","patch_url":"https://github.com/openmcac/basechurch/pull/25.patch","issue_url":"https://api.github.com/repos/openmcac/basechurch/issues/25","number":25,"state":"open","locked":false,"title":"Create an endpoint to sign S3 uploads","user":{"login":"achan","id":549222,"avatar_url":"https://avatars.githubusercontent.com/u/549222?v=3","gravatar_id":"","url":"https://api.github.com/users/achan","html_url":"https://github.com/achan","followers_url":"https://api.github.com/users/achan/followers","following_url":"https://api.github.com/users/achan/following{/other_user}","gists_url":"https://api.github.com/users/achan/gists{/gist_id}","starred_url":"https://api.github.com/users/achan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achan/subscriptions","organizations_url":"https://api.github.com/users/achan/orgs","repos_url":"https://api.github.com/users/achan/repos","events_url":"https://api.github.com/users/achan/events{/privacy}","received_events_url":"https://api.github.com/users/achan/received_events","type":"User","site_admin":false},"body":"https://github.com/benefitcloud/ember-uploader/wiki/S3-Server-Setup","created_at":"2015-05-14T03:04:50Z","updated_at":"2015-05-20T00:34:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"681e600e76eca51264d1d36ece0e06877f06f902","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmcac/basechurch/pulls/25/commits","review_comments_url":"https://api.github.com/repos/openmcac/basechurch/pulls/25/comments","review_comment_url":"https://api.github.com/repos/openmcac/basechurch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmcac/basechurch/issues/25/comments","statuses_url":"https://api.github.com/repos/openmcac/basechurch/statuses/dad9de7b98e99e9a417db3bc2ee78e0189abfd4d","head":{"label":"openmcac:ac_s3_upload_signing","ref":"ac_s3_upload_signing","sha":"dad9de7b98e99e9a417db3bc2ee78e0189abfd4d","user":{"login":"openmcac","id":9523304,"avatar_url":"https://avatars.githubusercontent.com/u/9523304?v=3","gravatar_id":"","url":"https://api.github.com/users/openmcac","html_url":"https://github.com/openmcac","followers_url":"https://api.github.com/users/openmcac/followers","following_url":"https://api.github.com/users/openmcac/following{/other_user}","gists_url":"https://api.github.com/users/openmcac/gists{/gist_id}","starred_url":"https://api.github.com/users/openmcac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmcac/subscriptions","organizations_url":"https://api.github.com/users/openmcac/orgs","repos_url":"https://api.github.com/users/openmcac/repos","events_url":"https://api.github.com/users/openmcac/events{/privacy}","received_events_url":"https://api.github.com/users/openmcac/received_events","type":"Organization","site_admin":false},"repo":{"id":26100750,"name":"basechurch","full_name":"openmcac/basechurch","owner":{"login":"openmcac","id":9523304,"avatar_url":"https://avatars.githubusercontent.com/u/9523304?v=3","gravatar_id":"","url":"https://api.github.com/users/openmcac","html_url":"https://github.com/openmcac","followers_url":"https://api.github.com/users/openmcac/followers","following_url":"https://api.github.com/users/openmcac/following{/other_user}","gists_url":"https://api.github.com/users/openmcac/gists{/gist_id}","starred_url":"https://api.github.com/users/openmcac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmcac/subscriptions","organizations_url":"https://api.github.com/users/openmcac/orgs","repos_url":"https://api.github.com/users/openmcac/repos","events_url":"https://api.github.com/users/openmcac/events{/privacy}","received_events_url":"https://api.github.com/users/openmcac/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmcac/basechurch","description":"A mountable Rails engine to power church administration.","fork":false,"url":"https://api.github.com/repos/openmcac/basechurch","forks_url":"https://api.github.com/repos/openmcac/basechurch/forks","keys_url":"https://api.github.com/repos/openmcac/basechurch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmcac/basechurch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmcac/basechurch/teams","hooks_url":"https://api.github.com/repos/openmcac/basechurch/hooks","issue_events_url":"https://api.github.com/repos/openmcac/basechurch/issues/events{/number}","events_url":"https://api.github.com/repos/openmcac/basechurch/events","assignees_url":"https://api.github.com/repos/openmcac/basechurch/assignees{/user}","branches_url":"https://api.github.com/repos/openmcac/basechurch/branches{/branch}","tags_url":"https://api.github.com/repos/openmcac/basechurch/tags","blobs_url":"https://api.github.com/repos/openmcac/basechurch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmcac/basechurch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmcac/basechurch/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmcac/basechurch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmcac/basechurch/statuses/{sha}","languages_url":"https://api.github.com/repos/openmcac/basechurch/languages","stargazers_url":"https://api.github.com/repos/openmcac/basechurch/stargazers","contributors_url":"https://api.github.com/repos/openmcac/basechurch/contributors","subscribers_url":"https://api.github.com/repos/openmcac/basechurch/subscribers","subscription_url":"https://api.github.com/repos/openmcac/basechurch/subscription","commits_url":"https://api.github.com/repos/openmcac/basechurch/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmcac/basechurch/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmcac/basechurch/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmcac/basechurch/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmcac/basechurch/contents/{+path}","compare_url":"https://api.github.com/repos/openmcac/basechurch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmcac/basechurch/merges","archive_url":"https://api.github.com/repos/openmcac/basechurch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmcac/basechurch/downloads","issues_url":"https://api.github.com/repos/openmcac/basechurch/issues{/number}","pulls_url":"https://api.github.com/repos/openmcac/basechurch/pulls{/number}","milestones_url":"https://api.github.com/repos/openmcac/basechurch/milestones{/number}","notifications_url":"https://api.github.com/repos/openmcac/basechurch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmcac/basechurch/labels{/name}","releases_url":"https://api.github.com/repos/openmcac/basechurch/releases{/id}","created_at":"2014-11-03T02:30:12Z","updated_at":"2015-05-07T00:52:09Z","pushed_at":"2015-05-20T00:34:48Z","git_url":"git://github.com/openmcac/basechurch.git","ssh_url":"git@github.com:openmcac/basechurch.git","clone_url":"https://github.com/openmcac/basechurch.git","svn_url":"https://github.com/openmcac/basechurch","homepage":"","size":1047,"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":"openmcac:master","ref":"master","sha":"dcbe1f4d22ad7b0571b865dc54181c56ffb2aa5c","user":{"login":"openmcac","id":9523304,"avatar_url":"https://avatars.githubusercontent.com/u/9523304?v=3","gravatar_id":"","url":"https://api.github.com/users/openmcac","html_url":"https://github.com/openmcac","followers_url":"https://api.github.com/users/openmcac/followers","following_url":"https://api.github.com/users/openmcac/following{/other_user}","gists_url":"https://api.github.com/users/openmcac/gists{/gist_id}","starred_url":"https://api.github.com/users/openmcac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmcac/subscriptions","organizations_url":"https://api.github.com/users/openmcac/orgs","repos_url":"https://api.github.com/users/openmcac/repos","events_url":"https://api.github.com/users/openmcac/events{/privacy}","received_events_url":"https://api.github.com/users/openmcac/received_events","type":"Organization","site_admin":false},"repo":{"id":26100750,"name":"basechurch","full_name":"openmcac/basechurch","owner":{"login":"openmcac","id":9523304,"avatar_url":"https://avatars.githubusercontent.com/u/9523304?v=3","gravatar_id":"","url":"https://api.github.com/users/openmcac","html_url":"https://github.com/openmcac","followers_url":"https://api.github.com/users/openmcac/followers","following_url":"https://api.github.com/users/openmcac/following{/other_user}","gists_url":"https://api.github.com/users/openmcac/gists{/gist_id}","starred_url":"https://api.github.com/users/openmcac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmcac/subscriptions","organizations_url":"https://api.github.com/users/openmcac/orgs","repos_url":"https://api.github.com/users/openmcac/repos","events_url":"https://api.github.com/users/openmcac/events{/privacy}","received_events_url":"https://api.github.com/users/openmcac/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmcac/basechurch","description":"A mountable Rails engine to power church administration.","fork":false,"url":"https://api.github.com/repos/openmcac/basechurch","forks_url":"https://api.github.com/repos/openmcac/basechurch/forks","keys_url":"https://api.github.com/repos/openmcac/basechurch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmcac/basechurch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmcac/basechurch/teams","hooks_url":"https://api.github.com/repos/openmcac/basechurch/hooks","issue_events_url":"https://api.github.com/repos/openmcac/basechurch/issues/events{/number}","events_url":"https://api.github.com/repos/openmcac/basechurch/events","assignees_url":"https://api.github.com/repos/openmcac/basechurch/assignees{/user}","branches_url":"https://api.github.com/repos/openmcac/basechurch/branches{/branch}","tags_url":"https://api.github.com/repos/openmcac/basechurch/tags","blobs_url":"https://api.github.com/repos/openmcac/basechurch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmcac/basechurch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmcac/basechurch/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmcac/basechurch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmcac/basechurch/statuses/{sha}","languages_url":"https://api.github.com/repos/openmcac/basechurch/languages","stargazers_url":"https://api.github.com/repos/openmcac/basechurch/stargazers","contributors_url":"https://api.github.com/repos/openmcac/basechurch/contributors","subscribers_url":"https://api.github.com/repos/openmcac/basechurch/subscribers","subscription_url":"https://api.github.com/repos/openmcac/basechurch/subscription","commits_url":"https://api.github.com/repos/openmcac/basechurch/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmcac/basechurch/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmcac/basechurch/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmcac/basechurch/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmcac/basechurch/contents/{+path}","compare_url":"https://api.github.com/repos/openmcac/basechurch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmcac/basechurch/merges","archive_url":"https://api.github.com/repos/openmcac/basechurch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmcac/basechurch/downloads","issues_url":"https://api.github.com/repos/openmcac/basechurch/issues{/number}","pulls_url":"https://api.github.com/repos/openmcac/basechurch/pulls{/number}","milestones_url":"https://api.github.com/repos/openmcac/basechurch/milestones{/number}","notifications_url":"https://api.github.com/repos/openmcac/basechurch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmcac/basechurch/labels{/name}","releases_url":"https://api.github.com/repos/openmcac/basechurch/releases{/id}","created_at":"2014-11-03T02:30:12Z","updated_at":"2015-05-07T00:52:09Z","pushed_at":"2015-05-20T00:34:48Z","git_url":"git://github.com/openmcac/basechurch.git","ssh_url":"git@github.com:openmcac/basechurch.git","clone_url":"https://github.com/openmcac/basechurch.git","svn_url":"https://github.com/openmcac/basechurch","homepage":"","size":1047,"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/openmcac/basechurch/pulls/25"},"html":{"href":"https://github.com/openmcac/basechurch/pull/25"},"issue":{"href":"https://api.github.com/repos/openmcac/basechurch/issues/25"},"comments":{"href":"https://api.github.com/repos/openmcac/basechurch/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/openmcac/basechurch/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/openmcac/basechurch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmcac/basechurch/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/openmcac/basechurch/statuses/dad9de7b98e99e9a417db3bc2ee78e0189abfd4d"}}}}