summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-02 07:08:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-02 07:08:13 +0000
commitdf64c27ef85973ff304366130357eb22aea5741b (patch)
treedad13b34d9bb09ab7d6c78a8ea28671b5ddd27fd /tool
parenteee616315d406e91a232c33434f5195d72578b65 (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')
-rw-r--r--tool/downloader.rb6
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