summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-05-21 09:48:09 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-05-21 09:48:09 -0700
commit246bab06780d1daf51c949a853fdb6b480e1e06e (patch)
treece9c6d9b46308ba91ae5fbf8079dc34be83831ae
parent4cb121dae1d1d4270ef47d24638d29609cb6853e (diff)
downloadlibyajl2-gem-246bab06780d1daf51c949a853fdb6b480e1e06e.tar.gz
change Dir.exist? to File.exist? for 1.8.7
-rw-r--r--Rakefile4
1 files 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