{"action":"created","comment":{"url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/comments/58318897","id":58318897,"diff_hunk":"@@ -0,0 +1,39 @@\n+class Timedtext\n+  include Mongoid::Document\n+  field :body, type: String\n+  field :half, type: Mongoid::Boolean\n+  field :japanese, type: String\n+  field :start, type: Integer\n+  field :userid, type: Integer\n+  field :evideoid, type: Integer\n+\n+  def user\n+    User.find(self.userid)\n+  end\n+\n+  def evideo\n+    Evideo.find(self.evideoid)\n+  end\n+\n+  def user_id\n+    self.userid\n+  end\n+\n+  def evideo_id\n+    self.evideoid\n+  end\n+\n+  # timedtext.bodyの一部を()に変換して変換した問題と答えを返す\n+  def question\n+    words = self.body.split()\n+    idx = rand(words.size)  # ランダムで取得\n+    word = words[idx]\n+    rear = \"\"\n+    if /(\\w+)(,|\\?|!|\\.)?/ =~ word\n+        word = $1","path":"app/models/timedtext.rb","position":33,"original_position":33,"commit_id":"28d7d18b2d494591463e4ecc65e90bae569edb91","original_commit_id":"28d7d18b2d494591463e4ecc65e90bae569edb91","user":{"login":"hyde2able","id":11733664,"avatar_url":"https://avatars.githubusercontent.com/u/11733664?v=3","gravatar_id":"","url":"https://api.github.com/users/hyde2able","html_url":"https://github.com/hyde2able","followers_url":"https://api.github.com/users/hyde2able/followers","following_url":"https://api.github.com/users/hyde2able/following{/other_user}","gists_url":"https://api.github.com/users/hyde2able/gists{/gist_id}","starred_url":"https://api.github.com/users/hyde2able/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyde2able/subscriptions","organizations_url":"https://api.github.com/users/hyde2able/orgs","repos_url":"https://api.github.com/users/hyde2able/repos","events_url":"https://api.github.com/users/hyde2able/events{/privacy}","received_events_url":"https://api.github.com/users/hyde2able/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Use 2 (not 4) spaces for indentation. [:ref](https://github.com/bbatsov/ruby-style-guide#spaces-indentation)\n* Avoid the use of Perl-style backrefs. [:ref](https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers)","created_at":"2016-04-03T22:31:41Z","updated_at":"2016-04-03T22:31:41Z","html_url":"https://github.com/hyde2able/TsuiMana/pull/106#discussion_r58318897","pull_request_url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/comments/58318897"},"html":{"href":"https://github.com/hyde2able/TsuiMana/pull/106#discussion_r58318897"},"pull_request":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106","id":65082891,"html_url":"https://github.com/hyde2able/TsuiMana/pull/106","diff_url":"https://github.com/hyde2able/TsuiMana/pull/106.diff","patch_url":"https://github.com/hyde2able/TsuiMana/pull/106.patch","issue_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues/106","number":106,"state":"open","locked":false,"title":"字幕をmongoDBに移行完了！","user":{"login":"hyde2able","id":11733664,"avatar_url":"https://avatars.githubusercontent.com/u/11733664?v=3","gravatar_id":"","url":"https://api.github.com/users/hyde2able","html_url":"https://github.com/hyde2able","followers_url":"https://api.github.com/users/hyde2able/followers","following_url":"https://api.github.com/users/hyde2able/following{/other_user}","gists_url":"https://api.github.com/users/hyde2able/gists{/gist_id}","starred_url":"https://api.github.com/users/hyde2able/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyde2able/subscriptions","organizations_url":"https://api.github.com/users/hyde2able/orgs","repos_url":"https://api.github.com/users/hyde2able/repos","events_url":"https://api.github.com/users/hyde2able/events{/privacy}","received_events_url":"https://api.github.com/users/hyde2able/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-03T22:31:27Z","updated_at":"2016-04-03T22:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9a77f17760d9f5d437341b093db9dd615361a10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106/commits","review_comments_url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106/comments","review_comment_url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues/106/comments","statuses_url":"https://api.github.com/repos/hyde2able/TsuiMana/statuses/28d7d18b2d494591463e4ecc65e90bae569edb91","head":{"label":"hyde2able:feature/mongoid","ref":"feature/mongoid","sha":"28d7d18b2d494591463e4ecc65e90bae569edb91","user":{"login":"hyde2able","id":11733664,"avatar_url":"https://avatars.githubusercontent.com/u/11733664?v=3","gravatar_id":"","url":"https://api.github.com/users/hyde2able","html_url":"https://github.com/hyde2able","followers_url":"https://api.github.com/users/hyde2able/followers","following_url":"https://api.github.com/users/hyde2able/following{/other_user}","gists_url":"https://api.github.com/users/hyde2able/gists{/gist_id}","starred_url":"https://api.github.com/users/hyde2able/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyde2able/subscriptions","organizations_url":"https://api.github.com/users/hyde2able/orgs","repos_url":"https://api.github.com/users/hyde2able/repos","events_url":"https://api.github.com/users/hyde2able/events{/privacy}","received_events_url":"https://api.github.com/users/hyde2able/received_events","type":"User","site_admin":false},"repo":{"id":46860235,"name":"TsuiMana","full_name":"hyde2able/TsuiMana","owner":{"login":"hyde2able","id":11733664,"avatar_url":"https://avatars.githubusercontent.com/u/11733664?v=3","gravatar_id":"","url":"https://api.github.com/users/hyde2able","html_url":"https://github.com/hyde2able","followers_url":"https://api.github.com/users/hyde2able/followers","following_url":"https://api.github.com/users/hyde2able/following{/other_user}","gists_url":"https://api.github.com/users/hyde2able/gists{/gist_id}","starred_url":"https://api.github.com/users/hyde2able/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyde2able/subscriptions","organizations_url":"https://api.github.com/users/hyde2able/orgs","repos_url":"https://api.github.com/users/hyde2able/repos","events_url":"https://api.github.com/users/hyde2able/events{/privacy}","received_events_url":"https://api.github.com/users/hyde2able/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hyde2able/TsuiMana","description":"英語学習に役立つ動画のプラットフォーム（がんばるぞー）","fork":false,"url":"https://api.github.com/repos/hyde2able/TsuiMana","forks_url":"https://api.github.com/repos/hyde2able/TsuiMana/forks","keys_url":"https://api.github.com/repos/hyde2able/TsuiMana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyde2able/TsuiMana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyde2able/TsuiMana/teams","hooks_url":"https://api.github.com/repos/hyde2able/TsuiMana/hooks","issue_events_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues/events{/number}","events_url":"https://api.github.com/repos/hyde2able/TsuiMana/events","assignees_url":"https://api.github.com/repos/hyde2able/TsuiMana/assignees{/user}","branches_url":"https://api.github.com/repos/hyde2able/TsuiMana/branches{/branch}","tags_url":"https://api.github.com/repos/hyde2able/TsuiMana/tags","blobs_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyde2able/TsuiMana/statuses/{sha}","languages_url":"https://api.github.com/repos/hyde2able/TsuiMana/languages","stargazers_url":"https://api.github.com/repos/hyde2able/TsuiMana/stargazers","contributors_url":"https://api.github.com/repos/hyde2able/TsuiMana/contributors","subscribers_url":"https://api.github.com/repos/hyde2able/TsuiMana/subscribers","subscription_url":"https://api.github.com/repos/hyde2able/TsuiMana/subscription","commits_url":"https://api.github.com/repos/hyde2able/TsuiMana/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyde2able/TsuiMana/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyde2able/TsuiMana/contents/{+path}","compare_url":"https://api.github.com/repos/hyde2able/TsuiMana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyde2able/TsuiMana/merges","archive_url":"https://api.github.com/repos/hyde2able/TsuiMana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyde2able/TsuiMana/downloads","issues_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues{/number}","pulls_url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls{/number}","milestones_url":"https://api.github.com/repos/hyde2able/TsuiMana/milestones{/number}","notifications_url":"https://api.github.com/repos/hyde2able/TsuiMana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyde2able/TsuiMana/labels{/name}","releases_url":"https://api.github.com/repos/hyde2able/TsuiMana/releases{/id}","deployments_url":"https://api.github.com/repos/hyde2able/TsuiMana/deployments","created_at":"2015-11-25T12:27:49Z","updated_at":"2016-03-16T11:31:26Z","pushed_at":"2016-04-03T22:31:27Z","git_url":"git://github.com/hyde2able/TsuiMana.git","ssh_url":"git@github.com:hyde2able/TsuiMana.git","clone_url":"https://github.com/hyde2able/TsuiMana.git","svn_url":"https://github.com/hyde2able/TsuiMana","homepage":"","size":11565,"stargazers_count":4,"watchers_count":4,"language":"Groff","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":4,"default_branch":"master"}},"base":{"label":"hyde2able:develop","ref":"develop","sha":"6c94cd455ade00b4e1715c6ef72d5467aa17afa4","user":{"login":"hyde2able","id":11733664,"avatar_url":"https://avatars.githubusercontent.com/u/11733664?v=3","gravatar_id":"","url":"https://api.github.com/users/hyde2able","html_url":"https://github.com/hyde2able","followers_url":"https://api.github.com/users/hyde2able/followers","following_url":"https://api.github.com/users/hyde2able/following{/other_user}","gists_url":"https://api.github.com/users/hyde2able/gists{/gist_id}","starred_url":"https://api.github.com/users/hyde2able/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyde2able/subscriptions","organizations_url":"https://api.github.com/users/hyde2able/orgs","repos_url":"https://api.github.com/users/hyde2able/repos","events_url":"https://api.github.com/users/hyde2able/events{/privacy}","received_events_url":"https://api.github.com/users/hyde2able/received_events","type":"User","site_admin":false},"repo":{"id":46860235,"name":"TsuiMana","full_name":"hyde2able/TsuiMana","owner":{"login":"hyde2able","id":11733664,"avatar_url":"https://avatars.githubusercontent.com/u/11733664?v=3","gravatar_id":"","url":"https://api.github.com/users/hyde2able","html_url":"https://github.com/hyde2able","followers_url":"https://api.github.com/users/hyde2able/followers","following_url":"https://api.github.com/users/hyde2able/following{/other_user}","gists_url":"https://api.github.com/users/hyde2able/gists{/gist_id}","starred_url":"https://api.github.com/users/hyde2able/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyde2able/subscriptions","organizations_url":"https://api.github.com/users/hyde2able/orgs","repos_url":"https://api.github.com/users/hyde2able/repos","events_url":"https://api.github.com/users/hyde2able/events{/privacy}","received_events_url":"https://api.github.com/users/hyde2able/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hyde2able/TsuiMana","description":"英語学習に役立つ動画のプラットフォーム（がんばるぞー）","fork":false,"url":"https://api.github.com/repos/hyde2able/TsuiMana","forks_url":"https://api.github.com/repos/hyde2able/TsuiMana/forks","keys_url":"https://api.github.com/repos/hyde2able/TsuiMana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyde2able/TsuiMana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyde2able/TsuiMana/teams","hooks_url":"https://api.github.com/repos/hyde2able/TsuiMana/hooks","issue_events_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues/events{/number}","events_url":"https://api.github.com/repos/hyde2able/TsuiMana/events","assignees_url":"https://api.github.com/repos/hyde2able/TsuiMana/assignees{/user}","branches_url":"https://api.github.com/repos/hyde2able/TsuiMana/branches{/branch}","tags_url":"https://api.github.com/repos/hyde2able/TsuiMana/tags","blobs_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyde2able/TsuiMana/statuses/{sha}","languages_url":"https://api.github.com/repos/hyde2able/TsuiMana/languages","stargazers_url":"https://api.github.com/repos/hyde2able/TsuiMana/stargazers","contributors_url":"https://api.github.com/repos/hyde2able/TsuiMana/contributors","subscribers_url":"https://api.github.com/repos/hyde2able/TsuiMana/subscribers","subscription_url":"https://api.github.com/repos/hyde2able/TsuiMana/subscription","commits_url":"https://api.github.com/repos/hyde2able/TsuiMana/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyde2able/TsuiMana/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyde2able/TsuiMana/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyde2able/TsuiMana/contents/{+path}","compare_url":"https://api.github.com/repos/hyde2able/TsuiMana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyde2able/TsuiMana/merges","archive_url":"https://api.github.com/repos/hyde2able/TsuiMana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyde2able/TsuiMana/downloads","issues_url":"https://api.github.com/repos/hyde2able/TsuiMana/issues{/number}","pulls_url":"https://api.github.com/repos/hyde2able/TsuiMana/pulls{/number}","milestones_url":"https://api.github.com/repos/hyde2able/TsuiMana/milestones{/number}","notifications_url":"https://api.github.com/repos/hyde2able/TsuiMana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyde2able/TsuiMana/labels{/name}","releases_url":"https://api.github.com/repos/hyde2able/TsuiMana/releases{/id}","deployments_url":"https://api.github.com/repos/hyde2able/TsuiMana/deployments","created_at":"2015-11-25T12:27:49Z","updated_at":"2016-03-16T11:31:26Z","pushed_at":"2016-04-03T22:31:27Z","git_url":"git://github.com/hyde2able/TsuiMana.git","ssh_url":"git@github.com:hyde2able/TsuiMana.git","clone_url":"https://github.com/hyde2able/TsuiMana.git","svn_url":"https://github.com/hyde2able/TsuiMana","homepage":"","size":11565,"stargazers_count":4,"watchers_count":4,"language":"Groff","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106"},"html":{"href":"https://github.com/hyde2able/TsuiMana/pull/106"},"issue":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/issues/106"},"comments":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/hyde2able/TsuiMana/statuses/28d7d18b2d494591463e4ecc65e90bae569edb91"}}}}