GitHub PullRequestReviewCommentEvent at 2014-08-13 19:17:04
Repository: theshelf
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/groupbuddies/theshelf/pulls/comments/16198455","id":16198455,"diff_hunk":"@@ -59,6 +59,15 @@ def return\n     redirect_to new_review_book_path\n   end\n \n+  def renew\n+    if BookKeeper.new(book: book).renew_until!(borrower: current_user) == 'renew_count_exceedeed'\n+      flash[:error] = \"You've exceeded the renewals' maximum quantity!\"\n+    else\n+      flash[:success] = t('flash.book.renewed')","path":"app/controllers/books_controller.rb","position":8,"original_position":8,"commit_id":"7cb0ae4500cf1ee29ad745956a556847c85b4564","original_commit_id":"7cb0ae4500cf1ee29ad745956a556847c85b4564","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2014-08-13T19:17:04Z","updated_at":"2014-08-13T19:17:04Z","html_url":"https://github.com/groupbuddies/theshelf/pull/42#discussion_r16198455","pull_request_url":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/theshelf/pulls/comments/16198455"},"html":{"href":"https://github.com/groupbuddies/theshelf/pull/42#discussion_r16198455"},"pull_request":{"href":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42","id":19746212,"html_url":"https://github.com/groupbuddies/theshelf/pull/42","diff_url":"https://github.com/groupbuddies/theshelf/pull/42.diff","patch_url":"https://github.com/groupbuddies/theshelf/pull/42.patch","issue_url":"https://api.github.com/repos/groupbuddies/theshelf/issues/42","number":42,"state":"open","title":"Implementada a feature 2. Opcao para renovar o livro. Maximo duas renova...","user":{"login":"leandroalemao","id":3020581,"avatar_url":"https://avatars.githubusercontent.com/u/3020581?v=2","gravatar_id":"3ab6345baf3f6e556bcbb33d6a121bec","url":"https://api.github.com/users/leandroalemao","html_url":"https://github.com/leandroalemao","followers_url":"https://api.github.com/users/leandroalemao/followers","following_url":"https://api.github.com/users/leandroalemao/following{/other_user}","gists_url":"https://api.github.com/users/leandroalemao/gists{/gist_id}","starred_url":"https://api.github.com/users/leandroalemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandroalemao/subscriptions","organizations_url":"https://api.github.com/users/leandroalemao/orgs","repos_url":"https://api.github.com/users/leandroalemao/repos","events_url":"https://api.github.com/users/leandroalemao/events{/privacy}","received_events_url":"https://api.github.com/users/leandroalemao/received_events","type":"User","site_admin":false},"body":"Adicionada a feature 2. Opcao para renovar o livro. Maximo duas renovacoes.","created_at":"2014-08-13T19:16:57Z","updated_at":"2014-08-13T19:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de62a5459db0f79389f0e646012b4e2fb273ab34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42/commits","review_comments_url":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42/comments","review_comment_url":"https://api.github.com/repos/groupbuddies/theshelf/pulls/comments/{number}","comments_url":"https://api.github.com/repos/groupbuddies/theshelf/issues/42/comments","statuses_url":"https://api.github.com/repos/groupbuddies/theshelf/statuses/7cb0ae4500cf1ee29ad745956a556847c85b4564","head":{"label":"leandroalemao:renew_subscription","ref":"renew_subscription","sha":"7cb0ae4500cf1ee29ad745956a556847c85b4564","user":{"login":"leandroalemao","id":3020581,"avatar_url":"https://avatars.githubusercontent.com/u/3020581?v=2","gravatar_id":"3ab6345baf3f6e556bcbb33d6a121bec","url":"https://api.github.com/users/leandroalemao","html_url":"https://github.com/leandroalemao","followers_url":"https://api.github.com/users/leandroalemao/followers","following_url":"https://api.github.com/users/leandroalemao/following{/other_user}","gists_url":"https://api.github.com/users/leandroalemao/gists{/gist_id}","starred_url":"https://api.github.com/users/leandroalemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandroalemao/subscriptions","organizations_url":"https://api.github.com/users/leandroalemao/orgs","repos_url":"https://api.github.com/users/leandroalemao/repos","events_url":"https://api.github.com/users/leandroalemao/events{/privacy}","received_events_url":"https://api.github.com/users/leandroalemao/received_events","type":"User","site_admin":false},"repo":{"id":22909608,"name":"theshelf","full_name":"leandroalemao/theshelf","owner":{"login":"leandroalemao","id":3020581,"avatar_url":"https://avatars.githubusercontent.com/u/3020581?v=2","gravatar_id":"3ab6345baf3f6e556bcbb33d6a121bec","url":"https://api.github.com/users/leandroalemao","html_url":"https://github.com/leandroalemao","followers_url":"https://api.github.com/users/leandroalemao/followers","following_url":"https://api.github.com/users/leandroalemao/following{/other_user}","gists_url":"https://api.github.com/users/leandroalemao/gists{/gist_id}","starred_url":"https://api.github.com/users/leandroalemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandroalemao/subscriptions","organizations_url":"https://api.github.com/users/leandroalemao/orgs","repos_url":"https://api.github.com/users/leandroalemao/repos","events_url":"https://api.github.com/users/leandroalemao/events{/privacy}","received_events_url":"https://api.github.com/users/leandroalemao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leandroalemao/theshelf","description":"Companies book shelf management","fork":true,"url":"https://api.github.com/repos/leandroalemao/theshelf","forks_url":"https://api.github.com/repos/leandroalemao/theshelf/forks","keys_url":"https://api.github.com/repos/leandroalemao/theshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leandroalemao/theshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leandroalemao/theshelf/teams","hooks_url":"https://api.github.com/repos/leandroalemao/theshelf/hooks","issue_events_url":"https://api.github.com/repos/leandroalemao/theshelf/issues/events{/number}","events_url":"https://api.github.com/repos/leandroalemao/theshelf/events","assignees_url":"https://api.github.com/repos/leandroalemao/theshelf/assignees{/user}","branches_url":"https://api.github.com/repos/leandroalemao/theshelf/branches{/branch}","tags_url":"https://api.github.com/repos/leandroalemao/theshelf/tags","blobs_url":"https://api.github.com/repos/leandroalemao/theshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leandroalemao/theshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leandroalemao/theshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/leandroalemao/theshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leandroalemao/theshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/leandroalemao/theshelf/languages","stargazers_url":"https://api.github.com/repos/leandroalemao/theshelf/stargazers","contributors_url":"https://api.github.com/repos/leandroalemao/theshelf/contributors","subscribers_url":"https://api.github.com/repos/leandroalemao/theshelf/subscribers","subscription_url":"https://api.github.com/repos/leandroalemao/theshelf/subscription","commits_url":"https://api.github.com/repos/leandroalemao/theshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/leandroalemao/theshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/leandroalemao/theshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/leandroalemao/theshelf/issues/comments/{number}","contents_url":"https://api.github.com/repos/leandroalemao/theshelf/contents/{+path}","compare_url":"https://api.github.com/repos/leandroalemao/theshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leandroalemao/theshelf/merges","archive_url":"https://api.github.com/repos/leandroalemao/theshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leandroalemao/theshelf/downloads","issues_url":"https://api.github.com/repos/leandroalemao/theshelf/issues{/number}","pulls_url":"https://api.github.com/repos/leandroalemao/theshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/leandroalemao/theshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/leandroalemao/theshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leandroalemao/theshelf/labels{/name}","releases_url":"https://api.github.com/repos/leandroalemao/theshelf/releases{/id}","created_at":"2014-08-13T09:08:06Z","updated_at":"2014-07-11T10:46:18Z","pushed_at":"2014-08-13T19:13:44Z","git_url":"git://github.com/leandroalemao/theshelf.git","ssh_url":"git@github.com:leandroalemao/theshelf.git","clone_url":"https://github.com/leandroalemao/theshelf.git","svn_url":"https://github.com/leandroalemao/theshelf","homepage":"","size":394,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"groupbuddies:master","ref":"master","sha":"2ff940588180ee622b56d13640ad2c85839ff852","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=2","gravatar_id":"124f1930d85b216d0688e67c9a62eaa7","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":13497239,"name":"theshelf","full_name":"groupbuddies/theshelf","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=2","gravatar_id":"124f1930d85b216d0688e67c9a62eaa7","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/theshelf","description":"Companies book shelf management","fork":false,"url":"https://api.github.com/repos/groupbuddies/theshelf","forks_url":"https://api.github.com/repos/groupbuddies/theshelf/forks","keys_url":"https://api.github.com/repos/groupbuddies/theshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/theshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/theshelf/teams","hooks_url":"https://api.github.com/repos/groupbuddies/theshelf/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/theshelf/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/theshelf/events","assignees_url":"https://api.github.com/repos/groupbuddies/theshelf/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/theshelf/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/theshelf/tags","blobs_url":"https://api.github.com/repos/groupbuddies/theshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/theshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/theshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/theshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/theshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/theshelf/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/theshelf/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/theshelf/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/theshelf/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/theshelf/subscription","commits_url":"https://api.github.com/repos/groupbuddies/theshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/theshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/theshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/theshelf/issues/comments/{number}","contents_url":"https://api.github.com/repos/groupbuddies/theshelf/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/theshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/theshelf/merges","archive_url":"https://api.github.com/repos/groupbuddies/theshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/theshelf/downloads","issues_url":"https://api.github.com/repos/groupbuddies/theshelf/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/theshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/theshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/theshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/theshelf/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/theshelf/releases{/id}","created_at":"2013-10-11T11:26:04Z","updated_at":"2014-07-11T10:46:18Z","pushed_at":"2014-08-01T17:05:59Z","git_url":"git://github.com/groupbuddies/theshelf.git","ssh_url":"git@github.com:groupbuddies/theshelf.git","clone_url":"https://github.com/groupbuddies/theshelf.git","svn_url":"https://github.com/groupbuddies/theshelf","homepage":"","size":1947,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42"},"html":{"href":"https://github.com/groupbuddies/theshelf/pull/42"},"issue":{"href":"https://api.github.com/repos/groupbuddies/theshelf/issues/42"},"comments":{"href":"https://api.github.com/repos/groupbuddies/theshelf/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/groupbuddies/theshelf/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/groupbuddies/theshelf/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/groupbuddies/theshelf/statuses/7cb0ae4500cf1ee29ad745956a556847c85b4564"}}}}