Permalink
Browse files

Update standalone

  • Loading branch information...
1 parent c123c4c commit 0ec104aa0c5340e2dd4163e9bf2d251ed06cb077 @indirect indirect committed May 4, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 gist
View
10 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

0 comments on commit 0ec104a

Please sign in to comment.