Skip to content

Commit 0ec104a

Browse files
committed
Update standalone
1 parent c123c4c commit 0ec104a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

gist

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module Gist
8080
end
8181
end
8282
module Gist
83-
VERSION = Version = '2.0.3.pre'
83+
VERSION = Version = '2.0.3'
8484
end
8585
require 'open-uri'
8686
require 'net/https'
@@ -95,7 +95,13 @@ module Gist
9595
GIST_URL = 'https://gist.github.com/%s.txt'
9696
CREATE_URL = 'https://gist.github.com/gists'
9797

98-
PROXY = ENV['HTTP_PROXY'] ? URI(ENV['HTTP_PROXY']) : nil
98+
if ENV['HTTPS_PROXY']
99+
PROXY = URI(ENV['HTTPS_PROXY'])
100+
elsif ENV['HTTP_PROXY']
101+
PROXY = URI(ENV['HTTP_PROXY'])
102+
else
103+
PROXY = nil
104+
end
99105
PROXY_HOST = PROXY ? PROXY.host : nil
100106
PROXY_PORT = PROXY ? PROXY.port : nil
101107

0 commit comments

Comments
 (0)