Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update standalone

  • Loading branch information...
commit 0ec104aa0c5340e2dd4163e9bf2d251ed06cb077 1 parent c123c4c
André Arko indirect authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 gist
10 gist
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.