GitHub PullRequestReviewCommentEvent at 2014-07-03 15:16:41
Repository: chili_pepper
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/comments/14519059","id":14519059,"diff_hunk":"@@ -0,0 +1,58 @@\n+# encoding: UTF-8\n+\n+module ChiliPepper\n+  class ItemDecorator < Draper::Decorator\n+    delegate_all\n+    def show_dish_name\n+        dish.name\n+    end\n+\n+    # def photo_featured_class\n+    #   'dish_photo_featured' if image_featured?\n+    # end\n+    \n+    # def show_item_photograph\n+    #   if image_featured?\n+    #     link_to image_tag(dish.dish_photo.url(:medium), :alt => dish.name, height: 144, width: 310), item_path, :remote => true, :class => 'load_window', :title => dish.name\n+        \n+    #   end\n+    # end\n+    \n+    def show_price\n+      if price?\n+        h.content_tag(:span, h.number_to_currency(price, :unit => '€'), :class => 'dish_price')\n+      end\n+\n+    end\n+    \n+    def show_description\n+      if dish.description?\n+        h.content_tag(:p, h.markdown(dish.description), :class => 'dish_description')\n+      end\n+    end\n+    \n+    def show_extra_informations\n+      \n+      extras = []\n+      \n+      unless dish.not_coeliac_friendly? || dish.coeliac.blank?\n+        extras << h.content_tag(:li, dish.coeliac.humanize, :class => dish.coeliac)\n+      end\n+      \n+      if dish.vegetarian?\n+        extras << h.content_tag(:li, 'Suitable for Vegetarian', :class => 'vegetarian')\n+      end\n+      \n+      # if dish.dish_photo?\n+      #   photo = TRUE\n+      #    extras << h.content_tag(:li, link_to('Photo available', item_path, :remote => true, :class => 'load_window'), :class => 'dish_photo_link')\n+      # end\n+      \n+      if dish.coeliac_friendly? || dish.coeliac_option_available? || dish.vegetarian? # || photo\n+        h.content_tag(:ul, h.raw(extras.join(\"\\n\")), :class => 'extra_informations')\n+      end  \n+      ","path":"app/decorators/chili_pepper/item_decorator.rb","position":54,"original_position":54,"commit_id":"f7b88082e4c5d5a48990ee5d460d134854a7d2b6","original_commit_id":"f7b88082e4c5d5a48990ee5d460d134854a7d2b6","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":"Trailing whitespace detected.","created_at":"2014-07-03T15:16:41Z","updated_at":"2014-07-03T15:16:41Z","html_url":"https://github.com/concordiadiscors/chili_pepper/pull/1#discussion_r14519059","pull_request_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/comments/14519059"},"html":{"href":"https://github.com/concordiadiscors/chili_pepper/pull/1#discussion_r14519059"},"pull_request":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1","id":17950177,"html_url":"https://github.com/concordiadiscors/chili_pepper/pull/1","diff_url":"https://github.com/concordiadiscors/chili_pepper/pull/1.diff","patch_url":"https://github.com/concordiadiscors/chili_pepper/pull/1.patch","issue_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/1","number":1,"state":"open","title":"trying out the Hound CI","user":{"login":"concordiadiscors","id":750652,"avatar_url":"https://avatars.githubusercontent.com/u/750652?","gravatar_id":"6c994b8e19bd16e97e64eb7a309bd300","url":"https://api.github.com/users/concordiadiscors","html_url":"https://github.com/concordiadiscors","followers_url":"https://api.github.com/users/concordiadiscors/followers","following_url":"https://api.github.com/users/concordiadiscors/following{/other_user}","gists_url":"https://api.github.com/users/concordiadiscors/gists{/gist_id}","starred_url":"https://api.github.com/users/concordiadiscors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concordiadiscors/subscriptions","organizations_url":"https://api.github.com/users/concordiadiscors/orgs","repos_url":"https://api.github.com/users/concordiadiscors/repos","events_url":"https://api.github.com/users/concordiadiscors/events{/privacy}","received_events_url":"https://api.github.com/users/concordiadiscors/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-03T15:16:21Z","updated_at":"2014-07-03T15:16:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d74d86f0a36c32f2de3ec20eafc685aed336fe4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1/commits","review_comments_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1/comments","review_comment_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/comments/{number}","comments_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/1/comments","statuses_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/statuses/f7b88082e4c5d5a48990ee5d460d134854a7d2b6","head":{"label":"concordiadiscors:develop","ref":"develop","sha":"f7b88082e4c5d5a48990ee5d460d134854a7d2b6","user":{"login":"concordiadiscors","id":750652,"avatar_url":"https://avatars.githubusercontent.com/u/750652?","gravatar_id":"6c994b8e19bd16e97e64eb7a309bd300","url":"https://api.github.com/users/concordiadiscors","html_url":"https://github.com/concordiadiscors","followers_url":"https://api.github.com/users/concordiadiscors/followers","following_url":"https://api.github.com/users/concordiadiscors/following{/other_user}","gists_url":"https://api.github.com/users/concordiadiscors/gists{/gist_id}","starred_url":"https://api.github.com/users/concordiadiscors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concordiadiscors/subscriptions","organizations_url":"https://api.github.com/users/concordiadiscors/orgs","repos_url":"https://api.github.com/users/concordiadiscors/repos","events_url":"https://api.github.com/users/concordiadiscors/events{/privacy}","received_events_url":"https://api.github.com/users/concordiadiscors/received_events","type":"User","site_admin":false},"repo":{"id":19113968,"name":"chili_pepper","full_name":"concordiadiscors/chili_pepper","owner":{"login":"concordiadiscors","id":750652,"avatar_url":"https://avatars.githubusercontent.com/u/750652?","gravatar_id":"6c994b8e19bd16e97e64eb7a309bd300","url":"https://api.github.com/users/concordiadiscors","html_url":"https://github.com/concordiadiscors","followers_url":"https://api.github.com/users/concordiadiscors/followers","following_url":"https://api.github.com/users/concordiadiscors/following{/other_user}","gists_url":"https://api.github.com/users/concordiadiscors/gists{/gist_id}","starred_url":"https://api.github.com/users/concordiadiscors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concordiadiscors/subscriptions","organizations_url":"https://api.github.com/users/concordiadiscors/orgs","repos_url":"https://api.github.com/users/concordiadiscors/repos","events_url":"https://api.github.com/users/concordiadiscors/events{/privacy}","received_events_url":"https://api.github.com/users/concordiadiscors/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/concordiadiscors/chili_pepper","description":"Ruby on Rails gem for rapid creation of restaurant websites with menus","fork":false,"url":"https://api.github.com/repos/concordiadiscors/chili_pepper","forks_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/forks","keys_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/teams","hooks_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/hooks","issue_events_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/events{/number}","events_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/events","assignees_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/assignees{/user}","branches_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/branches{/branch}","tags_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/tags","blobs_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/refs{/sha}","trees_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/statuses/{sha}","languages_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/languages","stargazers_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/stargazers","contributors_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/contributors","subscribers_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/subscribers","subscription_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/subscription","commits_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/commits{/sha}","git_commits_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/commits{/sha}","comments_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/comments{/number}","issue_comment_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/comments/{number}","contents_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/contents/{+path}","compare_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/merges","archive_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/downloads","issues_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues{/number}","pulls_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls{/number}","milestones_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/milestones{/number}","notifications_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/labels{/name}","releases_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/releases{/id}","created_at":"2014-04-24T15:37:58Z","updated_at":"2014-06-26T15:57:32Z","pushed_at":"2014-07-03T14:59:07Z","git_url":"git://github.com/concordiadiscors/chili_pepper.git","ssh_url":"git@github.com:concordiadiscors/chili_pepper.git","clone_url":"https://github.com/concordiadiscors/chili_pepper.git","svn_url":"https://github.com/concordiadiscors/chili_pepper","homepage":"","size":396,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"concordiadiscors:master","ref":"master","sha":"60b5197834fe2c8ad18be6dc5fe3ef23f89e7dc8","user":{"login":"concordiadiscors","id":750652,"avatar_url":"https://avatars.githubusercontent.com/u/750652?","gravatar_id":"6c994b8e19bd16e97e64eb7a309bd300","url":"https://api.github.com/users/concordiadiscors","html_url":"https://github.com/concordiadiscors","followers_url":"https://api.github.com/users/concordiadiscors/followers","following_url":"https://api.github.com/users/concordiadiscors/following{/other_user}","gists_url":"https://api.github.com/users/concordiadiscors/gists{/gist_id}","starred_url":"https://api.github.com/users/concordiadiscors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concordiadiscors/subscriptions","organizations_url":"https://api.github.com/users/concordiadiscors/orgs","repos_url":"https://api.github.com/users/concordiadiscors/repos","events_url":"https://api.github.com/users/concordiadiscors/events{/privacy}","received_events_url":"https://api.github.com/users/concordiadiscors/received_events","type":"User","site_admin":false},"repo":{"id":19113968,"name":"chili_pepper","full_name":"concordiadiscors/chili_pepper","owner":{"login":"concordiadiscors","id":750652,"avatar_url":"https://avatars.githubusercontent.com/u/750652?","gravatar_id":"6c994b8e19bd16e97e64eb7a309bd300","url":"https://api.github.com/users/concordiadiscors","html_url":"https://github.com/concordiadiscors","followers_url":"https://api.github.com/users/concordiadiscors/followers","following_url":"https://api.github.com/users/concordiadiscors/following{/other_user}","gists_url":"https://api.github.com/users/concordiadiscors/gists{/gist_id}","starred_url":"https://api.github.com/users/concordiadiscors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concordiadiscors/subscriptions","organizations_url":"https://api.github.com/users/concordiadiscors/orgs","repos_url":"https://api.github.com/users/concordiadiscors/repos","events_url":"https://api.github.com/users/concordiadiscors/events{/privacy}","received_events_url":"https://api.github.com/users/concordiadiscors/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/concordiadiscors/chili_pepper","description":"Ruby on Rails gem for rapid creation of restaurant websites with menus","fork":false,"url":"https://api.github.com/repos/concordiadiscors/chili_pepper","forks_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/forks","keys_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/teams","hooks_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/hooks","issue_events_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/events{/number}","events_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/events","assignees_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/assignees{/user}","branches_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/branches{/branch}","tags_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/tags","blobs_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/refs{/sha}","trees_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/statuses/{sha}","languages_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/languages","stargazers_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/stargazers","contributors_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/contributors","subscribers_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/subscribers","subscription_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/subscription","commits_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/commits{/sha}","git_commits_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/git/commits{/sha}","comments_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/comments{/number}","issue_comment_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/comments/{number}","contents_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/contents/{+path}","compare_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/merges","archive_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/downloads","issues_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues{/number}","pulls_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls{/number}","milestones_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/milestones{/number}","notifications_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/labels{/name}","releases_url":"https://api.github.com/repos/concordiadiscors/chili_pepper/releases{/id}","created_at":"2014-04-24T15:37:58Z","updated_at":"2014-06-26T15:57:32Z","pushed_at":"2014-07-03T14:59:07Z","git_url":"git://github.com/concordiadiscors/chili_pepper.git","ssh_url":"git@github.com:concordiadiscors/chili_pepper.git","clone_url":"https://github.com/concordiadiscors/chili_pepper.git","svn_url":"https://github.com/concordiadiscors/chili_pepper","homepage":"","size":396,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1"},"html":{"href":"https://github.com/concordiadiscors/chili_pepper/pull/1"},"issue":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/1"},"comments":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/concordiadiscors/chili_pepper/statuses/f7b88082e4c5d5a48990ee5d460d134854a7d2b6"}}}}