Bumped MySQL version 5.1.50 for Windows
And also cleanup compiled extension when 'rake clean'
This commit is contained in:
parent
17cabf5559
commit
b3ec7b57de
|
@ -1,8 +1,8 @@
|
||||||
gem 'rake-compiler', '~> 0.7.1'
|
gem 'rake-compiler', '~> 0.7.1'
|
||||||
require "rake/extensiontask"
|
require "rake/extensiontask"
|
||||||
|
|
||||||
MYSQL_VERSION = "5.1.49"
|
MYSQL_VERSION = "5.1.50"
|
||||||
MYSQL_MIRROR = ENV['MYSQL_MIRROR'] || "http://mysql.localhost.net.ar"
|
MYSQL_MIRROR = ENV['MYSQL_MIRROR'] || "http://mysql.mirrors.pair.com"
|
||||||
|
|
||||||
Rake::ExtensionTask.new("mysql2", JEWELER.gemspec) do |ext|
|
Rake::ExtensionTask.new("mysql2", JEWELER.gemspec) do |ext|
|
||||||
# reference where the vendored MySQL got extracted
|
# reference where the vendored MySQL got extracted
|
||||||
|
@ -15,5 +15,8 @@ Rake::ExtensionTask.new("mysql2", JEWELER.gemspec) do |ext|
|
||||||
end
|
end
|
||||||
|
|
||||||
ext.lib_dir = File.join 'lib', 'mysql2'
|
ext.lib_dir = File.join 'lib', 'mysql2'
|
||||||
|
|
||||||
|
# clean compiled extension
|
||||||
|
CLEAN.include "#{ext.lib_dir}/*.#{RbConfig::CONFIG['DLEXT']}"
|
||||||
end
|
end
|
||||||
Rake::Task[:spec].prerequisites << :compile
|
Rake::Task[:spec].prerequisites << :compile
|
||||||
|
|
Loading…
Reference in New Issue