{"action":"created","comment":{"url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/comments/95343539","pull_request_review_id":15893903,"id":95343539,"diff_hunk":"@@ -0,0 +1,51 @@\n+# encoding: utf-8\n+\n+class ImageUploader < 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/image_uploader.rb","position":50,"original_position":50,"commit_id":"d69e4f65055dab5a345ff4a7748f864d244c2039","original_commit_id":"d69e4f65055dab5a345ff4a7748f864d244c2039","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":"2017-01-10T11:13:09Z","updated_at":"2017-01-10T11:13:09Z","html_url":"https://github.com/vpolotskiy/spa_backend/pull/5#discussion_r95343539","pull_request_url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/comments/95343539"},"html":{"href":"https://github.com/vpolotskiy/spa_backend/pull/5#discussion_r95343539"},"pull_request":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5","id":100853531,"html_url":"https://github.com/vpolotskiy/spa_backend/pull/5","diff_url":"https://github.com/vpolotskiy/spa_backend/pull/5.diff","patch_url":"https://github.com/vpolotskiy/spa_backend/pull/5.patch","issue_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/5","number":5,"state":"open","locked":false,"title":"Added searching, sorting and pagination","user":{"login":"vpolotskiy","id":807835,"avatar_url":"https://avatars.githubusercontent.com/u/807835?v=3","gravatar_id":"","url":"https://api.github.com/users/vpolotskiy","html_url":"https://github.com/vpolotskiy","followers_url":"https://api.github.com/users/vpolotskiy/followers","following_url":"https://api.github.com/users/vpolotskiy/following{/other_user}","gists_url":"https://api.github.com/users/vpolotskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vpolotskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpolotskiy/subscriptions","organizations_url":"https://api.github.com/users/vpolotskiy/orgs","repos_url":"https://api.github.com/users/vpolotskiy/repos","events_url":"https://api.github.com/users/vpolotskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vpolotskiy/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-10T11:12:58Z","updated_at":"2017-01-10T11:13:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"149c6f382ed47926576d7d01ee436a86b7f49638","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5/commits","review_comments_url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5/comments","review_comment_url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/5/comments","statuses_url":"https://api.github.com/repos/vpolotskiy/spa_backend/statuses/d69e4f65055dab5a345ff4a7748f864d244c2039","head":{"label":"vpolotskiy:develop","ref":"develop","sha":"d69e4f65055dab5a345ff4a7748f864d244c2039","user":{"login":"vpolotskiy","id":807835,"avatar_url":"https://avatars.githubusercontent.com/u/807835?v=3","gravatar_id":"","url":"https://api.github.com/users/vpolotskiy","html_url":"https://github.com/vpolotskiy","followers_url":"https://api.github.com/users/vpolotskiy/followers","following_url":"https://api.github.com/users/vpolotskiy/following{/other_user}","gists_url":"https://api.github.com/users/vpolotskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vpolotskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpolotskiy/subscriptions","organizations_url":"https://api.github.com/users/vpolotskiy/orgs","repos_url":"https://api.github.com/users/vpolotskiy/repos","events_url":"https://api.github.com/users/vpolotskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vpolotskiy/received_events","type":"User","site_admin":false},"repo":{"id":76814064,"name":"spa_backend","full_name":"vpolotskiy/spa_backend","owner":{"login":"vpolotskiy","id":807835,"avatar_url":"https://avatars.githubusercontent.com/u/807835?v=3","gravatar_id":"","url":"https://api.github.com/users/vpolotskiy","html_url":"https://github.com/vpolotskiy","followers_url":"https://api.github.com/users/vpolotskiy/followers","following_url":"https://api.github.com/users/vpolotskiy/following{/other_user}","gists_url":"https://api.github.com/users/vpolotskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vpolotskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpolotskiy/subscriptions","organizations_url":"https://api.github.com/users/vpolotskiy/orgs","repos_url":"https://api.github.com/users/vpolotskiy/repos","events_url":"https://api.github.com/users/vpolotskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vpolotskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vpolotskiy/spa_backend","description":null,"fork":false,"url":"https://api.github.com/repos/vpolotskiy/spa_backend","forks_url":"https://api.github.com/repos/vpolotskiy/spa_backend/forks","keys_url":"https://api.github.com/repos/vpolotskiy/spa_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vpolotskiy/spa_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vpolotskiy/spa_backend/teams","hooks_url":"https://api.github.com/repos/vpolotskiy/spa_backend/hooks","issue_events_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/events{/number}","events_url":"https://api.github.com/repos/vpolotskiy/spa_backend/events","assignees_url":"https://api.github.com/repos/vpolotskiy/spa_backend/assignees{/user}","branches_url":"https://api.github.com/repos/vpolotskiy/spa_backend/branches{/branch}","tags_url":"https://api.github.com/repos/vpolotskiy/spa_backend/tags","blobs_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vpolotskiy/spa_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/vpolotskiy/spa_backend/languages","stargazers_url":"https://api.github.com/repos/vpolotskiy/spa_backend/stargazers","contributors_url":"https://api.github.com/repos/vpolotskiy/spa_backend/contributors","subscribers_url":"https://api.github.com/repos/vpolotskiy/spa_backend/subscribers","subscription_url":"https://api.github.com/repos/vpolotskiy/spa_backend/subscription","commits_url":"https://api.github.com/repos/vpolotskiy/spa_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/vpolotskiy/spa_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/vpolotskiy/spa_backend/contents/{+path}","compare_url":"https://api.github.com/repos/vpolotskiy/spa_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vpolotskiy/spa_backend/merges","archive_url":"https://api.github.com/repos/vpolotskiy/spa_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vpolotskiy/spa_backend/downloads","issues_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues{/number}","pulls_url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/vpolotskiy/spa_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/vpolotskiy/spa_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vpolotskiy/spa_backend/labels{/name}","releases_url":"https://api.github.com/repos/vpolotskiy/spa_backend/releases{/id}","deployments_url":"https://api.github.com/repos/vpolotskiy/spa_backend/deployments","created_at":"2016-12-19T00:02:32Z","updated_at":"2016-12-19T11:38:45Z","pushed_at":"2017-01-10T11:12:58Z","git_url":"git://github.com/vpolotskiy/spa_backend.git","ssh_url":"git@github.com:vpolotskiy/spa_backend.git","clone_url":"https://github.com/vpolotskiy/spa_backend.git","svn_url":"https://github.com/vpolotskiy/spa_backend","homepage":null,"size":72,"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":"vpolotskiy:master","ref":"master","sha":"2840004dcd9b950a40d2236af44d1b72165f1790","user":{"login":"vpolotskiy","id":807835,"avatar_url":"https://avatars.githubusercontent.com/u/807835?v=3","gravatar_id":"","url":"https://api.github.com/users/vpolotskiy","html_url":"https://github.com/vpolotskiy","followers_url":"https://api.github.com/users/vpolotskiy/followers","following_url":"https://api.github.com/users/vpolotskiy/following{/other_user}","gists_url":"https://api.github.com/users/vpolotskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vpolotskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpolotskiy/subscriptions","organizations_url":"https://api.github.com/users/vpolotskiy/orgs","repos_url":"https://api.github.com/users/vpolotskiy/repos","events_url":"https://api.github.com/users/vpolotskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vpolotskiy/received_events","type":"User","site_admin":false},"repo":{"id":76814064,"name":"spa_backend","full_name":"vpolotskiy/spa_backend","owner":{"login":"vpolotskiy","id":807835,"avatar_url":"https://avatars.githubusercontent.com/u/807835?v=3","gravatar_id":"","url":"https://api.github.com/users/vpolotskiy","html_url":"https://github.com/vpolotskiy","followers_url":"https://api.github.com/users/vpolotskiy/followers","following_url":"https://api.github.com/users/vpolotskiy/following{/other_user}","gists_url":"https://api.github.com/users/vpolotskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vpolotskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpolotskiy/subscriptions","organizations_url":"https://api.github.com/users/vpolotskiy/orgs","repos_url":"https://api.github.com/users/vpolotskiy/repos","events_url":"https://api.github.com/users/vpolotskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vpolotskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vpolotskiy/spa_backend","description":null,"fork":false,"url":"https://api.github.com/repos/vpolotskiy/spa_backend","forks_url":"https://api.github.com/repos/vpolotskiy/spa_backend/forks","keys_url":"https://api.github.com/repos/vpolotskiy/spa_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vpolotskiy/spa_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vpolotskiy/spa_backend/teams","hooks_url":"https://api.github.com/repos/vpolotskiy/spa_backend/hooks","issue_events_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/events{/number}","events_url":"https://api.github.com/repos/vpolotskiy/spa_backend/events","assignees_url":"https://api.github.com/repos/vpolotskiy/spa_backend/assignees{/user}","branches_url":"https://api.github.com/repos/vpolotskiy/spa_backend/branches{/branch}","tags_url":"https://api.github.com/repos/vpolotskiy/spa_backend/tags","blobs_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vpolotskiy/spa_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/vpolotskiy/spa_backend/languages","stargazers_url":"https://api.github.com/repos/vpolotskiy/spa_backend/stargazers","contributors_url":"https://api.github.com/repos/vpolotskiy/spa_backend/contributors","subscribers_url":"https://api.github.com/repos/vpolotskiy/spa_backend/subscribers","subscription_url":"https://api.github.com/repos/vpolotskiy/spa_backend/subscription","commits_url":"https://api.github.com/repos/vpolotskiy/spa_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/vpolotskiy/spa_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/vpolotskiy/spa_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/vpolotskiy/spa_backend/contents/{+path}","compare_url":"https://api.github.com/repos/vpolotskiy/spa_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vpolotskiy/spa_backend/merges","archive_url":"https://api.github.com/repos/vpolotskiy/spa_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vpolotskiy/spa_backend/downloads","issues_url":"https://api.github.com/repos/vpolotskiy/spa_backend/issues{/number}","pulls_url":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/vpolotskiy/spa_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/vpolotskiy/spa_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vpolotskiy/spa_backend/labels{/name}","releases_url":"https://api.github.com/repos/vpolotskiy/spa_backend/releases{/id}","deployments_url":"https://api.github.com/repos/vpolotskiy/spa_backend/deployments","created_at":"2016-12-19T00:02:32Z","updated_at":"2016-12-19T11:38:45Z","pushed_at":"2017-01-10T11:12:58Z","git_url":"git://github.com/vpolotskiy/spa_backend.git","ssh_url":"git@github.com:vpolotskiy/spa_backend.git","clone_url":"https://github.com/vpolotskiy/spa_backend.git","svn_url":"https://github.com/vpolotskiy/spa_backend","homepage":null,"size":72,"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/vpolotskiy/spa_backend/pulls/5"},"html":{"href":"https://github.com/vpolotskiy/spa_backend/pull/5"},"issue":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/5"},"comments":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/vpolotskiy/spa_backend/statuses/d69e4f65055dab5a345ff4a7748f864d244c2039"}}}}
{"actor":{"display_login":"houndci-bot"}}