{"action":"created","comment":{"url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments/70550819","id":70550819,"diff_hunk":"@@ -1,2 +1,20 @@\n // Place all the behaviors and hooks related to the matching controller here.\n // All this logic will automatically be available in application.js.\n+$(function () {\n+  const interval = 500;\n+  let timer;\n+  \n+  $('.read_poem_btn').click(function(e){\n+    const poem_id = $(e.target).data('poem-id');\n+\n+    $.ajax({","path":"app/assets/javascripts/read_poem.js","position":10,"original_position":10,"commit_id":"ae8856fd917a501a4c49e8d48754718d979c8a7d","original_commit_id":"ae8856fd917a501a4c49e8d48754718d979c8a7d","user":{"login":"YusukeIwaki","id":11763113,"avatar_url":"https://avatars.githubusercontent.com/u/11763113?v=3","gravatar_id":"","url":"https://api.github.com/users/YusukeIwaki","html_url":"https://github.com/YusukeIwaki","followers_url":"https://api.github.com/users/YusukeIwaki/followers","following_url":"https://api.github.com/users/YusukeIwaki/following{/other_user}","gists_url":"https://api.github.com/users/YusukeIwaki/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeIwaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeIwaki/subscriptions","organizations_url":"https://api.github.com/users/YusukeIwaki/orgs","repos_url":"https://api.github.com/users/YusukeIwaki/repos","events_url":"https://api.github.com/users/YusukeIwaki/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeIwaki/received_events","type":"User","site_admin":false},"body":"どっちかというと、Ajaxをdebounceするほうがよいのでは・・・？　とおもったけどAPI側も変えないといけなくて面倒なのか・・・","created_at":"2016-07-13T01:10:42Z","updated_at":"2016-07-13T01:10:42Z","html_url":"https://github.com/CWPoemDev/nasulog/pull/184#discussion_r70550819","pull_request_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184","_links":{"self":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments/70550819"},"html":{"href":"https://github.com/CWPoemDev/nasulog/pull/184#discussion_r70550819"},"pull_request":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184"}}},"pull_request":{"url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184","id":76978540,"html_url":"https://github.com/CWPoemDev/nasulog/pull/184","diff_url":"https://github.com/CWPoemDev/nasulog/pull/184.diff","patch_url":"https://github.com/CWPoemDev/nasulog/pull/184.patch","issue_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/184","number":184,"state":"open","locked":false,"title":"closes #132 読んだよボタンを非同期にする","user":{"login":"nasum","id":1456806,"avatar_url":"https://avatars.githubusercontent.com/u/1456806?v=3","gravatar_id":"","url":"https://api.github.com/users/nasum","html_url":"https://github.com/nasum","followers_url":"https://api.github.com/users/nasum/followers","following_url":"https://api.github.com/users/nasum/following{/other_user}","gists_url":"https://api.github.com/users/nasum/gists{/gist_id}","starred_url":"https://api.github.com/users/nasum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasum/subscriptions","organizations_url":"https://api.github.com/users/nasum/orgs","repos_url":"https://api.github.com/users/nasum/repos","events_url":"https://api.github.com/users/nasum/events{/privacy}","received_events_url":"https://api.github.com/users/nasum/received_events","type":"User","site_admin":false},"body":"debaounceで最終的にリロードして更新する。\r\nhttp://blog.tsumikiinc.com/article/20141125_javascript-event-throttle.html\r\n\r\nゆくゆくはreactを使ってリロードしないで実現したいが今は暫定的にこれで。","created_at":"2016-07-11T15:57:12Z","updated_at":"2016-07-13T01:10:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"903adf66cd377c2928d1b023b67134da265daf3a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184/commits","review_comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184/comments","review_comment_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/184/comments","statuses_url":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/ae8856fd917a501a4c49e8d48754718d979c8a7d","head":{"label":"CWPoemDev:iss-132","ref":"iss-132","sha":"ae8856fd917a501a4c49e8d48754718d979c8a7d","user":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"repo":{"id":48110379,"name":"nasulog","full_name":"CWPoemDev/nasulog","owner":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CWPoemDev/nasulog","description":"ポエム投稿サービス","fork":false,"url":"https://api.github.com/repos/CWPoemDev/nasulog","forks_url":"https://api.github.com/repos/CWPoemDev/nasulog/forks","keys_url":"https://api.github.com/repos/CWPoemDev/nasulog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CWPoemDev/nasulog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CWPoemDev/nasulog/teams","hooks_url":"https://api.github.com/repos/CWPoemDev/nasulog/hooks","issue_events_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/events{/number}","events_url":"https://api.github.com/repos/CWPoemDev/nasulog/events","assignees_url":"https://api.github.com/repos/CWPoemDev/nasulog/assignees{/user}","branches_url":"https://api.github.com/repos/CWPoemDev/nasulog/branches{/branch}","tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/tags","blobs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/refs{/sha}","trees_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/{sha}","languages_url":"https://api.github.com/repos/CWPoemDev/nasulog/languages","stargazers_url":"https://api.github.com/repos/CWPoemDev/nasulog/stargazers","contributors_url":"https://api.github.com/repos/CWPoemDev/nasulog/contributors","subscribers_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscribers","subscription_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscription","commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/commits{/sha}","git_commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/commits{/sha}","comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/comments{/number}","issue_comment_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/comments{/number}","contents_url":"https://api.github.com/repos/CWPoemDev/nasulog/contents/{+path}","compare_url":"https://api.github.com/repos/CWPoemDev/nasulog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CWPoemDev/nasulog/merges","archive_url":"https://api.github.com/repos/CWPoemDev/nasulog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CWPoemDev/nasulog/downloads","issues_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues{/number}","pulls_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls{/number}","milestones_url":"https://api.github.com/repos/CWPoemDev/nasulog/milestones{/number}","notifications_url":"https://api.github.com/repos/CWPoemDev/nasulog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CWPoemDev/nasulog/labels{/name}","releases_url":"https://api.github.com/repos/CWPoemDev/nasulog/releases{/id}","deployments_url":"https://api.github.com/repos/CWPoemDev/nasulog/deployments","created_at":"2015-12-16T12:57:40Z","updated_at":"2016-06-23T03:01:15Z","pushed_at":"2016-07-11T16:47:44Z","git_url":"git://github.com/CWPoemDev/nasulog.git","ssh_url":"git@github.com:CWPoemDev/nasulog.git","clone_url":"https://github.com/CWPoemDev/nasulog.git","svn_url":"https://github.com/CWPoemDev/nasulog","homepage":"","size":4612,"stargazers_count":21,"watchers_count":21,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":44,"forks":7,"open_issues":44,"watchers":21,"default_branch":"master"}},"base":{"label":"CWPoemDev:master","ref":"master","sha":"667727e7bb9c06db502664c3f7508e77b5accabf","user":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"repo":{"id":48110379,"name":"nasulog","full_name":"CWPoemDev/nasulog","owner":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CWPoemDev/nasulog","description":"ポエム投稿サービス","fork":false,"url":"https://api.github.com/repos/CWPoemDev/nasulog","forks_url":"https://api.github.com/repos/CWPoemDev/nasulog/forks","keys_url":"https://api.github.com/repos/CWPoemDev/nasulog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CWPoemDev/nasulog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CWPoemDev/nasulog/teams","hooks_url":"https://api.github.com/repos/CWPoemDev/nasulog/hooks","issue_events_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/events{/number}","events_url":"https://api.github.com/repos/CWPoemDev/nasulog/events","assignees_url":"https://api.github.com/repos/CWPoemDev/nasulog/assignees{/user}","branches_url":"https://api.github.com/repos/CWPoemDev/nasulog/branches{/branch}","tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/tags","blobs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/refs{/sha}","trees_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/{sha}","languages_url":"https://api.github.com/repos/CWPoemDev/nasulog/languages","stargazers_url":"https://api.github.com/repos/CWPoemDev/nasulog/stargazers","contributors_url":"https://api.github.com/repos/CWPoemDev/nasulog/contributors","subscribers_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscribers","subscription_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscription","commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/commits{/sha}","git_commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/commits{/sha}","comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/comments{/number}","issue_comment_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/comments{/number}","contents_url":"https://api.github.com/repos/CWPoemDev/nasulog/contents/{+path}","compare_url":"https://api.github.com/repos/CWPoemDev/nasulog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CWPoemDev/nasulog/merges","archive_url":"https://api.github.com/repos/CWPoemDev/nasulog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CWPoemDev/nasulog/downloads","issues_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues{/number}","pulls_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls{/number}","milestones_url":"https://api.github.com/repos/CWPoemDev/nasulog/milestones{/number}","notifications_url":"https://api.github.com/repos/CWPoemDev/nasulog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CWPoemDev/nasulog/labels{/name}","releases_url":"https://api.github.com/repos/CWPoemDev/nasulog/releases{/id}","deployments_url":"https://api.github.com/repos/CWPoemDev/nasulog/deployments","created_at":"2015-12-16T12:57:40Z","updated_at":"2016-06-23T03:01:15Z","pushed_at":"2016-07-11T16:47:44Z","git_url":"git://github.com/CWPoemDev/nasulog.git","ssh_url":"git@github.com:CWPoemDev/nasulog.git","clone_url":"https://github.com/CWPoemDev/nasulog.git","svn_url":"https://github.com/CWPoemDev/nasulog","homepage":"","size":4612,"stargazers_count":21,"watchers_count":21,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":44,"forks":7,"open_issues":44,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184"},"html":{"href":"https://github.com/CWPoemDev/nasulog/pull/184"},"issue":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/issues/184"},"comments":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/ae8856fd917a501a4c49e8d48754718d979c8a7d"}}}}
{"actor":{"display_login":"YusukeIwaki"}}