{"action":"created","comment":{"url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/comments/39396235","id":39396235,"diff_hunk":"@@ -0,0 +1,14 @@\n+module Emojifier\n+  def emojify\n+    self.content.gsub(/:([\\w+-]+):/) do |match|\n+      emoji = Emoji.find_by_alias(Regexp.last_match(1))\n+      if emoji\n+        return ActionController::Base.helpers.image_tag(","path":"app/models/concerns/emojifier.rb","position":null,"original_position":6,"commit_id":"a43691b7df11ca090825bed7fcf2532a12dc53a5","original_commit_id":"069bace17dd216f95d01711a0e5b4bf561cfc86c","user":{"login":"demmys","id":2297122,"avatar_url":"https://avatars.githubusercontent.com/u/2297122?v=3","gravatar_id":"","url":"https://api.github.com/users/demmys","html_url":"https://github.com/demmys","followers_url":"https://api.github.com/users/demmys/followers","following_url":"https://api.github.com/users/demmys/following{/other_user}","gists_url":"https://api.github.com/users/demmys/gists{/gist_id}","starred_url":"https://api.github.com/users/demmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demmys/subscriptions","organizations_url":"https://api.github.com/users/demmys/orgs","repos_url":"https://api.github.com/users/demmys/repos","events_url":"https://api.github.com/users/demmys/events{/privacy}","received_events_url":"https://api.github.com/users/demmys/received_events","type":"User","site_admin":false},"body":"たしかに。出掛けにとりあえずHoundウザいなと思って直したのがひどかった。\r\nhttps://github.com/sfc-rg/rg-portal/commit/a43691b7df11ca090825bed7fcf2532a12dc53a5 でなおした。\r\n折り返しているのは、自分の普段使いのディスプレイでVimを2分割して使った時に折り返したほうが見やすいからであって、128文字はあまり考えてない。\r\nだからたぶんおれの書くコードだと100字超えるとだいたい改行してると思う。","created_at":"2015-09-14T13:57:56Z","updated_at":"2015-09-14T13:57:56Z","html_url":"https://github.com/sfc-rg/rg-portal/pull/34#discussion_r39396235","pull_request_url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/comments/39396235"},"html":{"href":"https://github.com/sfc-rg/rg-portal/pull/34#discussion_r39396235"},"pull_request":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34","id":44887176,"html_url":"https://github.com/sfc-rg/rg-portal/pull/34","diff_url":"https://github.com/sfc-rg/rg-portal/pull/34.diff","patch_url":"https://github.com/sfc-rg/rg-portal/pull/34.patch","issue_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues/34","number":34,"state":"open","locked":false,"title":"[WIP] 絵文字を使えるように","user":{"login":"demmys","id":2297122,"avatar_url":"https://avatars.githubusercontent.com/u/2297122?v=3","gravatar_id":"","url":"https://api.github.com/users/demmys","html_url":"https://github.com/demmys","followers_url":"https://api.github.com/users/demmys/followers","following_url":"https://api.github.com/users/demmys/following{/other_user}","gists_url":"https://api.github.com/users/demmys/gists{/gist_id}","starred_url":"https://api.github.com/users/demmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demmys/subscriptions","organizations_url":"https://api.github.com/users/demmys/orgs","repos_url":"https://api.github.com/users/demmys/repos","events_url":"https://api.github.com/users/demmys/events{/privacy}","received_events_url":"https://api.github.com/users/demmys/received_events","type":"User","site_admin":false},"body":"To close #12 \r\n\r\n![2015-09-14 10 51 57](https://cloud.githubusercontent.com/assets/2297122/9840636/3fb2379c-5ad0-11e5-8f6e-19f2c5a3a007.png)\r\n![2015-09-14 10 52 42](https://cloud.githubusercontent.com/assets/2297122/9840644/4f48862a-5ad0-11e5-83f5-f76222a18d25.png)\r\n![2015-09-14 10 52 49](https://cloud.githubusercontent.com/assets/2297122/9840645/506cfd56-5ad0-11e5-9d56-493d699c2b13.png)\r\n\r\nTODO\r\n* [ ] Capistranoでgemojiのrakeタスクが走るように\r\n* [ ] CapistranoでBowerのインストールが走るように","created_at":"2015-09-14T02:05:18Z","updated_at":"2015-09-14T13:57:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8038e95a38d5d2b1e50a247047ae01391c441cf","assignee":{"login":"demmys","id":2297122,"avatar_url":"https://avatars.githubusercontent.com/u/2297122?v=3","gravatar_id":"","url":"https://api.github.com/users/demmys","html_url":"https://github.com/demmys","followers_url":"https://api.github.com/users/demmys/followers","following_url":"https://api.github.com/users/demmys/following{/other_user}","gists_url":"https://api.github.com/users/demmys/gists{/gist_id}","starred_url":"https://api.github.com/users/demmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demmys/subscriptions","organizations_url":"https://api.github.com/users/demmys/orgs","repos_url":"https://api.github.com/users/demmys/repos","events_url":"https://api.github.com/users/demmys/events{/privacy}","received_events_url":"https://api.github.com/users/demmys/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34/commits","review_comments_url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34/comments","review_comment_url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues/34/comments","statuses_url":"https://api.github.com/repos/sfc-rg/rg-portal/statuses/a43691b7df11ca090825bed7fcf2532a12dc53a5","head":{"label":"sfc-rg:demmys/emoji","ref":"demmys/emoji","sha":"a43691b7df11ca090825bed7fcf2532a12dc53a5","user":{"login":"sfc-rg","id":13977529,"avatar_url":"https://avatars.githubusercontent.com/u/13977529?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-rg","html_url":"https://github.com/sfc-rg","followers_url":"https://api.github.com/users/sfc-rg/followers","following_url":"https://api.github.com/users/sfc-rg/following{/other_user}","gists_url":"https://api.github.com/users/sfc-rg/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-rg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-rg/subscriptions","organizations_url":"https://api.github.com/users/sfc-rg/orgs","repos_url":"https://api.github.com/users/sfc-rg/repos","events_url":"https://api.github.com/users/sfc-rg/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-rg/received_events","type":"Organization","site_admin":false},"repo":{"id":37115426,"name":"rg-portal","full_name":"sfc-rg/rg-portal","owner":{"login":"sfc-rg","id":13977529,"avatar_url":"https://avatars.githubusercontent.com/u/13977529?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-rg","html_url":"https://github.com/sfc-rg","followers_url":"https://api.github.com/users/sfc-rg/followers","following_url":"https://api.github.com/users/sfc-rg/following{/other_user}","gists_url":"https://api.github.com/users/sfc-rg/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-rg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-rg/subscriptions","organizations_url":"https://api.github.com/users/sfc-rg/orgs","repos_url":"https://api.github.com/users/sfc-rg/repos","events_url":"https://api.github.com/users/sfc-rg/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-rg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sfc-rg/rg-portal","description":"Internal Website for Keio Univ. Technology joint research groups","fork":false,"url":"https://api.github.com/repos/sfc-rg/rg-portal","forks_url":"https://api.github.com/repos/sfc-rg/rg-portal/forks","keys_url":"https://api.github.com/repos/sfc-rg/rg-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sfc-rg/rg-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sfc-rg/rg-portal/teams","hooks_url":"https://api.github.com/repos/sfc-rg/rg-portal/hooks","issue_events_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues/events{/number}","events_url":"https://api.github.com/repos/sfc-rg/rg-portal/events","assignees_url":"https://api.github.com/repos/sfc-rg/rg-portal/assignees{/user}","branches_url":"https://api.github.com/repos/sfc-rg/rg-portal/branches{/branch}","tags_url":"https://api.github.com/repos/sfc-rg/rg-portal/tags","blobs_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sfc-rg/rg-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/sfc-rg/rg-portal/languages","stargazers_url":"https://api.github.com/repos/sfc-rg/rg-portal/stargazers","contributors_url":"https://api.github.com/repos/sfc-rg/rg-portal/contributors","subscribers_url":"https://api.github.com/repos/sfc-rg/rg-portal/subscribers","subscription_url":"https://api.github.com/repos/sfc-rg/rg-portal/subscription","commits_url":"https://api.github.com/repos/sfc-rg/rg-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sfc-rg/rg-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sfc-rg/rg-portal/contents/{+path}","compare_url":"https://api.github.com/repos/sfc-rg/rg-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sfc-rg/rg-portal/merges","archive_url":"https://api.github.com/repos/sfc-rg/rg-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sfc-rg/rg-portal/downloads","issues_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues{/number}","pulls_url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/sfc-rg/rg-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/sfc-rg/rg-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sfc-rg/rg-portal/labels{/name}","releases_url":"https://api.github.com/repos/sfc-rg/rg-portal/releases{/id}","created_at":"2015-06-09T06:49:45Z","updated_at":"2015-09-14T03:09:12Z","pushed_at":"2015-09-14T13:56:26Z","git_url":"git://github.com/sfc-rg/rg-portal.git","ssh_url":"git@github.com:sfc-rg/rg-portal.git","clone_url":"https://github.com/sfc-rg/rg-portal.git","svn_url":"https://github.com/sfc-rg/rg-portal","homepage":"http://portal.gw.sfc.wide.ad.jp/","size":468,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":2,"default_branch":"master"}},"base":{"label":"sfc-rg:master","ref":"master","sha":"1ce3724ae01f64f265307621766210e8579c9a63","user":{"login":"sfc-rg","id":13977529,"avatar_url":"https://avatars.githubusercontent.com/u/13977529?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-rg","html_url":"https://github.com/sfc-rg","followers_url":"https://api.github.com/users/sfc-rg/followers","following_url":"https://api.github.com/users/sfc-rg/following{/other_user}","gists_url":"https://api.github.com/users/sfc-rg/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-rg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-rg/subscriptions","organizations_url":"https://api.github.com/users/sfc-rg/orgs","repos_url":"https://api.github.com/users/sfc-rg/repos","events_url":"https://api.github.com/users/sfc-rg/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-rg/received_events","type":"Organization","site_admin":false},"repo":{"id":37115426,"name":"rg-portal","full_name":"sfc-rg/rg-portal","owner":{"login":"sfc-rg","id":13977529,"avatar_url":"https://avatars.githubusercontent.com/u/13977529?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-rg","html_url":"https://github.com/sfc-rg","followers_url":"https://api.github.com/users/sfc-rg/followers","following_url":"https://api.github.com/users/sfc-rg/following{/other_user}","gists_url":"https://api.github.com/users/sfc-rg/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-rg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-rg/subscriptions","organizations_url":"https://api.github.com/users/sfc-rg/orgs","repos_url":"https://api.github.com/users/sfc-rg/repos","events_url":"https://api.github.com/users/sfc-rg/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-rg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sfc-rg/rg-portal","description":"Internal Website for Keio Univ. Technology joint research groups","fork":false,"url":"https://api.github.com/repos/sfc-rg/rg-portal","forks_url":"https://api.github.com/repos/sfc-rg/rg-portal/forks","keys_url":"https://api.github.com/repos/sfc-rg/rg-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sfc-rg/rg-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sfc-rg/rg-portal/teams","hooks_url":"https://api.github.com/repos/sfc-rg/rg-portal/hooks","issue_events_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues/events{/number}","events_url":"https://api.github.com/repos/sfc-rg/rg-portal/events","assignees_url":"https://api.github.com/repos/sfc-rg/rg-portal/assignees{/user}","branches_url":"https://api.github.com/repos/sfc-rg/rg-portal/branches{/branch}","tags_url":"https://api.github.com/repos/sfc-rg/rg-portal/tags","blobs_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sfc-rg/rg-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/sfc-rg/rg-portal/languages","stargazers_url":"https://api.github.com/repos/sfc-rg/rg-portal/stargazers","contributors_url":"https://api.github.com/repos/sfc-rg/rg-portal/contributors","subscribers_url":"https://api.github.com/repos/sfc-rg/rg-portal/subscribers","subscription_url":"https://api.github.com/repos/sfc-rg/rg-portal/subscription","commits_url":"https://api.github.com/repos/sfc-rg/rg-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sfc-rg/rg-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sfc-rg/rg-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sfc-rg/rg-portal/contents/{+path}","compare_url":"https://api.github.com/repos/sfc-rg/rg-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sfc-rg/rg-portal/merges","archive_url":"https://api.github.com/repos/sfc-rg/rg-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sfc-rg/rg-portal/downloads","issues_url":"https://api.github.com/repos/sfc-rg/rg-portal/issues{/number}","pulls_url":"https://api.github.com/repos/sfc-rg/rg-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/sfc-rg/rg-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/sfc-rg/rg-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sfc-rg/rg-portal/labels{/name}","releases_url":"https://api.github.com/repos/sfc-rg/rg-portal/releases{/id}","created_at":"2015-06-09T06:49:45Z","updated_at":"2015-09-14T03:09:12Z","pushed_at":"2015-09-14T13:56:26Z","git_url":"git://github.com/sfc-rg/rg-portal.git","ssh_url":"git@github.com:sfc-rg/rg-portal.git","clone_url":"https://github.com/sfc-rg/rg-portal.git","svn_url":"https://github.com/sfc-rg/rg-portal","homepage":"http://portal.gw.sfc.wide.ad.jp/","size":468,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34"},"html":{"href":"https://github.com/sfc-rg/rg-portal/pull/34"},"issue":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/issues/34"},"comments":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/sfc-rg/rg-portal/statuses/a43691b7df11ca090825bed7fcf2532a12dc53a5"}}}}