{"action":"created","comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/26435656","id":26435656,"diff_hunk":"@@ -64,23 +64,30 @@ UpdateChecker.prototype.doCheck = function() {\n };\n \n UpdateChecker.prototype.checkNPM = function() {\n-  // make an http call to npm to get the latest version\n-  var http = require('http');\n-  var concat = require('concat-stream');\n+  // use npm to determine the currently availabe ember-cli version\n+  var npm = require('npm'),\n+      npmViewConfig = {\n+        'loglevel': 'silent',\n+        'fetch-retries': 1,\n+        'cache-min': 1,\n+        'cache-max': 0\n+      };\n \n   return new Promise(function(resolve, reject) {\n-    http.get('http://registry.npmjs.org/ember-cli/latest', function(res) {\n-      res.setEncoding('utf8');\n-\n-      res.pipe(concat(function (data) {\n-        try {\n-          resolve(JSON.parse(data).version);\n-        } catch(error) {\n-          reject(error);\n-        }\n-      }));\n-\n-      res.on('error', reject);\n+    npm.load(npmViewConfig, function(err) {","path":"lib/models/update-checker.js","position":29,"original_position":29,"commit_id":"14f4dc4677feae5117de577c938df831eed662fa","original_commit_id":"14f4dc4677feae5117de577c938df831eed662fa","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"body":"let me know :)","created_at":"2015-03-14T05:35:16Z","updated_at":"2015-03-14T05:35:16Z","html_url":"https://github.com/ember-cli/ember-cli/pull/3488#discussion_r26435656","pull_request_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488","_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/26435656"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/3488#discussion_r26435656"},"pull_request":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488"}}},"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488","id":30858809,"html_url":"https://github.com/ember-cli/ember-cli/pull/3488","diff_url":"https://github.com/ember-cli/ember-cli/pull/3488.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/3488.patch","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3488","number":3488,"state":"open","locked":false,"title":"ENHANCEMENT: update-checker.js should use environment http_proxy if detected","user":{"login":"xomaczar","id":2079865,"avatar_url":"https://avatars.githubusercontent.com/u/2079865?v=3","gravatar_id":"","url":"https://api.github.com/users/xomaczar","html_url":"https://github.com/xomaczar","followers_url":"https://api.github.com/users/xomaczar/followers","following_url":"https://api.github.com/users/xomaczar/following{/other_user}","gists_url":"https://api.github.com/users/xomaczar/gists{/gist_id}","starred_url":"https://api.github.com/users/xomaczar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xomaczar/subscriptions","organizations_url":"https://api.github.com/users/xomaczar/orgs","repos_url":"https://api.github.com/users/xomaczar/repos","events_url":"https://api.github.com/users/xomaczar/events{/privacy}","received_events_url":"https://api.github.com/users/xomaczar/received_events","type":"User","site_admin":false},"body":"I am working behind corporate proxy and every command I provide to ember-cli (except test & update) result in an error without ability to proceed/recover.","created_at":"2015-03-10T15:08:40Z","updated_at":"2015-03-14T05:35:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6034f1cfc121d58ee35f5bb614b70c1fc0b7af42","assignee":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488/commits","review_comments_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488/comments","review_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3488/comments","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/14f4dc4677feae5117de577c938df831eed662fa","head":{"label":"xomaczar:master","ref":"master","sha":"14f4dc4677feae5117de577c938df831eed662fa","user":{"login":"xomaczar","id":2079865,"avatar_url":"https://avatars.githubusercontent.com/u/2079865?v=3","gravatar_id":"","url":"https://api.github.com/users/xomaczar","html_url":"https://github.com/xomaczar","followers_url":"https://api.github.com/users/xomaczar/followers","following_url":"https://api.github.com/users/xomaczar/following{/other_user}","gists_url":"https://api.github.com/users/xomaczar/gists{/gist_id}","starred_url":"https://api.github.com/users/xomaczar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xomaczar/subscriptions","organizations_url":"https://api.github.com/users/xomaczar/orgs","repos_url":"https://api.github.com/users/xomaczar/repos","events_url":"https://api.github.com/users/xomaczar/events{/privacy}","received_events_url":"https://api.github.com/users/xomaczar/received_events","type":"User","site_admin":false},"repo":{"id":31925165,"name":"ember-cli","full_name":"xomaczar/ember-cli","owner":{"login":"xomaczar","id":2079865,"avatar_url":"https://avatars.githubusercontent.com/u/2079865?v=3","gravatar_id":"","url":"https://api.github.com/users/xomaczar","html_url":"https://github.com/xomaczar","followers_url":"https://api.github.com/users/xomaczar/followers","following_url":"https://api.github.com/users/xomaczar/following{/other_user}","gists_url":"https://api.github.com/users/xomaczar/gists{/gist_id}","starred_url":"https://api.github.com/users/xomaczar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xomaczar/subscriptions","organizations_url":"https://api.github.com/users/xomaczar/orgs","repos_url":"https://api.github.com/users/xomaczar/repos","events_url":"https://api.github.com/users/xomaczar/events{/privacy}","received_events_url":"https://api.github.com/users/xomaczar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xomaczar/ember-cli","description":"","fork":true,"url":"https://api.github.com/repos/xomaczar/ember-cli","forks_url":"https://api.github.com/repos/xomaczar/ember-cli/forks","keys_url":"https://api.github.com/repos/xomaczar/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xomaczar/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xomaczar/ember-cli/teams","hooks_url":"https://api.github.com/repos/xomaczar/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/xomaczar/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/xomaczar/ember-cli/events","assignees_url":"https://api.github.com/repos/xomaczar/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/xomaczar/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/xomaczar/ember-cli/tags","blobs_url":"https://api.github.com/repos/xomaczar/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xomaczar/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xomaczar/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/xomaczar/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xomaczar/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/xomaczar/ember-cli/languages","stargazers_url":"https://api.github.com/repos/xomaczar/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/xomaczar/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/xomaczar/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/xomaczar/ember-cli/subscription","commits_url":"https://api.github.com/repos/xomaczar/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/xomaczar/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/xomaczar/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/xomaczar/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/xomaczar/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/xomaczar/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xomaczar/ember-cli/merges","archive_url":"https://api.github.com/repos/xomaczar/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xomaczar/ember-cli/downloads","issues_url":"https://api.github.com/repos/xomaczar/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/xomaczar/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/xomaczar/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/xomaczar/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xomaczar/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/xomaczar/ember-cli/releases{/id}","created_at":"2015-03-09T22:03:59Z","updated_at":"2015-03-13T13:52:18Z","pushed_at":"2015-03-13T13:52:18Z","git_url":"git://github.com/xomaczar/ember-cli.git","ssh_url":"git@github.com:xomaczar/ember-cli.git","clone_url":"https://github.com/xomaczar/ember-cli.git","svn_url":"https://github.com/xomaczar/ember-cli","homepage":"http://www.ember-cli.com/","size":5850,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ember-cli:master","ref":"master","sha":"b5aca9f454b275035756b4c53473e00b83208c73","user":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":14089735,"name":"ember-cli","full_name":"ember-cli/ember-cli","owner":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ember-cli/ember-cli","description":"","fork":false,"url":"https://api.github.com/repos/ember-cli/ember-cli","forks_url":"https://api.github.com/repos/ember-cli/ember-cli/forks","keys_url":"https://api.github.com/repos/ember-cli/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ember-cli/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ember-cli/ember-cli/teams","hooks_url":"https://api.github.com/repos/ember-cli/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ember-cli/ember-cli/events","assignees_url":"https://api.github.com/repos/ember-cli/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ember-cli/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ember-cli/ember-cli/tags","blobs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ember-cli/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ember-cli/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ember-cli/ember-cli/languages","stargazers_url":"https://api.github.com/repos/ember-cli/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/ember-cli/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/ember-cli/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/ember-cli/ember-cli/subscription","commits_url":"https://api.github.com/repos/ember-cli/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ember-cli/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ember-cli/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ember-cli/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ember-cli/ember-cli/merges","archive_url":"https://api.github.com/repos/ember-cli/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ember-cli/ember-cli/downloads","issues_url":"https://api.github.com/repos/ember-cli/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ember-cli/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ember-cli/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/ember-cli/ember-cli/releases{/id}","created_at":"2013-11-03T17:34:43Z","updated_at":"2015-03-14T05:15:10Z","pushed_at":"2015-03-13T22:44:28Z","git_url":"git://github.com/ember-cli/ember-cli.git","ssh_url":"git@github.com:ember-cli/ember-cli.git","clone_url":"https://github.com/ember-cli/ember-cli.git","svn_url":"https://github.com/ember-cli/ember-cli","homepage":"http://www.ember-cli.com/","size":22296,"stargazers_count":1944,"watchers_count":1944,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":540,"mirror_url":null,"open_issues_count":220,"forks":540,"open_issues":220,"watchers":1944,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/3488"},"issue":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/3488"},"comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/3488/comments"},"review_comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488/comments"},"review_comment":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/3488/commits"},"statuses":{"href":"https://api.github.com/repos/ember-cli/ember-cli/statuses/14f4dc4677feae5117de577c938df831eed662fa"}}}}