{"action":"created","comment":{"url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/comments/53954296","id":53954296,"diff_hunk":"@@ -117,7 +117,16 @@ def transfer_download(archive_filepath)\n     temppath = tempfile.path\n     tempfile.close!\n \n-    download(temppath)\n+    case resource[:source]\n+    when /^(http|ftp)/\n+      download(temppath)\n+    when /^file/\n+      uri = URI(resource[:source])\n+      FileUtils.copy(uri.path, temppath)","path":"lib/puppet/provider/archive/ruby.rb","position":10,"original_position":10,"commit_id":"6ab93d8586e6814bf0eb9ff9f5aed89663e2d683","original_commit_id":"6ab93d8586e6814bf0eb9ff9f5aed89663e2d683","user":{"login":"jyaworski","id":449135,"avatar_url":"https://avatars.githubusercontent.com/u/449135?v=3","gravatar_id":"","url":"https://api.github.com/users/jyaworski","html_url":"https://github.com/jyaworski","followers_url":"https://api.github.com/users/jyaworski/followers","following_url":"https://api.github.com/users/jyaworski/following{/other_user}","gists_url":"https://api.github.com/users/jyaworski/gists{/gist_id}","starred_url":"https://api.github.com/users/jyaworski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyaworski/subscriptions","organizations_url":"https://api.github.com/users/jyaworski/orgs","repos_url":"https://api.github.com/users/jyaworski/repos","events_url":"https://api.github.com/users/jyaworski/events{/privacy}","received_events_url":"https://api.github.com/users/jyaworski/received_events","type":"User","site_admin":false},"body":"Does this solve the Windows problem?","created_at":"2016-02-24T15:27:26Z","updated_at":"2016-02-24T15:27:26Z","html_url":"https://github.com/voxpupuli/puppet-archive/pull/123#discussion_r53954296","pull_request_url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/comments/53954296"},"html":{"href":"https://github.com/voxpupuli/puppet-archive/pull/123#discussion_r53954296"},"pull_request":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123","id":60440011,"html_url":"https://github.com/voxpupuli/puppet-archive/pull/123","diff_url":"https://github.com/voxpupuli/puppet-archive/pull/123.diff","patch_url":"https://github.com/voxpupuli/puppet-archive/pull/123.patch","issue_url":"https://api.github.com/repos/voxpupuli/puppet-archive/issues/123","number":123,"state":"open","locked":false,"title":"GH-77 Fix local files for non faraday providers","user":{"login":"nanliu","id":323624,"avatar_url":"https://avatars.githubusercontent.com/u/323624?v=3","gravatar_id":"","url":"https://api.github.com/users/nanliu","html_url":"https://github.com/nanliu","followers_url":"https://api.github.com/users/nanliu/followers","following_url":"https://api.github.com/users/nanliu/following{/other_user}","gists_url":"https://api.github.com/users/nanliu/gists{/gist_id}","starred_url":"https://api.github.com/users/nanliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanliu/subscriptions","organizations_url":"https://api.github.com/users/nanliu/orgs","repos_url":"https://api.github.com/users/nanliu/repos","events_url":"https://api.github.com/users/nanliu/events{/privacy}","received_events_url":"https://api.github.com/users/nanliu/received_events","type":"User","site_admin":false},"body":"This also allows local files to be specified without using file:///","created_at":"2016-02-24T01:11:25Z","updated_at":"2016-02-24T15:27:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf45bc1918248feeecd7cd623ae35b39d5aa00cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123/commits","review_comments_url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123/comments","review_comment_url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-archive/issues/123/comments","statuses_url":"https://api.github.com/repos/voxpupuli/puppet-archive/statuses/6ab93d8586e6814bf0eb9ff9f5aed89663e2d683","head":{"label":"nanliu:GH-77","ref":"GH-77","sha":"6ab93d8586e6814bf0eb9ff9f5aed89663e2d683","user":{"login":"nanliu","id":323624,"avatar_url":"https://avatars.githubusercontent.com/u/323624?v=3","gravatar_id":"","url":"https://api.github.com/users/nanliu","html_url":"https://github.com/nanliu","followers_url":"https://api.github.com/users/nanliu/followers","following_url":"https://api.github.com/users/nanliu/following{/other_user}","gists_url":"https://api.github.com/users/nanliu/gists{/gist_id}","starred_url":"https://api.github.com/users/nanliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanliu/subscriptions","organizations_url":"https://api.github.com/users/nanliu/orgs","repos_url":"https://api.github.com/users/nanliu/repos","events_url":"https://api.github.com/users/nanliu/events{/privacy}","received_events_url":"https://api.github.com/users/nanliu/received_events","type":"User","site_admin":false},"repo":{"id":34547670,"name":"puppet-archive","full_name":"nanliu/puppet-archive","owner":{"login":"nanliu","id":323624,"avatar_url":"https://avatars.githubusercontent.com/u/323624?v=3","gravatar_id":"","url":"https://api.github.com/users/nanliu","html_url":"https://github.com/nanliu","followers_url":"https://api.github.com/users/nanliu/followers","following_url":"https://api.github.com/users/nanliu/following{/other_user}","gists_url":"https://api.github.com/users/nanliu/gists{/gist_id}","starred_url":"https://api.github.com/users/nanliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanliu/subscriptions","organizations_url":"https://api.github.com/users/nanliu/orgs","repos_url":"https://api.github.com/users/nanliu/repos","events_url":"https://api.github.com/users/nanliu/events{/privacy}","received_events_url":"https://api.github.com/users/nanliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nanliu/puppet-archive","description":"Please use official upstream puppet-community","fork":true,"url":"https://api.github.com/repos/nanliu/puppet-archive","forks_url":"https://api.github.com/repos/nanliu/puppet-archive/forks","keys_url":"https://api.github.com/repos/nanliu/puppet-archive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nanliu/puppet-archive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nanliu/puppet-archive/teams","hooks_url":"https://api.github.com/repos/nanliu/puppet-archive/hooks","issue_events_url":"https://api.github.com/repos/nanliu/puppet-archive/issues/events{/number}","events_url":"https://api.github.com/repos/nanliu/puppet-archive/events","assignees_url":"https://api.github.com/repos/nanliu/puppet-archive/assignees{/user}","branches_url":"https://api.github.com/repos/nanliu/puppet-archive/branches{/branch}","tags_url":"https://api.github.com/repos/nanliu/puppet-archive/tags","blobs_url":"https://api.github.com/repos/nanliu/puppet-archive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nanliu/puppet-archive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nanliu/puppet-archive/git/refs{/sha}","trees_url":"https://api.github.com/repos/nanliu/puppet-archive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nanliu/puppet-archive/statuses/{sha}","languages_url":"https://api.github.com/repos/nanliu/puppet-archive/languages","stargazers_url":"https://api.github.com/repos/nanliu/puppet-archive/stargazers","contributors_url":"https://api.github.com/repos/nanliu/puppet-archive/contributors","subscribers_url":"https://api.github.com/repos/nanliu/puppet-archive/subscribers","subscription_url":"https://api.github.com/repos/nanliu/puppet-archive/subscription","commits_url":"https://api.github.com/repos/nanliu/puppet-archive/commits{/sha}","git_commits_url":"https://api.github.com/repos/nanliu/puppet-archive/git/commits{/sha}","comments_url":"https://api.github.com/repos/nanliu/puppet-archive/comments{/number}","issue_comment_url":"https://api.github.com/repos/nanliu/puppet-archive/issues/comments{/number}","contents_url":"https://api.github.com/repos/nanliu/puppet-archive/contents/{+path}","compare_url":"https://api.github.com/repos/nanliu/puppet-archive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nanliu/puppet-archive/merges","archive_url":"https://api.github.com/repos/nanliu/puppet-archive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nanliu/puppet-archive/downloads","issues_url":"https://api.github.com/repos/nanliu/puppet-archive/issues{/number}","pulls_url":"https://api.github.com/repos/nanliu/puppet-archive/pulls{/number}","milestones_url":"https://api.github.com/repos/nanliu/puppet-archive/milestones{/number}","notifications_url":"https://api.github.com/repos/nanliu/puppet-archive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nanliu/puppet-archive/labels{/name}","releases_url":"https://api.github.com/repos/nanliu/puppet-archive/releases{/id}","deployments_url":"https://api.github.com/repos/nanliu/puppet-archive/deployments","created_at":"2015-04-24T23:56:54Z","updated_at":"2015-11-13T15:41:53Z","pushed_at":"2016-02-24T13:30:26Z","git_url":"git://github.com/nanliu/puppet-archive.git","ssh_url":"git@github.com:nanliu/puppet-archive.git","clone_url":"https://github.com/nanliu/puppet-archive.git","svn_url":"https://github.com/nanliu/puppet-archive","homepage":"https://github.com/puppet-community/puppet-archive","size":299,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"voxpupuli:master","ref":"master","sha":"84d2ca7a443cbcbda1d083a1f35b4bf932cbe3d9","user":{"login":"voxpupuli","id":8693967,"avatar_url":"https://avatars.githubusercontent.com/u/8693967?v=3","gravatar_id":"","url":"https://api.github.com/users/voxpupuli","html_url":"https://github.com/voxpupuli","followers_url":"https://api.github.com/users/voxpupuli/followers","following_url":"https://api.github.com/users/voxpupuli/following{/other_user}","gists_url":"https://api.github.com/users/voxpupuli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpupuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpupuli/subscriptions","organizations_url":"https://api.github.com/users/voxpupuli/orgs","repos_url":"https://api.github.com/users/voxpupuli/repos","events_url":"https://api.github.com/users/voxpupuli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpupuli/received_events","type":"Organization","site_admin":false},"repo":{"id":23685242,"name":"puppet-archive","full_name":"voxpupuli/puppet-archive","owner":{"login":"voxpupuli","id":8693967,"avatar_url":"https://avatars.githubusercontent.com/u/8693967?v=3","gravatar_id":"","url":"https://api.github.com/users/voxpupuli","html_url":"https://github.com/voxpupuli","followers_url":"https://api.github.com/users/voxpupuli/followers","following_url":"https://api.github.com/users/voxpupuli/following{/other_user}","gists_url":"https://api.github.com/users/voxpupuli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpupuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpupuli/subscriptions","organizations_url":"https://api.github.com/users/voxpupuli/orgs","repos_url":"https://api.github.com/users/voxpupuli/repos","events_url":"https://api.github.com/users/voxpupuli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpupuli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/voxpupuli/puppet-archive","description":"Compressed archive file download and extraction with native types/providers for Windows and Unix","fork":false,"url":"https://api.github.com/repos/voxpupuli/puppet-archive","forks_url":"https://api.github.com/repos/voxpupuli/puppet-archive/forks","keys_url":"https://api.github.com/repos/voxpupuli/puppet-archive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voxpupuli/puppet-archive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voxpupuli/puppet-archive/teams","hooks_url":"https://api.github.com/repos/voxpupuli/puppet-archive/hooks","issue_events_url":"https://api.github.com/repos/voxpupuli/puppet-archive/issues/events{/number}","events_url":"https://api.github.com/repos/voxpupuli/puppet-archive/events","assignees_url":"https://api.github.com/repos/voxpupuli/puppet-archive/assignees{/user}","branches_url":"https://api.github.com/repos/voxpupuli/puppet-archive/branches{/branch}","tags_url":"https://api.github.com/repos/voxpupuli/puppet-archive/tags","blobs_url":"https://api.github.com/repos/voxpupuli/puppet-archive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voxpupuli/puppet-archive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voxpupuli/puppet-archive/git/refs{/sha}","trees_url":"https://api.github.com/repos/voxpupuli/puppet-archive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voxpupuli/puppet-archive/statuses/{sha}","languages_url":"https://api.github.com/repos/voxpupuli/puppet-archive/languages","stargazers_url":"https://api.github.com/repos/voxpupuli/puppet-archive/stargazers","contributors_url":"https://api.github.com/repos/voxpupuli/puppet-archive/contributors","subscribers_url":"https://api.github.com/repos/voxpupuli/puppet-archive/subscribers","subscription_url":"https://api.github.com/repos/voxpupuli/puppet-archive/subscription","commits_url":"https://api.github.com/repos/voxpupuli/puppet-archive/commits{/sha}","git_commits_url":"https://api.github.com/repos/voxpupuli/puppet-archive/git/commits{/sha}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-archive/comments{/number}","issue_comment_url":"https://api.github.com/repos/voxpupuli/puppet-archive/issues/comments{/number}","contents_url":"https://api.github.com/repos/voxpupuli/puppet-archive/contents/{+path}","compare_url":"https://api.github.com/repos/voxpupuli/puppet-archive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voxpupuli/puppet-archive/merges","archive_url":"https://api.github.com/repos/voxpupuli/puppet-archive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voxpupuli/puppet-archive/downloads","issues_url":"https://api.github.com/repos/voxpupuli/puppet-archive/issues{/number}","pulls_url":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls{/number}","milestones_url":"https://api.github.com/repos/voxpupuli/puppet-archive/milestones{/number}","notifications_url":"https://api.github.com/repos/voxpupuli/puppet-archive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voxpupuli/puppet-archive/labels{/name}","releases_url":"https://api.github.com/repos/voxpupuli/puppet-archive/releases{/id}","deployments_url":"https://api.github.com/repos/voxpupuli/puppet-archive/deployments","created_at":"2014-09-05T00:56:20Z","updated_at":"2016-02-18T19:21:21Z","pushed_at":"2016-02-24T13:30:27Z","git_url":"git://github.com/voxpupuli/puppet-archive.git","ssh_url":"git@github.com:voxpupuli/puppet-archive.git","clone_url":"https://github.com/voxpupuli/puppet-archive.git","svn_url":"https://github.com/voxpupuli/puppet-archive","homepage":"https://forge.puppetlabs.com/puppet/archive","size":317,"stargazers_count":24,"watchers_count":24,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":12,"forks":46,"open_issues":12,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123"},"html":{"href":"https://github.com/voxpupuli/puppet-archive/pull/123"},"issue":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/issues/123"},"comments":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/voxpupuli/puppet-archive/statuses/6ab93d8586e6814bf0eb9ff9f5aed89663e2d683"}}}}