{"action":"created","comment":{"url":"https://api.github.com/repos/rubygems/adoption-center/pulls/comments/35557999","id":35557999,"diff_hunk":"@@ -0,0 +1,21 @@\n+class GemsAdoptionsController < ApplicationController\n+  \n+  def index\n+    @gems_adoptions = GemsAdoption.all\n+  end\n+\n+  def create\n+    @gems_adoption = GemsAdoption.new\n+    @gems_adoption.gem = params[:name]\n+    @gems_adoption.description = params[:info]\n+    @gems_adoption.user_id = current_user.id\n+    @gems_adoption.save\n+    redirect_to gem_path(id: params[:name])\n+  end\n+\n+  def destroy\n+    GemsAdoption.find(params[:id]).destroy","path":"app/controllers/gems_adoptions_controller.rb","position":17,"original_position":17,"commit_id":"5498a1b1712eac51bd953b26d5323d955ec466ba","original_commit_id":"5498a1b1712eac51bd953b26d5323d955ec466ba","user":{"login":"sebasoga","id":720224,"avatar_url":"https://avatars.githubusercontent.com/u/720224?v=3","gravatar_id":"","url":"https://api.github.com/users/sebasoga","html_url":"https://github.com/sebasoga","followers_url":"https://api.github.com/users/sebasoga/followers","following_url":"https://api.github.com/users/sebasoga/following{/other_user}","gists_url":"https://api.github.com/users/sebasoga/gists{/gist_id}","starred_url":"https://api.github.com/users/sebasoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebasoga/subscriptions","organizations_url":"https://api.github.com/users/sebasoga/orgs","repos_url":"https://api.github.com/users/sebasoga/repos","events_url":"https://api.github.com/users/sebasoga/events{/privacy}","received_events_url":"https://api.github.com/users/sebasoga/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2015-07-27T16:47:55Z","updated_at":"2015-07-27T16:47:55Z","html_url":"https://github.com/rubygems/adoption-center/pull/11#discussion_r35557999","pull_request_url":"https://api.github.com/repos/rubygems/adoption-center/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/rubygems/adoption-center/pulls/comments/35557999"},"html":{"href":"https://github.com/rubygems/adoption-center/pull/11#discussion_r35557999"},"pull_request":{"href":"https://api.github.com/repos/rubygems/adoption-center/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/rubygems/adoption-center/pulls/11","id":40904039,"html_url":"https://github.com/rubygems/adoption-center/pull/11","diff_url":"https://github.com/rubygems/adoption-center/pull/11.diff","patch_url":"https://github.com/rubygems/adoption-center/pull/11.patch","issue_url":"https://api.github.com/repos/rubygems/adoption-center/issues/11","number":11,"state":"open","locked":false,"title":"Mark/Unmark gem for adoption. List Gems for adoption","user":{"login":"linatodi","id":6902273,"avatar_url":"https://avatars.githubusercontent.com/u/6902273?v=3","gravatar_id":"","url":"https://api.github.com/users/linatodi","html_url":"https://github.com/linatodi","followers_url":"https://api.github.com/users/linatodi/followers","following_url":"https://api.github.com/users/linatodi/following{/other_user}","gists_url":"https://api.github.com/users/linatodi/gists{/gist_id}","starred_url":"https://api.github.com/users/linatodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linatodi/subscriptions","organizations_url":"https://api.github.com/users/linatodi/orgs","repos_url":"https://api.github.com/users/linatodi/repos","events_url":"https://api.github.com/users/linatodi/events{/privacy}","received_events_url":"https://api.github.com/users/linatodi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-27T13:40:22Z","updated_at":"2015-07-27T16:47:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16c4ebd58ddb363c563b0ceb7b38ef62e598ca4b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rubygems/adoption-center/pulls/11/commits","review_comments_url":"https://api.github.com/repos/rubygems/adoption-center/pulls/11/comments","review_comment_url":"https://api.github.com/repos/rubygems/adoption-center/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubygems/adoption-center/issues/11/comments","statuses_url":"https://api.github.com/repos/rubygems/adoption-center/statuses/5498a1b1712eac51bd953b26d5323d955ec466ba","head":{"label":"rubygems:gems-for-adoption","ref":"gems-for-adoption","sha":"5498a1b1712eac51bd953b26d5323d955ec466ba","user":{"login":"rubygems","id":208761,"avatar_url":"https://avatars.githubusercontent.com/u/208761?v=3","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"repo":{"id":38626456,"name":"adoption-center","full_name":"rubygems/adoption-center","owner":{"login":"rubygems","id":208761,"avatar_url":"https://avatars.githubusercontent.com/u/208761?v=3","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubygems/adoption-center","description":"The RubyGems Adoption Center - RGSoC 2015","fork":false,"url":"https://api.github.com/repos/rubygems/adoption-center","forks_url":"https://api.github.com/repos/rubygems/adoption-center/forks","keys_url":"https://api.github.com/repos/rubygems/adoption-center/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubygems/adoption-center/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubygems/adoption-center/teams","hooks_url":"https://api.github.com/repos/rubygems/adoption-center/hooks","issue_events_url":"https://api.github.com/repos/rubygems/adoption-center/issues/events{/number}","events_url":"https://api.github.com/repos/rubygems/adoption-center/events","assignees_url":"https://api.github.com/repos/rubygems/adoption-center/assignees{/user}","branches_url":"https://api.github.com/repos/rubygems/adoption-center/branches{/branch}","tags_url":"https://api.github.com/repos/rubygems/adoption-center/tags","blobs_url":"https://api.github.com/repos/rubygems/adoption-center/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubygems/adoption-center/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubygems/adoption-center/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubygems/adoption-center/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubygems/adoption-center/statuses/{sha}","languages_url":"https://api.github.com/repos/rubygems/adoption-center/languages","stargazers_url":"https://api.github.com/repos/rubygems/adoption-center/stargazers","contributors_url":"https://api.github.com/repos/rubygems/adoption-center/contributors","subscribers_url":"https://api.github.com/repos/rubygems/adoption-center/subscribers","subscription_url":"https://api.github.com/repos/rubygems/adoption-center/subscription","commits_url":"https://api.github.com/repos/rubygems/adoption-center/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubygems/adoption-center/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubygems/adoption-center/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubygems/adoption-center/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubygems/adoption-center/contents/{+path}","compare_url":"https://api.github.com/repos/rubygems/adoption-center/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubygems/adoption-center/merges","archive_url":"https://api.github.com/repos/rubygems/adoption-center/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubygems/adoption-center/downloads","issues_url":"https://api.github.com/repos/rubygems/adoption-center/issues{/number}","pulls_url":"https://api.github.com/repos/rubygems/adoption-center/pulls{/number}","milestones_url":"https://api.github.com/repos/rubygems/adoption-center/milestones{/number}","notifications_url":"https://api.github.com/repos/rubygems/adoption-center/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubygems/adoption-center/labels{/name}","releases_url":"https://api.github.com/repos/rubygems/adoption-center/releases{/id}","created_at":"2015-07-06T15:04:40Z","updated_at":"2015-07-18T03:42:24Z","pushed_at":"2015-07-27T13:40:24Z","git_url":"git://github.com/rubygems/adoption-center.git","ssh_url":"git@github.com:rubygems/adoption-center.git","clone_url":"https://github.com/rubygems/adoption-center.git","svn_url":"https://github.com/rubygems/adoption-center","homepage":null,"size":544,"stargazers_count":6,"watchers_count":6,"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":6,"default_branch":"master"}},"base":{"label":"rubygems:master","ref":"master","sha":"bd3452a8557420ffff8209d58fcad9bee604780e","user":{"login":"rubygems","id":208761,"avatar_url":"https://avatars.githubusercontent.com/u/208761?v=3","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"repo":{"id":38626456,"name":"adoption-center","full_name":"rubygems/adoption-center","owner":{"login":"rubygems","id":208761,"avatar_url":"https://avatars.githubusercontent.com/u/208761?v=3","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubygems/adoption-center","description":"The RubyGems Adoption Center - RGSoC 2015","fork":false,"url":"https://api.github.com/repos/rubygems/adoption-center","forks_url":"https://api.github.com/repos/rubygems/adoption-center/forks","keys_url":"https://api.github.com/repos/rubygems/adoption-center/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubygems/adoption-center/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubygems/adoption-center/teams","hooks_url":"https://api.github.com/repos/rubygems/adoption-center/hooks","issue_events_url":"https://api.github.com/repos/rubygems/adoption-center/issues/events{/number}","events_url":"https://api.github.com/repos/rubygems/adoption-center/events","assignees_url":"https://api.github.com/repos/rubygems/adoption-center/assignees{/user}","branches_url":"https://api.github.com/repos/rubygems/adoption-center/branches{/branch}","tags_url":"https://api.github.com/repos/rubygems/adoption-center/tags","blobs_url":"https://api.github.com/repos/rubygems/adoption-center/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubygems/adoption-center/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubygems/adoption-center/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubygems/adoption-center/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubygems/adoption-center/statuses/{sha}","languages_url":"https://api.github.com/repos/rubygems/adoption-center/languages","stargazers_url":"https://api.github.com/repos/rubygems/adoption-center/stargazers","contributors_url":"https://api.github.com/repos/rubygems/adoption-center/contributors","subscribers_url":"https://api.github.com/repos/rubygems/adoption-center/subscribers","subscription_url":"https://api.github.com/repos/rubygems/adoption-center/subscription","commits_url":"https://api.github.com/repos/rubygems/adoption-center/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubygems/adoption-center/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubygems/adoption-center/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubygems/adoption-center/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubygems/adoption-center/contents/{+path}","compare_url":"https://api.github.com/repos/rubygems/adoption-center/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubygems/adoption-center/merges","archive_url":"https://api.github.com/repos/rubygems/adoption-center/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubygems/adoption-center/downloads","issues_url":"https://api.github.com/repos/rubygems/adoption-center/issues{/number}","pulls_url":"https://api.github.com/repos/rubygems/adoption-center/pulls{/number}","milestones_url":"https://api.github.com/repos/rubygems/adoption-center/milestones{/number}","notifications_url":"https://api.github.com/repos/rubygems/adoption-center/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubygems/adoption-center/labels{/name}","releases_url":"https://api.github.com/repos/rubygems/adoption-center/releases{/id}","created_at":"2015-07-06T15:04:40Z","updated_at":"2015-07-18T03:42:24Z","pushed_at":"2015-07-27T13:40:24Z","git_url":"git://github.com/rubygems/adoption-center.git","ssh_url":"git@github.com:rubygems/adoption-center.git","clone_url":"https://github.com/rubygems/adoption-center.git","svn_url":"https://github.com/rubygems/adoption-center","homepage":null,"size":544,"stargazers_count":6,"watchers_count":6,"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":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubygems/adoption-center/pulls/11"},"html":{"href":"https://github.com/rubygems/adoption-center/pull/11"},"issue":{"href":"https://api.github.com/repos/rubygems/adoption-center/issues/11"},"comments":{"href":"https://api.github.com/repos/rubygems/adoption-center/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/rubygems/adoption-center/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/rubygems/adoption-center/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubygems/adoption-center/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/rubygems/adoption-center/statuses/5498a1b1712eac51bd953b26d5323d955ec466ba"}}}}