Sha256: cc9ac6a01aa3c83b9fde68fbf10588f16e62d9f43ea726ff5b5e509ac247ea30

Contents?: true

Size: 758 Bytes

Versions: 2

Compression:

Stored size: 758 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

2 entries across 2 versions & 1 rubygems

Version Path
dbi-dbrc-1.1.6 Rakefile
dbi-dbrc-1.1.5 Rakefile