Replace deprecated method that cause ruby warnings File.exit?

This commit is contained in:
Abdelkader Boudih committed 2014-10-08 12:02:36 +00:00
1 parent 27df982625
commit e313235b55
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ WIKI
output.gsub!(/-32\./, "-16.")
wiki_path = File.expand_path(
File.join(File.dirname(__FILE__), '../wiki/'))
Dir.mkdir(wiki_path) if !File.exist?(wiki_path)
Dir.mkdir(wiki_path) unless File.exists?(wiki_path)
File.open(File.join(wiki_path, 'SupportedAPIs.wiki'), 'w') do |file|
file.write(output)
end