{"action":"created","comment":{"url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/comments/48886560","id":48886560,"diff_hunk":"@@ -0,0 +1,71 @@\n+module CreateZip\n+\n+import ..ZipFile: Writer, addfile, with_close, Deflate\n+\n+export create_zip \n+\n+\n+# Create a new ZIP archive.\n+\n+create_zip(io::IO) = Writer(io)\n+create_zip(buf::Array{UInt8,1}) = create_zip(IOBuffer(buf, false, true))\n+create_zip(f::Function, arg, args...) = with_close(f, create_zip(arg, args...))\n+create_zip(filename::AbstractString) = Writer(filename)\n+\n+function create_zip(filename::AbstractString, arg, args...)\n+    create_zip(open(filename, \"w\"), arg, args...)\n+end\n+\n+\n+# Use memory buffer if \"filename\" or \"io\" is provided.","path":"src/create_zip.jl","position":20,"original_position":20,"commit_id":"0e13dc71a5424ef058ec56be77bd6a4f06447355","original_commit_id":"0e13dc71a5424ef058ec56be77bd6a4f06447355","user":{"login":"fhs","id":183501,"avatar_url":"https://avatars.githubusercontent.com/u/183501?v=3","gravatar_id":"","url":"https://api.github.com/users/fhs","html_url":"https://github.com/fhs","followers_url":"https://api.github.com/users/fhs/followers","following_url":"https://api.github.com/users/fhs/following{/other_user}","gists_url":"https://api.github.com/users/fhs/gists{/gist_id}","starred_url":"https://api.github.com/users/fhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhs/subscriptions","organizations_url":"https://api.github.com/users/fhs/orgs","repos_url":"https://api.github.com/users/fhs/repos","events_url":"https://api.github.com/users/fhs/events{/privacy}","received_events_url":"https://api.github.com/users/fhs/received_events","type":"User","site_admin":false},"body":"is NOT provided","created_at":"2016-01-05T19:38:19Z","updated_at":"2016-01-05T19:38:19Z","html_url":"https://github.com/fhs/ZipFile.jl/pull/25#discussion_r48886560","pull_request_url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/comments/48886560"},"html":{"href":"https://github.com/fhs/ZipFile.jl/pull/25#discussion_r48886560"},"pull_request":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25","id":55049693,"html_url":"https://github.com/fhs/ZipFile.jl/pull/25","diff_url":"https://github.com/fhs/ZipFile.jl/pull/25.diff","patch_url":"https://github.com/fhs/ZipFile.jl/pull/25.patch","issue_url":"https://api.github.com/repos/fhs/ZipFile.jl/issues/25","number":25,"state":"open","locked":false,"title":"add create_zip and open_zip","user":{"login":"samoconnor","id":8266283,"avatar_url":"https://avatars.githubusercontent.com/u/8266283?v=3","gravatar_id":"","url":"https://api.github.com/users/samoconnor","html_url":"https://github.com/samoconnor","followers_url":"https://api.github.com/users/samoconnor/followers","following_url":"https://api.github.com/users/samoconnor/following{/other_user}","gists_url":"https://api.github.com/users/samoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/samoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoconnor/subscriptions","organizations_url":"https://api.github.com/users/samoconnor/orgs","repos_url":"https://api.github.com/users/samoconnor/repos","events_url":"https://api.github.com/users/samoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/samoconnor/received_events","type":"User","site_admin":false},"body":"Per https://github.com/JuliaLang/METADATA.jl/pull/4332#issuecomment-168835129","created_at":"2016-01-05T02:57:51Z","updated_at":"2016-01-05T19:38:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8648a061256b323f7e40a446568c45d86053e89b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25/commits","review_comments_url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25/comments","review_comment_url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fhs/ZipFile.jl/issues/25/comments","statuses_url":"https://api.github.com/repos/fhs/ZipFile.jl/statuses/0e13dc71a5424ef058ec56be77bd6a4f06447355","head":{"label":"samoconnor:master","ref":"master","sha":"0e13dc71a5424ef058ec56be77bd6a4f06447355","user":{"login":"samoconnor","id":8266283,"avatar_url":"https://avatars.githubusercontent.com/u/8266283?v=3","gravatar_id":"","url":"https://api.github.com/users/samoconnor","html_url":"https://github.com/samoconnor","followers_url":"https://api.github.com/users/samoconnor/followers","following_url":"https://api.github.com/users/samoconnor/following{/other_user}","gists_url":"https://api.github.com/users/samoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/samoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoconnor/subscriptions","organizations_url":"https://api.github.com/users/samoconnor/orgs","repos_url":"https://api.github.com/users/samoconnor/repos","events_url":"https://api.github.com/users/samoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/samoconnor/received_events","type":"User","site_admin":false},"repo":{"id":49037878,"name":"ZipFile.jl","full_name":"samoconnor/ZipFile.jl","owner":{"login":"samoconnor","id":8266283,"avatar_url":"https://avatars.githubusercontent.com/u/8266283?v=3","gravatar_id":"","url":"https://api.github.com/users/samoconnor","html_url":"https://github.com/samoconnor","followers_url":"https://api.github.com/users/samoconnor/followers","following_url":"https://api.github.com/users/samoconnor/following{/other_user}","gists_url":"https://api.github.com/users/samoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/samoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoconnor/subscriptions","organizations_url":"https://api.github.com/users/samoconnor/orgs","repos_url":"https://api.github.com/users/samoconnor/repos","events_url":"https://api.github.com/users/samoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/samoconnor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samoconnor/ZipFile.jl","description":"Read/Write ZIP archives in Julia","fork":true,"url":"https://api.github.com/repos/samoconnor/ZipFile.jl","forks_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/forks","keys_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/teams","hooks_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/hooks","issue_events_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/issues/events{/number}","events_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/events","assignees_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/assignees{/user}","branches_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/branches{/branch}","tags_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/tags","blobs_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/languages","stargazers_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/stargazers","contributors_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/contributors","subscribers_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/subscribers","subscription_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/subscription","commits_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/contents/{+path}","compare_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/merges","archive_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/downloads","issues_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/issues{/number}","pulls_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/labels{/name}","releases_url":"https://api.github.com/repos/samoconnor/ZipFile.jl/releases{/id}","created_at":"2016-01-05T02:54:19Z","updated_at":"2016-01-05T02:54:19Z","pushed_at":"2016-01-05T02:56:05Z","git_url":"git://github.com/samoconnor/ZipFile.jl.git","ssh_url":"git@github.com:samoconnor/ZipFile.jl.git","clone_url":"https://github.com/samoconnor/ZipFile.jl.git","svn_url":"https://github.com/samoconnor/ZipFile.jl","homepage":"https://zipfilejl.readthedocs.org/en/latest/","size":74,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"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":"fhs:master","ref":"master","sha":"d341159861d3ff015a19bbda2c11059cb619feb2","user":{"login":"fhs","id":183501,"avatar_url":"https://avatars.githubusercontent.com/u/183501?v=3","gravatar_id":"","url":"https://api.github.com/users/fhs","html_url":"https://github.com/fhs","followers_url":"https://api.github.com/users/fhs/followers","following_url":"https://api.github.com/users/fhs/following{/other_user}","gists_url":"https://api.github.com/users/fhs/gists{/gist_id}","starred_url":"https://api.github.com/users/fhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhs/subscriptions","organizations_url":"https://api.github.com/users/fhs/orgs","repos_url":"https://api.github.com/users/fhs/repos","events_url":"https://api.github.com/users/fhs/events{/privacy}","received_events_url":"https://api.github.com/users/fhs/received_events","type":"User","site_admin":false},"repo":{"id":11595228,"name":"ZipFile.jl","full_name":"fhs/ZipFile.jl","owner":{"login":"fhs","id":183501,"avatar_url":"https://avatars.githubusercontent.com/u/183501?v=3","gravatar_id":"","url":"https://api.github.com/users/fhs","html_url":"https://github.com/fhs","followers_url":"https://api.github.com/users/fhs/followers","following_url":"https://api.github.com/users/fhs/following{/other_user}","gists_url":"https://api.github.com/users/fhs/gists{/gist_id}","starred_url":"https://api.github.com/users/fhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhs/subscriptions","organizations_url":"https://api.github.com/users/fhs/orgs","repos_url":"https://api.github.com/users/fhs/repos","events_url":"https://api.github.com/users/fhs/events{/privacy}","received_events_url":"https://api.github.com/users/fhs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fhs/ZipFile.jl","description":"Read/Write ZIP archives in Julia","fork":false,"url":"https://api.github.com/repos/fhs/ZipFile.jl","forks_url":"https://api.github.com/repos/fhs/ZipFile.jl/forks","keys_url":"https://api.github.com/repos/fhs/ZipFile.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fhs/ZipFile.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fhs/ZipFile.jl/teams","hooks_url":"https://api.github.com/repos/fhs/ZipFile.jl/hooks","issue_events_url":"https://api.github.com/repos/fhs/ZipFile.jl/issues/events{/number}","events_url":"https://api.github.com/repos/fhs/ZipFile.jl/events","assignees_url":"https://api.github.com/repos/fhs/ZipFile.jl/assignees{/user}","branches_url":"https://api.github.com/repos/fhs/ZipFile.jl/branches{/branch}","tags_url":"https://api.github.com/repos/fhs/ZipFile.jl/tags","blobs_url":"https://api.github.com/repos/fhs/ZipFile.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fhs/ZipFile.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fhs/ZipFile.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/fhs/ZipFile.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fhs/ZipFile.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/fhs/ZipFile.jl/languages","stargazers_url":"https://api.github.com/repos/fhs/ZipFile.jl/stargazers","contributors_url":"https://api.github.com/repos/fhs/ZipFile.jl/contributors","subscribers_url":"https://api.github.com/repos/fhs/ZipFile.jl/subscribers","subscription_url":"https://api.github.com/repos/fhs/ZipFile.jl/subscription","commits_url":"https://api.github.com/repos/fhs/ZipFile.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/fhs/ZipFile.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/fhs/ZipFile.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/fhs/ZipFile.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/fhs/ZipFile.jl/contents/{+path}","compare_url":"https://api.github.com/repos/fhs/ZipFile.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fhs/ZipFile.jl/merges","archive_url":"https://api.github.com/repos/fhs/ZipFile.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fhs/ZipFile.jl/downloads","issues_url":"https://api.github.com/repos/fhs/ZipFile.jl/issues{/number}","pulls_url":"https://api.github.com/repos/fhs/ZipFile.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/fhs/ZipFile.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/fhs/ZipFile.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fhs/ZipFile.jl/labels{/name}","releases_url":"https://api.github.com/repos/fhs/ZipFile.jl/releases{/id}","created_at":"2013-07-22T23:54:57Z","updated_at":"2015-04-21T05:51:42Z","pushed_at":"2016-01-05T02:57:52Z","git_url":"git://github.com/fhs/ZipFile.jl.git","ssh_url":"git@github.com:fhs/ZipFile.jl.git","clone_url":"https://github.com/fhs/ZipFile.jl.git","svn_url":"https://github.com/fhs/ZipFile.jl","homepage":"https://zipfilejl.readthedocs.org/en/latest/","size":70,"stargazers_count":2,"watchers_count":2,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25"},"html":{"href":"https://github.com/fhs/ZipFile.jl/pull/25"},"issue":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/issues/25"},"comments":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/fhs/ZipFile.jl/statuses/0e13dc71a5424ef058ec56be77bd6a4f06447355"}}}}