зеркало из https://github.com/github/ruby.git
tool/downloader.rb: Adjusting example for
Downloader.download to implementation changes in r47693. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b6f2f67cc9
Коммит
f508efdb9b
13
ChangeLog
13
ChangeLog
|
@ -1,19 +1,24 @@
|
|||
Tue Sep 24 18:06:06 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
Wed Sep 24 18:59:59 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* tool/downloader.rb: Adjusting example for
|
||||
Downloader.download to implementation changes in r47693.
|
||||
|
||||
Wed Sep 24 18:06:06 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* tool/downloader.rb: Removing unused method
|
||||
Downloader.download_if_modified_since.
|
||||
(if ever used, just replace with Downloader.download)
|
||||
|
||||
Tue Sep 24 17:59:59 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
Wed Sep 24 17:59:59 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* tool/downloader.rb: Fixing raise after return.
|
||||
|
||||
Tue Sep 24 17:55:55 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
Wed Sep 24 17:55:55 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* tool/downloader.rb: Made Unicode data file location available
|
||||
via :unicode Symbol.
|
||||
|
||||
Tue Sep 24 10:45:45 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
Wed Sep 24 10:45:45 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* tool/downloader.rb: Small fix to documentation comment.
|
||||
|
||||
|
|
|
@ -59,8 +59,7 @@ class Downloader
|
|||
# modified time.
|
||||
#
|
||||
# Example usage:
|
||||
# download 'http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt',
|
||||
# 'enc/unicode/data/UnicodeData.txt'
|
||||
# download :unicode, 'UnicodeData.txt', 'enc/unicode/data'
|
||||
def self.download(url, name, dir = nil, ims = true)
|
||||
file = dir ? File.join(dir, name) : name
|
||||
url = uri_to_download(url, name)
|
||||
|
|
Загрузка…
Ссылка в новой задаче