From 0ec104aa0c5340e2dd4163e9bf2d251ed06cb077 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Tue, 3 May 2011 21:59:30 -0700 Subject: [PATCH] Update standalone --- gist | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gist b/gist index 9cd18be..fd9e0a0 100755 --- a/gist +++ b/gist @@ -80,7 +80,7 @@ module Gist end end module Gist - VERSION = Version = '2.0.3.pre' + VERSION = Version = '2.0.3' end require 'open-uri' require 'net/https' @@ -95,7 +95,13 @@ module Gist GIST_URL = 'https://gist.github.com/%s.txt' CREATE_URL = 'https://gist.github.com/gists' - PROXY = ENV['HTTP_PROXY'] ? URI(ENV['HTTP_PROXY']) : nil + if ENV['HTTPS_PROXY'] + PROXY = URI(ENV['HTTPS_PROXY']) + elsif ENV['HTTP_PROXY'] + PROXY = URI(ENV['HTTP_PROXY']) + else + PROXY = nil + end PROXY_HOST = PROXY ? PROXY.host : nil PROXY_PORT = PROXY ? PROXY.port : nil