From 27cd68f456d855cd75d0ed1b5a635b08cd17b613 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 9 Jul 2010 10:18:25 -0700 Subject: [PATCH] adding a gdb rake task --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rakefile b/Rakefile index 79c32a9..7b8e126 100644 --- a/Rakefile +++ b/Rakefile @@ -37,6 +37,12 @@ Spec::Rake::SpecTask.new('spec') do |t| t.spec_opts << '--options' << 'spec/spec.opts' end +Spec::Rake::SpecTask.new('spec:gdb') do |t| + t.spec_files = FileList['spec/'] + t.spec_opts << '--options' << 'spec/spec.opts' + t.ruby_cmd = "gdb --args #{RUBY}" +end + Rake::ExtensionTask.new("mysql2", JEWELER.gemspec) do |ext| ext.lib_dir = File.join 'lib', 'mysql2' end