From c7c34312c8485414a899d6b7f4772024b4ac63d5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 9 Jun 2014 16:11:13 -0500 Subject: [PATCH] Use File.exist? instead of File.exists? File.exists? is deprecated in Ruby 2.1+. --- Formula/gcc.rb | 2 +- Formula/mysql-cluster.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/gcc.rb b/Formula/gcc.rb index 078f43f5d2..a7293eb303 100644 --- a/Formula/gcc.rb +++ b/Formula/gcc.rb @@ -185,7 +185,7 @@ class Gcc < Formula "#{lib}/i386/security/classpath.security" ] config_files.each do |file| - add_suffix file, version_suffix if File.exists? file + add_suffix file, version_suffix if File.exist? file end end end diff --git a/Formula/mysql-cluster.rb b/Formula/mysql-cluster.rb index 59d350e1f4..b9ea34059c 100644 --- a/Formula/mysql-cluster.rb +++ b/Formula/mysql-cluster.rb @@ -86,8 +86,8 @@ class MysqlCluster < Formula (var+"mysql-cluster/ndb_data").mkpath (var+"mysql-cluster/mysqld_data").mkpath (var+"mysql-cluster/conf").mkpath - (var+"mysql-cluster/conf/my.cnf").write my_cnf unless File.exists? var+"mysql-cluster/conf/my.cnf" - (var+"mysql-cluster/conf/config.ini").write config_ini unless File.exists? var+"mysql-cluster/conf/config.ini" + (var+"mysql-cluster/conf/my.cnf").write my_cnf unless File.exist? var+"mysql-cluster/conf/my.cnf" + (var+"mysql-cluster/conf/config.ini").write config_ini unless File.exist? var+"mysql-cluster/conf/config.ini" plist_path('ndb_mgmd').write ndb_mgmd_startup_plist('ndb_mgmd') plist_path('ndb_mgmd').chmod 0644