1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-02-02 07:08:13 +00:00
parent eee616315d
commit df64c27ef8

View file

@ -31,6 +31,10 @@ else
end end
class Downloader class Downloader
def self.https=(https)
@@https = https
end
def self.https def self.https
if @@https != 'https' if @@https != 'https'
warn "*** using http instead of https ***" warn "*** using http instead of https ***"
@ -190,7 +194,7 @@ class Downloader
end end
end end
Downloader.class_variable_set(:@@https, https.freeze) Downloader.https = https.freeze
if $0 == __FILE__ if $0 == __FILE__
since = true since = true