From b3ec7b57defd84fd70c630ec488250756fcc7422 Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Sat, 21 Aug 2010 22:38:21 -0300 Subject: [PATCH] Bumped MySQL version 5.1.50 for Windows And also cleanup compiled extension when 'rake clean' --- tasks/compile.rake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/compile.rake b/tasks/compile.rake index 712eb17..d767bfe 100644 --- a/tasks/compile.rake +++ b/tasks/compile.rake @@ -1,8 +1,8 @@ gem 'rake-compiler', '~> 0.7.1' require "rake/extensiontask" -MYSQL_VERSION = "5.1.49" -MYSQL_MIRROR = ENV['MYSQL_MIRROR'] || "http://mysql.localhost.net.ar" +MYSQL_VERSION = "5.1.50" +MYSQL_MIRROR = ENV['MYSQL_MIRROR'] || "http://mysql.mirrors.pair.com" Rake::ExtensionTask.new("mysql2", JEWELER.gemspec) do |ext| # reference where the vendored MySQL got extracted @@ -15,5 +15,8 @@ Rake::ExtensionTask.new("mysql2", JEWELER.gemspec) do |ext| end ext.lib_dir = File.join 'lib', 'mysql2' + + # clean compiled extension + CLEAN.include "#{ext.lib_dir}/*.#{RbConfig::CONFIG['DLEXT']}" end Rake::Task[:spec].prerequisites << :compile