{"action":"created","comment":{"url":"https://api.github.com/repos/alongat/expenses/pulls/comments/39506782","id":39506782,"diff_hunk":"@@ -0,0 +1,24 @@\n+require 'csv'\n+\n+class Utils\n+  # CSV file should look like :\n+  # date,cash_status,added_to_savings,cash,credit,income,unusual_expense,comment,histalmut,gemel,pension","path":"expenses/app/helpers/utils.rb","position":5,"original_position":5,"commit_id":"3a4aa8c79657a7f6c9c165676ce732a8a7780d80","original_commit_id":"3a4aa8c79657a7f6c9c165676ce732a8a7780d80","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","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":"Line is too long. [104/80]","created_at":"2015-09-15T13:06:58Z","updated_at":"2015-09-15T13:06:58Z","html_url":"https://github.com/alongat/expenses/pull/1#discussion_r39506782","pull_request_url":"https://api.github.com/repos/alongat/expenses/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/alongat/expenses/pulls/comments/39506782"},"html":{"href":"https://github.com/alongat/expenses/pull/1#discussion_r39506782"},"pull_request":{"href":"https://api.github.com/repos/alongat/expenses/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/alongat/expenses/pulls/1","id":45046390,"html_url":"https://github.com/alongat/expenses/pull/1","diff_url":"https://github.com/alongat/expenses/pull/1.diff","patch_url":"https://github.com/alongat/expenses/pull/1.patch","issue_url":"https://api.github.com/repos/alongat/expenses/issues/1","number":1,"state":"open","locked":false,"title":"Importing util for csv","user":{"login":"alongat","id":12812096,"avatar_url":"https://avatars.githubusercontent.com/u/12812096?v=3","gravatar_id":"","url":"https://api.github.com/users/alongat","html_url":"https://github.com/alongat","followers_url":"https://api.github.com/users/alongat/followers","following_url":"https://api.github.com/users/alongat/following{/other_user}","gists_url":"https://api.github.com/users/alongat/gists{/gist_id}","starred_url":"https://api.github.com/users/alongat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alongat/subscriptions","organizations_url":"https://api.github.com/users/alongat/orgs","repos_url":"https://api.github.com/users/alongat/repos","events_url":"https://api.github.com/users/alongat/events{/privacy}","received_events_url":"https://api.github.com/users/alongat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-15T13:06:52Z","updated_at":"2015-09-15T13:06:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"595f5fe40324df256117d16092652e68ba550cf7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alongat/expenses/pulls/1/commits","review_comments_url":"https://api.github.com/repos/alongat/expenses/pulls/1/comments","review_comment_url":"https://api.github.com/repos/alongat/expenses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alongat/expenses/issues/1/comments","statuses_url":"https://api.github.com/repos/alongat/expenses/statuses/3a4aa8c79657a7f6c9c165676ce732a8a7780d80","head":{"label":"alongat:csv_util","ref":"csv_util","sha":"3a4aa8c79657a7f6c9c165676ce732a8a7780d80","user":{"login":"alongat","id":12812096,"avatar_url":"https://avatars.githubusercontent.com/u/12812096?v=3","gravatar_id":"","url":"https://api.github.com/users/alongat","html_url":"https://github.com/alongat","followers_url":"https://api.github.com/users/alongat/followers","following_url":"https://api.github.com/users/alongat/following{/other_user}","gists_url":"https://api.github.com/users/alongat/gists{/gist_id}","starred_url":"https://api.github.com/users/alongat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alongat/subscriptions","organizations_url":"https://api.github.com/users/alongat/orgs","repos_url":"https://api.github.com/users/alongat/repos","events_url":"https://api.github.com/users/alongat/events{/privacy}","received_events_url":"https://api.github.com/users/alongat/received_events","type":"User","site_admin":false},"repo":{"id":41214138,"name":"expenses","full_name":"alongat/expenses","owner":{"login":"alongat","id":12812096,"avatar_url":"https://avatars.githubusercontent.com/u/12812096?v=3","gravatar_id":"","url":"https://api.github.com/users/alongat","html_url":"https://github.com/alongat","followers_url":"https://api.github.com/users/alongat/followers","following_url":"https://api.github.com/users/alongat/following{/other_user}","gists_url":"https://api.github.com/users/alongat/gists{/gist_id}","starred_url":"https://api.github.com/users/alongat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alongat/subscriptions","organizations_url":"https://api.github.com/users/alongat/orgs","repos_url":"https://api.github.com/users/alongat/repos","events_url":"https://api.github.com/users/alongat/events{/privacy}","received_events_url":"https://api.github.com/users/alongat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alongat/expenses","description":"","fork":false,"url":"https://api.github.com/repos/alongat/expenses","forks_url":"https://api.github.com/repos/alongat/expenses/forks","keys_url":"https://api.github.com/repos/alongat/expenses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alongat/expenses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alongat/expenses/teams","hooks_url":"https://api.github.com/repos/alongat/expenses/hooks","issue_events_url":"https://api.github.com/repos/alongat/expenses/issues/events{/number}","events_url":"https://api.github.com/repos/alongat/expenses/events","assignees_url":"https://api.github.com/repos/alongat/expenses/assignees{/user}","branches_url":"https://api.github.com/repos/alongat/expenses/branches{/branch}","tags_url":"https://api.github.com/repos/alongat/expenses/tags","blobs_url":"https://api.github.com/repos/alongat/expenses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alongat/expenses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alongat/expenses/git/refs{/sha}","trees_url":"https://api.github.com/repos/alongat/expenses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alongat/expenses/statuses/{sha}","languages_url":"https://api.github.com/repos/alongat/expenses/languages","stargazers_url":"https://api.github.com/repos/alongat/expenses/stargazers","contributors_url":"https://api.github.com/repos/alongat/expenses/contributors","subscribers_url":"https://api.github.com/repos/alongat/expenses/subscribers","subscription_url":"https://api.github.com/repos/alongat/expenses/subscription","commits_url":"https://api.github.com/repos/alongat/expenses/commits{/sha}","git_commits_url":"https://api.github.com/repos/alongat/expenses/git/commits{/sha}","comments_url":"https://api.github.com/repos/alongat/expenses/comments{/number}","issue_comment_url":"https://api.github.com/repos/alongat/expenses/issues/comments{/number}","contents_url":"https://api.github.com/repos/alongat/expenses/contents/{+path}","compare_url":"https://api.github.com/repos/alongat/expenses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alongat/expenses/merges","archive_url":"https://api.github.com/repos/alongat/expenses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alongat/expenses/downloads","issues_url":"https://api.github.com/repos/alongat/expenses/issues{/number}","pulls_url":"https://api.github.com/repos/alongat/expenses/pulls{/number}","milestones_url":"https://api.github.com/repos/alongat/expenses/milestones{/number}","notifications_url":"https://api.github.com/repos/alongat/expenses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alongat/expenses/labels{/name}","releases_url":"https://api.github.com/repos/alongat/expenses/releases{/id}","created_at":"2015-08-22T15:47:22Z","updated_at":"2015-08-29T17:55:51Z","pushed_at":"2015-09-15T13:06:52Z","git_url":"git://github.com/alongat/expenses.git","ssh_url":"git@github.com:alongat/expenses.git","clone_url":"https://github.com/alongat/expenses.git","svn_url":"https://github.com/alongat/expenses","homepage":null,"size":180,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alongat:master","ref":"master","sha":"fe5e2175868017a04c68d1b02b75261607207e48","user":{"login":"alongat","id":12812096,"avatar_url":"https://avatars.githubusercontent.com/u/12812096?v=3","gravatar_id":"","url":"https://api.github.com/users/alongat","html_url":"https://github.com/alongat","followers_url":"https://api.github.com/users/alongat/followers","following_url":"https://api.github.com/users/alongat/following{/other_user}","gists_url":"https://api.github.com/users/alongat/gists{/gist_id}","starred_url":"https://api.github.com/users/alongat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alongat/subscriptions","organizations_url":"https://api.github.com/users/alongat/orgs","repos_url":"https://api.github.com/users/alongat/repos","events_url":"https://api.github.com/users/alongat/events{/privacy}","received_events_url":"https://api.github.com/users/alongat/received_events","type":"User","site_admin":false},"repo":{"id":41214138,"name":"expenses","full_name":"alongat/expenses","owner":{"login":"alongat","id":12812096,"avatar_url":"https://avatars.githubusercontent.com/u/12812096?v=3","gravatar_id":"","url":"https://api.github.com/users/alongat","html_url":"https://github.com/alongat","followers_url":"https://api.github.com/users/alongat/followers","following_url":"https://api.github.com/users/alongat/following{/other_user}","gists_url":"https://api.github.com/users/alongat/gists{/gist_id}","starred_url":"https://api.github.com/users/alongat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alongat/subscriptions","organizations_url":"https://api.github.com/users/alongat/orgs","repos_url":"https://api.github.com/users/alongat/repos","events_url":"https://api.github.com/users/alongat/events{/privacy}","received_events_url":"https://api.github.com/users/alongat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alongat/expenses","description":"","fork":false,"url":"https://api.github.com/repos/alongat/expenses","forks_url":"https://api.github.com/repos/alongat/expenses/forks","keys_url":"https://api.github.com/repos/alongat/expenses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alongat/expenses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alongat/expenses/teams","hooks_url":"https://api.github.com/repos/alongat/expenses/hooks","issue_events_url":"https://api.github.com/repos/alongat/expenses/issues/events{/number}","events_url":"https://api.github.com/repos/alongat/expenses/events","assignees_url":"https://api.github.com/repos/alongat/expenses/assignees{/user}","branches_url":"https://api.github.com/repos/alongat/expenses/branches{/branch}","tags_url":"https://api.github.com/repos/alongat/expenses/tags","blobs_url":"https://api.github.com/repos/alongat/expenses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alongat/expenses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alongat/expenses/git/refs{/sha}","trees_url":"https://api.github.com/repos/alongat/expenses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alongat/expenses/statuses/{sha}","languages_url":"https://api.github.com/repos/alongat/expenses/languages","stargazers_url":"https://api.github.com/repos/alongat/expenses/stargazers","contributors_url":"https://api.github.com/repos/alongat/expenses/contributors","subscribers_url":"https://api.github.com/repos/alongat/expenses/subscribers","subscription_url":"https://api.github.com/repos/alongat/expenses/subscription","commits_url":"https://api.github.com/repos/alongat/expenses/commits{/sha}","git_commits_url":"https://api.github.com/repos/alongat/expenses/git/commits{/sha}","comments_url":"https://api.github.com/repos/alongat/expenses/comments{/number}","issue_comment_url":"https://api.github.com/repos/alongat/expenses/issues/comments{/number}","contents_url":"https://api.github.com/repos/alongat/expenses/contents/{+path}","compare_url":"https://api.github.com/repos/alongat/expenses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alongat/expenses/merges","archive_url":"https://api.github.com/repos/alongat/expenses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alongat/expenses/downloads","issues_url":"https://api.github.com/repos/alongat/expenses/issues{/number}","pulls_url":"https://api.github.com/repos/alongat/expenses/pulls{/number}","milestones_url":"https://api.github.com/repos/alongat/expenses/milestones{/number}","notifications_url":"https://api.github.com/repos/alongat/expenses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alongat/expenses/labels{/name}","releases_url":"https://api.github.com/repos/alongat/expenses/releases{/id}","created_at":"2015-08-22T15:47:22Z","updated_at":"2015-08-29T17:55:51Z","pushed_at":"2015-09-15T13:06:52Z","git_url":"git://github.com/alongat/expenses.git","ssh_url":"git@github.com:alongat/expenses.git","clone_url":"https://github.com/alongat/expenses.git","svn_url":"https://github.com/alongat/expenses","homepage":null,"size":180,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alongat/expenses/pulls/1"},"html":{"href":"https://github.com/alongat/expenses/pull/1"},"issue":{"href":"https://api.github.com/repos/alongat/expenses/issues/1"},"comments":{"href":"https://api.github.com/repos/alongat/expenses/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/alongat/expenses/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/alongat/expenses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alongat/expenses/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/alongat/expenses/statuses/3a4aa8c79657a7f6c9c165676ce732a8a7780d80"}}}}