From df64c27ef85973ff304366130357eb22aea5741b Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 2 Feb 2016 07:08:13 +0000 Subject: 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 --- tool/downloader.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tool') 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 -- cgit v1.2.3