{"action":"created","comment":{"url":"https://api.github.com/repos/stronglifters/surface/pulls/comments/44859892","id":44859892,"diff_hunk":"@@ -22,4 +22,34 @@\n     association :program\n     name { FFaker::Internet.user_name }\n   end\n+  factory :email, class: OpenStruct do\n+    to [{\n+      full: 'to_user@email.com',\n+      email: 'to_user@email.com',\n+      token: 'to_user',\n+      host: 'email.com',\n+      name: nil\n+    }]\n+    from({\n+      token: 'from_user',\n+      host: 'email.com',\n+      email: 'from_email@email.com',\n+      full: 'From User <from_user@email.com>',\n+      name: 'From User'\n+    })\n+    subject 'email subject'\n+    body 'Hello!'\n+    attachments {[]}\n+\n+    trait :with_attachment do\n+      attachments {[\n+        ActionDispatch::Http::UploadedFile.new({\n+          filename: 'spreadsheet-stronglifts.csv',\n+          type: 'text/plain',","path":"spec/factories.rb","position":27,"original_position":27,"commit_id":"5e9afd38e8c9f2b8a37921f808cd1df60d024d54","original_commit_id":"5e9afd38e8c9f2b8a37921f808cd1df60d024d54","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-11-14T15:44:33Z","updated_at":"2015-11-14T15:44:33Z","html_url":"https://github.com/stronglifters/surface/pull/20#discussion_r44859892","pull_request_url":"https://api.github.com/repos/stronglifters/surface/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/stronglifters/surface/pulls/comments/44859892"},"html":{"href":"https://github.com/stronglifters/surface/pull/20#discussion_r44859892"},"pull_request":{"href":"https://api.github.com/repos/stronglifters/surface/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/stronglifters/surface/pulls/20","id":50725825,"html_url":"https://github.com/stronglifters/surface/pull/20","diff_url":"https://github.com/stronglifters/surface/pull/20.diff","patch_url":"https://github.com/stronglifters/surface/pull/20.patch","issue_url":"https://api.github.com/repos/stronglifters/surface/issues/20","number":20,"state":"open","locked":false,"title":"Process csv exports from email attachment.","user":{"login":"mokhan","id":80475,"avatar_url":"https://avatars.githubusercontent.com/u/80475?v=3","gravatar_id":"","url":"https://api.github.com/users/mokhan","html_url":"https://github.com/mokhan","followers_url":"https://api.github.com/users/mokhan/followers","following_url":"https://api.github.com/users/mokhan/following{/other_user}","gists_url":"https://api.github.com/users/mokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhan/subscriptions","organizations_url":"https://api.github.com/users/mokhan/orgs","repos_url":"https://api.github.com/users/mokhan/repos","events_url":"https://api.github.com/users/mokhan/events{/privacy}","received_events_url":"https://api.github.com/users/mokhan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-14T15:44:29Z","updated_at":"2015-11-14T15:44:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12c00147972be221c970258b63cb32644a02c94e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stronglifters/surface/pulls/20/commits","review_comments_url":"https://api.github.com/repos/stronglifters/surface/pulls/20/comments","review_comment_url":"https://api.github.com/repos/stronglifters/surface/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stronglifters/surface/issues/20/comments","statuses_url":"https://api.github.com/repos/stronglifters/surface/statuses/5e9afd38e8c9f2b8a37921f808cd1df60d024d54","head":{"label":"mokhan:csv-processing","ref":"csv-processing","sha":"5e9afd38e8c9f2b8a37921f808cd1df60d024d54","user":{"login":"mokhan","id":80475,"avatar_url":"https://avatars.githubusercontent.com/u/80475?v=3","gravatar_id":"","url":"https://api.github.com/users/mokhan","html_url":"https://github.com/mokhan","followers_url":"https://api.github.com/users/mokhan/followers","following_url":"https://api.github.com/users/mokhan/following{/other_user}","gists_url":"https://api.github.com/users/mokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhan/subscriptions","organizations_url":"https://api.github.com/users/mokhan/orgs","repos_url":"https://api.github.com/users/mokhan/repos","events_url":"https://api.github.com/users/mokhan/events{/privacy}","received_events_url":"https://api.github.com/users/mokhan/received_events","type":"User","site_admin":false},"repo":{"id":36050566,"name":"surface","full_name":"mokhan/surface","owner":{"login":"mokhan","id":80475,"avatar_url":"https://avatars.githubusercontent.com/u/80475?v=3","gravatar_id":"","url":"https://api.github.com/users/mokhan","html_url":"https://github.com/mokhan","followers_url":"https://api.github.com/users/mokhan/followers","following_url":"https://api.github.com/users/mokhan/following{/other_user}","gists_url":"https://api.github.com/users/mokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhan/subscriptions","organizations_url":"https://api.github.com/users/mokhan/orgs","repos_url":"https://api.github.com/users/mokhan/repos","events_url":"https://api.github.com/users/mokhan/events{/privacy}","received_events_url":"https://api.github.com/users/mokhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mokhan/surface","description":"","fork":true,"url":"https://api.github.com/repos/mokhan/surface","forks_url":"https://api.github.com/repos/mokhan/surface/forks","keys_url":"https://api.github.com/repos/mokhan/surface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mokhan/surface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mokhan/surface/teams","hooks_url":"https://api.github.com/repos/mokhan/surface/hooks","issue_events_url":"https://api.github.com/repos/mokhan/surface/issues/events{/number}","events_url":"https://api.github.com/repos/mokhan/surface/events","assignees_url":"https://api.github.com/repos/mokhan/surface/assignees{/user}","branches_url":"https://api.github.com/repos/mokhan/surface/branches{/branch}","tags_url":"https://api.github.com/repos/mokhan/surface/tags","blobs_url":"https://api.github.com/repos/mokhan/surface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mokhan/surface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mokhan/surface/git/refs{/sha}","trees_url":"https://api.github.com/repos/mokhan/surface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mokhan/surface/statuses/{sha}","languages_url":"https://api.github.com/repos/mokhan/surface/languages","stargazers_url":"https://api.github.com/repos/mokhan/surface/stargazers","contributors_url":"https://api.github.com/repos/mokhan/surface/contributors","subscribers_url":"https://api.github.com/repos/mokhan/surface/subscribers","subscription_url":"https://api.github.com/repos/mokhan/surface/subscription","commits_url":"https://api.github.com/repos/mokhan/surface/commits{/sha}","git_commits_url":"https://api.github.com/repos/mokhan/surface/git/commits{/sha}","comments_url":"https://api.github.com/repos/mokhan/surface/comments{/number}","issue_comment_url":"https://api.github.com/repos/mokhan/surface/issues/comments{/number}","contents_url":"https://api.github.com/repos/mokhan/surface/contents/{+path}","compare_url":"https://api.github.com/repos/mokhan/surface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mokhan/surface/merges","archive_url":"https://api.github.com/repos/mokhan/surface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mokhan/surface/downloads","issues_url":"https://api.github.com/repos/mokhan/surface/issues{/number}","pulls_url":"https://api.github.com/repos/mokhan/surface/pulls{/number}","milestones_url":"https://api.github.com/repos/mokhan/surface/milestones{/number}","notifications_url":"https://api.github.com/repos/mokhan/surface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mokhan/surface/labels{/name}","releases_url":"https://api.github.com/repos/mokhan/surface/releases{/id}","created_at":"2015-05-22T03:35:52Z","updated_at":"2015-05-22T03:35:53Z","pushed_at":"2015-11-14T15:44:01Z","git_url":"git://github.com/mokhan/surface.git","ssh_url":"git@github.com:mokhan/surface.git","clone_url":"https://github.com/mokhan/surface.git","svn_url":"https://github.com/mokhan/surface","homepage":null,"size":935,"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":"stronglifters:master","ref":"master","sha":"ece2e28220bb3937eeec658f5eba7c4dbeac115f","user":{"login":"stronglifters","id":12377766,"avatar_url":"https://avatars.githubusercontent.com/u/12377766?v=3","gravatar_id":"","url":"https://api.github.com/users/stronglifters","html_url":"https://github.com/stronglifters","followers_url":"https://api.github.com/users/stronglifters/followers","following_url":"https://api.github.com/users/stronglifters/following{/other_user}","gists_url":"https://api.github.com/users/stronglifters/gists{/gist_id}","starred_url":"https://api.github.com/users/stronglifters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stronglifters/subscriptions","organizations_url":"https://api.github.com/users/stronglifters/orgs","repos_url":"https://api.github.com/users/stronglifters/repos","events_url":"https://api.github.com/users/stronglifters/events{/privacy}","received_events_url":"https://api.github.com/users/stronglifters/received_events","type":"Organization","site_admin":false},"repo":{"id":35834041,"name":"surface","full_name":"stronglifters/surface","owner":{"login":"stronglifters","id":12377766,"avatar_url":"https://avatars.githubusercontent.com/u/12377766?v=3","gravatar_id":"","url":"https://api.github.com/users/stronglifters","html_url":"https://github.com/stronglifters","followers_url":"https://api.github.com/users/stronglifters/followers","following_url":"https://api.github.com/users/stronglifters/following{/other_user}","gists_url":"https://api.github.com/users/stronglifters/gists{/gist_id}","starred_url":"https://api.github.com/users/stronglifters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stronglifters/subscriptions","organizations_url":"https://api.github.com/users/stronglifters/orgs","repos_url":"https://api.github.com/users/stronglifters/repos","events_url":"https://api.github.com/users/stronglifters/events{/privacy}","received_events_url":"https://api.github.com/users/stronglifters/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stronglifters/surface","description":"","fork":false,"url":"https://api.github.com/repos/stronglifters/surface","forks_url":"https://api.github.com/repos/stronglifters/surface/forks","keys_url":"https://api.github.com/repos/stronglifters/surface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stronglifters/surface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stronglifters/surface/teams","hooks_url":"https://api.github.com/repos/stronglifters/surface/hooks","issue_events_url":"https://api.github.com/repos/stronglifters/surface/issues/events{/number}","events_url":"https://api.github.com/repos/stronglifters/surface/events","assignees_url":"https://api.github.com/repos/stronglifters/surface/assignees{/user}","branches_url":"https://api.github.com/repos/stronglifters/surface/branches{/branch}","tags_url":"https://api.github.com/repos/stronglifters/surface/tags","blobs_url":"https://api.github.com/repos/stronglifters/surface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stronglifters/surface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stronglifters/surface/git/refs{/sha}","trees_url":"https://api.github.com/repos/stronglifters/surface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stronglifters/surface/statuses/{sha}","languages_url":"https://api.github.com/repos/stronglifters/surface/languages","stargazers_url":"https://api.github.com/repos/stronglifters/surface/stargazers","contributors_url":"https://api.github.com/repos/stronglifters/surface/contributors","subscribers_url":"https://api.github.com/repos/stronglifters/surface/subscribers","subscription_url":"https://api.github.com/repos/stronglifters/surface/subscription","commits_url":"https://api.github.com/repos/stronglifters/surface/commits{/sha}","git_commits_url":"https://api.github.com/repos/stronglifters/surface/git/commits{/sha}","comments_url":"https://api.github.com/repos/stronglifters/surface/comments{/number}","issue_comment_url":"https://api.github.com/repos/stronglifters/surface/issues/comments{/number}","contents_url":"https://api.github.com/repos/stronglifters/surface/contents/{+path}","compare_url":"https://api.github.com/repos/stronglifters/surface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stronglifters/surface/merges","archive_url":"https://api.github.com/repos/stronglifters/surface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stronglifters/surface/downloads","issues_url":"https://api.github.com/repos/stronglifters/surface/issues{/number}","pulls_url":"https://api.github.com/repos/stronglifters/surface/pulls{/number}","milestones_url":"https://api.github.com/repos/stronglifters/surface/milestones{/number}","notifications_url":"https://api.github.com/repos/stronglifters/surface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stronglifters/surface/labels{/name}","releases_url":"https://api.github.com/repos/stronglifters/surface/releases{/id}","created_at":"2015-05-18T18:07:10Z","updated_at":"2015-07-25T21:55:31Z","pushed_at":"2015-11-14T15:44:29Z","git_url":"git://github.com/stronglifters/surface.git","ssh_url":"git@github.com:stronglifters/surface.git","clone_url":"https://github.com/stronglifters/surface.git","svn_url":"https://github.com/stronglifters/surface","homepage":"https://www.stronglifters.com","size":1069,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stronglifters/surface/pulls/20"},"html":{"href":"https://github.com/stronglifters/surface/pull/20"},"issue":{"href":"https://api.github.com/repos/stronglifters/surface/issues/20"},"comments":{"href":"https://api.github.com/repos/stronglifters/surface/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/stronglifters/surface/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/stronglifters/surface/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stronglifters/surface/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/stronglifters/surface/statuses/5e9afd38e8c9f2b8a37921f808cd1df60d024d54"}}}}