aboutsummaryrefslogtreecommitdiffstats
path: root/tool/downloader.rb
Commit message (Collapse)AuthorAgeFilesLines
* downloader.rb: defer warningnobu2016-02-181-6/+11
| | | | | | | * tool/downloader.rb (Downloader.download): warn using http only when really downloading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: https setternobu2016-02-021-1/+5
| | | | | | | * 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
* * tool/downloader.rb: Fixed a logical error, improved documentationduerst2016-01-231-18/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: get rid of repeating same namesnobu2016-01-181-0/+6
| | | | | | | | | * common.mk (download-unicode-data): strip directory paths from the target names, to get rid of repeating same file names. * tool/downloader.rb: add -p option for prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use more tough server: GitHub or repo.or.cznaruse2015-11-261-1/+5
| | | | | | https://gcc.gnu.org/wiki/GitMirror git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: Downloader.httpsnobu2015-11-261-8/+15
| | | | | | | * tool/downloader.rb (Downloader.https): extract a method instead of a global variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo [ci skip]kazu2015-04-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb (http_options): prevent content auto decodingnaruse2015-04-061-0/+1
| | | | | | because this is a downloader. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb (Downloader::RubyGems.download): Gem::Security::*#ui= isusa2015-01-311-1/+1
| | | | | | | | very new feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use master instead of HEADnaruse2015-01-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress alert warningsnobu2015-01-171-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: verify gemsnobu2015-01-141-2/+24
| | | | | | | * tool/downloader.rb (RubyGems.download): verify downloaded gem packages. LowSecurity to allow untrusted certificates now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: support old versions of ruby.usa2014-12-251-1/+33
| | | | | | | | * tool/downloader.rb: now can download gems by http if openssl is not available (this may be danger!) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: fix exception argumentsnobu2014-12-241-1/+1
| | | | | | | | * tool/downloader.rb (Downloader.download): fix the exception to re-raise. initialize methods of subclasses of Exception may have different parameters. [ruby-core:67086] [Bug #10639] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: use config.guess in gcc repo.naruse2014-12-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* url is not required herenaruse2014-12-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: typo.usa2014-12-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* support ruby 1.8naruse2014-12-241-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: support ruby 1.8.naruse2014-12-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): accept multiple certs path inusa2014-12-231-3/+3
| | | | | | | | | ssl_ca_certs. * tool/downloader.rb: use certs of rubygems for downloading gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ims=nil optionnobu2014-11-191-5/+7
| | | | | | | | | * common.mk (update-gems): use ims=nil option. * tool/downloader.rb (Downloader.download): show the message if no need to download in verbose mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb (RubyGems.download): Don't download gem if thenaruse2014-11-191-0/+4
| | | | | | | version is already downloaded. A gem file is versioned and it must be identical if the version is the same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: separate Unicode files directorynobu2014-10-301-3/+3
| | | | | | | | | | | | | * common.mk: download Unicode files into separate directory for the version. * tool/downloader.rb (Downloader::Unicode.download): strip version directory. * tool/downloader.rb (Downloader.download): strip directory name if download directory is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: changed Unicode data download locationduerst2014-10-301-1/+1
| | | | | | from latest Unicode version to Unicode 7.0.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: disable force download of unicode files by defaultnobu2014-10-201-0/+2
| | | | | | | * tool/downloader.rb: add -a option to always download regardless existing files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: update unicode files every timesnobu2014-10-201-1/+1
| | | | | | | | | | * common.mk (update-unicode): remove -e option to force update every builds. * tool/downloader.rb (Downloader.download): return if ims is nil and target file is existing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Make sure we update to latest versionduerst2014-10-201-2/+14
| | | | | | | | if network connection is available, but we don't fail if there is no network connection but option -e is set and we already have a version of the file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Adjust example in documentation for Downloader.download.duerst2014-10-061-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: fix for old ruby on old CentOSnobu2014-09-281-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: compatibility with old BASERUBYnobu2014-09-281-1/+1
| | | | | | | * tool/downloader.rb (Downloader.download): get rid of post arguments for compatibility with old BASERUBY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rbnobu2014-09-281-0/+33
| | | | | | | | * configure.in: use tool/downloader.rb directly. * tool/get-config_files: no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: split particular sitesnobu2014-09-281-23/+28
| | | | | | | | | | * tool/downloader.rb (Downloader): split particular sites from the main class. * tool/downloader.rb (Downloader.download): show messages if verbose mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Adjusting example forduerst2014-09-241-2/+1
| | | | | | | Downloader.download to implementation changes in r47693. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Removing unused methodduerst2014-09-241-4/+0
| | | | | | | Downloader.download_if_modified_since. (if ever used, just replace with Downloader.download) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Fixing raise after return.duerst2014-09-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Made Unicode data file location availableduerst2014-09-241-0/+6
| | | | | | via :unicode Symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: Small fix to documentation comment.duerst2014-09-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: shorthands for usual URInobu2014-09-231-2/+25
| | | | | | | * tool/downloader.rb (Downloader.uri_to_download): add shorthands for commonly used URI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: integrate with download_if_modified_sincenobu2014-09-231-18/+47
| | | | | | | | * tool/downloader.rb (Downloader.download): integrate with download_if_modified_since and allow to use `since` parameter if it is not true/false. also set last-modified time and permission. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-09-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/downloader.rb: added Downloader.download_if_modified_sinceduerst2014-09-231-0/+22
| | | | | | | to reduce downloads of large files that change only rarely. [ruby-core:65164] [CommonRuby - Feature #10084] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: fix wrong variable name.hsbt2014-06-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: make Downloader class to general download utility.hsbt2014-06-241-8/+8
| | | | | | | | It can be used without config.guess and configu.sub. * tool/get-config_files: ditto. * tool/make-snapshot: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/config_files.rb: rename class ConfigFiles to Downloader.hsbt2014-06-231-0/+11
* tool/get-config_files: ditto. * tool/make-snapshot: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e