Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorppmasa8 <kiyokiyopip56@gmail.com>2021-07-28 13:23:11 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2022-10-24 14:40:48 +0300
commit0b5b7930c930c92827d82266f9e3e5019fa8f721 (patch)
tree1d15775719b1b428682612eac7a926dea7badad8
parentb699d700dfa1581664674196bac90b69e1494e44 (diff)
fix a typomain
-rw-r--r--tasks/updater/network.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/updater/network.rb b/tasks/updater/network.rb
index 0d2394a..6943bf5 100644
--- a/tasks/updater/network.rb
+++ b/tasks/updater/network.rb
@@ -44,7 +44,7 @@ class Updater
if File.directory?(full_path)
files.each do |name|
path = "#{full_path}/#{name}"
- contents[name] = File.read(path, mode: 'rb') if File.exists?(path)
+ contents[name] = File.read(path, mode: 'rb') if File.exist?(path)
end
end
contents
@@ -63,7 +63,7 @@ class Updater
uri = URI(url)
cache_path = "./#@cache_path#{uri.path}#{uri.query.tr('?&=', '-') if uri.query}"
FileUtils.mkdir_p File.dirname(cache_path)
- if File.exists?(cache_path)
+ if File.exist?(cache_path)
log_http_get_file url, true
File.read(cache_path, mode: 'rb')
else