GitHub PullRequestReviewCommentEvent at 2014-07-01 15:32:45
Repository: rubygem_gallery
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/comments/14411132","id":14411132,"diff_hunk":"@@ -4,4 +4,14 @@ class RubyGem < ActiveRecord::Base\n \n   belongs_to :user\n   has_many :reviews, dependent: :destroy\n+\n+  def self.search(search)\n+    if search\n+      # binding.pry\n+      where('name ILIKE ?', \"%#{search}%\")\n+    else\n+      find(:all)\n+    end\n+  end\n+","path":"app/models/ruby_gem.rb","position":13,"original_position":13,"commit_id":"c3a9b8ed2634a61b0e94daa33a717dcfa166283e","original_commit_id":"c3a9b8ed2634a61b0e94daa33a717dcfa166283e","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at body end.","created_at":"2014-07-01T15:32:45Z","updated_at":"2014-07-01T15:32:45Z","html_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/13#discussion_r14411132","pull_request_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/comments/14411132"},"html":{"href":"https://github.com/LaunchAcademy/rubygem_gallery/pull/13#discussion_r14411132"},"pull_request":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13","id":17837412,"html_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/13","diff_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/13.diff","patch_url":"https://github.com/LaunchAcademy/rubygem_gallery/pull/13.patch","issue_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/13","number":13,"state":"open","title":"Add search","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":"Added search bar with tests","created_at":"2014-07-01T15:32:42Z","updated_at":"2014-07-01T15:32:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a88a9d9dd7b3fa6ef57dc80503a80d578a76afcd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13/commits","review_comments_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13/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/13/comments","statuses_url":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/statuses/c3a9b8ed2634a61b0e94daa33a717dcfa166283e","head":{"label":"LaunchAcademy:add_search","ref":"add_search","sha":"c3a9b8ed2634a61b0e94daa33a717dcfa166283e","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-25T15:53:02Z","pushed_at":"2014-07-01T15:31:43Z","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":644,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"LaunchAcademy:master","ref":"master","sha":"c00207455f9588abc0884fb282a300e2bbe89eb5","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-25T15:53:02Z","pushed_at":"2014-07-01T15:31:43Z","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":644,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13"},"html":{"href":"https://github.com/LaunchAcademy/rubygem_gallery/pull/13"},"issue":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/13"},"comments":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/pulls/13/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/13/commits"},"statuses":{"href":"https://api.github.com/repos/LaunchAcademy/rubygem_gallery/statuses/c3a9b8ed2634a61b0e94daa33a717dcfa166283e"}}}}