{"action":"created","issue":{"url":"https://api.github.com/repos/ferventcoder/nuget-gem/issues/4","labels_url":"https://api.github.com/repos/ferventcoder/nuget-gem/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ferventcoder/nuget-gem/issues/4/comments","events_url":"https://api.github.com/repos/ferventcoder/nuget-gem/issues/4/events","html_url":"https://github.com/ferventcoder/nuget-gem/issues/4","id":111110836,"number":4,"title":"Downloading nuget","user":{"login":"wallymathieu","id":88096,"avatar_url":"https://avatars.githubusercontent.com/u/88096?v=3","gravatar_id":"","url":"https://api.github.com/users/wallymathieu","html_url":"https://github.com/wallymathieu","followers_url":"https://api.github.com/users/wallymathieu/followers","following_url":"https://api.github.com/users/wallymathieu/following{/other_user}","gists_url":"https://api.github.com/users/wallymathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/wallymathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallymathieu/subscriptions","organizations_url":"https://api.github.com/users/wallymathieu/orgs","repos_url":"https://api.github.com/users/wallymathieu/repos","events_url":"https://api.github.com/users/wallymathieu/events{/privacy}","received_events_url":"https://api.github.com/users/wallymathieu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T05:49:43Z","updated_at":"2015-10-13T15:38:29Z","closed_at":null,"body":"Perhaps something like this to automate the process of downloading nuget?\r\n\r\n```\r\nrequire 'net/http'\r\nrequire 'net/https'\r\n\r\ndef download(serverName, srcPath, destPath)\r\n    http = Net::HTTP.new(serverName,443)\r\n    http.use_ssl = true\r\n    # Might need to do this on windows:\r\n    http.verify_mode = OpenSSL::SSL::VERIFY_NONE\r\n    request = Net::HTTP::Get.new(srcPath)\r\n\r\n    f = open(destPath, \"wb\")\r\n\r\n    begin\r\n        http.request(request) do |resp| \r\n            resp.read_body do |segment|\r\n                f.write(segment)\r\n            end\r\n        end\r\n    ensure\r\n        f.close\r\n    end\r\nend\r\n#https://api.nuget.org/downloads/nuget.exe\r\ndownload(\"api.nuget.org\", \"/downloads/nuget.exe\", \"./nuget.exe\")\r\n```"},"comment":{"url":"https://api.github.com/repos/ferventcoder/nuget-gem/issues/comments/147753637","html_url":"https://github.com/ferventcoder/nuget-gem/issues/4#issuecomment-147753637","issue_url":"https://api.github.com/repos/ferventcoder/nuget-gem/issues/4","id":147753637,"user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","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},"created_at":"2015-10-13T15:38:29Z","updated_at":"2015-10-13T15:38:29Z","body":"Gems are point in time, this doesn't seem very point in time."}}