This prints warnings about being deprecated, so replace it with the call that the deprecated function wraps.
Unified · Split
| @@ -30,7 +30,7 @@ module Docs · 29 unmodified lines | ||
| 30 | 30 | end |
| 31 | 31 | |
| 32 | 32 | def file_exist?(path) |
| 33 | − File.exists?(path) | |
| 33 | + File.exist?(path) | |
| 34 | 34 | end |
| 35 | 35 | |
| 36 | 36 | def file_mtime(path) |
| @@ -46,7 +46,7 @@ module Docs · 9 unmodified lines | ||
| 46 | 46 | next if file == path |
| 47 | 47 | Find.prune if File.basename(file)[0] == '.' |
| 48 | 48 | yield file |
| 49 | − Find.prune unless File.exists?(file) | |
| 49 | + Find.prune unless File.exist?(file) | |
| 50 | 50 | end |
| 51 | 51 | end |
| 52 | 52 | end |
| @@ -180,7 +180,7 @@ class DocsCLI < Thor · 179 unmodified lines | ||
| 180 | 180 | return |
| 181 | 181 | end |
| 182 | 182 | |
| 183 | − unless File.exists?(File.join(Docs.store_path, "#{doc.path}.tar.gz")) | |
| 183 | + unless File.exist?(File.join(Docs.store_path, "#{doc.path}.tar.gz")) | |
| 184 | 184 | puts "ERROR: package for '#{doc.slug}' documentation not found. Run 'thor docs:package #{doc.slug}' to create it." |
| 185 | 185 | return |
| 186 | 186 | end |