[devdocsgjs/main: 11/12] fix: replace calls to `Dir.exists?` with `Dir.exist?`
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 11/12] fix: replace calls to `Dir.exists?` with `Dir.exist?`
- Date: Thu, 22 Sep 2022 05:21:14 +0000 (UTC)
commit 961bbeb92bad7bd3322f4fc7909a259d19cc15d1
Author: Simon Legner <Simon Legner gmail com>
Date: Wed Sep 21 21:00:47 2022 +0200
fix: replace calls to `Dir.exists?` with `Dir.exist?`
lib/docs/core/scrapers/file_scraper.rb | 2 +-
lib/tasks/docs.thor | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/core/scrapers/file_scraper.rb b/lib/docs/core/scrapers/file_scraper.rb
index 72a99b99..41637e9e 100644
--- a/lib/docs/core/scrapers/file_scraper.rb
+++ b/lib/docs/core/scrapers/file_scraper.rb
@@ -22,7 +22,7 @@ module Docs
private
def assert_source_directory_exists
- unless Dir.exists?(source_directory)
+ unless Dir.exist?(source_directory)
raise SetupError, "The #{self.class.name} scraper requires the original documentation files to be
stored in the \"#{source_directory}\" directory."
end
end
diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor
index af6220b3..5670c7d9 100644
--- a/lib/tasks/docs.thor
+++ b/lib/tasks/docs.thor
@@ -175,7 +175,7 @@ class DocsCLI < Thor
# Verify files are present
docs.each do |doc|
- unless Dir.exists?(File.join(Docs.store_path, doc.path))
+ unless Dir.exist?(File.join(Docs.store_path, doc.path))
puts "ERROR: directory #{File.join(Docs.store_path, doc.path)} not found."
return
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]