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:
parent
eee616315d
commit
df64c27ef8
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue