aboutsummaryrefslogtreecommitdiffstats
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
commit4e9047e800af734f478847a5313f708a4843512f (patch)
treedad13b34d9bb09ab7d6c78a8ea28671b5ddd27fd /tool
parent2e038b3936a7ac683bd3335faf2b4b8cf31d7c05 (diff)
downloadruby-4e9047e800af734f478847a5313f708a4843512f.tar.gz
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