From 246bab06780d1daf51c949a853fdb6b480e1e06e Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 21 May 2014 09:48:09 -0700 Subject: change Dir.exist? to File.exist? for 1.8.7 --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 85b9a1e..223d02f 100644 --- a/Rakefile +++ b/Rakefile @@ -84,12 +84,12 @@ task :prep do FileUtils.cp Dir["#{vendor_src_path}/*.h"], build_path # the *.c files need api/yajl_foo.h headers - Dir.mkdir "#{build_path}/api" unless Dir.exist?("#{build_path}/api") + Dir.mkdir "#{build_path}/api" unless File.exist?("#{build_path}/api") FileUtils.cp Dir["#{vendor_src_path}/api/*.h"], "#{build_path}/api" # the header files need yajl/yajl_foo.h headers (and windows symlinks # are a bit of a PITA so just copy them all) - Dir.mkdir "#{build_path}/yajl" unless Dir.exist?("#{build_path}/yajl") + Dir.mkdir "#{build_path}/yajl" unless File.exist?("#{build_path}/yajl") FileUtils.cp Dir["#{vendor_src_path}/api/*.h"], "#{build_path}/yajl" # apply patches that haven't yet been pushed upstream -- cgit v1.2.1