{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/21","id":47690728,"html_url":"https://github.com/spartansystems/atomic_cms/pull/21","diff_url":"https://github.com/spartansystems/atomic_cms/pull/21.diff","patch_url":"https://github.com/spartansystems/atomic_cms/pull/21.patch","issue_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues/21","number":21,"state":"closed","locked":false,"title":"Upload field","user":{"login":"bbrock25","id":2653377,"avatar_url":"https://avatars.githubusercontent.com/u/2653377?v=3","gravatar_id":"","url":"https://api.github.com/users/bbrock25","html_url":"https://github.com/bbrock25","followers_url":"https://api.github.com/users/bbrock25/followers","following_url":"https://api.github.com/users/bbrock25/following{/other_user}","gists_url":"https://api.github.com/users/bbrock25/gists{/gist_id}","starred_url":"https://api.github.com/users/bbrock25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbrock25/subscriptions","organizations_url":"https://api.github.com/users/bbrock25/orgs","repos_url":"https://api.github.com/users/bbrock25/repos","events_url":"https://api.github.com/users/bbrock25/events{/privacy}","received_events_url":"https://api.github.com/users/bbrock25/received_events","type":"User","site_admin":false},"body":"### Why?\r\nWe need inline photo uploading via the CMS.\r\n\r\n### How?\r\n* created a test app for running project specs w/i the project\r\n* created a rails engine for this project (+1 to @Mrjaco12 )\r\n* updated the atomic_cms.js to 1) not be coffeescript and 2) to handle :file fields by posting to '/atomic_cms/media'\r\n* created media and image models, along with database migrations\r\n* created a class to infer media type before creating an instance (media scrubber)\r\n* added a rad cat pic for testing\r\n*  created routes for posting the media\r\n* created a controller ( and specs ) to process the media\r\n\r\n### Side Effects\r\n* new requirements in the gemspec, we now do some limited image processing\r\n* apps now have an additional route\r\n\r\n","created_at":"2015-10-14T17:39:30Z","updated_at":"2015-10-15T14:39:56Z","closed_at":"2015-10-15T14:39:56Z","merged_at":"2015-10-15T14:39:56Z","merge_commit_sha":"f4b81b27e581ce5c078a58bbe713ee79b3be9524","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/21/commits","review_comments_url":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/21/comments","review_comment_url":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues/21/comments","statuses_url":"https://api.github.com/repos/spartansystems/atomic_cms/statuses/a15203c0cb468dce5c3391f473c093fcbddb554d","head":{"label":"spartansystems:upload_field","ref":"upload_field","sha":"a15203c0cb468dce5c3391f473c093fcbddb554d","user":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"repo":{"id":38714698,"name":"atomic_cms","full_name":"spartansystems/atomic_cms","owner":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spartansystems/atomic_cms","description":"CMS for Atomic Asset components","fork":false,"url":"https://api.github.com/repos/spartansystems/atomic_cms","forks_url":"https://api.github.com/repos/spartansystems/atomic_cms/forks","keys_url":"https://api.github.com/repos/spartansystems/atomic_cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spartansystems/atomic_cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spartansystems/atomic_cms/teams","hooks_url":"https://api.github.com/repos/spartansystems/atomic_cms/hooks","issue_events_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues/events{/number}","events_url":"https://api.github.com/repos/spartansystems/atomic_cms/events","assignees_url":"https://api.github.com/repos/spartansystems/atomic_cms/assignees{/user}","branches_url":"https://api.github.com/repos/spartansystems/atomic_cms/branches{/branch}","tags_url":"https://api.github.com/repos/spartansystems/atomic_cms/tags","blobs_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spartansystems/atomic_cms/statuses/{sha}","languages_url":"https://api.github.com/repos/spartansystems/atomic_cms/languages","stargazers_url":"https://api.github.com/repos/spartansystems/atomic_cms/stargazers","contributors_url":"https://api.github.com/repos/spartansystems/atomic_cms/contributors","subscribers_url":"https://api.github.com/repos/spartansystems/atomic_cms/subscribers","subscription_url":"https://api.github.com/repos/spartansystems/atomic_cms/subscription","commits_url":"https://api.github.com/repos/spartansystems/atomic_cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/spartansystems/atomic_cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/spartansystems/atomic_cms/contents/{+path}","compare_url":"https://api.github.com/repos/spartansystems/atomic_cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spartansystems/atomic_cms/merges","archive_url":"https://api.github.com/repos/spartansystems/atomic_cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spartansystems/atomic_cms/downloads","issues_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues{/number}","pulls_url":"https://api.github.com/repos/spartansystems/atomic_cms/pulls{/number}","milestones_url":"https://api.github.com/repos/spartansystems/atomic_cms/milestones{/number}","notifications_url":"https://api.github.com/repos/spartansystems/atomic_cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spartansystems/atomic_cms/labels{/name}","releases_url":"https://api.github.com/repos/spartansystems/atomic_cms/releases{/id}","created_at":"2015-07-07T21:02:52Z","updated_at":"2015-10-09T15:43:32Z","pushed_at":"2015-10-15T14:39:56Z","git_url":"git://github.com/spartansystems/atomic_cms.git","ssh_url":"git@github.com:spartansystems/atomic_cms.git","clone_url":"https://github.com/spartansystems/atomic_cms.git","svn_url":"https://github.com/spartansystems/atomic_cms","homepage":"","size":246,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":14,"forks":2,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"spartansystems:master","ref":"master","sha":"e0575bd3954021ed17753afaf2be4ace442814a7","user":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"repo":{"id":38714698,"name":"atomic_cms","full_name":"spartansystems/atomic_cms","owner":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spartansystems/atomic_cms","description":"CMS for Atomic Asset components","fork":false,"url":"https://api.github.com/repos/spartansystems/atomic_cms","forks_url":"https://api.github.com/repos/spartansystems/atomic_cms/forks","keys_url":"https://api.github.com/repos/spartansystems/atomic_cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spartansystems/atomic_cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spartansystems/atomic_cms/teams","hooks_url":"https://api.github.com/repos/spartansystems/atomic_cms/hooks","issue_events_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues/events{/number}","events_url":"https://api.github.com/repos/spartansystems/atomic_cms/events","assignees_url":"https://api.github.com/repos/spartansystems/atomic_cms/assignees{/user}","branches_url":"https://api.github.com/repos/spartansystems/atomic_cms/branches{/branch}","tags_url":"https://api.github.com/repos/spartansystems/atomic_cms/tags","blobs_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spartansystems/atomic_cms/statuses/{sha}","languages_url":"https://api.github.com/repos/spartansystems/atomic_cms/languages","stargazers_url":"https://api.github.com/repos/spartansystems/atomic_cms/stargazers","contributors_url":"https://api.github.com/repos/spartansystems/atomic_cms/contributors","subscribers_url":"https://api.github.com/repos/spartansystems/atomic_cms/subscribers","subscription_url":"https://api.github.com/repos/spartansystems/atomic_cms/subscription","commits_url":"https://api.github.com/repos/spartansystems/atomic_cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/spartansystems/atomic_cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/spartansystems/atomic_cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/spartansystems/atomic_cms/contents/{+path}","compare_url":"https://api.github.com/repos/spartansystems/atomic_cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spartansystems/atomic_cms/merges","archive_url":"https://api.github.com/repos/spartansystems/atomic_cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spartansystems/atomic_cms/downloads","issues_url":"https://api.github.com/repos/spartansystems/atomic_cms/issues{/number}","pulls_url":"https://api.github.com/repos/spartansystems/atomic_cms/pulls{/number}","milestones_url":"https://api.github.com/repos/spartansystems/atomic_cms/milestones{/number}","notifications_url":"https://api.github.com/repos/spartansystems/atomic_cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spartansystems/atomic_cms/labels{/name}","releases_url":"https://api.github.com/repos/spartansystems/atomic_cms/releases{/id}","created_at":"2015-07-07T21:02:52Z","updated_at":"2015-10-09T15:43:32Z","pushed_at":"2015-10-15T14:39:56Z","git_url":"git://github.com/spartansystems/atomic_cms.git","ssh_url":"git@github.com:spartansystems/atomic_cms.git","clone_url":"https://github.com/spartansystems/atomic_cms.git","svn_url":"https://github.com/spartansystems/atomic_cms","homepage":"","size":246,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":14,"forks":2,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/21"},"html":{"href":"https://github.com/spartansystems/atomic_cms/pull/21"},"issue":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/issues/21"},"comments":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/spartansystems/atomic_cms/statuses/a15203c0cb468dce5c3391f473c093fcbddb554d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Mrjaco12","id":1392509,"avatar_url":"https://avatars.githubusercontent.com/u/1392509?v=3","gravatar_id":"","url":"https://api.github.com/users/Mrjaco12","html_url":"https://github.com/Mrjaco12","followers_url":"https://api.github.com/users/Mrjaco12/followers","following_url":"https://api.github.com/users/Mrjaco12/following{/other_user}","gists_url":"https://api.github.com/users/Mrjaco12/gists{/gist_id}","starred_url":"https://api.github.com/users/Mrjaco12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mrjaco12/subscriptions","organizations_url":"https://api.github.com/users/Mrjaco12/orgs","repos_url":"https://api.github.com/users/Mrjaco12/repos","events_url":"https://api.github.com/users/Mrjaco12/events{/privacy}","received_events_url":"https://api.github.com/users/Mrjaco12/received_events","type":"User","site_admin":false},"comments":4,"review_comments":19,"commits":12,"additions":1304,"deletions":221,"changed_files":63}}