{"action":"created","comment":{"url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/comments/27789424","id":27789424,"diff_hunk":"@@ -20,18 +19,18 @@ def perform(phenotype_id, variation, target_address)\n     end\n \n     if @genotyping_files != []\n-      @time = Time.now.to_s.gsub(\":\",\"_\")\n-      if File.exists?(::Rails.root.to_s+\"/public/data/zip/\"+phenotype_id.to_s+\".\"+@time.to_s.gsub(\" \",\"_\")+\".zip\") == false\n-        Zip::File.open(::Rails.root.to_s+\"/public/data/zip/\"+phenotype_id.to_s+\".\"+@time.to_s.gsub(\" \",\"_\")+\".zip\", Zip::File::CREATE) do |zipfile| \n+      @time = Time.now.to_s.gsub(':', '_')\n+      if File.exist?(::Rails.root.to_s + '/public/data/zip/' + phenotype_id.to_s + '.' + @time.to_s.gsub(' ', '_') + '.zip') == false\n+        Zip::File.open(::Rails.root.to_s + '/public/data/zip/' + phenotype_id.to_s + '.' + @time.to_s.gsub(' ', '_') + '.zip', Zip::File::CREATE) do |zipfile|\n           @genotyping_files.each do |gen_file|\n-            zipfile.add(\"user\"+gen_file.user_id.to_s+\"_file\"+gen_file.id.to_s+\"_yearofbirth\"+gen_file.user.yearofbirth+\"_sex\"+gen_file.user.sex+\".\"+gen_file.filetype+\".txt\", ::Rails.root.to_s+\"/public/data/\"+ gen_file.fs_filename)\n+            zipfile.add('user' + gen_file.user_id.to_s + '_file' + gen_file.id.to_s + '_yearofbirth' + gen_file.user.yearofbirth + '_sex' + gen_file.user.sex + '.' + gen_file.filetype + '.txt', ::Rails.root.to_s + '/public/data/' + gen_file.fs_filename)\n           end\n         end\n       end\n-      system(\"chmod 777 \"+::Rails.root.to_s+\"/public/data/zip/\"+phenotype_id.to_s+\".\"+@time.to_s.gsub(\" \",\"_\")+\".zip\")\n-      UserMailer.genotyping_results(target_address,\"/data/zip/\"+phenotype_id.to_s+\".\"+@time.to_s.gsub(\" \",\"_\")+\".zip\",Phenotype.find_by_id(phenotype_id).characteristic,variation).deliver_later\n+      system('chmod 777 ' + ::Rails.root.to_s + '/public/data/zip/' + phenotype_id.to_s + '.' + @time.to_s.gsub(' ', '_') + '.zip')\n+      UserMailer.genotyping_results(target_address, '/data/zip/' + phenotype_id.to_s + '.' + @time.to_s.gsub(' ', '_') + '.zip', Phenotype.find_by_id(phenotype_id).characteristic, variation).deliver_later","path":"app/workers/zipgenotypingfiles.rb","position":37,"original_position":37,"commit_id":"4c96fd07919560cda7a783409dce297cf255371b","original_commit_id":"4c96fd07919560cda7a783409dce297cf255371b","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. [204/100]","created_at":"2015-04-06T08:42:43Z","updated_at":"2015-04-06T08:42:43Z","html_url":"https://github.com/gedankenstuecke/snpr/pull/152#discussion_r27789424","pull_request_url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152","_links":{"self":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/comments/27789424"},"html":{"href":"https://github.com/gedankenstuecke/snpr/pull/152#discussion_r27789424"},"pull_request":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152"}}},"pull_request":{"url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152","id":32667593,"html_url":"https://github.com/gedankenstuecke/snpr/pull/152","diff_url":"https://github.com/gedankenstuecke/snpr/pull/152.diff","patch_url":"https://github.com/gedankenstuecke/snpr/pull/152.patch","issue_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/152","number":152,"state":"open","locked":false,"title":"Fix UserPhenotype search in Zipgenotypingfiles worker","user":{"login":"tsujigiri","id":140724,"avatar_url":"https://avatars.githubusercontent.com/u/140724?v=3","gravatar_id":"","url":"https://api.github.com/users/tsujigiri","html_url":"https://github.com/tsujigiri","followers_url":"https://api.github.com/users/tsujigiri/followers","following_url":"https://api.github.com/users/tsujigiri/following{/other_user}","gists_url":"https://api.github.com/users/tsujigiri/gists{/gist_id}","starred_url":"https://api.github.com/users/tsujigiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsujigiri/subscriptions","organizations_url":"https://api.github.com/users/tsujigiri/orgs","repos_url":"https://api.github.com/users/tsujigiri/repos","events_url":"https://api.github.com/users/tsujigiri/events{/privacy}","received_events_url":"https://api.github.com/users/tsujigiri/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-06T08:31:05Z","updated_at":"2015-04-06T08:42:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97594352c57aee9984274803928e635294c09f3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152/commits","review_comments_url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152/comments","review_comment_url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/152/comments","statuses_url":"https://api.github.com/repos/gedankenstuecke/snpr/statuses/4c96fd07919560cda7a783409dce297cf255371b","head":{"label":"tsujigiri:fix-search","ref":"fix-search","sha":"4c96fd07919560cda7a783409dce297cf255371b","user":{"login":"tsujigiri","id":140724,"avatar_url":"https://avatars.githubusercontent.com/u/140724?v=3","gravatar_id":"","url":"https://api.github.com/users/tsujigiri","html_url":"https://github.com/tsujigiri","followers_url":"https://api.github.com/users/tsujigiri/followers","following_url":"https://api.github.com/users/tsujigiri/following{/other_user}","gists_url":"https://api.github.com/users/tsujigiri/gists{/gist_id}","starred_url":"https://api.github.com/users/tsujigiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsujigiri/subscriptions","organizations_url":"https://api.github.com/users/tsujigiri/orgs","repos_url":"https://api.github.com/users/tsujigiri/repos","events_url":"https://api.github.com/users/tsujigiri/events{/privacy}","received_events_url":"https://api.github.com/users/tsujigiri/received_events","type":"User","site_admin":false},"repo":{"id":2326534,"name":"snpr","full_name":"tsujigiri/snpr","owner":{"login":"tsujigiri","id":140724,"avatar_url":"https://avatars.githubusercontent.com/u/140724?v=3","gravatar_id":"","url":"https://api.github.com/users/tsujigiri","html_url":"https://github.com/tsujigiri","followers_url":"https://api.github.com/users/tsujigiri/followers","following_url":"https://api.github.com/users/tsujigiri/following{/other_user}","gists_url":"https://api.github.com/users/tsujigiri/gists{/gist_id}","starred_url":"https://api.github.com/users/tsujigiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsujigiri/subscriptions","organizations_url":"https://api.github.com/users/tsujigiri/orgs","repos_url":"https://api.github.com/users/tsujigiri/repos","events_url":"https://api.github.com/users/tsujigiri/events{/privacy}","received_events_url":"https://api.github.com/users/tsujigiri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsujigiri/snpr","description":"The sources of the openSNP website","fork":true,"url":"https://api.github.com/repos/tsujigiri/snpr","forks_url":"https://api.github.com/repos/tsujigiri/snpr/forks","keys_url":"https://api.github.com/repos/tsujigiri/snpr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsujigiri/snpr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsujigiri/snpr/teams","hooks_url":"https://api.github.com/repos/tsujigiri/snpr/hooks","issue_events_url":"https://api.github.com/repos/tsujigiri/snpr/issues/events{/number}","events_url":"https://api.github.com/repos/tsujigiri/snpr/events","assignees_url":"https://api.github.com/repos/tsujigiri/snpr/assignees{/user}","branches_url":"https://api.github.com/repos/tsujigiri/snpr/branches{/branch}","tags_url":"https://api.github.com/repos/tsujigiri/snpr/tags","blobs_url":"https://api.github.com/repos/tsujigiri/snpr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsujigiri/snpr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsujigiri/snpr/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsujigiri/snpr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsujigiri/snpr/statuses/{sha}","languages_url":"https://api.github.com/repos/tsujigiri/snpr/languages","stargazers_url":"https://api.github.com/repos/tsujigiri/snpr/stargazers","contributors_url":"https://api.github.com/repos/tsujigiri/snpr/contributors","subscribers_url":"https://api.github.com/repos/tsujigiri/snpr/subscribers","subscription_url":"https://api.github.com/repos/tsujigiri/snpr/subscription","commits_url":"https://api.github.com/repos/tsujigiri/snpr/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsujigiri/snpr/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsujigiri/snpr/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsujigiri/snpr/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsujigiri/snpr/contents/{+path}","compare_url":"https://api.github.com/repos/tsujigiri/snpr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsujigiri/snpr/merges","archive_url":"https://api.github.com/repos/tsujigiri/snpr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsujigiri/snpr/downloads","issues_url":"https://api.github.com/repos/tsujigiri/snpr/issues{/number}","pulls_url":"https://api.github.com/repos/tsujigiri/snpr/pulls{/number}","milestones_url":"https://api.github.com/repos/tsujigiri/snpr/milestones{/number}","notifications_url":"https://api.github.com/repos/tsujigiri/snpr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsujigiri/snpr/labels{/name}","releases_url":"https://api.github.com/repos/tsujigiri/snpr/releases{/id}","created_at":"2011-09-05T06:14:50Z","updated_at":"2014-06-08T11:05:32Z","pushed_at":"2015-04-06T08:42:38Z","git_url":"git://github.com/tsujigiri/snpr.git","ssh_url":"git@github.com:tsujigiri/snpr.git","clone_url":"https://github.com/tsujigiri/snpr.git","svn_url":"https://github.com/tsujigiri/snpr","homepage":"http://opensnp.org","size":20561,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gedankenstuecke:master","ref":"master","sha":"18dfd8c718894ac47634d3259eded14fba481882","user":{"login":"gedankenstuecke","id":674899,"avatar_url":"https://avatars.githubusercontent.com/u/674899?v=3","gravatar_id":"","url":"https://api.github.com/users/gedankenstuecke","html_url":"https://github.com/gedankenstuecke","followers_url":"https://api.github.com/users/gedankenstuecke/followers","following_url":"https://api.github.com/users/gedankenstuecke/following{/other_user}","gists_url":"https://api.github.com/users/gedankenstuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/gedankenstuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedankenstuecke/subscriptions","organizations_url":"https://api.github.com/users/gedankenstuecke/orgs","repos_url":"https://api.github.com/users/gedankenstuecke/repos","events_url":"https://api.github.com/users/gedankenstuecke/events{/privacy}","received_events_url":"https://api.github.com/users/gedankenstuecke/received_events","type":"User","site_admin":false},"repo":{"id":1861088,"name":"snpr","full_name":"gedankenstuecke/snpr","owner":{"login":"gedankenstuecke","id":674899,"avatar_url":"https://avatars.githubusercontent.com/u/674899?v=3","gravatar_id":"","url":"https://api.github.com/users/gedankenstuecke","html_url":"https://github.com/gedankenstuecke","followers_url":"https://api.github.com/users/gedankenstuecke/followers","following_url":"https://api.github.com/users/gedankenstuecke/following{/other_user}","gists_url":"https://api.github.com/users/gedankenstuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/gedankenstuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedankenstuecke/subscriptions","organizations_url":"https://api.github.com/users/gedankenstuecke/orgs","repos_url":"https://api.github.com/users/gedankenstuecke/repos","events_url":"https://api.github.com/users/gedankenstuecke/events{/privacy}","received_events_url":"https://api.github.com/users/gedankenstuecke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gedankenstuecke/snpr","description":"The sources of the openSNP website","fork":false,"url":"https://api.github.com/repos/gedankenstuecke/snpr","forks_url":"https://api.github.com/repos/gedankenstuecke/snpr/forks","keys_url":"https://api.github.com/repos/gedankenstuecke/snpr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gedankenstuecke/snpr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gedankenstuecke/snpr/teams","hooks_url":"https://api.github.com/repos/gedankenstuecke/snpr/hooks","issue_events_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/events{/number}","events_url":"https://api.github.com/repos/gedankenstuecke/snpr/events","assignees_url":"https://api.github.com/repos/gedankenstuecke/snpr/assignees{/user}","branches_url":"https://api.github.com/repos/gedankenstuecke/snpr/branches{/branch}","tags_url":"https://api.github.com/repos/gedankenstuecke/snpr/tags","blobs_url":"https://api.github.com/repos/gedankenstuecke/snpr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gedankenstuecke/snpr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gedankenstuecke/snpr/git/refs{/sha}","trees_url":"https://api.github.com/repos/gedankenstuecke/snpr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gedankenstuecke/snpr/statuses/{sha}","languages_url":"https://api.github.com/repos/gedankenstuecke/snpr/languages","stargazers_url":"https://api.github.com/repos/gedankenstuecke/snpr/stargazers","contributors_url":"https://api.github.com/repos/gedankenstuecke/snpr/contributors","subscribers_url":"https://api.github.com/repos/gedankenstuecke/snpr/subscribers","subscription_url":"https://api.github.com/repos/gedankenstuecke/snpr/subscription","commits_url":"https://api.github.com/repos/gedankenstuecke/snpr/commits{/sha}","git_commits_url":"https://api.github.com/repos/gedankenstuecke/snpr/git/commits{/sha}","comments_url":"https://api.github.com/repos/gedankenstuecke/snpr/comments{/number}","issue_comment_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/comments{/number}","contents_url":"https://api.github.com/repos/gedankenstuecke/snpr/contents/{+path}","compare_url":"https://api.github.com/repos/gedankenstuecke/snpr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gedankenstuecke/snpr/merges","archive_url":"https://api.github.com/repos/gedankenstuecke/snpr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gedankenstuecke/snpr/downloads","issues_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues{/number}","pulls_url":"https://api.github.com/repos/gedankenstuecke/snpr/pulls{/number}","milestones_url":"https://api.github.com/repos/gedankenstuecke/snpr/milestones{/number}","notifications_url":"https://api.github.com/repos/gedankenstuecke/snpr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gedankenstuecke/snpr/labels{/name}","releases_url":"https://api.github.com/repos/gedankenstuecke/snpr/releases{/id}","created_at":"2011-06-07T17:37:02Z","updated_at":"2015-04-05T13:09:32Z","pushed_at":"2015-04-06T08:42:39Z","git_url":"git://github.com/gedankenstuecke/snpr.git","ssh_url":"git@github.com:gedankenstuecke/snpr.git","clone_url":"https://github.com/gedankenstuecke/snpr.git","svn_url":"https://github.com/gedankenstuecke/snpr","homepage":"http://opensnp.org","size":21504,"stargazers_count":59,"watchers_count":59,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152"},"html":{"href":"https://github.com/gedankenstuecke/snpr/pull/152"},"issue":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/issues/152"},"comments":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/gedankenstuecke/snpr/statuses/4c96fd07919560cda7a783409dce297cf255371b"}}}}