Sha256: 65d25bc7cafc9cbe3cb495d2c86a55ebc154cec5aad28b78a244de80b77f7705

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 Bytes

Contents

require 'rake'
require 'rake/testtask'

desc "Install the dbi-dbrc package (non-gem)"
task :install do
   dest = File.join(Config::CONFIG['sitelibdir'], 'dbi')
   Dir.mkdir(dest) unless File.exists? dest
   cp 'lib/dbi/dbrc.rb', dest, :verbose => true
end

desc "Install the dbi-dbrc package as a gem"
task :install_gem do
   ruby 'dbi-dbrc.gemspec'
   file = Dir["*.gem"].first
   sh "gem install #{file}"
end

Rake::TestTask.new do |t|
   t.warning = true
   t.verbose = true
end

Rake::TestTask.new(:test_xml) do |t|
   t.warning = true
   t.verbose = true
   t.test_files = FileList['test/test_dbi_dbrc_xml.rb']
end

Rake::TestTask.new(:test_yml) do |t|
   t.warning = true
   t.verbose = true
   t.test_files = FileList['test/test_dbi_dbrc_yml.rb']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbi-dbrc-1.1.6-x86-mswin32-60 Rakefile