{"action":"created","comment":{"url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/comments/53563865","id":53563865,"diff_hunk":"@@ -0,0 +1,28 @@\n+module PaperTrail\n+\trequire 'csv'\n+\tclass Version < ActiveRecord::Base\n+\n+\t\tdef self.to_csv(options = {})\n+\t\t\tCSV.generate(options) do |csv|\n+\t\t\t\tcsv << csv_column_names\n+\t\t\t\t# column_namesはカラム名を配列で返す","path":"app/models/version.rb","position":8,"original_position":8,"commit_id":"9a7eb13a7d8cc3a2ec5daf99b187df9534c98d88","original_commit_id":"9a7eb13a7d8cc3a2ec5daf99b187df9534c98d88","user":{"login":"d-sato2","id":13739489,"avatar_url":"https://avatars.githubusercontent.com/u/13739489?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sato2","html_url":"https://github.com/d-sato2","followers_url":"https://api.github.com/users/d-sato2/followers","following_url":"https://api.github.com/users/d-sato2/following{/other_user}","gists_url":"https://api.github.com/users/d-sato2/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sato2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sato2/subscriptions","organizations_url":"https://api.github.com/users/d-sato2/orgs","repos_url":"https://api.github.com/users/d-sato2/repos","events_url":"https://api.github.com/users/d-sato2/events{/privacy}","received_events_url":"https://api.github.com/users/d-sato2/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Tab detected. [:ref](https://github.com/bbatsov/ruby-style-guide#spaces-indentation)\n* Use only ascii symbols in comments. [:ref](https://github.com/bbatsov/ruby-style-guide#english-comments)","created_at":"2016-02-21T09:16:23Z","updated_at":"2016-02-21T09:16:23Z","html_url":"https://github.com/d-sato2/Map_Rails2/pull/4#discussion_r53563865","pull_request_url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/comments/53563865"},"html":{"href":"https://github.com/d-sato2/Map_Rails2/pull/4#discussion_r53563865"},"pull_request":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4","id":60080114,"html_url":"https://github.com/d-sato2/Map_Rails2/pull/4","diff_url":"https://github.com/d-sato2/Map_Rails2/pull/4.diff","patch_url":"https://github.com/d-sato2/Map_Rails2/pull/4.patch","issue_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/4","number":4,"state":"closed","locked":false,"title":"検索機能修正、更新履歴ダウンロード機能作成（未完）","user":{"login":"d-sato2","id":13739489,"avatar_url":"https://avatars.githubusercontent.com/u/13739489?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sato2","html_url":"https://github.com/d-sato2","followers_url":"https://api.github.com/users/d-sato2/followers","following_url":"https://api.github.com/users/d-sato2/following{/other_user}","gists_url":"https://api.github.com/users/d-sato2/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sato2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sato2/subscriptions","organizations_url":"https://api.github.com/users/d-sato2/orgs","repos_url":"https://api.github.com/users/d-sato2/repos","events_url":"https://api.github.com/users/d-sato2/events{/privacy}","received_events_url":"https://api.github.com/users/d-sato2/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-21T09:16:14Z","updated_at":"2016-02-21T09:16:23Z","closed_at":"2016-02-21T09:16:19Z","merged_at":"2016-02-21T09:16:19Z","merge_commit_sha":"3e9146d4ee711263522ff34303688982e01c9f2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4/commits","review_comments_url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4/comments","review_comment_url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/4/comments","statuses_url":"https://api.github.com/repos/d-sato2/Map_Rails2/statuses/9a7eb13a7d8cc3a2ec5daf99b187df9534c98d88","head":{"label":"d-sato2:develop","ref":"develop","sha":"9a7eb13a7d8cc3a2ec5daf99b187df9534c98d88","user":{"login":"d-sato2","id":13739489,"avatar_url":"https://avatars.githubusercontent.com/u/13739489?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sato2","html_url":"https://github.com/d-sato2","followers_url":"https://api.github.com/users/d-sato2/followers","following_url":"https://api.github.com/users/d-sato2/following{/other_user}","gists_url":"https://api.github.com/users/d-sato2/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sato2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sato2/subscriptions","organizations_url":"https://api.github.com/users/d-sato2/orgs","repos_url":"https://api.github.com/users/d-sato2/repos","events_url":"https://api.github.com/users/d-sato2/events{/privacy}","received_events_url":"https://api.github.com/users/d-sato2/received_events","type":"User","site_admin":false},"repo":{"id":50220611,"name":"Map_Rails2","full_name":"d-sato2/Map_Rails2","owner":{"login":"d-sato2","id":13739489,"avatar_url":"https://avatars.githubusercontent.com/u/13739489?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sato2","html_url":"https://github.com/d-sato2","followers_url":"https://api.github.com/users/d-sato2/followers","following_url":"https://api.github.com/users/d-sato2/following{/other_user}","gists_url":"https://api.github.com/users/d-sato2/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sato2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sato2/subscriptions","organizations_url":"https://api.github.com/users/d-sato2/orgs","repos_url":"https://api.github.com/users/d-sato2/repos","events_url":"https://api.github.com/users/d-sato2/events{/privacy}","received_events_url":"https://api.github.com/users/d-sato2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d-sato2/Map_Rails2","description":"","fork":false,"url":"https://api.github.com/repos/d-sato2/Map_Rails2","forks_url":"https://api.github.com/repos/d-sato2/Map_Rails2/forks","keys_url":"https://api.github.com/repos/d-sato2/Map_Rails2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d-sato2/Map_Rails2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d-sato2/Map_Rails2/teams","hooks_url":"https://api.github.com/repos/d-sato2/Map_Rails2/hooks","issue_events_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/events{/number}","events_url":"https://api.github.com/repos/d-sato2/Map_Rails2/events","assignees_url":"https://api.github.com/repos/d-sato2/Map_Rails2/assignees{/user}","branches_url":"https://api.github.com/repos/d-sato2/Map_Rails2/branches{/branch}","tags_url":"https://api.github.com/repos/d-sato2/Map_Rails2/tags","blobs_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/refs{/sha}","trees_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d-sato2/Map_Rails2/statuses/{sha}","languages_url":"https://api.github.com/repos/d-sato2/Map_Rails2/languages","stargazers_url":"https://api.github.com/repos/d-sato2/Map_Rails2/stargazers","contributors_url":"https://api.github.com/repos/d-sato2/Map_Rails2/contributors","subscribers_url":"https://api.github.com/repos/d-sato2/Map_Rails2/subscribers","subscription_url":"https://api.github.com/repos/d-sato2/Map_Rails2/subscription","commits_url":"https://api.github.com/repos/d-sato2/Map_Rails2/commits{/sha}","git_commits_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/commits{/sha}","comments_url":"https://api.github.com/repos/d-sato2/Map_Rails2/comments{/number}","issue_comment_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/comments{/number}","contents_url":"https://api.github.com/repos/d-sato2/Map_Rails2/contents/{+path}","compare_url":"https://api.github.com/repos/d-sato2/Map_Rails2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d-sato2/Map_Rails2/merges","archive_url":"https://api.github.com/repos/d-sato2/Map_Rails2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d-sato2/Map_Rails2/downloads","issues_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues{/number}","pulls_url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls{/number}","milestones_url":"https://api.github.com/repos/d-sato2/Map_Rails2/milestones{/number}","notifications_url":"https://api.github.com/repos/d-sato2/Map_Rails2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d-sato2/Map_Rails2/labels{/name}","releases_url":"https://api.github.com/repos/d-sato2/Map_Rails2/releases{/id}","deployments_url":"https://api.github.com/repos/d-sato2/Map_Rails2/deployments","created_at":"2016-01-23T02:58:21Z","updated_at":"2016-01-23T02:59:19Z","pushed_at":"2016-02-21T09:16:20Z","git_url":"git://github.com/d-sato2/Map_Rails2.git","ssh_url":"git@github.com:d-sato2/Map_Rails2.git","clone_url":"https://github.com/d-sato2/Map_Rails2.git","svn_url":"https://github.com/d-sato2/Map_Rails2","homepage":null,"size":3991,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"d-sato2:master","ref":"master","sha":"45b2fadf51f90355f55a709d3bfc8807a761da5b","user":{"login":"d-sato2","id":13739489,"avatar_url":"https://avatars.githubusercontent.com/u/13739489?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sato2","html_url":"https://github.com/d-sato2","followers_url":"https://api.github.com/users/d-sato2/followers","following_url":"https://api.github.com/users/d-sato2/following{/other_user}","gists_url":"https://api.github.com/users/d-sato2/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sato2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sato2/subscriptions","organizations_url":"https://api.github.com/users/d-sato2/orgs","repos_url":"https://api.github.com/users/d-sato2/repos","events_url":"https://api.github.com/users/d-sato2/events{/privacy}","received_events_url":"https://api.github.com/users/d-sato2/received_events","type":"User","site_admin":false},"repo":{"id":50220611,"name":"Map_Rails2","full_name":"d-sato2/Map_Rails2","owner":{"login":"d-sato2","id":13739489,"avatar_url":"https://avatars.githubusercontent.com/u/13739489?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sato2","html_url":"https://github.com/d-sato2","followers_url":"https://api.github.com/users/d-sato2/followers","following_url":"https://api.github.com/users/d-sato2/following{/other_user}","gists_url":"https://api.github.com/users/d-sato2/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sato2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sato2/subscriptions","organizations_url":"https://api.github.com/users/d-sato2/orgs","repos_url":"https://api.github.com/users/d-sato2/repos","events_url":"https://api.github.com/users/d-sato2/events{/privacy}","received_events_url":"https://api.github.com/users/d-sato2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d-sato2/Map_Rails2","description":"","fork":false,"url":"https://api.github.com/repos/d-sato2/Map_Rails2","forks_url":"https://api.github.com/repos/d-sato2/Map_Rails2/forks","keys_url":"https://api.github.com/repos/d-sato2/Map_Rails2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d-sato2/Map_Rails2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d-sato2/Map_Rails2/teams","hooks_url":"https://api.github.com/repos/d-sato2/Map_Rails2/hooks","issue_events_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/events{/number}","events_url":"https://api.github.com/repos/d-sato2/Map_Rails2/events","assignees_url":"https://api.github.com/repos/d-sato2/Map_Rails2/assignees{/user}","branches_url":"https://api.github.com/repos/d-sato2/Map_Rails2/branches{/branch}","tags_url":"https://api.github.com/repos/d-sato2/Map_Rails2/tags","blobs_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/refs{/sha}","trees_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d-sato2/Map_Rails2/statuses/{sha}","languages_url":"https://api.github.com/repos/d-sato2/Map_Rails2/languages","stargazers_url":"https://api.github.com/repos/d-sato2/Map_Rails2/stargazers","contributors_url":"https://api.github.com/repos/d-sato2/Map_Rails2/contributors","subscribers_url":"https://api.github.com/repos/d-sato2/Map_Rails2/subscribers","subscription_url":"https://api.github.com/repos/d-sato2/Map_Rails2/subscription","commits_url":"https://api.github.com/repos/d-sato2/Map_Rails2/commits{/sha}","git_commits_url":"https://api.github.com/repos/d-sato2/Map_Rails2/git/commits{/sha}","comments_url":"https://api.github.com/repos/d-sato2/Map_Rails2/comments{/number}","issue_comment_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/comments{/number}","contents_url":"https://api.github.com/repos/d-sato2/Map_Rails2/contents/{+path}","compare_url":"https://api.github.com/repos/d-sato2/Map_Rails2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d-sato2/Map_Rails2/merges","archive_url":"https://api.github.com/repos/d-sato2/Map_Rails2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d-sato2/Map_Rails2/downloads","issues_url":"https://api.github.com/repos/d-sato2/Map_Rails2/issues{/number}","pulls_url":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls{/number}","milestones_url":"https://api.github.com/repos/d-sato2/Map_Rails2/milestones{/number}","notifications_url":"https://api.github.com/repos/d-sato2/Map_Rails2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d-sato2/Map_Rails2/labels{/name}","releases_url":"https://api.github.com/repos/d-sato2/Map_Rails2/releases{/id}","deployments_url":"https://api.github.com/repos/d-sato2/Map_Rails2/deployments","created_at":"2016-01-23T02:58:21Z","updated_at":"2016-01-23T02:59:19Z","pushed_at":"2016-02-21T09:16:20Z","git_url":"git://github.com/d-sato2/Map_Rails2.git","ssh_url":"git@github.com:d-sato2/Map_Rails2.git","clone_url":"https://github.com/d-sato2/Map_Rails2.git","svn_url":"https://github.com/d-sato2/Map_Rails2","homepage":null,"size":3991,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4"},"html":{"href":"https://github.com/d-sato2/Map_Rails2/pull/4"},"issue":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/4"},"comments":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/d-sato2/Map_Rails2/statuses/9a7eb13a7d8cc3a2ec5daf99b187df9534c98d88"}}}}