diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-21 09:48:09 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-21 09:48:09 -0700 |
commit | 246bab06780d1daf51c949a853fdb6b480e1e06e (patch) | |
tree | ce9c6d9b46308ba91ae5fbf8079dc34be83831ae | |
parent | 4cb121dae1d1d4270ef47d24638d29609cb6853e (diff) | |
download | libyajl2-gem-246bab06780d1daf51c949a853fdb6b480e1e06e.tar.gz |
change Dir.exist? to File.exist? for 1.8.7
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |