From f5cd294d08f08dcab82def6878bb0f2b90f58c67 Mon Sep 17 00:00:00 2001 From: Jian Weihang Date: Sun, 13 Dec 2015 05:27:38 +0900 Subject: [PATCH] fix rakefile --- Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 1d8cdd5..5be3daa 100644 --- a/Rakefile +++ b/Rakefile @@ -49,7 +49,11 @@ task compare: :compile do table.each{|row| puts row.join(' | ')} end -unless RUBY_PLATFORM == 'java' +if RUBY_PLATFORM == 'java' + task :compile do + puts 'Can not compile C extension, fallback to pure Ruby version.' + end +else Rake::ExtensionTask.new 'jaro_winkler_ext' do |ext| ext.lib_dir = 'lib/jaro_winkler' ext.ext_dir = 'ext/jaro_winkler'