{"action":"created","comment":{"url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/comments/58639508","id":58639508,"diff_hunk":"@@ -0,0 +1,51 @@\n+# encoding: utf-8\n+\n+class AvatarUploader < CarrierWave::Uploader::Base\n+\n+  # Include RMagick or MiniMagick support:\n+  # include CarrierWave::RMagick\n+  # include CarrierWave::MiniMagick\n+\n+  # Choose what kind of storage to use for this uploader:\n+  storage :file\n+  # storage :fog\n+\n+  # Override the directory where uploaded files will be stored.\n+  # This is a sensible default for uploaders that are meant to be mounted:\n+  def store_dir\n+    \"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}\"\n+  end\n+\n+  # Provide a default URL as a default if there hasn't been a file uploaded:\n+  # def default_url\n+  #   # For Rails 3.1+ asset pipeline compatibility:\n+  #   # ActionController::Base.helpers.asset_path(\"fallback/\" + [version_name, \"default.png\"].compact.join('_'))\n+  #\n+  #   \"/images/fallback/\" + [version_name, \"default.png\"].compact.join('_')\n+  # end\n+\n+  # Process files as they are uploaded:\n+  # process :scale => [200, 300]\n+  #\n+  # def scale(width, height)\n+  #   # do something\n+  # end\n+\n+  # Create different versions of your uploaded files:\n+  # version :thumb do\n+  #   process :resize_to_fit => [50, 50]\n+  # end\n+\n+  # Add a white list of extensions which are allowed to be uploaded.\n+  # For images you might use something like this:\n+  # def extension_white_list\n+  #   %w(jpg jpeg gif png)\n+  # end\n+\n+  # Override the filename of the uploaded files:\n+  # Avoid using model.id or version_name here, see uploader/store.rb for details.\n+  # def filename\n+  #   \"something.jpg\" if original_filename\n+  # end\n+","path":"app/uploaders/avatar_uploader.rb","position":50,"original_position":50,"commit_id":"fbb8a256436aa7444563572c8f84894e985ac644","original_commit_id":"fbb8a256436aa7444563572c8f84894e985ac644","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":"Extra empty line detected at class body end.","created_at":"2016-04-06T01:14:57Z","updated_at":"2016-04-06T01:14:57Z","html_url":"https://github.com/pablo-honeybear/SoTi/pull/6#discussion_r58639508","pull_request_url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/comments/58639508"},"html":{"href":"https://github.com/pablo-honeybear/SoTi/pull/6#discussion_r58639508"},"pull_request":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6","id":65396736,"html_url":"https://github.com/pablo-honeybear/SoTi/pull/6","diff_url":"https://github.com/pablo-honeybear/SoTi/pull/6.diff","patch_url":"https://github.com/pablo-honeybear/SoTi/pull/6.patch","issue_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/6","number":6,"state":"open","locked":false,"title":"user avatar image file with carrierwave","user":{"login":"BureauRep","id":7817255,"avatar_url":"https://avatars.githubusercontent.com/u/7817255?v=3","gravatar_id":"","url":"https://api.github.com/users/BureauRep","html_url":"https://github.com/BureauRep","followers_url":"https://api.github.com/users/BureauRep/followers","following_url":"https://api.github.com/users/BureauRep/following{/other_user}","gists_url":"https://api.github.com/users/BureauRep/gists{/gist_id}","starred_url":"https://api.github.com/users/BureauRep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BureauRep/subscriptions","organizations_url":"https://api.github.com/users/BureauRep/orgs","repos_url":"https://api.github.com/users/BureauRep/repos","events_url":"https://api.github.com/users/BureauRep/events{/privacy}","received_events_url":"https://api.github.com/users/BureauRep/received_events","type":"User","site_admin":false},"body":"This adds:\r\n - an uploader model for image files;\r\n - hound-approved edits to existing user model;\r\n - an additional migration adding an avatar column to the user model.","created_at":"2016-04-06T01:14:54Z","updated_at":"2016-04-06T01:14:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32ab96b25db16b8f70468771f13cb4a13ccf2e40","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6/commits","review_comments_url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6/comments","review_comment_url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/6/comments","statuses_url":"https://api.github.com/repos/pablo-honeybear/SoTi/statuses/fbb8a256436aa7444563572c8f84894e985ac644","head":{"label":"pablo-honeybear:carrier-wave","ref":"carrier-wave","sha":"fbb8a256436aa7444563572c8f84894e985ac644","user":{"login":"pablo-honeybear","id":16494685,"avatar_url":"https://avatars.githubusercontent.com/u/16494685?v=3","gravatar_id":"","url":"https://api.github.com/users/pablo-honeybear","html_url":"https://github.com/pablo-honeybear","followers_url":"https://api.github.com/users/pablo-honeybear/followers","following_url":"https://api.github.com/users/pablo-honeybear/following{/other_user}","gists_url":"https://api.github.com/users/pablo-honeybear/gists{/gist_id}","starred_url":"https://api.github.com/users/pablo-honeybear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablo-honeybear/subscriptions","organizations_url":"https://api.github.com/users/pablo-honeybear/orgs","repos_url":"https://api.github.com/users/pablo-honeybear/repos","events_url":"https://api.github.com/users/pablo-honeybear/events{/privacy}","received_events_url":"https://api.github.com/users/pablo-honeybear/received_events","type":"User","site_admin":false},"repo":{"id":55422922,"name":"SoTi","full_name":"pablo-honeybear/SoTi","owner":{"login":"pablo-honeybear","id":16494685,"avatar_url":"https://avatars.githubusercontent.com/u/16494685?v=3","gravatar_id":"","url":"https://api.github.com/users/pablo-honeybear","html_url":"https://github.com/pablo-honeybear","followers_url":"https://api.github.com/users/pablo-honeybear/followers","following_url":"https://api.github.com/users/pablo-honeybear/following{/other_user}","gists_url":"https://api.github.com/users/pablo-honeybear/gists{/gist_id}","starred_url":"https://api.github.com/users/pablo-honeybear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablo-honeybear/subscriptions","organizations_url":"https://api.github.com/users/pablo-honeybear/orgs","repos_url":"https://api.github.com/users/pablo-honeybear/repos","events_url":"https://api.github.com/users/pablo-honeybear/events{/privacy}","received_events_url":"https://api.github.com/users/pablo-honeybear/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pablo-honeybear/SoTi","description":"A review site for indie/street artists and performers.","fork":false,"url":"https://api.github.com/repos/pablo-honeybear/SoTi","forks_url":"https://api.github.com/repos/pablo-honeybear/SoTi/forks","keys_url":"https://api.github.com/repos/pablo-honeybear/SoTi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pablo-honeybear/SoTi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pablo-honeybear/SoTi/teams","hooks_url":"https://api.github.com/repos/pablo-honeybear/SoTi/hooks","issue_events_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/events{/number}","events_url":"https://api.github.com/repos/pablo-honeybear/SoTi/events","assignees_url":"https://api.github.com/repos/pablo-honeybear/SoTi/assignees{/user}","branches_url":"https://api.github.com/repos/pablo-honeybear/SoTi/branches{/branch}","tags_url":"https://api.github.com/repos/pablo-honeybear/SoTi/tags","blobs_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pablo-honeybear/SoTi/statuses/{sha}","languages_url":"https://api.github.com/repos/pablo-honeybear/SoTi/languages","stargazers_url":"https://api.github.com/repos/pablo-honeybear/SoTi/stargazers","contributors_url":"https://api.github.com/repos/pablo-honeybear/SoTi/contributors","subscribers_url":"https://api.github.com/repos/pablo-honeybear/SoTi/subscribers","subscription_url":"https://api.github.com/repos/pablo-honeybear/SoTi/subscription","commits_url":"https://api.github.com/repos/pablo-honeybear/SoTi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pablo-honeybear/SoTi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pablo-honeybear/SoTi/contents/{+path}","compare_url":"https://api.github.com/repos/pablo-honeybear/SoTi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pablo-honeybear/SoTi/merges","archive_url":"https://api.github.com/repos/pablo-honeybear/SoTi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pablo-honeybear/SoTi/downloads","issues_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues{/number}","pulls_url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls{/number}","milestones_url":"https://api.github.com/repos/pablo-honeybear/SoTi/milestones{/number}","notifications_url":"https://api.github.com/repos/pablo-honeybear/SoTi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pablo-honeybear/SoTi/labels{/name}","releases_url":"https://api.github.com/repos/pablo-honeybear/SoTi/releases{/id}","deployments_url":"https://api.github.com/repos/pablo-honeybear/SoTi/deployments","created_at":"2016-04-04T15:32:32Z","updated_at":"2016-04-04T15:36:36Z","pushed_at":"2016-04-06T01:14:54Z","git_url":"git://github.com/pablo-honeybear/SoTi.git","ssh_url":"git@github.com:pablo-honeybear/SoTi.git","clone_url":"https://github.com/pablo-honeybear/SoTi.git","svn_url":"https://github.com/pablo-honeybear/SoTi","homepage":null,"size":80,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"pablo-honeybear:master","ref":"master","sha":"deaf39a5c91bae2e91bb0e2fb8268da2a8e98b3c","user":{"login":"pablo-honeybear","id":16494685,"avatar_url":"https://avatars.githubusercontent.com/u/16494685?v=3","gravatar_id":"","url":"https://api.github.com/users/pablo-honeybear","html_url":"https://github.com/pablo-honeybear","followers_url":"https://api.github.com/users/pablo-honeybear/followers","following_url":"https://api.github.com/users/pablo-honeybear/following{/other_user}","gists_url":"https://api.github.com/users/pablo-honeybear/gists{/gist_id}","starred_url":"https://api.github.com/users/pablo-honeybear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablo-honeybear/subscriptions","organizations_url":"https://api.github.com/users/pablo-honeybear/orgs","repos_url":"https://api.github.com/users/pablo-honeybear/repos","events_url":"https://api.github.com/users/pablo-honeybear/events{/privacy}","received_events_url":"https://api.github.com/users/pablo-honeybear/received_events","type":"User","site_admin":false},"repo":{"id":55422922,"name":"SoTi","full_name":"pablo-honeybear/SoTi","owner":{"login":"pablo-honeybear","id":16494685,"avatar_url":"https://avatars.githubusercontent.com/u/16494685?v=3","gravatar_id":"","url":"https://api.github.com/users/pablo-honeybear","html_url":"https://github.com/pablo-honeybear","followers_url":"https://api.github.com/users/pablo-honeybear/followers","following_url":"https://api.github.com/users/pablo-honeybear/following{/other_user}","gists_url":"https://api.github.com/users/pablo-honeybear/gists{/gist_id}","starred_url":"https://api.github.com/users/pablo-honeybear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablo-honeybear/subscriptions","organizations_url":"https://api.github.com/users/pablo-honeybear/orgs","repos_url":"https://api.github.com/users/pablo-honeybear/repos","events_url":"https://api.github.com/users/pablo-honeybear/events{/privacy}","received_events_url":"https://api.github.com/users/pablo-honeybear/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pablo-honeybear/SoTi","description":"A review site for indie/street artists and performers.","fork":false,"url":"https://api.github.com/repos/pablo-honeybear/SoTi","forks_url":"https://api.github.com/repos/pablo-honeybear/SoTi/forks","keys_url":"https://api.github.com/repos/pablo-honeybear/SoTi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pablo-honeybear/SoTi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pablo-honeybear/SoTi/teams","hooks_url":"https://api.github.com/repos/pablo-honeybear/SoTi/hooks","issue_events_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/events{/number}","events_url":"https://api.github.com/repos/pablo-honeybear/SoTi/events","assignees_url":"https://api.github.com/repos/pablo-honeybear/SoTi/assignees{/user}","branches_url":"https://api.github.com/repos/pablo-honeybear/SoTi/branches{/branch}","tags_url":"https://api.github.com/repos/pablo-honeybear/SoTi/tags","blobs_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pablo-honeybear/SoTi/statuses/{sha}","languages_url":"https://api.github.com/repos/pablo-honeybear/SoTi/languages","stargazers_url":"https://api.github.com/repos/pablo-honeybear/SoTi/stargazers","contributors_url":"https://api.github.com/repos/pablo-honeybear/SoTi/contributors","subscribers_url":"https://api.github.com/repos/pablo-honeybear/SoTi/subscribers","subscription_url":"https://api.github.com/repos/pablo-honeybear/SoTi/subscription","commits_url":"https://api.github.com/repos/pablo-honeybear/SoTi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pablo-honeybear/SoTi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pablo-honeybear/SoTi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pablo-honeybear/SoTi/contents/{+path}","compare_url":"https://api.github.com/repos/pablo-honeybear/SoTi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pablo-honeybear/SoTi/merges","archive_url":"https://api.github.com/repos/pablo-honeybear/SoTi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pablo-honeybear/SoTi/downloads","issues_url":"https://api.github.com/repos/pablo-honeybear/SoTi/issues{/number}","pulls_url":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls{/number}","milestones_url":"https://api.github.com/repos/pablo-honeybear/SoTi/milestones{/number}","notifications_url":"https://api.github.com/repos/pablo-honeybear/SoTi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pablo-honeybear/SoTi/labels{/name}","releases_url":"https://api.github.com/repos/pablo-honeybear/SoTi/releases{/id}","deployments_url":"https://api.github.com/repos/pablo-honeybear/SoTi/deployments","created_at":"2016-04-04T15:32:32Z","updated_at":"2016-04-04T15:36:36Z","pushed_at":"2016-04-06T01:14:54Z","git_url":"git://github.com/pablo-honeybear/SoTi.git","ssh_url":"git@github.com:pablo-honeybear/SoTi.git","clone_url":"https://github.com/pablo-honeybear/SoTi.git","svn_url":"https://github.com/pablo-honeybear/SoTi","homepage":null,"size":80,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6"},"html":{"href":"https://github.com/pablo-honeybear/SoTi/pull/6"},"issue":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/6"},"comments":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/pablo-honeybear/SoTi/statuses/fbb8a256436aa7444563572c8f84894e985ac644"}}}}