GitHub PullRequestReviewCommentEvent at 2014-08-19 20:45:48
Repository: chocolatey
Actor: ferventcoder
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/comments/16442413","id":16442413,"diff_hunk":"@@ -0,0 +1,39 @@\n+$here = Split-Path -Parent $MyInvocation.MyCommand.Definition\r\n+$common = Join-Path (Split-Path -Parent $here)  '_Common.ps1'\r\n+. $common\r\n+\r\n+Setup -File 'userprofile\\_crapworkaround.txt'\r\n+Describe \"Get-TempDir\" {\r\n+  Context \"when retrieving the temp dir without a configured value\" {\r\n+    $oldProfile = $env:USERPROFILE\r\n+    $env:USERPROFILE = Join-Path 'TestDrive:' 'userProfile'\r\n+    Setup -File 'chocolatey\\chocolateyInstall\\chocolatey.config' @\"\r\n+<?xml version=\"1.0\"?>\r\n+<chocolatey />\r\n+\"@\r\n+    $result = Get-TempDir\r\n+    $env:USERPROFILE = $oldProfile\r\n+\r\n+    It \"should return the default temp directory %TEMP%\" {\r\n+      $result  | should Be $env:TEMP\r\n+    }\r\n+  }\r\n+\r\n+  Context \"when retrieving the temp dir with a configured value\" {\r\n+      $oldProfile = $env:USERPROFILE\r\n+      $env:USERPROFILE = Join-Path 'TestDrive:' 'userProfile'\r\n+      Setup -File 'chocolatey\\chocolateyInstall\\chocolatey.config' @\"\r\n+<?xml version=\"1.0\"?>\r\n+<chocolatey>\r\n+  <tempDir>%USERPROFILE%\\TEMP</tempDir>\r\n+</chocolatey>\r\n+\"@\r\n+    $result = Get-TempDir\r\n+    $expectedResult = Join-Path $env:USERPROFILE 'TEMP'\r\n+    $env:USERPROFILE = $oldProfile\r\n+\r\n+    It \"should return the configured temp directory %USERPROFILE%\\TEMP\" {\r\n+      $result  | should Be $expectedResult\r\n+    }\r\n+  }\r\n+}\r","path":"tests/unit/Get-TempDir.tests.ps1","position":39,"original_position":39,"commit_id":"27307dfacd67ebf48b84f8a169fc211bba8b3653","original_commit_id":"27307dfacd67ebf48b84f8a169fc211bba8b3653","user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=2","gravatar_id":"33a97150e4280a56c137fbfd763eb03d","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"body":"Awesome, thanks for specs!","created_at":"2014-08-19T20:45:48Z","updated_at":"2014-08-19T20:45:48Z","html_url":"https://github.com/chocolatey/chocolatey/pull/554#discussion_r16442413","pull_request_url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554","_links":{"self":{"href":"https://api.github.com/repos/chocolatey/chocolatey/pulls/comments/16442413"},"html":{"href":"https://github.com/chocolatey/chocolatey/pull/554#discussion_r16442413"},"pull_request":{"href":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554"}}},"pull_request":{"url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554","id":19984281,"html_url":"https://github.com/chocolatey/chocolatey/pull/554","diff_url":"https://github.com/chocolatey/chocolatey/pull/554.diff","patch_url":"https://github.com/chocolatey/chocolatey/pull/554.patch","issue_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/554","number":554,"state":"open","locked":false,"title":"Make the temp directory configurable","user":{"login":"carolynvs","id":1368985,"avatar_url":"https://avatars.githubusercontent.com/u/1368985?v=2","gravatar_id":"8b96f8872eb3f398809daf017ee3a8ab","url":"https://api.github.com/users/carolynvs","html_url":"https://github.com/carolynvs","followers_url":"https://api.github.com/users/carolynvs/followers","following_url":"https://api.github.com/users/carolynvs/following{/other_user}","gists_url":"https://api.github.com/users/carolynvs/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynvs/subscriptions","organizations_url":"https://api.github.com/users/carolynvs/orgs","repos_url":"https://api.github.com/users/carolynvs/repos","events_url":"https://api.github.com/users/carolynvs/events{/privacy}","received_events_url":"https://api.github.com/users/carolynvs/received_events","type":"User","site_admin":false},"body":"Enable users to specify an alternate temp directory in the chocolatey configuration.\r\nIf <tempDir> is not present, then $env:TEMP is used as a default.\r\n\r\nThis enables companies with IT policies that prevent executing files\r\nin the %TEMP% directory to continue to use Chocolatey (see discussion at https://groups.google.com/forum/#!topic/chocolatey/V8aU7VnB5eM)\r\n\r\nSample Configuration File with value specified:\r\n\r\n    <?xml version=\"1.0\"?>\r\n    <chocolatey>\r\n\r\n        <tempDir>%ProgramData%\\Chocolatey\\Temp</tempDir>\r\n    \r\n        <useNuGetForSources>false</useNuGetForSources>\r\n        <checksumFiles>true</checksumFiles>\r\n        <virusCheck>false</virusCheck>\r\n        <sources>\r\n            <source id=\"chocolatey\" value=\"https://chocolatey.org/api/v2/\" />\r\n        </sources>\r\n    </chocolatey>","created_at":"2014-08-19T14:36:14Z","updated_at":"2014-08-19T20:45:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2113f0324571496c9dca5926a8321a95cc0fb5d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554/commits","review_comments_url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554/comments","review_comment_url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/comments/{number}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/554/comments","statuses_url":"https://api.github.com/repos/chocolatey/chocolatey/statuses/27307dfacd67ebf48b84f8a169fc211bba8b3653","head":{"label":"carolynvs:configurable-tempdir","ref":"configurable-tempdir","sha":"27307dfacd67ebf48b84f8a169fc211bba8b3653","user":{"login":"carolynvs","id":1368985,"avatar_url":"https://avatars.githubusercontent.com/u/1368985?v=2","gravatar_id":"8b96f8872eb3f398809daf017ee3a8ab","url":"https://api.github.com/users/carolynvs","html_url":"https://github.com/carolynvs","followers_url":"https://api.github.com/users/carolynvs/followers","following_url":"https://api.github.com/users/carolynvs/following{/other_user}","gists_url":"https://api.github.com/users/carolynvs/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynvs/subscriptions","organizations_url":"https://api.github.com/users/carolynvs/orgs","repos_url":"https://api.github.com/users/carolynvs/repos","events_url":"https://api.github.com/users/carolynvs/events{/privacy}","received_events_url":"https://api.github.com/users/carolynvs/received_events","type":"User","site_admin":false},"repo":{"id":22758655,"name":"chocolatey","full_name":"carolynvs/chocolatey","owner":{"login":"carolynvs","id":1368985,"avatar_url":"https://avatars.githubusercontent.com/u/1368985?v=2","gravatar_id":"8b96f8872eb3f398809daf017ee3a8ab","url":"https://api.github.com/users/carolynvs","html_url":"https://github.com/carolynvs","followers_url":"https://api.github.com/users/carolynvs/followers","following_url":"https://api.github.com/users/carolynvs/following{/other_user}","gists_url":"https://api.github.com/users/carolynvs/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynvs/subscriptions","organizations_url":"https://api.github.com/users/carolynvs/orgs","repos_url":"https://api.github.com/users/carolynvs/repos","events_url":"https://api.github.com/users/carolynvs/events{/privacy}","received_events_url":"https://api.github.com/users/carolynvs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carolynvs/chocolatey","description":"Chocolatey NuGet - Like apt-get, but for windows.","fork":true,"url":"https://api.github.com/repos/carolynvs/chocolatey","forks_url":"https://api.github.com/repos/carolynvs/chocolatey/forks","keys_url":"https://api.github.com/repos/carolynvs/chocolatey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carolynvs/chocolatey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carolynvs/chocolatey/teams","hooks_url":"https://api.github.com/repos/carolynvs/chocolatey/hooks","issue_events_url":"https://api.github.com/repos/carolynvs/chocolatey/issues/events{/number}","events_url":"https://api.github.com/repos/carolynvs/chocolatey/events","assignees_url":"https://api.github.com/repos/carolynvs/chocolatey/assignees{/user}","branches_url":"https://api.github.com/repos/carolynvs/chocolatey/branches{/branch}","tags_url":"https://api.github.com/repos/carolynvs/chocolatey/tags","blobs_url":"https://api.github.com/repos/carolynvs/chocolatey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carolynvs/chocolatey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carolynvs/chocolatey/git/refs{/sha}","trees_url":"https://api.github.com/repos/carolynvs/chocolatey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carolynvs/chocolatey/statuses/{sha}","languages_url":"https://api.github.com/repos/carolynvs/chocolatey/languages","stargazers_url":"https://api.github.com/repos/carolynvs/chocolatey/stargazers","contributors_url":"https://api.github.com/repos/carolynvs/chocolatey/contributors","subscribers_url":"https://api.github.com/repos/carolynvs/chocolatey/subscribers","subscription_url":"https://api.github.com/repos/carolynvs/chocolatey/subscription","commits_url":"https://api.github.com/repos/carolynvs/chocolatey/commits{/sha}","git_commits_url":"https://api.github.com/repos/carolynvs/chocolatey/git/commits{/sha}","comments_url":"https://api.github.com/repos/carolynvs/chocolatey/comments{/number}","issue_comment_url":"https://api.github.com/repos/carolynvs/chocolatey/issues/comments/{number}","contents_url":"https://api.github.com/repos/carolynvs/chocolatey/contents/{+path}","compare_url":"https://api.github.com/repos/carolynvs/chocolatey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carolynvs/chocolatey/merges","archive_url":"https://api.github.com/repos/carolynvs/chocolatey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carolynvs/chocolatey/downloads","issues_url":"https://api.github.com/repos/carolynvs/chocolatey/issues{/number}","pulls_url":"https://api.github.com/repos/carolynvs/chocolatey/pulls{/number}","milestones_url":"https://api.github.com/repos/carolynvs/chocolatey/milestones{/number}","notifications_url":"https://api.github.com/repos/carolynvs/chocolatey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carolynvs/chocolatey/labels{/name}","releases_url":"https://api.github.com/repos/carolynvs/chocolatey/releases{/id}","created_at":"2014-08-08T13:29:14Z","updated_at":"2014-08-08T10:38:49Z","pushed_at":"2014-08-18T15:33:55Z","git_url":"git://github.com/carolynvs/chocolatey.git","ssh_url":"git@github.com:carolynvs/chocolatey.git","clone_url":"https://github.com/carolynvs/chocolatey.git","svn_url":"https://github.com/carolynvs/chocolatey","homepage":"","size":35372,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chocolatey:master","ref":"master","sha":"361389bbd0be287fff563de5112583dafd88282a","user":{"login":"chocolatey","id":811025,"avatar_url":"https://avatars.githubusercontent.com/u/811025?v=2","gravatar_id":"6463b5dfa505b7bc9e020abb5d33dab5","url":"https://api.github.com/users/chocolatey","html_url":"https://github.com/chocolatey","followers_url":"https://api.github.com/users/chocolatey/followers","following_url":"https://api.github.com/users/chocolatey/following{/other_user}","gists_url":"https://api.github.com/users/chocolatey/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolatey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolatey/subscriptions","organizations_url":"https://api.github.com/users/chocolatey/orgs","repos_url":"https://api.github.com/users/chocolatey/repos","events_url":"https://api.github.com/users/chocolatey/events{/privacy}","received_events_url":"https://api.github.com/users/chocolatey/received_events","type":"Organization","site_admin":false},"repo":{"id":1734612,"name":"chocolatey","full_name":"chocolatey/chocolatey","owner":{"login":"chocolatey","id":811025,"avatar_url":"https://avatars.githubusercontent.com/u/811025?v=2","gravatar_id":"6463b5dfa505b7bc9e020abb5d33dab5","url":"https://api.github.com/users/chocolatey","html_url":"https://github.com/chocolatey","followers_url":"https://api.github.com/users/chocolatey/followers","following_url":"https://api.github.com/users/chocolatey/following{/other_user}","gists_url":"https://api.github.com/users/chocolatey/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolatey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolatey/subscriptions","organizations_url":"https://api.github.com/users/chocolatey/orgs","repos_url":"https://api.github.com/users/chocolatey/repos","events_url":"https://api.github.com/users/chocolatey/events{/privacy}","received_events_url":"https://api.github.com/users/chocolatey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chocolatey/chocolatey","description":"Chocolatey NuGet - Like apt-get, but for windows.","fork":false,"url":"https://api.github.com/repos/chocolatey/chocolatey","forks_url":"https://api.github.com/repos/chocolatey/chocolatey/forks","keys_url":"https://api.github.com/repos/chocolatey/chocolatey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chocolatey/chocolatey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chocolatey/chocolatey/teams","hooks_url":"https://api.github.com/repos/chocolatey/chocolatey/hooks","issue_events_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/events{/number}","events_url":"https://api.github.com/repos/chocolatey/chocolatey/events","assignees_url":"https://api.github.com/repos/chocolatey/chocolatey/assignees{/user}","branches_url":"https://api.github.com/repos/chocolatey/chocolatey/branches{/branch}","tags_url":"https://api.github.com/repos/chocolatey/chocolatey/tags","blobs_url":"https://api.github.com/repos/chocolatey/chocolatey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chocolatey/chocolatey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chocolatey/chocolatey/git/refs{/sha}","trees_url":"https://api.github.com/repos/chocolatey/chocolatey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chocolatey/chocolatey/statuses/{sha}","languages_url":"https://api.github.com/repos/chocolatey/chocolatey/languages","stargazers_url":"https://api.github.com/repos/chocolatey/chocolatey/stargazers","contributors_url":"https://api.github.com/repos/chocolatey/chocolatey/contributors","subscribers_url":"https://api.github.com/repos/chocolatey/chocolatey/subscribers","subscription_url":"https://api.github.com/repos/chocolatey/chocolatey/subscription","commits_url":"https://api.github.com/repos/chocolatey/chocolatey/commits{/sha}","git_commits_url":"https://api.github.com/repos/chocolatey/chocolatey/git/commits{/sha}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey/comments{/number}","issue_comment_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/comments/{number}","contents_url":"https://api.github.com/repos/chocolatey/chocolatey/contents/{+path}","compare_url":"https://api.github.com/repos/chocolatey/chocolatey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chocolatey/chocolatey/merges","archive_url":"https://api.github.com/repos/chocolatey/chocolatey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chocolatey/chocolatey/downloads","issues_url":"https://api.github.com/repos/chocolatey/chocolatey/issues{/number}","pulls_url":"https://api.github.com/repos/chocolatey/chocolatey/pulls{/number}","milestones_url":"https://api.github.com/repos/chocolatey/chocolatey/milestones{/number}","notifications_url":"https://api.github.com/repos/chocolatey/chocolatey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chocolatey/chocolatey/labels{/name}","releases_url":"https://api.github.com/repos/chocolatey/chocolatey/releases{/id}","created_at":"2011-05-11T18:22:52Z","updated_at":"2014-08-19T16:32:39Z","pushed_at":"2014-08-01T16:29:18Z","git_url":"git://github.com/chocolatey/chocolatey.git","ssh_url":"git@github.com:chocolatey/chocolatey.git","clone_url":"https://github.com/chocolatey/chocolatey.git","svn_url":"https://github.com/chocolatey/chocolatey","homepage":"","size":35372,"stargazers_count":1980,"watchers_count":1980,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":232,"mirror_url":null,"open_issues_count":201,"forks":232,"open_issues":201,"watchers":1980,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554"},"html":{"href":"https://github.com/chocolatey/chocolatey/pull/554"},"issue":{"href":"https://api.github.com/repos/chocolatey/chocolatey/issues/554"},"comments":{"href":"https://api.github.com/repos/chocolatey/chocolatey/issues/554/comments"},"review_comments":{"href":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554/comments"},"review_comment":{"href":"https://api.github.com/repos/chocolatey/chocolatey/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/chocolatey/chocolatey/pulls/554/commits"},"statuses":{"href":"https://api.github.com/repos/chocolatey/chocolatey/statuses/27307dfacd67ebf48b84f8a169fc211bba8b3653"}}}}