Skip to content

Commit

Permalink
Update standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed May 4, 2011
1 parent c123c4c commit 0ec104a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gist
Expand Up @@ -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'
Expand All @@ -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

Expand Down

0 comments on commit 0ec104a

Please sign in to comment.