diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-02 07:08:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-02 07:08:13 +0000 |
commit | df64c27ef85973ff304366130357eb22aea5741b (patch) | |
tree | dad13b34d9bb09ab7d6c78a8ea28671b5ddd27fd /tool/downloader.rb | |
parent | eee616315d406e91a232c33434f5195d72578b65 (diff) |
downloader.rb: https setter
* tool/downloader.rb (Downloader.https): define class variable
setter for 1.8, class_variable_set was private.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r-- | tool/downloader.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb index e94ecdb3ca..8bb5345407 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -31,6 +31,10 @@ else end class Downloader + def self.https=(https) + @@https = https + end + def self.https if @@https != 'https' warn "*** using http instead of https ***" @@ -190,7 +194,7 @@ class Downloader end end -Downloader.class_variable_set(:@@https, https.freeze) +Downloader.https = https.freeze if $0 == __FILE__ since = true |