Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update standalone

  • Loading branch information...
commit 0ec104aa0c5340e2dd4163e9bf2d251ed06cb077 1 parent c123c4c
André Arko indirect authored

Showing 1 changed file with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. +8 2 gist
10 gist
@@ -80,7 +80,7 @@ module Gist
80 80 end
81 81 end
82 82 module Gist
83   - VERSION = Version = '2.0.3.pre'
  83 + VERSION = Version = '2.0.3'
84 84 end
85 85 require 'open-uri'
86 86 require 'net/https'
@@ -95,7 +95,13 @@ module Gist
95 95 GIST_URL = 'https://gist.github.com/%s.txt'
96 96 CREATE_URL = 'https://gist.github.com/gists'
97 97
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
99 105 PROXY_HOST = PROXY ? PROXY.host : nil
100 106 PROXY_PORT = PROXY ? PROXY.port : nil
101 107

0 comments on commit 0ec104a

Please sign in to comment.
Something went wrong with that request. Please try again.