GitHub PullRequestReviewCommentEvent at 2014-06-25 15:24:06
Repository: rubygem_gallery
Actor: hchood
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/comments/14192640","id":14192640,"diff_hunk":"@@ -0,0 +1,56 @@\n+class RubyGemsController < ApplicationController\n+  def index\n+    @ruby_gems = RubyGem.all\n+  end\n+\n+  def show\n+    @ruby_gem = RubyGem.find(params[:id])\n+    @review = Review.new\n+    @reviews = Review.all.where(\"ruby_gem_id = ?\", params[:id])","path":"app/controllers/ruby_gems_controller.rb","position":9,"original_position":9,"commit_id":"15962d984e244746bebb72d73340bcd1a5233a1d","original_commit_id":"15962d984e244746bebb72d73340bcd1a5233a1d","user":{"login":"hchood","id":4464987,"avatar_url":"https://avatars.githubusercontent.com/u/4464987?","gravatar_id":"f958b45651d582e7c038cef70874d1af","url":"https://api.github.com/users/hchood","html_url":"https://github.com/hchood","followers_url":"https://api.github.com/users/hchood/followers","following_url":"https://api.github.com/users/hchood/following{/other_user}","gists_url":"https://api.github.com/users/hchood/gists{/gist_id}","starred_url":"https://api.github.com/users/hchood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hchood/subscriptions","organizations_url":"https://api.github.com/users/hchood/orgs","repos_url":"https://api.github.com/users/hchood/repos","events_url":"https://api.github.com/users/hchood/events{/privacy}","received_events_url":"https://api.github.com/users/hchood/received_events","type":"User","site_admin":false},"body":"Easier to do this:\r\n```ruby\r\n@reviews = @ruby_gem.reviews\r\n```\r\n\r\nThat'll pull back all the reviews w/ `ruby_gem_id == @ruby_gem.id`.","created_at":"2014-06-25T15:24:06Z","updated_at":"2014-06-25T15:24:06Z","html_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/4#discussion_r14192640","pull_request_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/comments/14192640"},"html":{"href":"https://github.com/LaunchAcademy/rubygem_gallery/pull/4#discussion_r14192640"},"pull_request":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4","id":17591933,"html_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/4","diff_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/4.diff","patch_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/4.patch","issue_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/4","number":4,"state":"open","title":"Kb lc user add rubygem","user":{"login":"katieblair","id":5897805,"avatar_url":"https://avatars.githubusercontent.com/u/5897805?","gravatar_id":"9496567a28e5c1e6f92001efcef9c859","url":"https://api.github.com/users/katieblair","html_url":"https://github.com/katieblair","followers_url":"https://api.github.com/users/katieblair/followers","following_url":"https://api.github.com/users/katieblair/following{/other_user}","gists_url":"https://api.github.com/users/katieblair/gists{/gist_id}","starred_url":"https://api.github.com/users/katieblair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katieblair/subscriptions","organizations_url":"https://api.github.com/users/katieblair/orgs","repos_url":"https://api.github.com/users/katieblair/repos","events_url":"https://api.github.com/users/katieblair/events{/privacy}","received_events_url":"https://api.github.com/users/katieblair/received_events","type":"User","site_admin":false},"body":"Completed all user stories up to deleting a gem","created_at":"2014-06-25T14:03:08Z","updated_at":"2014-06-25T15:24:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1fa0ace4da2f96b9e685e7f2bf96fbc41a2fb27","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4/commits","review_comments_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4/comments","review_comment_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/comments/{number}","comments_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/4/comments","statuses_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/statuses/15962d984e244746bebb72d73340bcd1a5233a1d","head":{"label":"LaunchAcademy:kb-lc-user-add-rubygem","ref":"kb-lc-user-add-rubygem","sha":"15962d984e244746bebb72d73340bcd1a5233a1d","user":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?","gravatar_id":"3996dda93bb2ce2013929378c9ecff8d","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":21138443,"name":"rubygem_gallery","full_name":"LaunchAcademy/rubygem_gallery","owner":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?","gravatar_id":"3996dda93bb2ce2013929378c9ecff8d","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaunchAcademy/rubygem_gallery","description":"A review site for gems","fork":false,"url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery","forks_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/forks","keys_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/teams","hooks_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/hooks","issue_events_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/events{/number}","events_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/events","assignees_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/assignees{/user}","branches_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/branches{/branch}","tags_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/tags","blobs_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/statuses/{sha}","languages_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/languages","stargazers_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/stargazers","contributors_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/contributors","subscribers_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/subscribers","subscription_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/subscription","commits_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/comments/{number}","contents_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/contents/{+path}","compare_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/merges","archive_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/downloads","issues_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues{/number}","pulls_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls{/number}","milestones_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/milestones{/number}","notifications_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/labels{/name}","releases_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/releases{/id}","created_at":"2014-06-23T18:59:40Z","updated_at":"2014-06-24T21:02:19Z","pushed_at":"2014-06-24T21:02:19Z","git_url":"git://github.com/LaunchAcademy/rubygem_gallery.git","ssh_url":"git@github.com:LaunchAcademy/rubygem_gallery.git","clone_url":"https://github.com/LaunchAcademy/rubygem_gallery.git","svn_url":"https://github.com/LaunchAcademy/rubygem_gallery","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"LaunchAcademy:master","ref":"master","sha":"6868d776fa13c11b70c86b0b79d09cc94f492038","user":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?","gravatar_id":"3996dda93bb2ce2013929378c9ecff8d","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":21138443,"name":"rubygem_gallery","full_name":"LaunchAcademy/rubygem_gallery","owner":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?","gravatar_id":"3996dda93bb2ce2013929378c9ecff8d","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaunchAcademy/rubygem_gallery","description":"A review site for gems","fork":false,"url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery","forks_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/forks","keys_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/teams","hooks_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/hooks","issue_events_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/events{/number}","events_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/events","assignees_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/assignees{/user}","branches_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/branches{/branch}","tags_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/tags","blobs_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/statuses/{sha}","languages_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/languages","stargazers_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/stargazers","contributors_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/contributors","subscribers_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/subscribers","subscription_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/subscription","commits_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/comments/{number}","contents_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/contents/{+path}","compare_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/merges","archive_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/downloads","issues_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues{/number}","pulls_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls{/number}","milestones_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/milestones{/number}","notifications_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/labels{/name}","releases_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/releases{/id}","created_at":"2014-06-23T18:59:40Z","updated_at":"2014-06-24T21:02:19Z","pushed_at":"2014-06-24T21:02:19Z","git_url":"git://github.com/LaunchAcademy/rubygem_gallery.git","ssh_url":"git@github.com:LaunchAcademy/rubygem_gallery.git","clone_url":"https://github.com/LaunchAcademy/rubygem_gallery.git","svn_url":"https://github.com/LaunchAcademy/rubygem_gallery","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4"},"html":{"href":"https://github.com/LaunchAcademy/rubygem_gallery/pull/4"},"issue":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/4"},"comments":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/statuses/15962d984e244746bebb72d73340bcd1a5233a1d"}}}}